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_HELPER_GRABBAGSTACK_HXX
12 #define INCLUDED_OOX_HELPER_GRABBAGSTACK_HXX
14 #include <oox/dllapi.h>
15 #include <rtl/ustring.hxx>
16 #include <com/sun/star/beans/PropertyValue.hpp>
23 struct GrabBagStackElement
26 std::vector
<css::beans::PropertyValue
> maPropertyList
;
29 /// Tool that is useful for construction of a nested Sequence/PropertyValue hierarchy
30 class OOX_DLLPUBLIC GrabBagStack
33 std::stack
<GrabBagStackElement
> mStack
;
34 GrabBagStackElement mCurrentElement
;
37 GrabBagStack(const OUString
& aName
);
39 virtual ~GrabBagStack();
41 OUString
getCurrentName() { return mCurrentElement
.maName
;}
43 css::beans::PropertyValue
getRootProperty();
45 void appendElement(const OUString
& aName
, css::uno::Any aAny
);
46 void push(const OUString
& aKey
);
48 void addInt32(const OUString
& aElementName
, sal_Int32 aIntValue
);
49 void addString(const OUString
& aElementName
, const OUString
& aStringValue
);
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */