LibreOffice Module oox (master) 1
ThemeOverrideFragmentHandler.cxx
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
11#include <oox/token/namespaces.hxx>
13
14using namespace ::oox::core;
15
16namespace oox::drawingml
17{
18
19ThemeOverrideFragmentHandler::ThemeOverrideFragmentHandler(XmlFilterBase& rFilter, const OUString& rFragmentPath, Theme& rOoxTheme, model::Theme& rTheme)
20 : FragmentHandler2(rFilter, rFragmentPath)
21 , mrOoxTheme(rOoxTheme)
22 , mrTheme(rTheme)
23{
24}
25
27{
28}
29
31{
32 // CT_OfficeStyleSheet
33 switch (getCurrentElement())
34 {
36 switch (nElement)
37 {
38 case A_TOKEN( themeOverride ): // CT_BaseStylesOverride
39 return new ThemeElementsContext(*this, mrOoxTheme, mrTheme);
40 }
41 break;
42 }
43 return nullptr;
44}
45
46} // namespace oox::drawingml
47
48/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides access to attribute values of an element.
virtual ::oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElement, const AttributeList &rAttribs) override
ThemeOverrideFragmentHandler(::oox::core::XmlFilterBase &rFilter, const OUString &rFragmentPath, Theme &rOoxTheme, model::Theme &rTheme)
const sal_Int32 XML_ROOT_CONTEXT
model::Theme & mrTheme