LCOV - code coverage report
Current view: top level - libreoffice/svx/inc/svx - drawitem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 6 12 50.0 %
Date: 2012-12-27 Functions: 12 18 66.7 %
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             : #ifndef _SVX_DRAWITEM_HXX
      20             : #define _SVX_DRAWITEM_HXX
      21             : 
      22             : #include <svl/poolitem.hxx>
      23             : #include <svx/xtable.hxx>
      24             : #include <com/sun/star/uno/Sequence.hxx>
      25             : #include <com/sun/star/drawing/LineDash.hpp>
      26             : #include "svx/svxdllapi.h"
      27             : 
      28             : //==================================================================
      29             : //  SvxColorListItem
      30             : //==================================================================
      31             : 
      32         496 : class SVX_DLLPUBLIC SvxColorListItem: public SfxPoolItem
      33             : {
      34             :     XColorListRef     pColorList;
      35             : 
      36             : public:
      37             :                             TYPEINFO();
      38             :                             SvxColorListItem();
      39             :                             SvxColorListItem( XColorListRef pTable,
      40             :                                     sal_uInt16 nWhich  );
      41             :                             SvxColorListItem( const SvxColorListItem& );
      42             : 
      43             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      44             :                                     SfxMapUnit eCoreMetric,
      45             :                                     SfxMapUnit ePresMetric,
      46             :                                     String &rText, const IntlWrapper * = 0 ) const;
      47             : 
      48             :     virtual int             operator==( const SfxPoolItem& ) const;
      49             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      50             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      51             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
      52             : 
      53           0 :     XColorListRef           GetColorList() const { return pColorList; }
      54             :     void                    SetColorList( const XColorListRef &pTable ) { pColorList = pTable; }
      55             : };
      56             : 
      57             : 
      58             : //==================================================================
      59             : //  SvxGradientListItem
      60             : //==================================================================
      61             : 
      62         420 : class SVX_DLLPUBLIC SvxGradientListItem: public SfxPoolItem
      63             : {
      64             :     XGradientListRef  pGradientList;
      65             : 
      66             : public:
      67             :                             TYPEINFO();
      68             :                             SvxGradientListItem();
      69             :                             SvxGradientListItem( XGradientListRef pList,
      70             :                                     sal_uInt16 nWhich  );
      71             :                             SvxGradientListItem( const SvxGradientListItem& );
      72             : 
      73             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      74             :                                     SfxMapUnit eCoreMetric,
      75             :                                     SfxMapUnit ePresMetric,
      76             :                                     String &rText, const IntlWrapper * = 0 ) const;
      77             : 
      78             :     virtual int             operator==( const SfxPoolItem& ) const;
      79             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      80             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      81             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
      82             : 
      83           0 :     XGradientListRef        GetGradientList() const { return pGradientList; }
      84             :     void                    SetGradientList( XGradientListRef pList ) {
      85             :                                     pGradientList = pList; }
      86             : };
      87             : 
      88             : 
      89             : //==================================================================
      90             : //  SvxHatchListItem
      91             : //==================================================================
      92         420 : class SVX_DLLPUBLIC SvxHatchListItem: public SfxPoolItem
      93             : {
      94             :     XHatchListRef     pHatchList;
      95             : 
      96             : public:
      97             :                             TYPEINFO();
      98             :                             SvxHatchListItem();
      99             :                             SvxHatchListItem( XHatchListRef pList,
     100             :                                     sal_uInt16 nWhich  );
     101             :                             SvxHatchListItem( const SvxHatchListItem& );
     102             : 
     103             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
     104             :                                     SfxMapUnit eCoreMetric,
     105             :                                     SfxMapUnit ePresMetric,
     106             :                                     String &rText, const IntlWrapper * = 0 ) const;
     107             : 
     108             :     virtual int             operator==( const SfxPoolItem& ) const;
     109             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     110             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
     111             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
     112             : 
     113           0 :     XHatchListRef           GetHatchList() const { return pHatchList; }
     114             :     void                    SetHatchList( XHatchListRef pList ) {
     115             :                                     pHatchList = pList; }
     116             : };
     117             : 
     118             : 
     119             : 
     120             : //==================================================================
     121             : //  SvxBitmapListItem
     122             : //==================================================================
     123         420 : class SVX_DLLPUBLIC SvxBitmapListItem: public SfxPoolItem
     124             : {
     125             :     XBitmapListRef    pBitmapList;
     126             : 
     127             : public:
     128             :                             TYPEINFO();
     129             :                             SvxBitmapListItem();
     130             :                             SvxBitmapListItem( XBitmapListRef pBL,
     131             :                                     sal_uInt16 nWhich  );
     132             :                             SvxBitmapListItem( const SvxBitmapListItem& );
     133             : 
     134             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
     135             :                                     SfxMapUnit eCoreMetric,
     136             :                                     SfxMapUnit ePresMetric,
     137             :                                     String &rText, const IntlWrapper * = 0 ) const;
     138             : 
     139             :     virtual int             operator==( const SfxPoolItem& ) const;
     140             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     141             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
     142             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
     143             : 
     144           0 :     XBitmapListRef          GetBitmapList() const { return pBitmapList; }
     145             :     void                    SetBitmapList( XBitmapListRef pList ) {
     146             :                                     pBitmapList = pList; }
     147             : };
     148             : 
     149             : 
     150             : 
     151             : //==================================================================
     152             : //  SvxDashListItem
     153             : //==================================================================
     154         420 : class SVX_DLLPUBLIC SvxDashListItem: public SfxPoolItem
     155             : {
     156             :     XDashListRef      pDashList;
     157             : 
     158             : public:
     159             :                             TYPEINFO();
     160             :                             SvxDashListItem();
     161             :                             SvxDashListItem( XDashListRef pList,
     162             :                                     sal_uInt16 nWhich  );
     163             :                             SvxDashListItem( const SvxDashListItem& );
     164             : 
     165             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
     166             :                                     SfxMapUnit eCoreMetric,
     167             :                                     SfxMapUnit ePresMetric,
     168             :                                     String &rText, const IntlWrapper * = 0 ) const;
     169             : 
     170             :     virtual int             operator==( const SfxPoolItem& ) const;
     171             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     172             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
     173             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
     174             : 
     175           0 :     XDashListRef            GetDashList() const { return pDashList; }
     176             : };
     177             : 
     178             : 
     179             : //==================================================================
     180             : //  SvxLineEndListItem
     181             : //==================================================================
     182         420 : class SVX_DLLPUBLIC SvxLineEndListItem: public SfxPoolItem
     183             : {
     184             :     XLineEndListRef   pLineEndList;
     185             : 
     186             : public:
     187             :                             TYPEINFO();
     188             :                             SvxLineEndListItem();
     189             :                             SvxLineEndListItem( XLineEndListRef pList,
     190             :                                     sal_uInt16 nWhich  );
     191             :                             SvxLineEndListItem( const SvxLineEndListItem& );
     192             : 
     193             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
     194             :                                     SfxMapUnit eCoreMetric,
     195             :                                     SfxMapUnit ePresMetric,
     196             :                                     String &rText, const IntlWrapper * = 0 ) const;
     197             : 
     198             :     virtual int             operator==( const SfxPoolItem& ) const;
     199             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     200             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
     201             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId );
     202             : 
     203           0 :     XLineEndListRef         GetLineEndList() const { return pLineEndList; }
     204             :     void                    SetLineEndList( XLineEndListRef pList ) {
     205             :                                     pLineEndList = pList; }
     206             : };
     207             : 
     208             : 
     209             : 
     210             : 
     211             : #endif
     212             : 
     213             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10