fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / oox / inc / drawingml / texteffectscontext.hxx
blobb8e3aeb4a4a05bff28dd7d7531efcd40bfddf75b
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 <boost/scoped_ptr.hpp>
19 #include <vector>
21 namespace oox { namespace drawingml {
23 class TextEffectsContext : public oox::core::ContextHandler2
25 public:
26 TextEffectsContext(oox::core::ContextHandler2Helper& rParent,
27 sal_Int32 aElementToken,
28 std::vector<css::beans::PropertyValue>& rTextEffectsProperties);
29 virtual ~TextEffectsContext();
31 virtual void onStartElement(const oox::AttributeList& rAttribs) SAL_OVERRIDE;
32 virtual void onEndElement() SAL_OVERRIDE;
34 virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 Element, const oox::AttributeList& rAttribs) SAL_OVERRIDE;
36 protected:
37 std::vector<css::beans::PropertyValue>& mrTextEffectsProperties;
38 boost::scoped_ptr<oox::GrabBagStack> mpGrabBagStack;
39 sal_Int32 mnCurrentElement;
41 private:
42 void processAttributes(const AttributeList& rAttribs);
43 void pushAttributeToGrabBag (const sal_Int32& aAttributeId, const OUString& rElementName, const AttributeList& rAttribs);
46 } }
48 #endif // INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */