add: page-master export

This commit is contained in:
Daniel Rentz
2000-10-18 10:32:20 +00:00
parent 1b7ae3e2a3
commit 2cee5b8db2

View File

@@ -2,9 +2,9 @@
* *
* $RCSfile: XMLPageExport.cxx,v $ * $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 * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
@@ -59,6 +59,10 @@
* *
************************************************************************/ ************************************************************************/
#ifndef _XMLOFF_XMLPAGEEXPORT_HXX
#include "XMLPageExport.hxx"
#endif
#ifndef _TOOLS_DEBUG_HXX #ifndef _TOOLS_DEBUG_HXX
#include <tools/debug.hxx> #include <tools/debug.hxx>
#endif #endif
@@ -94,9 +98,11 @@
#ifndef _XMLOFF_XMLEXP_HXX #ifndef _XMLOFF_XMLEXP_HXX
#include "xmlexp.hxx" #include "xmlexp.hxx"
#endif #endif
#ifndef _XMLOFF_PAGEMASTERSTYLEMAP_HXX
#ifndef _XMLOFF_XMLPAGEEXPORT_HXX #include "PageMasterStyleMap.hxx"
#include "XMLPageExport.hxx" #endif
#ifndef _XMLOFF_PAGEMASTERPROPMAPPER_HXX
#include "PageMasterPropMapper.hxx"
#endif #endif
using namespace ::rtl; using namespace ::rtl;
@@ -109,12 +115,23 @@ using namespace ::com::sun::star::beans;
void XMLPageExport::collectPageMasterAutoStyle( void XMLPageExport::collectPageMasterAutoStyle(
const Reference < XPropertySet > & rPropSet ) 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( void XMLPageExport::exportMasterPageContent(
const Reference < XPropertySet > & rPropSet, const Reference < XPropertySet > & rPropSet,
sal_Bool bAutoStyles ) sal_Bool bAutoStyles )
{ {
} }
sal_Bool XMLPageExport::exportStyle( sal_Bool XMLPageExport::exportStyle(