LCOV - code coverage report
Current view: top level - include/oox/helper - grabbagstack.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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_HELPER_GRABBAGSTACK_HXX
      12             : #define INCLUDED_OOX_HELPER_GRABBAGSTACK_HXX
      13             : 
      14             : #include <oox/dllapi.h>
      15             : #include <rtl/ustring.hxx>
      16             : #include <com/sun/star/beans/PropertyValue.hpp>
      17             : 
      18             : #include <vector>
      19             : #include <stack>
      20             : 
      21             : namespace oox {
      22             : 
      23           0 : struct GrabBagStackElement
      24             : {
      25             :     OUString maName;
      26             :     std::vector<css::beans::PropertyValue> maPropertyList;
      27             : };
      28             : 
      29             : /// Tool that is useful for construction of a nested Sequence/PropertyValue hierarchy
      30             : class OOX_DLLPUBLIC GrabBagStack
      31             : {
      32             : private:
      33             :     std::stack<GrabBagStackElement> mStack;
      34             :     GrabBagStackElement mCurrentElement;
      35             : 
      36             : public:
      37             :     GrabBagStack(const OUString& aName);
      38             : 
      39             :     virtual ~GrabBagStack();
      40             : 
      41             :     OUString getCurrentName();
      42             : 
      43             :     css::beans::PropertyValue getRootProperty();
      44             : 
      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();
      51             : };
      52             : 
      53             : } // namespace oox
      54             : 
      55             : #endif
      56             : 
      57             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10