[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/main
From: Thorsten Zachmann <t.zachmann () zagge ! de>
Date: 2007-10-11 4:23:45
Message-ID: 1192076625.713782.27618.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 723924 by zachmann:
o added support for writing out office:master-styles
M +14 -0 KoGenStyles.cpp
M +11 -2 KoGenStyles.h
--- trunk/koffice/libs/main/KoGenStyles.cpp #723923:723924
@@ -244,3 +244,17 @@
xmlWriter->endElement(); // office:styles
}
+
+void KoGenStyles::saveOdfMasterStyles( KoXmlWriter* xmlWriter )
+{
+ xmlWriter->startElement( "office:master-styles" );
+
+ QList<KoGenStyles::NamedStyle> stylesList = styles( KoGenStyle::StyleMaster );
+ QList<KoGenStyles::NamedStyle>::const_iterator it = stylesList.begin();
+ for ( ; it != stylesList.end() ; ++it ) {
+ ( *it ).style->writeStyle( xmlWriter, *this, "style:master-page", ( *it ).name, 0 );
+ }
+
+ xmlWriter->endElement(); // office:styles
+}
+
--- trunk/koffice/libs/main/KoGenStyles.h #723923:723924
@@ -158,7 +158,7 @@
* This creates the office:automatic-styles tag containing all
* automatic styles.
*
- * @param contentWriter
+ * @param xmlWriter
* @param stylesDotXml
*/
void saveOdfAutomaticStyles( KoXmlWriter* xmlWriter, bool stylesDotXml );
@@ -168,10 +168,19 @@
*
* This creates the office:styles tag containing all document styles.
*
- * @param contentWriter
+ * @param xmlWriter
*/
void saveOdfDocumentStyles( KoXmlWriter* xmlWriter );
+ /**
+ * Save master styles.
+ *
+ * This creates the office:master-styles tag containing all master styles.
+ *
+ * @param xmlWriter
+ */
+ void saveOdfMasterStyles( KoXmlWriter* xmlWriter );
+
private:
QString makeUniqueName( const QString& base, int flags ) const;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic