LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/svx - sdasitm.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 4 75.0 %
Date: 2012-12-27 Functions: 3 6 50.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             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef _SDASITM_HXX
      21             : #define _SDASITM_HXX
      22             : 
      23             : #include <svx/svddef.hxx>
      24             : #include <svx/sdooitm.hxx>
      25             : #include <svl/stritem.hxx>
      26             : #include <com/sun/star/uno/Sequence.hxx>
      27             : #include <com/sun/star/beans/PropertyValue.hpp>
      28             : #include <com/sun/star/uno/Any.hxx>
      29             : #include <rtl/ustring.hxx>
      30             : #include <boost/unordered_map.hpp>
      31             : #include <map>
      32             : #include "svx/svxdllapi.h"
      33             : 
      34             : class SdrCustomShapeEngineItem : public SfxStringItem
      35             : {
      36             :     public :
      37             :             SdrCustomShapeEngineItem();
      38             : };
      39             : 
      40             : class SdrCustomShapeDataItem : public SfxStringItem
      41             : {
      42             :     public :
      43             :             SdrCustomShapeDataItem();
      44             : };
      45             : 
      46           4 : class SVX_DLLPUBLIC SdrCustomShapeGeometryItem : public SfxPoolItem
      47             : {
      48             : public:
      49             :     typedef std::pair < const ::rtl::OUString, const ::rtl::OUString > PropertyPair;
      50             : 
      51             : private:
      52             :     struct SVX_DLLPUBLIC PropertyEq
      53             :     {
      54             :         bool operator()( const rtl::OUString&, const rtl::OUString& ) const;
      55             :     };
      56             :     struct SVX_DLLPUBLIC PropertyPairEq
      57             :     {
      58             :         bool operator()( const SdrCustomShapeGeometryItem::PropertyPair&, const SdrCustomShapeGeometryItem::PropertyPair& ) const;
      59             :     };
      60             :     struct SVX_DLLPUBLIC PropertyPairHash
      61             :     {
      62             :         size_t operator()( const SdrCustomShapeGeometryItem::PropertyPair& ) const;
      63             :     };
      64             :     typedef boost::unordered_map < PropertyPair, sal_Int32, PropertyPairHash, PropertyPairEq > PropertyPairHashMap;
      65             :     typedef boost::unordered_map< rtl::OUString, sal_Int32, rtl::OUStringHash, PropertyEq > PropertyHashMap;
      66             : 
      67             :     PropertyHashMap     aPropHashMap;
      68             :     PropertyPairHashMap aPropPairHashMap;
      69             : 
      70             :     com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue > aPropSeq;
      71             : 
      72             :     public :
      73             : 
      74             :             TYPEINFO();
      75             : 
      76             :             SdrCustomShapeGeometryItem();
      77             :             SdrCustomShapeGeometryItem( const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& );
      78             :             SdrCustomShapeGeometryItem( SvStream& rIn, sal_uInt16 nVersion );
      79             :             ~SdrCustomShapeGeometryItem();
      80             : 
      81             :             virtual int                 operator==( const SfxPoolItem& ) const;
      82             :             virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePresentation,
      83             :                                             SfxMapUnit eCoreMetric, SfxMapUnit ePresentationMetric,
      84             :                                                 String &rText, const IntlWrapper * = 0) const;
      85             : 
      86             :             virtual SfxPoolItem*        Create( SvStream&, sal_uInt16 nItem ) const;
      87             :             virtual SvStream&           Store( SvStream&, sal_uInt16 nVersion ) const;
      88             : 
      89             :             virtual SfxPoolItem*        Clone( SfxItemPool* pPool = NULL ) const;
      90             :             virtual sal_uInt16          GetVersion( sal_uInt16 nFileFormatVersion ) const;
      91             : 
      92             :             virtual bool                QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      93             :             virtual bool                PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      94             : 
      95             :             const com::sun::star::uno::Sequence< com::sun::star::beans::PropertyValue >& GetGeometry() const;
      96             : 
      97             :             com::sun::star::uno::Any* GetPropertyValueByName( const rtl::OUString& rPropName );
      98             :             com::sun::star::uno::Any* GetPropertyValueByName( const rtl::OUString& rPropName, const rtl::OUString& rPropName2 );
      99             : 
     100             :             void SetPropertyValue( const com::sun::star::beans::PropertyValue& rPropVal );
     101             :             void SetPropertyValue( const rtl::OUString& rSequenceName, const com::sun::star::beans::PropertyValue& rPropVal );
     102             : 
     103             :             void ClearPropertyValue( const rtl::OUString& rPropertyName );
     104             : };
     105             : 
     106             : class SdrCustomShapeReplacementURLItem : public SfxStringItem
     107             : {
     108             :     public :
     109             :             SdrCustomShapeReplacementURLItem();
     110             : };
     111             : 
     112             : //---------------------------
     113             : // class SdrTextWordWrapItem
     114             : //---------------------------
     115        2062 : class SdrTextWordWrapItem : public SdrOnOffItem {
     116             : public:
     117        2062 :     SdrTextWordWrapItem( sal_Bool bAuto = sal_False ):  SdrOnOffItem( SDRATTR_TEXT_WORDWRAP, bAuto ) {}
     118             :     SdrTextWordWrapItem( SvStream& rIn )  :     SdrOnOffItem( SDRATTR_TEXT_WORDWRAP, rIn )   {}
     119             : };
     120             : 
     121             : //-------------------------------
     122             : // class SdrTextAutoGrowSizeItem
     123             : //-------------------------------
     124           0 : class SdrTextAutoGrowSizeItem : public SdrOnOffItem {
     125             : public:
     126             :     SdrTextAutoGrowSizeItem( sal_Bool bAuto = sal_False ):      SdrOnOffItem( SDRATTR_TEXT_AUTOGROWSIZE, bAuto ) {}
     127             :     SdrTextAutoGrowSizeItem( SvStream& rIn )   :        SdrOnOffItem( SDRATTR_TEXT_AUTOGROWSIZE, rIn )   {}
     128             : };
     129             : 
     130             : #endif
     131             : 
     132             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10