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
9be40516
Kaydet (Commit)
9be40516
authored
Mar 13, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Dedicated method for refreshing multiple linked pivot tables.
üst
c18dc2e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
12 deletions
+22
-12
dbdocfun.cxx
sc/source/ui/docshell/dbdocfun.cxx
+10
-0
dbdocfun.hxx
sc/source/ui/inc/dbdocfun.hxx
+10
-0
dapiuno.cxx
sc/source/ui/unoobj/dapiuno.cxx
+1
-6
dbfunc3.cxx
sc/source/ui/view/dbfunc3.cxx
+1
-6
No files found.
sc/source/ui/docshell/dbdocfun.cxx
Dosyayı görüntüle @
9be40516
...
...
@@ -1451,6 +1451,16 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb
return
bDone
;
}
void
ScDBDocFunc
::
RefreshPivotTables
(
std
::
set
<
ScDPObject
*>&
rRefs
,
bool
bRecord
,
bool
bApi
)
{
std
::
set
<
ScDPObject
*>::
iterator
it
=
rRefs
.
begin
(),
itEnd
=
rRefs
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
ScDPObject
*
pObj
=
*
it
;
DataPilotUpdate
(
pObj
,
pObj
,
bRecord
,
bApi
);
}
}
//==================================================================
//
// database import
...
...
sc/source/ui/inc/dbdocfun.hxx
Dosyayı görüntüle @
9be40516
...
...
@@ -33,6 +33,8 @@
#include <tools/solar.h>
#include <com/sun/star/uno/Sequence.hxx>
#include <set>
class
String
;
struct
ScImportParam
;
...
...
@@ -100,6 +102,14 @@ public:
bool
DataPilotUpdate
(
ScDPObject
*
pOldObj
,
const
ScDPObject
*
pNewObj
,
bool
bRecord
,
bool
bApi
,
bool
bAllowMove
=
false
);
/**
* Refresh multiple pivot tables that reference the same pivot cache.
* Before calling this method, the caller must take care of reloading the
* cache and providing the correct pivot table objects referencing the
* cache.
*/
void
RefreshPivotTables
(
std
::
set
<
ScDPObject
*>&
rRefs
,
bool
bRecord
,
bool
bApi
);
};
...
...
sc/source/ui/unoobj/dapiuno.cxx
Dosyayı görüntüle @
9be40516
...
...
@@ -1278,12 +1278,7 @@ void SAL_CALL ScDataPilotTableObj::refresh() throw(RuntimeException)
ScDBDocFunc
aFunc
(
*
GetDocShell
());
std
::
set
<
ScDPObject
*>
aRefs
;
GetDocShell
()
->
GetDocument
()
->
GetDPCollection
()
->
ReloadCache
(
pDPObj
,
aRefs
);
std
::
set
<
ScDPObject
*>::
iterator
it
=
aRefs
.
begin
(),
itEnd
=
aRefs
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
ScDPObject
*
pObj
=
*
it
;
aFunc
.
DataPilotUpdate
(
pObj
,
pObj
,
true
,
true
);
}
aFunc
.
RefreshPivotTables
(
aRefs
,
true
,
true
);
}
}
...
...
sc/source/ui/view/dbfunc3.cxx
Dosyayı görüntüle @
9be40516
...
...
@@ -716,12 +716,7 @@ void ScDBFunc::RecalcPivotTable()
}
ScDBDocFunc
aFunc
(
*
pDocSh
);
std
::
set
<
ScDPObject
*>::
iterator
it
=
aRefs
.
begin
(),
itEnd
=
aRefs
.
end
();
for
(;
it
!=
itEnd
;
++
it
)
{
ScDPObject
*
pObj
=
*
it
;
aFunc
.
DataPilotUpdate
(
pObj
,
pObj
,
true
,
false
);
}
aFunc
.
RefreshPivotTables
(
aRefs
,
true
,
false
);
CursorPosChanged
();
// shells may be switched
}
...
...
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