xref: /trunk/main/xmloff/source/draw/sdxmlimp_impl.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
1*ecfe53c5SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*ecfe53c5SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*ecfe53c5SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*ecfe53c5SAndrew Rist  * distributed with this work for additional information
6*ecfe53c5SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*ecfe53c5SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*ecfe53c5SAndrew Rist  * "License"); you may not use this file except in compliance
9*ecfe53c5SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*ecfe53c5SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*ecfe53c5SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*ecfe53c5SAndrew Rist  * software distributed under the License is distributed on an
15*ecfe53c5SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*ecfe53c5SAndrew Rist  * KIND, either express or implied.  See the License for the
17*ecfe53c5SAndrew Rist  * specific language governing permissions and limitations
18*ecfe53c5SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*ecfe53c5SAndrew Rist  *************************************************************/
21*ecfe53c5SAndrew Rist 
22*ecfe53c5SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SDXMLIMP_IMPL_HXX
25cdf0e10cSrcweir #define _SDXMLIMP_IMPL_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/drawing/XDrawPage.hpp>
28cdf0e10cSrcweir #include <com/sun/star/frame/XModel.hpp>
29cdf0e10cSrcweir #include <com/sun/star/task/XStatusIndicator.hpp>
30cdf0e10cSrcweir #include <xmloff/xmltkmap.hxx>
31cdf0e10cSrcweir #include <com/sun/star/container/XNameAccess.hpp>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir #ifndef __SGI_STL_VECTOR
34cdf0e10cSrcweir #include <vector>
35cdf0e10cSrcweir #endif
36cdf0e10cSrcweir #include <xmloff/xmlimp.hxx>
37cdf0e10cSrcweir 
38cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
39cdf0e10cSrcweir 
40cdf0e10cSrcweir enum SdXMLDocElemTokenMap
41cdf0e10cSrcweir {
42cdf0e10cSrcweir     XML_TOK_DOC_FONTDECLS,
43cdf0e10cSrcweir     XML_TOK_DOC_STYLES,
44cdf0e10cSrcweir     XML_TOK_DOC_AUTOSTYLES,
45cdf0e10cSrcweir     XML_TOK_DOC_MASTERSTYLES,
46cdf0e10cSrcweir     XML_TOK_DOC_META,
47cdf0e10cSrcweir     XML_TOK_DOC_BODY,
48cdf0e10cSrcweir     XML_TOK_DOC_SCRIPT,
49cdf0e10cSrcweir     XML_TOK_DOC_SETTINGS,
50cdf0e10cSrcweir     XML_TOK_OFFICE_END = XML_TOK_UNKNOWN
51cdf0e10cSrcweir };
52cdf0e10cSrcweir 
53cdf0e10cSrcweir enum SdXMLBodyElemTokenMap
54cdf0e10cSrcweir {
55cdf0e10cSrcweir     XML_TOK_BODY_PAGE,
56cdf0e10cSrcweir     XML_TOK_BODY_SETTINGS,
57cdf0e10cSrcweir     XML_TOK_BODY_HEADER_DECL,
58cdf0e10cSrcweir     XML_TOK_BODY_FOOTER_DECL,
59cdf0e10cSrcweir     XML_TOK_BODY_DATE_TIME_DECL
60cdf0e10cSrcweir };
61cdf0e10cSrcweir 
62cdf0e10cSrcweir enum SdXMLStylesElemTokenMap
63cdf0e10cSrcweir {
64cdf0e10cSrcweir     XML_TOK_STYLES_MASTER_PAGE,
65cdf0e10cSrcweir     XML_TOK_STYLES_STYLE,
66cdf0e10cSrcweir     XML_TOK_STYLES_PAGE_MASTER,
67cdf0e10cSrcweir     XML_TOK_STYLES_PRESENTATION_PAGE_LAYOUT
68cdf0e10cSrcweir };
69cdf0e10cSrcweir 
70cdf0e10cSrcweir enum SdXMLAutoStylesElemTokenMap
71cdf0e10cSrcweir {
72cdf0e10cSrcweir     XML_TOK_AUTOSTYLES_STYLE
73cdf0e10cSrcweir };
74cdf0e10cSrcweir 
75cdf0e10cSrcweir enum SdXMLMasterPageElemTokenMap
76cdf0e10cSrcweir {
77cdf0e10cSrcweir     XML_TOK_MASTERPAGE_STYLE,
78cdf0e10cSrcweir     XML_TOK_MASTERPAGE_NOTES
79cdf0e10cSrcweir };
80cdf0e10cSrcweir 
81cdf0e10cSrcweir enum SdXMLMasterPageAttrTokenMap
82cdf0e10cSrcweir {
83cdf0e10cSrcweir     XML_TOK_MASTERPAGE_NAME,
84cdf0e10cSrcweir     XML_TOK_MASTERPAGE_DISPLAY_NAME,
85cdf0e10cSrcweir     XML_TOK_MASTERPAGE_PAGE_MASTER_NAME,
86cdf0e10cSrcweir     XML_TOK_MASTERPAGE_STYLE_NAME,
87cdf0e10cSrcweir     XML_TOK_MASTERPAGE_PAGE_LAYOUT_NAME,
88cdf0e10cSrcweir     XML_TOK_MASTERPAGE_USE_HEADER_NAME,
89cdf0e10cSrcweir     XML_TOK_MASTERPAGE_USE_FOOTER_NAME,
90cdf0e10cSrcweir     XML_TOK_MASTERPAGE_USE_DATE_TIME_NAME
91cdf0e10cSrcweir };
92cdf0e10cSrcweir 
93cdf0e10cSrcweir enum SdXMLPageMasterAttrTokenMap
94cdf0e10cSrcweir {
95cdf0e10cSrcweir     XML_TOK_PAGEMASTER_NAME
96cdf0e10cSrcweir };
97cdf0e10cSrcweir 
98cdf0e10cSrcweir enum SdXMLPageMasterStyleAttrTokenMap
99cdf0e10cSrcweir {
100cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_MARGIN_TOP,
101cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_MARGIN_BOTTOM,
102cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_MARGIN_LEFT,
103cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_MARGIN_RIGHT,
104cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_PAGE_WIDTH,
105cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_PAGE_HEIGHT,
106cdf0e10cSrcweir     XML_TOK_PAGEMASTERSTYLE_PAGE_ORIENTATION
107cdf0e10cSrcweir };
108cdf0e10cSrcweir 
109cdf0e10cSrcweir enum SdXMLDocStyleAttrTokenMap
110cdf0e10cSrcweir {
111cdf0e10cSrcweir     XML_TOK_DOCSTYLE_NAME,
112cdf0e10cSrcweir     XML_TOK_DOCSTYLE_FAMILY,
113cdf0e10cSrcweir     XML_TOK_DOCSTYLE_PARENT_STYLE_NAME,
114cdf0e10cSrcweir     XML_TOK_DOCSTYLE_AUTOMATIC
115cdf0e10cSrcweir };
116cdf0e10cSrcweir 
117cdf0e10cSrcweir enum SdXMLDocStyleElemTokenMap
118cdf0e10cSrcweir {
119cdf0e10cSrcweir     XML_TOK_DOCSTYLE_PROPERTIES,
120cdf0e10cSrcweir     XML_TOK_DOCSTYLE_PRESENTATION_PLACEHOLDER
121cdf0e10cSrcweir };
122cdf0e10cSrcweir 
123cdf0e10cSrcweir enum SdXMLDrawPageAttrTokenMap
124cdf0e10cSrcweir {
125cdf0e10cSrcweir     XML_TOK_DRAWPAGE_NAME,
126cdf0e10cSrcweir     XML_TOK_DRAWPAGE_STYLE_NAME,
127cdf0e10cSrcweir     XML_TOK_DRAWPAGE_MASTER_PAGE_NAME,
128cdf0e10cSrcweir     XML_TOK_DRAWPAGE_PAGE_LAYOUT_NAME,
129cdf0e10cSrcweir     XML_TOK_DRAWPAGE_DRAWID,
130cdf0e10cSrcweir     XML_TOK_DRAWPAGE_XMLID,
131cdf0e10cSrcweir     XML_TOK_DRAWPAGE_HREF,
132cdf0e10cSrcweir     XML_TOK_DRAWPAGE_USE_HEADER_NAME,
133cdf0e10cSrcweir     XML_TOK_DRAWPAGE_USE_FOOTER_NAME,
134cdf0e10cSrcweir     XML_TOK_DRAWPAGE_USE_DATE_TIME_NAME
135cdf0e10cSrcweir };
136cdf0e10cSrcweir 
137cdf0e10cSrcweir enum SdXMLDrawPageElemTokenMap
138cdf0e10cSrcweir {
139cdf0e10cSrcweir     XML_TOK_DRAWPAGE_NOTES,
140cdf0e10cSrcweir     XML_TOK_DRAWPAGE_PAR,
141cdf0e10cSrcweir     XML_TOK_DRAWPAGE_SEQ
142cdf0e10cSrcweir };
143cdf0e10cSrcweir 
144cdf0e10cSrcweir enum SdXMLPresentationPlaceholderAttrTokenMap
145cdf0e10cSrcweir {
146cdf0e10cSrcweir     XML_TOK_PRESENTATIONPLACEHOLDER_OBJECTNAME,
147cdf0e10cSrcweir     XML_TOK_PRESENTATIONPLACEHOLDER_X,
148cdf0e10cSrcweir     XML_TOK_PRESENTATIONPLACEHOLDER_Y,
149cdf0e10cSrcweir     XML_TOK_PRESENTATIONPLACEHOLDER_WIDTH,
150cdf0e10cSrcweir     XML_TOK_PRESENTATIONPLACEHOLDER_HEIGHT
151cdf0e10cSrcweir };
152cdf0e10cSrcweir 
153cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
154cdf0e10cSrcweir 
155cdf0e10cSrcweir struct SdXMLltXDrawPageId
156cdf0e10cSrcweir {
operator ()SdXMLltXDrawPageId157cdf0e10cSrcweir   bool operator()(sal_Int32 nId1, sal_Int32 nId2 ) const
158cdf0e10cSrcweir   {
159cdf0e10cSrcweir     return nId1 < nId2;
160cdf0e10cSrcweir   }
161cdf0e10cSrcweir };
162cdf0e10cSrcweir 
163cdf0e10cSrcweir typedef std::map< sal_Int32, com::sun::star::uno::Reference< com::sun::star::drawing::XDrawPage >, SdXMLltXDrawPageId > DrawPageIdMap;
164cdf0e10cSrcweir 
165cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
166cdf0e10cSrcweir 
167cdf0e10cSrcweir class SvXMLUnitConverter;
168cdf0e10cSrcweir class SvXMLTokenMap;
169cdf0e10cSrcweir class XMLSdPropHdlFactory;
170cdf0e10cSrcweir class XMLPropertySetMapper;
171cdf0e10cSrcweir class XMLPropStyleContext;
172cdf0e10cSrcweir class SdXMLStylesContext;
173cdf0e10cSrcweir class SdXMLMasterStylesContext;
174cdf0e10cSrcweir 
175cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
176cdf0e10cSrcweir 
177cdf0e10cSrcweir struct DateTimeDeclContextImpl
178cdf0e10cSrcweir {
179cdf0e10cSrcweir     rtl::OUString maStrText;
180cdf0e10cSrcweir     sal_Bool mbFixed;
181cdf0e10cSrcweir     rtl::OUString maStrDateTimeFormat;
182cdf0e10cSrcweir 
DateTimeDeclContextImplDateTimeDeclContextImpl183cdf0e10cSrcweir     DateTimeDeclContextImpl() : mbFixed(sal_True) {}
184cdf0e10cSrcweir };
185cdf0e10cSrcweir 
186cdf0e10cSrcweir DECLARE_STL_USTRINGACCESS_MAP( ::rtl::OUString, HeaderFooterDeclMap );
187cdf0e10cSrcweir DECLARE_STL_USTRINGACCESS_MAP( DateTimeDeclContextImpl, DateTimeDeclMap );
188cdf0e10cSrcweir 
189cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
190cdf0e10cSrcweir 
191cdf0e10cSrcweir class SdXMLImport: public SvXMLImport
192cdf0e10cSrcweir {
193cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > mxDocStyleFamilies;
194cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > mxDocMasterPages;
195cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::container::XIndexAccess > mxDocDrawPages;
196cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > mxPageLayouts;
197cdf0e10cSrcweir 
198cdf0e10cSrcweir     // contexts for Style and AutoStyle import
199cdf0e10cSrcweir     SdXMLMasterStylesContext*   mpMasterStylesContext;
200cdf0e10cSrcweir 
201cdf0e10cSrcweir     // token map lists
202cdf0e10cSrcweir     SvXMLTokenMap*              mpDocElemTokenMap;
203cdf0e10cSrcweir     SvXMLTokenMap*              mpBodyElemTokenMap;
204cdf0e10cSrcweir     SvXMLTokenMap*              mpStylesElemTokenMap;
205cdf0e10cSrcweir     SvXMLTokenMap*              mpAutoStylesElemTokenMap;
206cdf0e10cSrcweir     SvXMLTokenMap*              mpMasterPageElemTokenMap;
207cdf0e10cSrcweir     SvXMLTokenMap*              mpMasterPageAttrTokenMap;
208cdf0e10cSrcweir     SvXMLTokenMap*              mpPageMasterAttrTokenMap;
209cdf0e10cSrcweir     SvXMLTokenMap*              mpPageMasterStyleAttrTokenMap;
210cdf0e10cSrcweir     SvXMLTokenMap*              mpDocStyleAttrTokenMap;
211cdf0e10cSrcweir     SvXMLTokenMap*              mpDocStyleElemTokenMap;
212cdf0e10cSrcweir     SvXMLTokenMap*              mpDrawPageAttrTokenMap;
213cdf0e10cSrcweir     SvXMLTokenMap*              mpDrawPageElemTokenMap;
214cdf0e10cSrcweir     SvXMLTokenMap*              mpPresentationPlaceholderAttrTokenMap;
215cdf0e10cSrcweir 
216cdf0e10cSrcweir     sal_uInt16                  mnStyleFamilyMask;
217cdf0e10cSrcweir 
218cdf0e10cSrcweir     sal_Int32                   mnNewPageCount;
219cdf0e10cSrcweir     sal_Int32                   mnNewMasterPageCount;
220cdf0e10cSrcweir 
221cdf0e10cSrcweir     sal_Bool                    mbIsDraw;
222cdf0e10cSrcweir     sal_Bool                    mbLoadDoc;
223cdf0e10cSrcweir     sal_Bool                    mbPreview;
224cdf0e10cSrcweir 
225cdf0e10cSrcweir     DrawPageIdMap               maDrawPageIds;
226cdf0e10cSrcweir 
227cdf0e10cSrcweir     ::rtl::OUString             msPageLayouts;
228cdf0e10cSrcweir     ::rtl::OUString             msPreview;
229cdf0e10cSrcweir 
230cdf0e10cSrcweir     HeaderFooterDeclMap         maHeaderDeclsMap;
231cdf0e10cSrcweir     HeaderFooterDeclMap         maFooterDeclsMap;
232cdf0e10cSrcweir     DateTimeDeclMap             maDateTimeDeclsMap;
233cdf0e10cSrcweir 
234cdf0e10cSrcweir protected:
235cdf0e10cSrcweir     // This method is called after the namespace map has been updated, but
236cdf0e10cSrcweir     // before a context for the current element has been pushed.
237cdf0e10cSrcweir     virtual SvXMLImportContext *CreateContext(sal_uInt16 nPrefix,
238cdf0e10cSrcweir       const rtl::OUString& rLocalName,
239cdf0e10cSrcweir       const com::sun::star::uno::Reference<
240cdf0e10cSrcweir         com::sun::star::xml::sax::XAttributeList>& xAttrList);
241cdf0e10cSrcweir 
242cdf0e10cSrcweir public:
243cdf0e10cSrcweir     // #110680#
244cdf0e10cSrcweir     SdXMLImport(
245cdf0e10cSrcweir         const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
246cdf0e10cSrcweir         sal_Bool bIsDraw, sal_uInt16 nImportFlags = IMPORT_ALL );
247cdf0e10cSrcweir     ~SdXMLImport() throw ();
248cdf0e10cSrcweir 
249cdf0e10cSrcweir     // XImporter
250cdf0e10cSrcweir     virtual void SAL_CALL setTargetDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException);
251cdf0e10cSrcweir 
252cdf0e10cSrcweir     // XInitialization
253cdf0e10cSrcweir     virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
254cdf0e10cSrcweir 
255cdf0e10cSrcweir     void SetProgress(sal_Int32 nProg);
256cdf0e10cSrcweir 
257cdf0e10cSrcweir     virtual void SetViewSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aViewProps);
258cdf0e10cSrcweir     virtual void SetConfigurationSettings(const com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue>& aConfigProps);
259cdf0e10cSrcweir 
260cdf0e10cSrcweir     // namespace office
261cdf0e10cSrcweir     // NB: in contrast to other CreateFooContexts, this particular one handles
262cdf0e10cSrcweir     //     the root element (i.e. office:document-meta)
263cdf0e10cSrcweir     SvXMLImportContext* CreateMetaContext(const rtl::OUString& rLocalName,
264cdf0e10cSrcweir         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
265cdf0e10cSrcweir     SvXMLImportContext* CreateScriptContext( const ::rtl::OUString& rLocalName );
266cdf0e10cSrcweir     SvXMLImportContext* CreateBodyContext(const rtl::OUString& rLocalName,
267cdf0e10cSrcweir         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
268cdf0e10cSrcweir     SvXMLStylesContext* CreateStylesContext(const rtl::OUString& rLocalName,
269cdf0e10cSrcweir         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
270cdf0e10cSrcweir     SvXMLStylesContext* CreateAutoStylesContext(const rtl::OUString& rLocalName,
271cdf0e10cSrcweir         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
272cdf0e10cSrcweir     SvXMLImportContext* CreateMasterStylesContext(const rtl::OUString& rLocalName,
273cdf0e10cSrcweir         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList >& xAttrList);
274cdf0e10cSrcweir     SvXMLImportContext *CreateFontDeclsContext(const ::rtl::OUString& rLocalName,
275cdf0e10cSrcweir         const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
276cdf0e10cSrcweir 
277cdf0e10cSrcweir     // Styles and AutoStyles contexts
GetMasterStylesContext() const278cdf0e10cSrcweir     const SdXMLMasterStylesContext* GetMasterStylesContext() const { return mpMasterStylesContext; }
279cdf0e10cSrcweir 
GetStyleFamilyMask() const280cdf0e10cSrcweir     sal_uInt16 GetStyleFamilyMask() const { return mnStyleFamilyMask; }
IsStylesOnlyMode() const281cdf0e10cSrcweir     sal_Bool IsStylesOnlyMode() const { return !mbLoadDoc; }
282cdf0e10cSrcweir 
283cdf0e10cSrcweir     const SvXMLTokenMap& GetDocElemTokenMap();
284cdf0e10cSrcweir     const SvXMLTokenMap& GetBodyElemTokenMap();
285cdf0e10cSrcweir     const SvXMLTokenMap& GetStylesElemTokenMap();
286cdf0e10cSrcweir     const SvXMLTokenMap& GetMasterPageElemTokenMap();
287cdf0e10cSrcweir     const SvXMLTokenMap& GetMasterPageAttrTokenMap();
288cdf0e10cSrcweir     const SvXMLTokenMap& GetPageMasterAttrTokenMap();
289cdf0e10cSrcweir     const SvXMLTokenMap& GetPageMasterStyleAttrTokenMap();
290cdf0e10cSrcweir     const SvXMLTokenMap& GetDrawPageAttrTokenMap();
291cdf0e10cSrcweir     const SvXMLTokenMap& GetDrawPageElemTokenMap();
292cdf0e10cSrcweir     const SvXMLTokenMap& GetPresentationPlaceholderAttrTokenMap();
293cdf0e10cSrcweir 
294cdf0e10cSrcweir     // export local parameters concerning page access and similar
295cdf0e10cSrcweir     const com::sun::star::uno::Reference<
GetLocalDocStyleFamilies() const296cdf0e10cSrcweir         com::sun::star::container::XNameAccess >& GetLocalDocStyleFamilies() const { return mxDocStyleFamilies; }
297cdf0e10cSrcweir     const com::sun::star::uno::Reference<
GetLocalMasterPages() const298cdf0e10cSrcweir         com::sun::star::container::XIndexAccess >& GetLocalMasterPages() const { return mxDocMasterPages; }
299cdf0e10cSrcweir     const com::sun::star::uno::Reference<
GetLocalDrawPages() const300cdf0e10cSrcweir         com::sun::star::container::XIndexAccess >& GetLocalDrawPages() const { return mxDocDrawPages; }
301cdf0e10cSrcweir 
GetNewPageCount() const302cdf0e10cSrcweir     sal_Int32 GetNewPageCount() const { return mnNewPageCount; }
IncrementNewPageCount()303cdf0e10cSrcweir     void IncrementNewPageCount() { mnNewPageCount++; }
GetNewMasterPageCount() const304cdf0e10cSrcweir     sal_Int32 GetNewMasterPageCount() const { return mnNewMasterPageCount; }
IncrementNewMasterPageCount()305cdf0e10cSrcweir     void IncrementNewMasterPageCount() { mnNewMasterPageCount++; }
306cdf0e10cSrcweir 
getPageLayouts() const307cdf0e10cSrcweir     com::sun::star::uno::Reference< com::sun::star::container::XNameAccess > getPageLayouts() const { return mxPageLayouts; }
308cdf0e10cSrcweir 
IsDraw() const309cdf0e10cSrcweir     sal_Bool IsDraw() const { return mbIsDraw; }
IsImpress() const310cdf0e10cSrcweir     sal_Bool IsImpress() const { return !mbIsDraw; }
311cdf0e10cSrcweir 
312cdf0e10cSrcweir     // import pool defaults. Parameter contains pool defaults read
313cdf0e10cSrcweir     // from input data. These data needs to be set at the model.
314cdf0e10cSrcweir     void ImportPoolDefaults(const XMLPropStyleContext* pPool);
315cdf0e10cSrcweir 
316cdf0e10cSrcweir     // #80365#
317cdf0e10cSrcweir     virtual void SetStatistics(
318cdf0e10cSrcweir         const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue> & i_rStats);
319cdf0e10cSrcweir 
IsPreview() const320cdf0e10cSrcweir     sal_Bool IsPreview() const { return mbPreview; }
321cdf0e10cSrcweir 
322cdf0e10cSrcweir     // XServiceInfo ( : SvXMLExport )
323cdf0e10cSrcweir     virtual ::rtl::OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException );
324cdf0e10cSrcweir 
325cdf0e10cSrcweir     void AddHeaderDecl( const ::rtl::OUString& rName, const ::rtl::OUString& rText );
326cdf0e10cSrcweir     void AddFooterDecl( const ::rtl::OUString& rName, const ::rtl::OUString& rText );
327cdf0e10cSrcweir     void AddDateTimeDecl( const ::rtl::OUString& rName, const ::rtl::OUString& rText, sal_Bool bFixed, const ::rtl::OUString& rDateTimeFormat );
328cdf0e10cSrcweir 
329cdf0e10cSrcweir     ::rtl::OUString GetHeaderDecl( const ::rtl::OUString& rName ) const;
330cdf0e10cSrcweir     ::rtl::OUString GetFooterDecl( const ::rtl::OUString& rName ) const;
331cdf0e10cSrcweir     ::rtl::OUString GetDateTimeDecl( const ::rtl::OUString& rName, sal_Bool& rbFixed, ::rtl::OUString& rDateTimeFormat );
332cdf0e10cSrcweir 
333cdf0e10cSrcweir };
334cdf0e10cSrcweir 
335cdf0e10cSrcweir #endif  //  _SDXMLIMP_HXX
336