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

List:       kde-commits
Subject:    koffice/libs/kotext
From:       Thomas Zander <zander () kde ! org>
Date:       2010-08-20 12:57:48
Message-ID: 20100820130026.B1A5AAC867 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1165934 by zander:

Implement dummy load/save methods with TODO marker

 M  +13 -0     KoNamedVariable.cpp  
 M  +3 -0      KoNamedVariable.h  
 M  +6 -0      KoTextLocator.cpp  
 M  +1 -0      KoTextLocator.h  
 M  +14 -0     KoTextReference.cpp  
 M  +2 -3      KoTextReference.h  


--- trunk/koffice/libs/kotext/KoNamedVariable.cpp #1165933:1165934
@@ -39,3 +39,16 @@
     setValue(manager()->stringProperty(m_key));
 }
 
+bool KoNamedVariable::loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context)
+{
+    Q_UNUSED(element);
+    Q_UNUSED(context);
+    // TODO
+    return false;
+}
+
+void KoNamedVariable::saveOdf(KoShapeSavingContext &context)
+{
+    Q_UNUSED(context);
+    // TODO
+}
--- trunk/koffice/libs/kotext/KoNamedVariable.h #1165933:1165934
@@ -34,6 +34,9 @@
         return m_name;
     }
 
+    virtual bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context);
+    virtual void saveOdf(KoShapeSavingContext &context);
+
 protected:
     friend class KoVariableManager;
     /**
--- trunk/koffice/libs/kotext/KoTextLocator.cpp #1165933:1165934
@@ -181,3 +181,9 @@
     // TODO
     return false;
 }
+
+void KoTextLocator::saveOdf(KoShapeSavingContext &context)
+{
+    Q_UNUSED(context);
+    // TODO
+}
--- trunk/koffice/libs/kotext/KoTextLocator.h #1165933:1165934
@@ -66,6 +66,7 @@
     void removeListener(KoTextReference *reference);
 
     virtual bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context);
+    virtual void saveOdf(KoShapeSavingContext &context);
 
 private:
     class Private;
--- trunk/koffice/libs/kotext/KoTextReference.cpp #1165933:1165934
@@ -57,3 +57,17 @@
 {
     return dynamic_cast<KoTextLocator*>(manager()->inlineTextObject(m_indexId));
 }
+
+bool KoTextReference::loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context)
+{
+    Q_UNUSED(element);
+    Q_UNUSED(context);
+    // TODO
+    return false;
+}
+
+void KoTextReference::saveOdf(KoShapeSavingContext &context)
+{
+    Q_UNUSED(context);
+    // TODO
+}
--- trunk/koffice/libs/kotext/KoTextReference.h #1165933:1165934
@@ -42,11 +42,10 @@
     KoTextReference(int indexId);
     ~KoTextReference();
 
-    /// reimplemented method from superclass
     virtual void variableMoved(const KoShape *shape, const QTextDocument *document, int posInDocument);
-
-    /// reimplemented method from superclass
     virtual void setup();
+    virtual bool loadOdf(const KoXmlElement &element, KoShapeLoadingContext &context);
+    virtual void saveOdf(KoShapeSavingContext &context);
 
 private:
     KoTextLocator *locator();
[prev in list] [next in list] [prev in thread] [next in thread] 

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