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
{ namespace sun
{ namespace star
{ namespace uno
{ template <class interface_type
> class Reference
; } } } }
29 namespace rtl
{ template <class reference_type
> class Reference
; }
31 namespace com
{ namespace sun
{ namespace star
48 class SvXMLExportPropertyMapper
;
49 class SvXMLAutoStylePoolP
;
52 class XMLOFF_DLLPUBLIC XMLStyleExport
: public salhelper::SimpleReferenceObject
55 SvXMLAutoStylePoolP
*pAutoStylePool
;
58 SvXMLExport
& GetExport() { return rExport
; }
59 const SvXMLExport
& GetExport() const { return rExport
; }
62 const css::uno::Reference
< css::style::XStyle
> & rStyle
,
63 const OUString
& rXMLFamily
,
64 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
65 const css::uno::Reference
< css::container::XNameAccess
> & xStyles
,
66 const OUString
* pPrefix
);
68 virtual void exportStyleAttributes(
69 const css::uno::Reference
< css::style::XStyle
> & rStyle
);
71 virtual void exportStyleContent(
72 const css::uno::Reference
< css::style::XStyle
> & rStyle
);
76 SvXMLAutoStylePoolP
*pAutoStyleP
=nullptr );
77 virtual ~XMLStyleExport() override
;
79 // void exportStyleFamily(
80 // const OUString& rFamily, const OUString& rXMLFamily,
81 // const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
82 // bool bUsed, sal_uInt16 nFamily = 0,
83 // const OUString* pPrefix = 0);
85 // void exportStyleFamily(
86 // const sal_Char *pFamily, const OUString& rXMLFamily,
87 // const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
88 // bool bUsed, sal_uInt16 nFamily = 0,
89 // const OUString* pPrefix = 0);
91 void exportDefaultStyle(
92 const css::uno::Reference
< css::beans::XPropertySet
> & xPropSet
,
93 const OUString
& rXMLFamily
,
94 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
);
96 void exportStyleFamily(
97 const OUString
& rFamily
, const OUString
& rXMLFamily
,
98 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
99 bool bUsed
, sal_uInt16 nFamily
,
100 const OUString
* pPrefix
= nullptr);
102 void exportStyleFamily(
103 const sal_Char
*pFamily
, const OUString
& rXMLFamily
,
104 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
105 bool bUsed
, sal_uInt16 nFamily
,
106 const OUString
* pPrefix
= nullptr);
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */