Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
549a6815
Kaydet (Commit)
549a6815
authored
Mar 26, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool -> bool in dociter.[ch]xx
üst
240464f6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
35 deletions
+35
-35
dociter.hxx
sc/inc/dociter.hxx
+35
-35
dociter.cxx
sc/source/core/data/dociter.cxx
+0
-0
No files found.
sc/inc/dociter.hxx
Dosyayı görüntüle @
549a6815
...
...
@@ -73,15 +73,15 @@ private:
SCSIZE
nColPos
;
SCSIZE
nAttrPos
;
sal_B
ool
GetThis
();
sal_B
ool
GetThisCol
();
b
ool
GetThis
();
b
ool
GetThisCol
();
public
:
ScDocumentIterator
(
ScDocument
*
pDocument
,
SCTAB
nStartTable
,
SCTAB
nEndTable
);
~
ScDocumentIterator
();
sal_B
ool
GetFirst
();
sal_B
ool
GetNext
();
b
ool
GetFirst
();
b
ool
GetNext
();
ScBaseCell
*
GetCell
();
const
ScPatternAttr
*
GetPattern
();
...
...
@@ -109,27 +109,27 @@ private:
SCROW
nNextRow
;
SCROW
nAttrEndRow
;
short
nNumFmtType
;
sal_B
ool
bNumValid
;
sal_B
ool
bSubTotal
;
sal_B
ool
bNextValid
;
sal_B
ool
bCalcAsShown
;
sal_B
ool
bTextAsZero
;
b
ool
bNumValid
;
b
ool
bSubTotal
;
b
ool
bNextValid
;
b
ool
bCalcAsShown
;
b
ool
bTextAsZero
;
sal_B
ool
GetThis
(
double
&
rValue
,
sal_uInt16
&
rErr
);
b
ool
GetThis
(
double
&
rValue
,
sal_uInt16
&
rErr
);
public
:
ScValueIterator
(
ScDocument
*
pDocument
,
const
ScRange
&
rRange
,
sal_B
ool
bSTotal
=
false
,
sal_B
ool
bTextAsZero
=
false
);
const
ScRange
&
rRange
,
b
ool
bSTotal
=
false
,
b
ool
bTextAsZero
=
false
);
void
GetCurNumFmtInfo
(
short
&
nType
,
sal_uLong
&
nIndex
);
/// Does NOT reset rValue if no value found!
sal_B
ool
GetFirst
(
double
&
rValue
,
sal_uInt16
&
rErr
);
b
ool
GetFirst
(
double
&
rValue
,
sal_uInt16
&
rErr
);
/// Does NOT reset rValue if no value found!
sal_B
ool
GetNext
(
double
&
rValue
,
sal_uInt16
&
rErr
)
b
ool
GetNext
(
double
&
rValue
,
sal_uInt16
&
rErr
)
{
return
bNextValid
?
(
bNextValid
=
false
,
rValue
=
fNextValue
,
rErr
=
0
,
nRow
=
nNextRow
,
++
nColRow
,
bNumValid
=
false
,
sal_T
rue
)
++
nColRow
,
bNumValid
=
false
,
t
rue
)
:
(
++
nRow
,
GetThis
(
rValue
,
rErr
)
);
}
};
...
...
@@ -233,16 +233,16 @@ private:
SCROW
nRow
;
SCTAB
nTab
;
SCSIZE
nColRow
;
sal_B
ool
bSubTotal
;
b
ool
bSubTotal
;
ScBaseCell
*
GetThis
();
public
:
ScCellIterator
(
ScDocument
*
pDocument
,
SCCOL
nSCol
,
SCROW
nSRow
,
SCTAB
nSTab
,
SCCOL
nECol
,
SCROW
nERow
,
SCTAB
nETab
,
sal_B
ool
bSTotal
=
false
);
b
ool
bSTotal
=
false
);
ScCellIterator
(
ScDocument
*
pDocument
,
const
ScRange
&
rRange
,
sal_B
ool
bSTotal
=
false
);
const
ScRange
&
rRange
,
b
ool
bSTotal
=
false
);
ScBaseCell
*
GetFirst
();
ScBaseCell
*
GetNext
();
SCCOL
GetCol
()
const
{
return
nCol
;
}
...
...
@@ -281,8 +281,8 @@ private:
SCROW
nAttrEndRow
;
sal_uInt8
nStopOnMismatch
;
sal_uInt8
nTestEqualCondition
;
sal_B
ool
bAdvanceQuery
;
sal_B
ool
bIgnoreMismatchOnLeadingStrings
;
b
ool
bAdvanceQuery
;
b
ool
bIgnoreMismatchOnLeadingStrings
;
ScBaseCell
*
GetThis
();
...
...
@@ -299,7 +299,7 @@ private:
public
:
ScQueryCellIterator
(
ScDocument
*
pDocument
,
SCTAB
nTable
,
const
ScQueryParam
&
aParam
,
sal_B
ool
bMod
=
true
);
const
ScQueryParam
&
aParam
,
b
ool
bMod
=
true
);
// for bMod = FALSE the QueryParam has to be filled
// (bIsString)
ScBaseCell
*
GetFirst
();
...
...
@@ -309,7 +309,7 @@ public:
// increments all Entry.nField, if column
// changes, for ScInterpreter ScHLookup()
void
SetAdvanceQueryParamEntryField
(
sal_B
ool
bVal
)
void
SetAdvanceQueryParamEntryField
(
b
ool
bVal
)
{
bAdvanceQuery
=
bVal
;
}
void
AdvanceQueryParamEntryField
();
...
...
@@ -318,17 +318,17 @@ public:
cell range is assumed to be sorted; stops on first
value being greater than the queried value and
GetFirst()/GetNext() return NULL. StoppedOnMismatch()
returns
sal_T
rue then.
returns
t
rue then.
However, the iterator's conditions are not set to end
all queries, GetCol() and GetRow() return values for
the non-matching cell, further GetNext() calls may be
executed. */
void
SetStopOnMismatch
(
sal_B
ool
bVal
)
void
SetStopOnMismatch
(
b
ool
bVal
)
{
nStopOnMismatch
=
sal
::
static_int_cast
<
sal_uInt8
>
(
bVal
?
nStopOnMismatchEnabled
:
nStopOnMismatchDisabled
);
}
sal_B
ool
StoppedOnMismatch
()
const
b
ool
StoppedOnMismatch
()
const
{
return
nStopOnMismatch
==
nStopOnMismatchExecuted
;
}
/** If set, an additional test for SC_EQUAL condition is
...
...
@@ -336,13 +336,13 @@ public:
SC_GREATER_EQUAL conditions are to be tested. May be
used where a cell range is assumed to be sorted to stop
if an equal match is found. */
void
SetTestEqualCondition
(
sal_B
ool
bVal
)
void
SetTestEqualCondition
(
b
ool
bVal
)
{
nTestEqualCondition
=
sal
::
static_int_cast
<
sal_uInt8
>
(
bVal
?
nTestEqualConditionEnabled
:
nTestEqualConditionDisabled
);
}
sal_B
ool
IsEqualConditionFulfilled
()
const
b
ool
IsEqualConditionFulfilled
()
const
{
return
nTestEqualCondition
==
nTestEqualConditionFulfilled
;
}
/** In a range assumed to be sorted find either the last of
...
...
@@ -360,7 +360,7 @@ public:
@param bIgnoreMismatchOnLeadingStrings
Normally strings are sorted behind numerical
values. If this parameter is
sal_T
rue, the search does
values. If this parameter is
t
rue, the search does
not stop when encountering a string and does not
assume that no values follow anymore.
If querying for a string a mismatch on the first
...
...
@@ -372,9 +372,9 @@ public:
iterator is not usable anymore except for obtaining the
number format!
*/
sal_B
ool
FindEqualOrSortedLastInRange
(
SCCOL
&
nFoundCol
,
SCROW
&
nFoundRow
,
sal_B
ool
bSearchForEqualAfterMismatch
=
false
,
sal_Bool
bIgnoreMismatchOnLeadingStrings
=
sal_T
rue
);
b
ool
FindEqualOrSortedLastInRange
(
SCCOL
&
nFoundCol
,
SCROW
&
nFoundRow
,
b
ool
bSearchForEqualAfterMismatch
=
false
,
bool
bIgnoreMismatchOnLeadingStrings
=
t
rue
);
};
class
ScDocAttrIterator
// all attribute areas
...
...
@@ -431,7 +431,7 @@ private:
SCSIZE
*
pNextIndices
;
SCCOL
nCol
;
SCROW
nRow
;
sal_B
ool
bMore
;
b
ool
bMore
;
public
:
ScHorizontalCellIterator
(
ScDocument
*
pDocument
,
SCTAB
nTable
,
...
...
@@ -439,7 +439,7 @@ public:
~
ScHorizontalCellIterator
();
ScBaseCell
*
GetNext
(
SCCOL
&
rCol
,
SCROW
&
rRow
);
sal_B
ool
ReturnNext
(
SCCOL
&
rCol
,
SCROW
&
rRow
);
b
ool
ReturnNext
(
SCCOL
&
rCol
,
SCROW
&
rRow
);
/// Set a(nother) sheet and (re)init.
void
SetTab
(
SCTAB
nTab
);
...
...
@@ -499,7 +499,7 @@ private:
const
ScPatternAttr
**
ppPatterns
;
SCCOL
nCol
;
SCROW
nRow
;
sal_B
ool
bRowEmpty
;
b
ool
bRowEmpty
;
public
:
ScHorizontalAttrIterator
(
ScDocument
*
pDocument
,
SCTAB
nTable
,
...
...
@@ -541,7 +541,7 @@ public:
SCCOL
nCol1
,
SCROW
nRow1
,
SCCOL
nCol2
,
SCROW
nRow2
);
~
ScUsedAreaIterator
();
sal_B
ool
GetNext
();
b
ool
GetNext
();
SCCOL
GetStartCol
()
const
{
return
nFoundStartCol
;
}
SCCOL
GetEndCol
()
const
{
return
nFoundEndCol
;
}
...
...
sc/source/core/data/dociter.cxx
Dosyayı görüntüle @
549a6815
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment