bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / xmloff / styleexp.hxx
blob84f6877139116a038834883dd51645cec82b6259
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 .
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
33 namespace style
35 class XStyle;
37 namespace beans
39 class XPropertySet;
41 namespace container
43 class XNameAccess;
46 } } }
48 class SvXMLExportPropertyMapper;
49 class SvXMLAutoStylePoolP;
50 class SvXMLExport;
52 class XMLOFF_DLLPUBLIC XMLStyleExport : public salhelper::SimpleReferenceObject
54 SvXMLExport& rExport;
55 SvXMLAutoStylePoolP *pAutoStylePool;
57 protected:
58 SvXMLExport& GetExport() { return rExport; }
59 const SvXMLExport& GetExport() const { return rExport; }
61 bool exportStyle(
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 );
73 public:
74 XMLStyleExport(
75 SvXMLExport& rExp,
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);
109 #endif
111 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */