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 .
19 #ifndef INCLUDED_XMLOFF_STYLEEXP_HXX
20 #define INCLUDED_XMLOFF_STYLEEXP_HXX
22 #include <sal/config.h>
23 #include <xmloff/dllapi.h>
24 #include <rtl/ustring.hxx>
26 #include <salhelper/simplereferenceobject.hxx>
28 namespace com::sun::star::uno
{ template <class interface_type
> class Reference
; }
29 namespace rtl
{ template <class reference_type
> class Reference
; }
31 namespace com::sun::star
48 class SvXMLExportPropertyMapper
;
49 class SvXMLAutoStylePoolP
;
51 enum class XmlStyleFamily
;
53 class XMLOFF_DLLPUBLIC XMLStyleExport
: public salhelper::SimpleReferenceObject
56 SvXMLAutoStylePoolP
*pAutoStylePool
;
59 SvXMLExport
& GetExport() { return rExport
; }
60 const SvXMLExport
& GetExport() const { return rExport
; }
63 const css::uno::Reference
< css::style::XStyle
> & rStyle
,
64 const OUString
& rXMLFamily
,
65 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
66 const css::uno::Reference
< css::container::XNameAccess
> & xStyles
,
67 const OUString
* pPrefix
);
69 virtual void exportStyleAttributes(
70 const css::uno::Reference
< css::style::XStyle
> & rStyle
);
72 virtual void exportStyleContent(
73 const css::uno::Reference
< css::style::XStyle
> & rStyle
);
77 SvXMLAutoStylePoolP
*pAutoStyleP
=nullptr );
78 virtual ~XMLStyleExport() override
;
80 // void exportStyleFamily(
81 // const OUString& rFamily, const OUString& rXMLFamily,
82 // const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
83 // bool bUsed, sal_uInt16 nFamily = 0,
84 // const OUString* pPrefix = 0);
86 // void exportStyleFamily(
87 // const char *pFamily, const OUString& rXMLFamily,
88 // const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
89 // bool bUsed, sal_uInt16 nFamily = 0,
90 // const OUString* pPrefix = 0);
92 void exportDefaultStyle(
93 const css::uno::Reference
< css::beans::XPropertySet
> & xPropSet
,
94 const OUString
& rXMLFamily
,
95 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
);
97 void exportStyleFamily(
98 const OUString
& rFamily
, const OUString
& rXMLFamily
,
99 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
100 bool bUsed
, XmlStyleFamily nFamily
,
101 const OUString
* pPrefix
= nullptr);
103 void exportStyleFamily(
104 const char *pFamily
, const OUString
& rXMLFamily
,
105 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
106 bool bUsed
, XmlStyleFamily nFamily
,
107 const OUString
* pPrefix
= nullptr);
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */