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
07616ec2
Kaydet (Commit)
07616ec2
authored
Agu 10, 2012
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make more methods const in ScTable
Change-Id: Ib61ab9ea33ea94d6175a2110105849279d1ad440
üst
0ab5ce54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
table.hxx
sc/inc/table.hxx
+5
-5
table2.cxx
sc/source/core/data/table2.cxx
+1
-1
table3.cxx
sc/source/core/data/table3.cxx
+4
-4
No files found.
sc/inc/table.hxx
Dosyayı görüntüle @
07616ec2
...
...
@@ -311,7 +311,7 @@ public:
void
SetValue
(
SCCOL
nCol
,
SCROW
nRow
,
const
double
&
rVal
);
void
SetError
(
SCCOL
nCol
,
SCROW
nRow
,
sal_uInt16
nError
);
void
GetString
(
SCCOL
nCol
,
SCROW
nRow
,
rtl
::
OUString
&
rString
);
void
GetString
(
SCCOL
nCol
,
SCROW
nRow
,
rtl
::
OUString
&
rString
)
const
;
void
GetInputString
(
SCCOL
nCol
,
SCROW
nRow
,
rtl
::
OUString
&
rString
)
const
;
double
GetValue
(
const
ScAddress
&
rPos
)
const
{
...
...
@@ -852,15 +852,15 @@ private:
ScRangeList
&
rMatchedRanges
,
rtl
::
OUString
&
rUndoStr
,
ScDocument
*
pUndoDoc
);
// use the global sort parameter:
bool
IsSorted
(
SCCOLROW
nStart
,
SCCOLROW
nEnd
);
bool
IsSorted
(
SCCOLROW
nStart
,
SCCOLROW
nEnd
)
const
;
void
DecoladeRow
(
ScSortInfoArray
*
,
SCROW
nRow1
,
SCROW
nRow2
);
void
SwapCol
(
SCCOL
nCol1
,
SCCOL
nCol2
);
void
SwapRow
(
SCROW
nRow1
,
SCROW
nRow2
);
short
CompareCell
(
sal_uInt16
nSort
,
ScBaseCell
*
pCell1
,
SCCOL
nCell1Col
,
SCROW
nCell1Row
,
ScBaseCell
*
pCell2
,
SCCOL
nCell2Col
,
SCROW
nCell2Row
);
short
Compare
(
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
);
short
Compare
(
ScSortInfoArray
*
,
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
);
ScBaseCell
*
pCell2
,
SCCOL
nCell2Col
,
SCROW
nCell2Row
)
const
;
short
Compare
(
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
)
const
;
short
Compare
(
ScSortInfoArray
*
,
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
)
const
;
ScSortInfoArray
*
CreateSortInfoArray
(
SCCOLROW
nInd1
,
SCCOLROW
nInd2
);
void
QuickSort
(
ScSortInfoArray
*
,
SCsCOLROW
nLo
,
SCsCOLROW
nHi
);
void
SortReorder
(
ScSortInfoArray
*
,
ScProgress
&
);
...
...
sc/source/core/data/table2.cxx
Dosyayı görüntüle @
07616ec2
...
...
@@ -1294,7 +1294,7 @@ void ScTable::SetValue( SCCOL nCol, SCROW nRow, const double& rVal )
}
void
ScTable
::
GetString
(
SCCOL
nCol
,
SCROW
nRow
,
rtl
::
OUString
&
rString
)
void
ScTable
::
GetString
(
SCCOL
nCol
,
SCROW
nRow
,
rtl
::
OUString
&
rString
)
const
{
if
(
ValidColRow
(
nCol
,
nRow
))
aCol
[
nCol
].
GetString
(
nRow
,
rString
);
...
...
sc/source/core/data/table3.cxx
Dosyayı görüntüle @
07616ec2
...
...
@@ -378,7 +378,7 @@ void ScTable::SortReorder( ScSortInfoArray* pArray, ScProgress& rProgress )
short
ScTable
::
CompareCell
(
sal_uInt16
nSort
,
ScBaseCell
*
pCell1
,
SCCOL
nCell1Col
,
SCROW
nCell1Row
,
ScBaseCell
*
pCell2
,
SCCOL
nCell2Col
,
SCROW
nCell2Row
)
ScBaseCell
*
pCell2
,
SCCOL
nCell2Col
,
SCROW
nCell2Row
)
const
{
short
nRes
=
0
;
...
...
@@ -490,7 +490,7 @@ short ScTable::CompareCell( sal_uInt16 nSort,
return
nRes
;
}
short
ScTable
::
Compare
(
ScSortInfoArray
*
pArray
,
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
)
short
ScTable
::
Compare
(
ScSortInfoArray
*
pArray
,
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
)
const
{
short
nRes
;
sal_uInt16
nSort
=
0
;
...
...
@@ -681,7 +681,7 @@ void ScTable::SwapRow(SCROW nRow1, SCROW nRow2)
}
}
short
ScTable
::
Compare
(
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
)
short
ScTable
::
Compare
(
SCCOLROW
nIndex1
,
SCCOLROW
nIndex2
)
const
{
short
nRes
;
sal_uInt16
nSort
=
0
;
...
...
@@ -710,7 +710,7 @@ short ScTable::Compare(SCCOLROW nIndex1, SCCOLROW nIndex2)
return
nRes
;
}
bool
ScTable
::
IsSorted
(
SCCOLROW
nStart
,
SCCOLROW
nEnd
)
// ueber aSortParam
bool
ScTable
::
IsSorted
(
SCCOLROW
nStart
,
SCCOLROW
nEnd
)
const
// ueber aSortParam
{
for
(
SCCOLROW
i
=
nStart
;
i
<
nEnd
;
i
++
)
{
...
...
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