tdf#164627 docx export: consolidate getWordCompatibilityMode()
[LibreOffice.git] / xmloff / source / style / PageMasterExportPropMapper.hxx
blob71550443facaa5269b2449eb9882b640d3aa15ac
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 .
20 #pragma once
22 #include <xmloff/xmlexppr.hxx>
23 #include <XMLBackgroundImageExport.hxx>
24 #include <XMLTextColumnsExport.hxx>
25 #include "XMLFootnoteSeparatorExport.hxx"
27 class XMLPageMasterExportPropMapper : public SvXMLExportPropertyMapper
29 XMLBackgroundImageExport aBackgroundImageExport;
30 XMLTextColumnsExport aTextColumnsExport;
31 XMLFootnoteSeparatorExport aFootnoteSeparatorExport;
32 bool m_bGutterAtTop = false;
34 virtual void ContextFilter(
35 bool bEnableFoFontFamily,
36 ::std::vector< XMLPropertyState >& rProperties,
37 const css::uno::Reference< css::beans::XPropertySet >& rPropSet
38 ) const override;
40 public:
41 XMLPageMasterExportPropMapper(
42 const rtl::Reference< XMLPropertySetMapper >& rMapper,
43 SvXMLExport& rExport
45 virtual ~XMLPageMasterExportPropMapper() override;
47 virtual void handleElementItem(
48 SvXMLExport& rExport,
49 const XMLPropertyState& rProperty,
50 SvXmlExportFlags nFlags,
51 const ::std::vector< XMLPropertyState >* pProperties,
52 sal_uInt32 nIdx
53 ) const override;
54 virtual void handleSpecialItem(
55 comphelper::AttributeList& rAttrList,
56 const XMLPropertyState& rProperty,
57 const SvXMLUnitConverter& rUnitConverter,
58 const SvXMLNamespaceMap& rNamespaceMap,
59 const ::std::vector< XMLPropertyState >* pProperties,
60 sal_uInt32 nIdx
61 ) const override;
63 void SetGutterAtTop(bool bGutterAtTop) { m_bGutterAtTop = bGutterAtTop; }
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */