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>
25 #include <com/sun/star/uno/Reference.h>
27 #include <salhelper/simplereferenceobject.hxx>
29 namespace com
{ namespace sun
{ namespace star
46 class XMLPropertySetMapper
;
47 class SvXMLExportPropertyMapper
;
48 class SvXMLAutoStylePoolP
;
51 class XMLOFF_DLLPUBLIC XMLStyleExport
: public salhelper::SimpleReferenceObject
55 const OUString sIsPhysical
;
56 const OUString sIsAutoUpdate
;
57 const OUString sFollowStyle
;
58 const OUString sNumberingStyleName
;
59 const OUString sOutlineLevel
;
61 SvXMLExport
& GetExport() { return rExport
; }
62 const SvXMLExport
& GetExport() const { return rExport
; }
66 const OUString sPoolStyleName
;
68 SvXMLAutoStylePoolP
*pAutoStylePool
;
73 const ::com::sun::star::uno::Reference
<
74 ::com::sun::star::style::XStyle
> & rStyle
,
75 const OUString
& rXMLFamily
,
76 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
77 const ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> & xStyles
,
78 const OUString
* pPrefix
= 0L );
80 virtual void exportStyleAttributes(
81 const ::com::sun::star::uno::Reference
<
82 ::com::sun::star::style::XStyle
> & rStyle
);
84 virtual void exportStyleContent(
85 const ::com::sun::star::uno::Reference
<
86 ::com::sun::star::style::XStyle
> & rStyle
);
90 const OUString
& rPoolStyleName
,
91 SvXMLAutoStylePoolP
*pAutoStyleP
=0 );
92 virtual ~XMLStyleExport();
94 // void exportStyleFamily(
95 // const OUString& rFamily, const OUString& rXMLFamily,
96 // const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
97 // bool bUsed, sal_uInt16 nFamily = 0,
98 // const OUString* pPrefix = 0L);
100 // void exportStyleFamily(
101 // const sal_Char *pFamily, const OUString& rXMLFamily,
102 // const rtl::Reference < XMLPropertySetMapper >& rPropMapper,
103 // bool bUsed, sal_uInt16 nFamily = 0,
104 // const OUString* pPrefix = 0L);
106 bool exportDefaultStyle(
107 const ::com::sun::star::uno::Reference
<
108 ::com::sun::star::beans::XPropertySet
> & xPropSet
,
109 const OUString
& rXMLFamily
,
110 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
);
112 void exportStyleFamily(
113 const OUString
& rFamily
, const OUString
& rXMLFamily
,
114 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
115 bool bUsed
, sal_uInt16 nFamily
= 0,
116 const OUString
* pPrefix
= 0L);
118 void exportStyleFamily(
119 const sal_Char
*pFamily
, const OUString
& rXMLFamily
,
120 const rtl::Reference
< SvXMLExportPropertyMapper
>& rPropMapper
,
121 bool bUsed
, sal_uInt16 nFamily
= 0,
122 const OUString
* pPrefix
= 0L);
127 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */