bump product version to 7.2.5.1
[LibreOffice.git] / oox / inc / drawingml / texteffectscontext.hxx
blob9305bccce662075fdb591f4add8fddbdb64fe13e
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/.
9 */
11 #ifndef INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
12 #define INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
14 #include <com/sun/star/beans/PropertyValue.hpp>
16 #include <oox/helper/grabbagstack.hxx>
17 #include <oox/core/contexthandler2.hxx>
18 #include <memory>
19 #include <vector>
21 namespace oox::drawingml {
23 class TextEffectsContext final : public oox::core::ContextHandler2
25 public:
26 TextEffectsContext(oox::core::ContextHandler2Helper const & rParent,
27 sal_Int32 aElementToken,
28 std::vector<css::beans::PropertyValue>& rTextEffectsProperties);
29 virtual ~TextEffectsContext() override;
31 virtual void onStartElement(const oox::AttributeList& rAttribs) override;
32 virtual void onEndElement() override;
34 virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const oox::AttributeList& rAttribs) override;
36 private:
37 void processAttributes(const AttributeList& rAttribs);
38 void pushAttributeToGrabBag (sal_Int32 aAttributeId, const OUString& rElementName, const AttributeList& rAttribs);
40 std::vector<css::beans::PropertyValue>& mrTextEffectsProperties;
41 std::unique_ptr<oox::GrabBagStack> mpGrabBagStack;
42 sal_Int32 mnCurrentElement;
47 #endif // INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */