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
f8d290f9
Kaydet (Commit)
f8d290f9
authored
Ock 10, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get it to build after the merge & removed a warning.
üst
9a3cc6c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
segmenttree.hxx
sc/inc/segmenttree.hxx
+1
-0
segmenttree.cxx
sc/source/core/data/segmenttree.cxx
+5
-0
table2.cxx
sc/source/core/data/table2.cxx
+9
-3
table3.cxx
sc/source/core/data/table3.cxx
+2
-2
No files found.
sc/inc/segmenttree.hxx
Dosyayı görüntüle @
f8d290f9
...
@@ -83,6 +83,7 @@ public:
...
@@ -83,6 +83,7 @@ public:
void
insertSegment
(
SCROW
nRow
,
SCROW
nSize
,
bool
bSkipStartBoundary
);
void
insertSegment
(
SCROW
nRow
,
SCROW
nSize
,
bool
bSkipStartBoundary
);
void
enableTreeSearch
(
bool
bEnable
);
void
enableTreeSearch
(
bool
bEnable
);
void
setInsertFromBack
(
bool
bInsertFromBack
);
SCROW
findLastNotOf
(
bool
bValue
)
const
;
SCROW
findLastNotOf
(
bool
bValue
)
const
;
private
:
private
:
...
...
sc/source/core/data/segmenttree.cxx
Dosyayı görüntüle @
f8d290f9
...
@@ -413,6 +413,11 @@ void ScFlatBoolRowSegments::enableTreeSearch(bool bEnable)
...
@@ -413,6 +413,11 @@ void ScFlatBoolRowSegments::enableTreeSearch(bool bEnable)
mpImpl
->
enableTreeSearch
(
bEnable
);
mpImpl
->
enableTreeSearch
(
bEnable
);
}
}
void
ScFlatBoolRowSegments
::
setInsertFromBack
(
bool
bEnable
)
{
mpImpl
->
setInsertFromBack
(
bEnable
);
}
SCROW
ScFlatBoolRowSegments
::
findLastNotOf
(
bool
bValue
)
const
SCROW
ScFlatBoolRowSegments
::
findLastNotOf
(
bool
bValue
)
const
{
{
return
static_cast
<
SCROW
>
(
mpImpl
->
findLastNotOf
(
bValue
));
return
static_cast
<
SCROW
>
(
mpImpl
->
findLastNotOf
(
bValue
));
...
...
sc/source/core/data/table2.cxx
Dosyayı görüntüle @
f8d290f9
...
@@ -781,8 +781,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
...
@@ -781,8 +781,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
std
::
vector
<
ScShowRowsEntry
>
aEntries
;
std
::
vector
<
ScShowRowsEntry
>
aEntries
;
for
(
SCROW
i
=
nRow1
;
i
<=
nRow2
;
++
i
)
for
(
SCROW
i
=
nRow1
;
i
<=
nRow2
;
++
i
)
{
{
SCROW
nLastRow
;
SCROW
nThisLastRow
,
nDestLastRow
;
bool
bHidden
=
RowHidden
(
i
,
NULL
,
&
nLastRow
);
bool
bThisHidden
=
RowHidden
(
i
,
NULL
,
&
nThisLastRow
);
bool
bDestHidden
=
pDestTab
->
RowHidden
(
i
,
NULL
,
&
nDestLastRow
);
// If the segment sizes differ, we take the shorter segment of the two.
SCROW
nLastRow
=
::
std
::
min
(
nThisLastRow
,
nDestLastRow
);
if
(
nLastRow
>=
nRow2
)
if
(
nLastRow
>=
nRow2
)
// the last row shouldn't exceed the upper bound the caller specified.
// the last row shouldn't exceed the upper bound the caller specified.
nLastRow
=
nRow2
;
nLastRow
=
nRow2
;
...
@@ -795,10 +799,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
...
@@ -795,10 +799,12 @@ void ScTable::CopyToTable(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
{
{
// Hidden flags differ.
// Hidden flags differ.
pCharts
->
SetRangeDirty
(
ScRange
(
0
,
i
,
nTab
,
MAXCOL
,
nLastRow
,
nTab
));
pCharts
->
SetRangeDirty
(
ScRange
(
0
,
i
,
nTab
,
MAXCOL
,
nLastRow
,
nTab
));
}
if
(
b
HiddenChanged
)
if
(
b
ThisHiddenChange
)
bFlagChange
=
true
;
bFlagChange
=
true
;
// Jump to the last row of the identical flag segment.
i
=
nLastRow
;
i
=
nLastRow
;
}
}
...
...
sc/source/core/data/table3.cxx
Dosyayı görüntüle @
f8d290f9
...
@@ -1638,7 +1638,6 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub)
...
@@ -1638,7 +1638,6 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub)
BOOL
*
pSpecial
=
new
BOOL
[
nEntryCount
];
BOOL
*
pSpecial
=
new
BOOL
[
nEntryCount
];
lcl_PrepareQuery
(
pDocument
,
this
,
aParam
,
pSpecial
);
lcl_PrepareQuery
(
pDocument
,
this
,
aParam
,
pSpecial
);
SCROW
nEndRow
=
aParam
.
bUseDynamicRange
?
aParam
.
nDynamicEndRow
:
aParam
.
nRow2
;
if
(
!
aParam
.
bInplace
)
if
(
!
aParam
.
bInplace
)
{
{
nOutRow
=
aParam
.
nDestRow
+
nHeader
;
nOutRow
=
aParam
.
nDestRow
+
nHeader
;
...
@@ -1655,7 +1654,8 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub)
...
@@ -1655,7 +1654,8 @@ SCSIZE ScTable::Query(ScQueryParam& rParamOrg, BOOL bKeepSub)
ScDrawLayer
*
pDrawLayer
=
pDocument
->
GetDrawLayer
();
ScDrawLayer
*
pDrawLayer
=
pDocument
->
GetDrawLayer
();
bool
bHasObjects
=
pDrawLayer
&&
pDrawLayer
->
HasObjectsInRows
(
nTab
,
aParam
.
nRow1
+
nHeader
,
aParam
.
nRow2
,
false
);
bool
bHasObjects
=
pDrawLayer
&&
pDrawLayer
->
HasObjectsInRows
(
nTab
,
aParam
.
nRow1
+
nHeader
,
aParam
.
nRow2
,
false
);
for
(
SCROW
j
=
aParam
.
nRow1
+
nHeader
;
j
<=
aParam
.
nRow2
;
j
++
)
SCROW
nRealRow2
=
aParam
.
bUseDynamicRange
?
aParam
.
nDynamicEndRow
:
aParam
.
nRow2
;
for
(
SCROW
j
=
aParam
.
nRow1
+
nHeader
;
j
<=
nRealRow2
;
++
j
)
{
{
BOOL
bResult
;
// Filterergebnis
BOOL
bResult
;
// Filterergebnis
BOOL
bValid
=
ValidQuery
(
j
,
aParam
,
pSpecial
);
BOOL
bValid
=
ValidQuery
(
j
,
aParam
,
pSpecial
);
...
...
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