diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-03 15:40:19 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-03 15:40:19 +0000 |
commit | 4b6c9b8d3dcb78186394d6a5aceeffeec1b19af6 (patch) | |
tree | 08bbf1ddd90f8bd9aaa43e5a0ba9499b483d3f1c | |
parent | 146f73bcfa48ddddd18a1eb449aaa5ddd43d2dd2 (diff) |
INTEGRATION: CWS impress14 (1.22.16); FILE MERGED
2004/10/19 14:38:51 cl 1.22.16.1: #i35425# adapt impress header&footer to latest oasis spec
-rw-r--r-- | xmloff/source/draw/sdxmlimp_impl.hxx | 41 |
1 files changed, 37 insertions, 4 deletions
diff --git a/xmloff/source/draw/sdxmlimp_impl.hxx b/xmloff/source/draw/sdxmlimp_impl.hxx index fb6e62f27a18..efaec2342ad8 100644 --- a/xmloff/source/draw/sdxmlimp_impl.hxx +++ b/xmloff/source/draw/sdxmlimp_impl.hxx @@ -2,9 +2,9 @@ * * $RCSfile: sdxmlimp_impl.hxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: rt $ $Date: 2004-09-17 19:31:38 $ + * last change: $Author: rt $ $Date: 2004-11-03 16:40:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -135,7 +135,10 @@ enum SdXMLMasterPageAttrTokenMap XML_TOK_MASTERPAGE_DISPLAY_NAME, XML_TOK_MASTERPAGE_PAGE_MASTER_NAME, XML_TOK_MASTERPAGE_STYLE_NAME, - XML_TOK_MASTERPAGE_PAGE_LAYOUT_NAME + XML_TOK_MASTERPAGE_PAGE_LAYOUT_NAME, + XML_TOK_MASTERPAGE_USE_HEADER_NAME, + XML_TOK_MASTERPAGE_USE_FOOTER_NAME, + XML_TOK_MASTERPAGE_USE_DATE_TIME_NAME }; enum SdXMLPageMasterAttrTokenMap @@ -175,7 +178,10 @@ enum SdXMLDrawPageAttrTokenMap XML_TOK_DRAWPAGE_MASTER_PAGE_NAME, XML_TOK_DRAWPAGE_PAGE_LAYOUT_NAME, XML_TOK_DRAWPAGE_ID, - XML_TOK_DRAWPAGE_HREF + XML_TOK_DRAWPAGE_HREF, + XML_TOK_DRAWPAGE_USE_HEADER_NAME, + XML_TOK_DRAWPAGE_USE_FOOTER_NAME, + XML_TOK_DRAWPAGE_USE_DATE_TIME_NAME }; enum SdXMLDrawPageElemTokenMap @@ -216,6 +222,20 @@ class SdXMLMasterStylesContext; ////////////////////////////////////////////////////////////////////////////// +struct DateTimeDeclContextImpl +{ + rtl::OUString maStrText; + sal_Bool mbFixed; + rtl::OUString maStrDateTimeFormat; + + DateTimeDeclContextImpl() : mbFixed(sal_True) {} +}; + +DECLARE_STL_USTRINGACCESS_MAP( ::rtl::OUString, HeaderFooterDeclMap ); +DECLARE_STL_USTRINGACCESS_MAP( DateTimeDeclContextImpl, DateTimeDeclMap ); + +////////////////////////////////////////////////////////////////////////////// + class SdXMLImport: public SvXMLImport { com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > mxDocStyleFamilies; @@ -255,6 +275,10 @@ class SdXMLImport: public SvXMLImport ::rtl::OUString msPageLayouts; ::rtl::OUString msPreview; + HeaderFooterDeclMap maHeaderDeclsMap; + HeaderFooterDeclMap maFooterDeclsMap; + DateTimeDeclMap maDateTimeDeclsMap; + protected: // This method is called after the namespace map has been updated, but // before a context for the current element has been pushed. @@ -343,6 +367,15 @@ public: // XServiceInfo ( : SvXMLExport ) virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException ); + + void AddHeaderDecl( const ::rtl::OUString& rName, const ::rtl::OUString& rText ); + void AddFooterDecl( const ::rtl::OUString& rName, const ::rtl::OUString& rText ); + void AddDateTimeDecl( const ::rtl::OUString& rName, const ::rtl::OUString& rText, sal_Bool bFixed, const ::rtl::OUString& rDateTimeFormat ); + + ::rtl::OUString GetHeaderDecl( const ::rtl::OUString& rName ) const; + ::rtl::OUString GetFooterDecl( const ::rtl::OUString& rName ) const; + ::rtl::OUString GetDateTimeDecl( const ::rtl::OUString& rName, sal_Bool& rbFixed, ::rtl::OUString& rDateTimeFormat ); + }; #endif // _SDXMLIMP_HXX |