From 27ba0334e70f637b52a416ca67e9f0a68c68b81b Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Mon, 8 Feb 2010 11:44:10 +0100 Subject: datapilotperf: RefreshDPObject, copied from svn revision 277984 --- sc/source/ui/unoobj/dapiuno.cxx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'sc/source/ui/unoobj/dapiuno.cxx') diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index a7836b43f740..b366f6e67852 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1118,17 +1118,21 @@ CellRangeAddress SAL_CALL ScDataPilotTableObj::getOutputRange() throw(RuntimeExc return aRet; } +ULONG RefreshDPObject( ScDPObject *pDPObj, ScDocument *pDoc, ScDocShell *pDocSh, BOOL bRecord, BOOL bApi ); + void SAL_CALL ScDataPilotTableObj::refresh() throw(RuntimeException) { ScUnoGuard aGuard; - ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName); - if (pDPObj) - { - ScDPObject* pNew = new ScDPObject(*pDPObj); - ScDBDocFunc aFunc(*GetDocShell()); - aFunc.DataPilotUpdate( pDPObj, pNew, TRUE, TRUE ); - delete pNew; // DataPilotUpdate copies settings from "new" object - } + if( ScDPObject* pDPObj = lcl_GetDPObject(GetDocShell(), nTab, aName) ) + RefreshDPObject( pDPObj, NULL, GetDocShell(), TRUE, TRUE ); + //if (pDPObj) + //{ + // ScDPObject* pNew = new ScDPObject(*pDPObj); + // ScDBDocFunc aFunc(*GetDocShell()); + // aFunc.DataPilotUpdate( pDPObj, pNew, TRUE, TRUE ); + // delete pNew; // DataPilotUpdate copies settings from "new" object + //} + } Sequence< Sequence > SAL_CALL ScDataPilotTableObj::getDrillDownData(const CellAddress& aAddr) -- cgit From 79e1f10909b23774b042cfc3cd03b46a0e6b6d84 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Tue, 9 Mar 2010 13:40:33 +0100 Subject: datapilotperf: 64-bit buildbot error --- sc/source/ui/unoobj/dapiuno.cxx | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 sc/source/ui/unoobj/dapiuno.cxx (limited to 'sc/source/ui/unoobj/dapiuno.cxx') diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx old mode 100644 new mode 100755 -- cgit