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
878a5dab
Kaydet (Commit)
878a5dab
authored
Nis 29, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#74650: Speed up GetFilteredFilterEntries().
Change-Id: I1b3ae601726401a0e70fb1a05b9a90c43773794c
üst
2d843bb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
column.hxx
sc/inc/column.hxx
+4
-1
column3.cxx
sc/source/core/data/column3.cxx
+5
-2
table3.cxx
sc/source/core/data/table3.cxx
+7
-2
No files found.
sc/inc/column.hxx
Dosyayı görüntüle @
878a5dab
...
@@ -460,7 +460,10 @@ public:
...
@@ -460,7 +460,10 @@ public:
/// Including current, may return -1
/// Including current, may return -1
SCsROW
GetNextUnprotected
(
SCROW
nRow
,
bool
bUp
)
const
;
SCsROW
GetNextUnprotected
(
SCROW
nRow
,
bool
bUp
)
const
;
void
GetFilterEntries
(
SCROW
nStartRow
,
SCROW
nEndRow
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
);
void
GetFilterEntries
(
sc
::
ColumnBlockConstPosition
&
rBlockPos
,
SCROW
nStartRow
,
SCROW
nEndRow
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
);
bool
GetDataEntries
(
SCROW
nRow
,
std
::
set
<
ScTypedStrData
>&
rStrings
,
bool
bLimit
)
const
;
bool
GetDataEntries
(
SCROW
nRow
,
std
::
set
<
ScTypedStrData
>&
rStrings
,
bool
bLimit
)
const
;
void
UpdateInsertTabAbs
(
SCTAB
nNewPos
);
void
UpdateInsertTabAbs
(
SCTAB
nNewPos
);
...
...
sc/source/core/data/column3.cxx
Dosyayı görüntüle @
878a5dab
...
@@ -2047,10 +2047,13 @@ public:
...
@@ -2047,10 +2047,13 @@ public:
}
}
void
ScColumn
::
GetFilterEntries
(
SCROW
nStartRow
,
SCROW
nEndRow
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
)
void
ScColumn
::
GetFilterEntries
(
sc
::
ColumnBlockConstPosition
&
rBlockPos
,
SCROW
nStartRow
,
SCROW
nEndRow
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
)
{
{
FilterEntriesHandler
aFunc
(
*
this
,
rStrings
);
FilterEntriesHandler
aFunc
(
*
this
,
rStrings
);
sc
::
ParseAllNonEmpty
(
maCells
.
begin
(),
maCells
,
nStartRow
,
nEndRow
,
aFunc
);
rBlockPos
.
miCellPos
=
sc
::
ParseAllNonEmpty
(
rBlockPos
.
miCellPos
,
maCells
,
nStartRow
,
nEndRow
,
aFunc
);
rHasDates
=
aFunc
.
hasDates
();
rHasDates
=
aFunc
.
hasDates
();
}
}
...
...
sc/source/core/data/table3.cxx
Dosyayı görüntüle @
878a5dab
...
@@ -2556,12 +2556,17 @@ bool ScTable::HasRowHeader( SCCOL nStartCol, SCROW nStartRow, SCCOL /* nEndCol *
...
@@ -2556,12 +2556,17 @@ bool ScTable::HasRowHeader( SCCOL nStartCol, SCROW nStartRow, SCCOL /* nEndCol *
void
ScTable
::
GetFilterEntries
(
SCCOL
nCol
,
SCROW
nRow1
,
SCROW
nRow2
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
)
void
ScTable
::
GetFilterEntries
(
SCCOL
nCol
,
SCROW
nRow1
,
SCROW
nRow2
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
)
{
{
aCol
[
nCol
].
GetFilterEntries
(
nRow1
,
nRow2
,
rStrings
,
rHasDates
);
sc
::
ColumnBlockConstPosition
aBlockPos
;
aCol
[
nCol
].
InitBlockPosition
(
aBlockPos
);
aCol
[
nCol
].
GetFilterEntries
(
aBlockPos
,
nRow1
,
nRow2
,
rStrings
,
rHasDates
);
}
}
void
ScTable
::
GetFilteredFilterEntries
(
void
ScTable
::
GetFilteredFilterEntries
(
SCCOL
nCol
,
SCROW
nRow1
,
SCROW
nRow2
,
const
ScQueryParam
&
rParam
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
)
SCCOL
nCol
,
SCROW
nRow1
,
SCROW
nRow2
,
const
ScQueryParam
&
rParam
,
std
::
vector
<
ScTypedStrData
>&
rStrings
,
bool
&
rHasDates
)
{
{
sc
::
ColumnBlockConstPosition
aBlockPos
;
aCol
[
nCol
].
InitBlockPosition
(
aBlockPos
);
// remove the entry for this column from the query parameter
// remove the entry for this column from the query parameter
ScQueryParam
aParam
(
rParam
);
ScQueryParam
aParam
(
rParam
);
aParam
.
RemoveEntryByField
(
nCol
);
aParam
.
RemoveEntryByField
(
nCol
);
...
@@ -2573,7 +2578,7 @@ void ScTable::GetFilteredFilterEntries(
...
@@ -2573,7 +2578,7 @@ void ScTable::GetFilteredFilterEntries(
if
(
ValidQuery
(
j
,
aParam
))
if
(
ValidQuery
(
j
,
aParam
))
{
{
bool
bThisHasDates
=
false
;
bool
bThisHasDates
=
false
;
aCol
[
nCol
].
GetFilterEntries
(
j
,
j
,
rStrings
,
bThisHasDates
);
aCol
[
nCol
].
GetFilterEntries
(
aBlockPos
,
j
,
j
,
rStrings
,
bThisHasDates
);
bHasDates
|=
bThisHasDates
;
bHasDates
|=
bThisHasDates
;
}
}
}
}
...
...
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