summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLTableShapeResizer.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-05-22 19:03:22 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-05-22 19:03:22 +0000
commite9fc38d3caeaf77126f10b84275da986d12e92b6 (patch)
tree2b7dc01a54f9cabfdfb3377984bbbb27dfa29d18 /sc/source/filter/xml/XMLTableShapeResizer.cxx
parentda9c68cdf14ff80382a28c153ae23fec527a5fb3 (diff)
INTEGRATION: CWS chart2mst3 (1.23.22); FILE MERGED
2007/04/27 12:24:56 bm 1.23.22.7: RESYNC: warnings removed 2007/04/25 03:06:38 bm 1.23.22.6: RESYNC: (1.26-1.27); FILE MERGED 2006/10/18 23:53:25 bm 1.23.22.5: RESYNC: (1.25-1.26); FILE MERGED 2005/10/08 09:00:14 bm 1.23.22.4: RESYNC: (1.24-1.25); FILE MERGED 2005/09/08 16:58:20 iha 1.23.22.3: set charts to dirty after loading flat xml (calc is not complete during loading the chart -> wrong first visual representation of charts need to be updated) 2005/05/17 12:47:11 bm 1.23.22.2: RESYNC: (1.23-1.24); FILE MERGED 2005/05/12 19:56:35 sab 1.23.22.1: move range to string and string to range converter methods to rangeutil
Diffstat (limited to 'sc/source/filter/xml/XMLTableShapeResizer.cxx')
-rw-r--r--sc/source/filter/xml/XMLTableShapeResizer.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/sc/source/filter/xml/XMLTableShapeResizer.cxx b/sc/source/filter/xml/XMLTableShapeResizer.cxx
index cb934a3b2292..68cd72ed3173 100644
--- a/sc/source/filter/xml/XMLTableShapeResizer.cxx
+++ b/sc/source/filter/xml/XMLTableShapeResizer.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: XMLTableShapeResizer.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: vg $ $Date: 2007-02-27 12:47:59 $
+ * last change: $Author: vg $ $Date: 2007-05-22 20:03:22 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -54,6 +54,9 @@
#ifndef _SC_XMLCONVERTER_HXX
#include "XMLConverter.hxx"
#endif
+#ifndef SC_RANGEUTL_HXX
+#include "rangeutl.hxx"
+#endif
#ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx>
@@ -102,10 +105,17 @@ void ScMyShapeResizer::CreateChartListener(ScDocument* pDoc,
if (pCollection)
{
ScRangeListRef aRangeListRef(new ScRangeList());
- ScXMLConverter::GetRangeListFromString(*aRangeListRef, *pRangeList, pDoc);
+ ScRangeStringConverter::GetRangeListFromString(*aRangeListRef, *pRangeList, pDoc);
if (aRangeListRef->Count())
{
ScChartListener* pCL(new ScChartListener(rName, pDoc, aRangeListRef ));
+
+ //for loading binary files e.g.
+ //if we have the flat filter we need to set the dirty flag thus the visible charts get repainted
+ //otherwise the charts keep their first visual representation which was created at a moment where the calc itself was not loaded completly and is incorect therefor
+ if( (rImport.getImportFlags() & IMPORT_ALL) == IMPORT_ALL )
+ pCL->SetDirty( TRUE );
+
pCollection->Insert( pCL );
pCL->StartListeningTo();
}