LibreOffice Module oox (master)  1
texteffectscontext.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 
11 #ifndef INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
12 #define INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
13 
14 #include <com/sun/star/beans/PropertyValue.hpp>
15 
18 #include <memory>
19 #include <vector>
20 
21 namespace oox::drawingml {
22 
24 {
25 public:
27  sal_Int32 aElementToken,
28  std::vector<css::beans::PropertyValue>& rTextEffectsProperties);
29  virtual ~TextEffectsContext() override;
30 
31  virtual void onStartElement(const oox::AttributeList& rAttribs) override;
32  virtual void onEndElement() override;
33 
34  virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const oox::AttributeList& rAttribs) override;
35 
36 private:
37  void processAttributes(const AttributeList& rAttribs);
38  void pushAttributeToGrabBag (sal_Int32 aAttributeId, const OUString& rElementName, const AttributeList& rAttribs);
39 
40  std::vector<css::beans::PropertyValue>& mrTextEffectsProperties;
41  std::unique_ptr<oox::GrabBagStack> mpGrabBagStack;
42  sal_Int32 mnCurrentElement;
43 };
44 
45 }
46 
47 #endif // INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
48 
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< css::beans::PropertyValue > & mrTextEffectsProperties
std::unique_ptr< oox::GrabBagStack > mpGrabBagStack
void processAttributes(const AttributeList &rAttribs)
virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const oox::AttributeList &rAttribs) override
Will be called to create a context handler for the passed element.
virtual void onStartElement(const oox::AttributeList &rAttribs) override
Will be called when a new element has been started.
void pushAttributeToGrabBag(sal_Int32 aAttributeId, const OUString &rElementName, const AttributeList &rAttribs)
Provides access to attribute values of an element.
TextEffectsContext(oox::core::ContextHandler2Helper const &rParent, sal_Int32 aElementToken, std::vector< css::beans::PropertyValue > &rTextEffectsProperties)
Helper class that provides a context stack.
virtual void onEndElement() override
Will be called when the current element is about to be left.