android: Update app-specific/MIME type icons
[LibreOffice.git] / writerfilter / source / ooxml / OOXMLFastContextHandlerTheme.hxx
blob9622406f7867791b7fe128b9e99f5753c079cc37
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/.
8 */
10 #pragma once
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
27 private:
28 rtl::Reference<oox::drawingml::ThemeFragmentHandler> mpThemeFragmentHandler;
30 public:
31 explicit OOXMLFastContextHandlerTheme(OOXMLFastContextHandler* pContext);
32 std::string getType() const override { return "Theme"; }
34 protected:
35 void lcl_startFastElement(
36 Token_t Element,
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(
40 Token_t Element,
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: */