1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
21 #define INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
23 #include <sal/config.h>
24 #include <xmloff/dllapi.h>
25 #include <rtl/ustring.hxx>
27 #include <rtl/ref.hxx>
28 #include <salhelper/simplereferenceobject.hxx>
29 #include <com/sun/star/uno/Reference.hxx>
31 namespace com::sun::star
{
32 namespace style
{ class XStyle
; }
33 namespace container
{ class XNameAccess
;}
34 namespace beans
{ class XPropertySet
; }
38 class XMLPropertyHandlerFactory
;
39 class XMLPropertySetMapper
;
40 class SvXMLExportPropertyMapper
;
43 struct XMLPageExportNameEntry
45 OUString sPageMasterName
;
46 OUString sDrawingPageStyleName
;
51 class XMLOFF_DLLPUBLIC XMLPageExport
: public salhelper::SimpleReferenceObject
53 SvXMLExport
& m_rExport
;
55 css::uno::Reference
< css::container::XNameAccess
> m_xPageStyles
;
57 ::std::vector
< XMLPageExportNameEntry
> m_aNameVector
;
59 rtl::Reference
< XMLPropertyHandlerFactory
> m_xPageMasterPropHdlFactory
;
60 rtl::Reference
< XMLPropertySetMapper
> m_xPageMasterPropSetMapper
;
61 rtl::Reference
< SvXMLExportPropertyMapper
> m_xPageMasterExportPropMapper
;
62 rtl::Reference
<XMLPropertySetMapper
> m_xPageMasterDrawingPagePropSetMapper
;
63 rtl::Reference
<SvXMLExportPropertyMapper
> m_xPageMasterDrawingPageExportPropMapper
;
67 SvXMLExport
& GetExport() { return m_rExport
; }
69 void collectPageMasterAutoStyle(
70 const css::uno::Reference
< css::beans::XPropertySet
> & rPropSet
,
71 XMLPageExportNameEntry
& rEntry
);
73 virtual void exportMasterPageContent(
74 const css::uno::Reference
< css::beans::XPropertySet
> & rPropSet
,
78 const css::uno::Reference
< css::style::XStyle
>& rStyle
,
81 void exportStyles( bool bUsed
, bool bAutoStyles
);
84 XMLPageExport( SvXMLExport
& rExp
);
85 virtual ~XMLPageExport() override
;
87 void collectAutoStyles( bool bUsed
) { exportStyles( bUsed
, true ); }
88 void exportAutoStyles();
89 void exportMasterStyles( bool bUsed
) { exportStyles( bUsed
, false ); }
91 //text grid enhancement for better CJK support
92 void exportDefaultStyle();
95 #endif // INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
97 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */