LCOV - code coverage report
Current view: top level - include/oox/helper - grabbagstack.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 5 5 100.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        9135 : 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        4847 :     OUString getCurrentName() { return mCurrentElement.maName;}
      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.11