LCOV - code coverage report
Current view: top level - include/svl - grabbagitem.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 4 100.0 %
Date: 2015-06-13 12:38:46 Functions: 2 2 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             : #ifndef INCLUDED_SVL_GRABBAGITEM_HXX
      10             : #define INCLUDED_SVL_GRABBAGITEM_HXX
      11             : 
      12             : #include <map>
      13             : 
      14             : #include <svl/svldllapi.h>
      15             : #include <tools/rtti.hxx>
      16             : #include <svl/poolitem.hxx>
      17             : #include <com/sun/star/uno/Any.hxx>
      18             : 
      19             : /// Grab bag item provides a string-any map for interim interop purposes.
      20             : class SVL_DLLPUBLIC SfxGrabBagItem : public SfxPoolItem
      21             : {
      22             : private:
      23             :     std::map<OUString, css::uno::Any> m_aMap;
      24             : 
      25             : public:
      26             :     TYPEINFO_OVERRIDE();
      27             : 
      28             :     SfxGrabBagItem();
      29             :     SfxGrabBagItem(sal_uInt16 nWhich, const std::map<OUString, css::uno::Any>* pMap = 0);
      30             :     SfxGrabBagItem(const SfxGrabBagItem& rItem);
      31             :     virtual ~SfxGrabBagItem();
      32             : 
      33       17185 :     const std::map<OUString, css::uno::Any>& GetGrabBag() const
      34             :     {
      35       17185 :         return m_aMap;
      36             :     }
      37             : 
      38          46 :     std::map<OUString, css::uno::Any>& GetGrabBag()
      39             :     {
      40          46 :         return m_aMap;
      41             :     }
      42             : 
      43             :     virtual bool operator==(const SfxPoolItem&) const SAL_OVERRIDE;
      44             :     virtual SfxPoolItem* Clone(SfxItemPool* pPool = 0) const SAL_OVERRIDE;
      45             : 
      46             :     virtual bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId = 0) SAL_OVERRIDE;
      47             :     virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const SAL_OVERRIDE;
      48             : };
      49             : #endif
      50             : 
      51             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11