LibreOffice Module xmloff (master)  1
txtexppr.hxx
Go to the documentation of this file.
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 #pragma once
20 
21 
22 #include <xmloff/xmlexppr.hxx>
23 #include "txtdrope.hxx"
24 #include <xmltabe.hxx>
25 #include <XMLTextColumnsExport.hxx>
27 
28 class SvXMLExport;
30 {
32 
33  OUString sDropCharStyle;
35 
36  void ContextFontFilter(
37  bool bEnableFoFontFamily,
38  XMLPropertyState *pFontNameState,
39  XMLPropertyState *pFontFamilyNameState,
40  XMLPropertyState *pFontStyleNameState,
41  XMLPropertyState *pFontFamilyState,
42  XMLPropertyState *pFontPitchState,
43  XMLPropertyState *pFontCharsetState ) const;
44  static void ContextFontHeightFilter(
45  XMLPropertyState* pCharHeightState,
46  XMLPropertyState* pCharPropHeightState,
47  XMLPropertyState* pCharDiffHeightState );
48 
49 private:
50 // SvXMLUnitConverter& mrUnitConverter;
51 // const Reference< xml::sax::XDocumentHandler > & mrHandler;
56 
58  virtual void ContextFilter(
59  bool bEnableFoFontFamily,
60  ::std::vector< XMLPropertyState >& rProperties,
61  const css::uno::Reference< css::beans::XPropertySet >& rPropSet ) const override;
62  const SvXMLExport& GetExport() const { return rExport; }
63 
64 public:
65 
68  SvXMLExport& rExt );
69  virtual ~XMLTextExportPropertySetMapper() override;
70 
71  virtual void handleElementItem(
72  SvXMLExport& rExport,
73  const XMLPropertyState& rProperty,
74  SvXmlExportFlags nFlags,
75  const ::std::vector< XMLPropertyState > *pProperties,
76  sal_uInt32 nIdx ) const override;
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,
84  sal_uInt32 nIdx ) const override;
85 };
86 
87 
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxXMLTabStopExport maTabStopExport
Definition: txtexppr.hxx:53
the SvXMLTypeConverter converts values of various types from their internal representation to the tex...
Definition: xmluconv.hxx:82
virtual ~XMLTextExportPropertySetMapper() override
Definition: txtexppr.cxx:217
XMLTextColumnsExport maTextColumnsExport
Definition: txtexppr.hxx:54
virtual void ContextFilter(bool bEnableFoFontFamily,::std::vector< XMLPropertyState > &rProperties, const css::uno::Reference< css::beans::XPropertySet > &rPropSet) const override
Application-specific filter.
Definition: txtexppr.cxx:517
void ContextFontFilter(bool bEnableFoFontFamily, XMLPropertyState *pFontNameState, XMLPropertyState *pFontFamilyNameState, XMLPropertyState *pFontStyleNameState, XMLPropertyState *pFontFamilyState, XMLPropertyState *pFontPitchState, XMLPropertyState *pFontCharsetState) const
Definition: txtexppr.cxx:221
virtual void handleSpecialItem(SvXMLAttributeList &rAttrList, const XMLPropertyState &rProperty, const SvXMLUnitConverter &rUnitConverter, const SvXMLNamespaceMap &rNamespaceMap, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const override
this method is called for every item that has the MID_FLAG_SPECIAL_ITEM_EXPORT flag set ...
Definition: txtexppr.cxx:139
XMLBackgroundImageExport maBackgroundImageExport
Definition: txtexppr.hxx:55
const SvXMLExport & GetExport() const
Definition: txtexppr.hxx:62
XMLTextExportPropertySetMapper(const rtl::Reference< XMLPropertySetMapper > &rMapper, SvXMLExport &rExt)
Definition: txtexppr.cxx:204
virtual void handleElementItem(SvXMLExport &rExport, const XMLPropertyState &rProperty, SvXmlExportFlags nFlags, const ::std::vector< XMLPropertyState > *pProperties, sal_uInt32 nIdx) const override
this method is called for every item that has the MID_FLAG_ELEMENT_EXPORT flag set ...
Definition: txtexppr.cxx:48
SvXmlExportFlags
Definition: xmlexppr.hxx:39
Smart struct to transport an Any with an index to the appropriate property-name.
Definition: maptype.hxx:122
static void ContextFontHeightFilter(XMLPropertyState *pCharHeightState, XMLPropertyState *pCharPropHeightState, XMLPropertyState *pCharDiffHeightState)
Definition: txtexppr.cxx:311
XMLTextDropCapExport maDropCapExport
Definition: txtexppr.hxx:52