diff options
author | Daniel Rentz <dr@openoffice.org> | 2000-10-18 10:32:20 +0000 |
---|---|---|
committer | Daniel Rentz <dr@openoffice.org> | 2000-10-18 10:32:20 +0000 |
commit | 2cee5b8db27dd224e6a31a93baf9c4a1cf8032cc (patch) | |
tree | 9b734c1e739712881f1e799b1d24fe18be68a241 /xmloff/source/style | |
parent | 1b7ae3e2a37dfb4925958f851b4de194c071af4c (diff) |
add: page-master export
Diffstat (limited to 'xmloff/source/style')
-rw-r--r-- | xmloff/source/style/XMLPageExport.cxx | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx index a4cf3c4476d2..e37b376334ff 100644 --- a/xmloff/source/style/XMLPageExport.cxx +++ b/xmloff/source/style/XMLPageExport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLPageExport.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mib $ $Date: 2000-10-11 07:49:38 $ + * last change: $Author: dr $ $Date: 2000-10-18 11:32:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -59,6 +59,10 @@ * ************************************************************************/ +#ifndef _XMLOFF_XMLPAGEEXPORT_HXX +#include "XMLPageExport.hxx" +#endif + #ifndef _TOOLS_DEBUG_HXX #include <tools/debug.hxx> #endif @@ -94,9 +98,11 @@ #ifndef _XMLOFF_XMLEXP_HXX #include "xmlexp.hxx" #endif - -#ifndef _XMLOFF_XMLPAGEEXPORT_HXX -#include "XMLPageExport.hxx" +#ifndef _XMLOFF_PAGEMASTERSTYLEMAP_HXX +#include "PageMasterStyleMap.hxx" +#endif +#ifndef _XMLOFF_PAGEMASTERPROPMAPPER_HXX +#include "PageMasterPropMapper.hxx" #endif using namespace ::rtl; @@ -109,12 +115,23 @@ using namespace ::com::sun::star::beans; void XMLPageExport::collectPageMasterAutoStyle( const Reference < XPropertySet > & rPropSet ) { + std::vector<XMLPropertyState> xPropStates = rExport.GetPageMasterPropSetMapper()->Filter( rPropSet ); + if(xPropStates.size()) + { + rtl::OUString sParent; + rtl::OUString sName( rExport.GetAutoStylePool()->Find( XML_STYLE_FAMILY_PAGE_MASTER, sParent, xPropStates) ); + if (!sName.getLength()) + { + sName = rExport.GetAutoStylePool()->Add(XML_STYLE_FAMILY_PAGE_MASTER, sParent, xPropStates); + } + } } void XMLPageExport::exportMasterPageContent( const Reference < XPropertySet > & rPropSet, sal_Bool bAutoStyles ) { + } sal_Bool XMLPageExport::exportStyle( |