update emoji autocorrect entries from po-files
[LibreOffice.git] / include / oox / helper / grabbagstack.hxx
blob10bc99627936c47333a28ab18af5beadb725eb41
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_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>
18 #include <vector>
19 #include <stack>
21 namespace oox {
23 struct GrabBagStackElement
25 OUString maName;
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
32 private:
33 std::stack<GrabBagStackElement> mStack;
34 GrabBagStackElement mCurrentElement;
36 public:
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);
47 void pop();
48 void addInt32(const OUString& aElementName, sal_Int32 aIntValue);
49 void addString(const OUString& aElementName, const OUString& aStringValue);
50 bool isStackEmpty();
53 } // namespace oox
55 #endif
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */