1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <docmodel/theme/Theme.hxx>
13 #include <cppuhelper/implbase.hxx>
14 #include <com/sun/star/uno/XComponentContext.hpp>
15 #include <com/sun/star/xml/sax/XFastContextHandler.hpp>
16 #include <oox/mathml/importutils.hxx>
17 #include <oox/drawingml/themefragmenthandler.hxx>
18 #include <rtl/ref.hxx>
19 #include "OOXMLParserState.hxx"
20 #include "OOXMLPropertySet.hxx"
21 #include "OOXMLFastContextHandler.hxx"
23 namespace writerfilter::ooxml
25 class OOXMLFastContextHandlerTheme
: public OOXMLFastContextHandler
28 rtl::Reference
<oox::drawingml::ThemeFragmentHandler
> mpThemeFragmentHandler
;
31 explicit OOXMLFastContextHandlerTheme(OOXMLFastContextHandler
* pContext
);
32 std::string
getType() const override
{ return "Theme"; }
35 void lcl_startFastElement(
37 const css::uno::Reference
<css::xml::sax::XFastAttributeList
>& Attribs
) override
;
38 void lcl_endFastElement(Token_t Element
) override
;
39 css::uno::Reference
<css::xml::sax::XFastContextHandler
> lcl_createFastChildContext(
41 const css::uno::Reference
<css::xml::sax::XFastAttributeList
>& Attribs
) override
;
42 virtual void lcl_characters(const OUString
& aChars
) override
;
45 } // end namespace writerfilter::ooxml
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */