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

List:       kde-commits
Subject:    koffice/example
From:       Brad Hards <bradh () frogmouth ! net>
Date:       2004-07-27 21:40:19
Message-ID: 20040727214019.284DE9A08 () office ! kde ! org
[Download RAW message or body]

CVS commit by bhards: 

Add methods for load/save OASIS to allow example to build.


  M +12 -0     example_part.cc   1.18
  M +4 -0      example_part.h   1.10


--- koffice/example/example_part.h  #1.9:1.10
@@ -36,4 +36,8 @@ public:
     virtual QDomDocument saveXML();
 
+    virtual bool loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles,
+                            const QDomDocument & settings, KoStore* store );
+    virtual bool saveOasis( KoStore* store, KoXmlWriter* manifestWriter );
+
 protected:
     virtual KoView* createViewInstance( QWidget* parent, const char* name );

--- koffice/example/example_part.cc  #1.17:1.18
@@ -64,4 +64,16 @@ QDomDocument ExamplePart::saveXML()
 }
 
+bool ExamplePart::loadOasis( const QDomDocument & doc, KoOasisStyles& oasisStyles,
+                const QDomDocument & settings, KoStore* store )
+{
+    // TODO load the document from the QDomDocument
+    return true;
+}
+
+bool ExamplePart::saveOasis( KoStore* store, KoXmlWriter* manifestWriter )
+{
+    // TODO save the document to the KoStore;
+    return true;
+}
 
 void ExamplePart::paintContent( QPainter& painter, const QRect& rect, bool /*transparent*/,


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

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