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/.
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>
21 namespace oox
{ namespace drawingml
{
23 class TextEffectsContext
: public oox::core::ContextHandler2
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
;
37 std::vector
<css::beans::PropertyValue
>& mrTextEffectsProperties
;
38 boost::scoped_ptr
<oox::GrabBagStack
> mpGrabBagStack
;
39 sal_Int32 mnCurrentElement
;
42 void processAttributes(const AttributeList
& rAttribs
);
43 void pushAttributeToGrabBag (const sal_Int32
& aAttributeId
, const OUString
& rElementName
, const AttributeList
& rAttribs
);
48 #endif // INCLUDED_OOX_DRAWINGML_TEXTEFFECTSCONTEXT_HXX
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */