LibreOffice Module xmloff (master) 1
XMLThemeContext.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#include <utility>
11#include <xmloff/xmlprcon.hxx>
12
13#include <com/sun/star/drawing/XDrawPage.hpp>
14#include <com/sun/star/util/Color.hpp>
15#include <com/sun/star/container/XNameContainer.hpp>
16
18
19namespace model
20{
21class Theme;
22}
23
26{
27 css::uno::Reference<css::drawing::XDrawPage> m_xPage;
28 std::shared_ptr<model::Theme> mpTheme;
29
30public:
32 css::uno::Reference<css::xml::sax::XFastAttributeList> const& xAttrList,
33 css::uno::Reference<css::drawing::XDrawPage> const& xPage);
35
36 css::uno::Reference<css::xml::sax::XFastContextHandler> SAL_CALL createFastChildContext(
37 sal_Int32 nElement,
38 const css::uno::Reference<css::xml::sax::XFastAttributeList>& xAttribs) override;
39};
40
43{
45 std::shared_ptr<model::ColorSet> m_pColorSet;
46 std::vector<css::util::Color> m_aColorScheme;
47
48public:
50 css::uno::Reference<css::xml::sax::XFastAttributeList> const& xAttrList,
53
54 css::uno::Reference<css::xml::sax::XFastContextHandler> SAL_CALL createFastChildContext(
55 sal_Int32 nElement,
56 css::uno::Reference<css::xml::sax::XFastAttributeList> const& xAttribs) override;
57};
58
61{
62public:
64 css::uno::Reference<css::xml::sax::XFastAttributeList> const& xAttrList,
65 std::shared_ptr<model::ColorSet>& rpColorSet);
66};
67
68/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This class deliberately does not support XWeak, to improve performance when loading large documents.
Definition: xmlictxt.hxx:48
friend class SvXMLImport
Definition: xmlictxt.hxx:49
Imports a color for a color table.
XMLColorContext(SvXMLImport &rImport, css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList, std::shared_ptr< model::ColorSet > &rpColorSet)
Imports the theme colors of a theme.
XMLThemeColorsContext(SvXMLImport &rImport, css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList, model::Theme &mrTheme)
std::shared_ptr< model::ColorSet > m_pColorSet
std::vector< css::util::Color > m_aColorScheme
css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttribs) override
Imports the theme.
XMLThemeContext(SvXMLImport &rImport, css::uno::Reference< css::xml::sax::XFastAttributeList > const &xAttrList, css::uno::Reference< css::drawing::XDrawPage > const &xPage)
std::shared_ptr< model::Theme > mpTheme
css::uno::Reference< css::drawing::XDrawPage > m_xPage
css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttribs) override