build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / include / xmloff / XMLPageExport.hxx
blob0bfee31c8b5931b6ce28ef97576c50c405f6863f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 <sal/types.h>
26 #include <rtl/ustring.hxx>
27 #include <vector>
28 #include <xmloff/attrlist.hxx>
29 #include <rtl/ref.hxx>
30 #include <salhelper/simplereferenceobject.hxx>
31 #include <com/sun/star/container/XIndexAccess.hpp>
33 namespace com { namespace sun { namespace star {
34 namespace style { class XStyle; }
35 namespace container { class XIndexReplace; class XNameAccess;}
36 namespace beans { class XPropertySet; }
37 } } }
39 class SvXMLExport;
40 class XMLPropertyHandlerFactory;
41 class XMLPropertySetMapper;
42 class SvXMLExportPropertyMapper;
45 struct XMLPageExportNameEntry
47 OUString sPageMasterName;
48 OUString sStyleName;
52 class XMLOFF_DLLPUBLIC XMLPageExport : public salhelper::SimpleReferenceObject
54 SvXMLExport& rExport;
56 const OUString sIsPhysical;
57 const OUString sFollowStyle;
59 css::uno::Reference< css::container::XNameAccess > xPageStyles;
61 ::std::vector< XMLPageExportNameEntry > aNameVector;
62 SAL_DLLPRIVATE bool findPageMasterName( const OUString& rStyleName, OUString& rPMName ) const;
64 rtl::Reference < XMLPropertyHandlerFactory > xPageMasterPropHdlFactory;
65 rtl::Reference < XMLPropertySetMapper > xPageMasterPropSetMapper;
66 rtl::Reference < SvXMLExportPropertyMapper > xPageMasterExportPropMapper;
68 protected:
70 SvXMLExport& GetExport() { return rExport; }
72 void collectPageMasterAutoStyle(
73 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
74 OUString& rPageMasterName );
76 virtual void exportMasterPageContent(
77 const css::uno::Reference< css::beans::XPropertySet > & rPropSet,
78 bool bAutoStyles );
80 bool exportStyle(
81 const css::uno::Reference< css::style::XStyle >& rStyle,
82 bool bAutoStyles );
84 void exportStyles( bool bUsed, bool bAutoStyles );
86 public:
87 XMLPageExport( SvXMLExport& rExp );
88 virtual ~XMLPageExport() override;
90 void collectAutoStyles( bool bUsed ) { exportStyles( bUsed, true ); }
91 void exportAutoStyles();
92 void exportMasterStyles( bool bUsed ) { exportStyles( bUsed, false ); }
94 //text grid enhancement for better CJK support
95 void exportDefaultStyle();
98 #endif // INCLUDED_XMLOFF_XMLPAGEEXPORT_HXX
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */