[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kchart/shape
From:       Johannes Simon <johannes.simon () gmail ! com>
Date:       2008-07-31 21:30:56
Message-ID: 1217539856.327335.13241.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 840333 by jsimon:

Use KoShapeLoadingContext to load chart from ODF

 M  +5 -1      ChartDocument.cpp  


--- trunk/koffice/kchart/shape/ChartDocument.cpp #840332:840333
@@ -34,6 +34,8 @@
 #include <KoView.h>
 #include <KoShapeLoadingContext.h>
 #include <KoXmlNS.h>
+#include <KoOdfStylesReader.h>
+#include <KoOdfLoadingContext.h>
 
 namespace KChart {
 
@@ -78,8 +80,10 @@
     KoXmlElement chartElement = chartElementParentNode.namedItemNS( KoXmlNS::chart, \
"chart" ).toElement();  if ( chartElement.isNull() )
         return false;
+    KoOdfLoadingContext odfLoadingContext( odfStore.styles(), odfStore.store() );
+    KoShapeLoadingContext context( odfLoadingContext, 0 );
 
-    return d->parent->loadOdfEmbedded( chartElement, odfStore.styles() );
+    return d->parent->loadOdfEmbedded( chartElement, context );
 }
 
 bool ChartDocument::loadXML( QIODevice *, const KoXmlDocument &doc )


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic