LibreOffice Module writerperfect (master) 1
xmlfmt.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
10#pragma once
11
12#include <map>
13
14#include "xmlictxt.hxx"
15
16namespace librevenge
17{
18class RVNGPropertyList;
19}
20
21namespace writerperfect::exp
22{
25{
26public:
28 {
31 };
32 XMLStylesContext(XMLImport& rImport, StyleType eType);
33
35 CreateChildContext(const OUString& rName,
36 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs) override;
37
38 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentParagraphStyles();
39 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentTextStyles();
40 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentCellStyles();
41 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentColumnStyles();
42 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentRowStyles();
43 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentTableStyles();
44 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentGraphicStyles();
45 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentPageLayouts();
46 std::map<OUString, librevenge::RVNGPropertyList>& GetCurrentMasterStyles();
47
48private:
49 std::map<OUString, librevenge::RVNGPropertyList>& m_rParagraphStyles;
50 std::map<OUString, librevenge::RVNGPropertyList>& m_rTextStyles;
51 std::map<OUString, librevenge::RVNGPropertyList>& m_rCellStyles;
52 std::map<OUString, librevenge::RVNGPropertyList>& m_rColumnStyles;
53 std::map<OUString, librevenge::RVNGPropertyList>& m_rRowStyles;
54 std::map<OUString, librevenge::RVNGPropertyList>& m_rTableStyles;
55 std::map<OUString, librevenge::RVNGPropertyList>& m_rGraphicStyles;
56 std::map<OUString, librevenge::RVNGPropertyList>& m_rPageLayouts;
57 std::map<OUString, librevenge::RVNGPropertyList>& m_rMasterStyles;
58};
59
62{
63public:
65
67 CreateChildContext(const OUString& rName,
68 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs) override;
69};
70
71} // namespace writerperfect::exp
72
73/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
StyleType
Handler for <office:font-face-decls>.
Definition: xmlfmt.hxx:62
XMLFontFaceDeclsContext(XMLImport &rImport)
Definition: xmlfmt.cxx:280
rtl::Reference< XMLImportContext > CreateChildContext(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
Definition: xmlfmt.cxx:285
Base class for a handler of a single XML element during ODF -> librevenge conversion.
Definition: xmlictxt.hxx:23
ODT export feeds this class to make librevenge calls.
Definition: xmlimp.hxx:69
Handler for <office:automatic-styles>/<office:styles>.
Definition: xmlfmt.hxx:25
std::map< OUString, librevenge::RVNGPropertyList > & m_rColumnStyles
Definition: xmlfmt.hxx:52
rtl::Reference< XMLImportContext > CreateChildContext(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
Definition: xmlfmt.cxx:43
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentPageLayouts()
Definition: xmlfmt.cxx:86
std::map< OUString, librevenge::RVNGPropertyList > & m_rGraphicStyles
Definition: xmlfmt.hxx:55
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentColumnStyles()
Definition: xmlfmt.cxx:66
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentRowStyles()
Definition: xmlfmt.cxx:71
std::map< OUString, librevenge::RVNGPropertyList > & m_rParagraphStyles
Definition: xmlfmt.hxx:49
std::map< OUString, librevenge::RVNGPropertyList > & m_rMasterStyles
Definition: xmlfmt.hxx:57
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentMasterStyles()
Definition: xmlfmt.cxx:91
std::map< OUString, librevenge::RVNGPropertyList > & m_rPageLayouts
Definition: xmlfmt.hxx:56
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentTableStyles()
Definition: xmlfmt.cxx:76
std::map< OUString, librevenge::RVNGPropertyList > & m_rCellStyles
Definition: xmlfmt.hxx:51
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentGraphicStyles()
Definition: xmlfmt.cxx:81
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentCellStyles()
Definition: xmlfmt.cxx:61
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentParagraphStyles()
Definition: xmlfmt.cxx:51
std::map< OUString, librevenge::RVNGPropertyList > & GetCurrentTextStyles()
Definition: xmlfmt.cxx:56
std::map< OUString, librevenge::RVNGPropertyList > & m_rRowStyles
Definition: xmlfmt.hxx:53
XMLStylesContext(XMLImport &rImport, StyleType eType)
Definition: xmlfmt.cxx:22
std::map< OUString, librevenge::RVNGPropertyList > & m_rTextStyles
Definition: xmlfmt.hxx:50
std::map< OUString, librevenge::RVNGPropertyList > & m_rTableStyles
Definition: xmlfmt.hxx:54