Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef _XMLOFF_TXTEXPPR_HXX
20 : #define _XMLOFF_TXTEXPPR_HXX
21 :
22 :
23 : #include <xmloff/xmlexppr.hxx>
24 : #include "txtdrope.hxx"
25 : #include "xmloff/xmltabe.hxx"
26 : #include "XMLTextColumnsExport.hxx"
27 : #include "XMLBackgroundImageExport.hxx"
28 :
29 : class SvXMLExport;
30 : class XMLTextExportPropertySetMapper: public SvXMLExportPropertyMapper
31 : {
32 : SvXMLExport& rExport;
33 :
34 : ::rtl::OUString sDropCharStyle;
35 : sal_Bool bDropWholeWord;
36 :
37 : void ContextFontFilter(
38 : XMLPropertyState *pFontNameState,
39 : XMLPropertyState *pFontFamilyNameState,
40 : XMLPropertyState *pFontStyleNameState,
41 : XMLPropertyState *pFontFamilyState,
42 : XMLPropertyState *pFontPitchState,
43 : XMLPropertyState *pFontCharsetState ) const;
44 : void ContextFontHeightFilter(
45 : XMLPropertyState* pCharHeightState,
46 : XMLPropertyState* pCharPropHeightState,
47 : XMLPropertyState* pCharDiffHeightState ) const;
48 :
49 : protected:
50 : // SvXMLUnitConverter& mrUnitConverter;
51 : // const Reference< xml::sax::XDocumentHandler > & mrHandler;
52 : XMLTextDropCapExport maDropCapExport;
53 : SvxXMLTabStopExport maTabStopExport;
54 : XMLTextColumnsExport maTextColumnsExport;
55 : XMLBackgroundImageExport maBackgroundImageExport;
56 :
57 : /** Application-specific filter. By default do nothing. */
58 : virtual void ContextFilter(
59 : ::std::vector< XMLPropertyState >& rProperties,
60 : ::com::sun::star::uno::Reference<
61 : ::com::sun::star::beans::XPropertySet > rPropSet ) const;
62 97 : const SvXMLExport& GetExport() const { return rExport; }
63 :
64 : public:
65 :
66 : XMLTextExportPropertySetMapper(
67 : const UniReference< XMLPropertySetMapper >& rMapper,
68 : SvXMLExport& rExt );
69 : virtual ~XMLTextExportPropertySetMapper();
70 :
71 : virtual void handleElementItem(
72 : SvXMLExport& rExport,
73 : const XMLPropertyState& rProperty,
74 : sal_uInt16 nFlags,
75 : const ::std::vector< XMLPropertyState > *pProperties = 0,
76 : sal_uInt32 nIdx = 0 ) const;
77 :
78 : virtual void handleSpecialItem(
79 : SvXMLAttributeList& rAttrList,
80 : const XMLPropertyState& rProperty,
81 : const SvXMLUnitConverter& rUnitConverter,
82 : const SvXMLNamespaceMap& rNamespaceMap,
83 : const ::std::vector< XMLPropertyState > *pProperties = 0,
84 : sal_uInt32 nIdx = 0 ) const;
85 : };
86 :
87 :
88 : #endif
89 :
90 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|