LCOV - code coverage report
Current view: top level - svx/inc/svx - sxcecitm.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 9 10 90.0 %
Date: 2012-08-25 Functions: 14 15 93.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 4 8 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SXCECITM_HXX
      29                 :            : #define _SXCECITM_HXX
      30                 :            : 
      31                 :            : #include <svl/eitem.hxx>
      32                 :            : #include <svx/svddef.hxx>
      33                 :            : #include <svx/sdynitm.hxx>
      34                 :            : #include <svx/sdmetitm.hxx>
      35                 :            : #include "svx/svxdllapi.h"
      36                 :            : 
      37                 :            : enum SdrCaptionEscDir {SDRCAPT_ESCHORIZONTAL,SDRCAPT_ESCVERTICAL,SDRCAPT_ESCBESTFIT};
      38                 :            : 
      39                 :            : //------------------------------
      40                 :            : // class SdrCaptionEscDirItem
      41                 :            : //------------------------------
      42         [ -  + ]:       6682 : class SVX_DLLPUBLIC SdrCaptionEscDirItem: public SfxEnumItem {
      43                 :            : public:
      44                 :            :     TYPEINFO();
      45                 :       3512 :     SdrCaptionEscDirItem(SdrCaptionEscDir eDir=SDRCAPT_ESCHORIZONTAL): SfxEnumItem(SDRATTR_CAPTIONESCDIR,sal::static_int_cast< sal_uInt16 >(eDir)) {}
      46                 :          0 :     SdrCaptionEscDirItem(SvStream& rIn)                              : SfxEnumItem(SDRATTR_CAPTIONESCDIR,rIn)  {}
      47                 :            :     virtual SfxPoolItem*     Clone(SfxItemPool* pPool=NULL) const;
      48                 :            :     virtual SfxPoolItem*     Create(SvStream& rIn, sal_uInt16 nVer) const;
      49                 :            :     virtual sal_uInt16           GetValueCount() const; // { return 3; }
      50                 :        243 :     SdrCaptionEscDir GetValue() const      { return (SdrCaptionEscDir)SfxEnumItem::GetValue(); }
      51                 :            : 
      52                 :            :     virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const;
      53                 :            : 
      54                 :            :     virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const;
      55                 :            : };
      56                 :            : 
      57                 :            : //------------------------------------
      58                 :            : // class SdrCaptionEscIsRelItem
      59                 :            : // sal_True=Linienaustrittsposition relativ
      60                 :            : // sal_False=Linienaustrittsposition absolut
      61                 :            : //------------------------------------
      62         [ -  + ]:       6622 : class SdrCaptionEscIsRelItem: public SdrYesNoItem {
      63                 :            : public:
      64                 :       3512 :     SdrCaptionEscIsRelItem(sal_Bool bRel=sal_True): SdrYesNoItem(SDRATTR_CAPTIONESCISREL,bRel) {}
      65                 :            :     SdrCaptionEscIsRelItem(SvStream& rIn) : SdrYesNoItem(SDRATTR_CAPTIONESCISREL,rIn)  {}
      66                 :            : };
      67                 :            : 
      68                 :            : //------------------------------------
      69                 :            : // class SdrCaptionEscRelItem
      70                 :            : // Relativer Linienaustritt
      71                 :            : //     0 =   0.00% = oben bzw. links,
      72                 :            : // 10000 = 100.00% = rechts bzw. unten
      73                 :            : // nur wenn SdrCaptionEscIsRelItem=TRUE
      74                 :            : //------------------------------------
      75         [ -  + ]:       6622 : class SdrCaptionEscRelItem: public SfxInt32Item {
      76                 :            : public:
      77                 :       3512 :     SdrCaptionEscRelItem(long nEscRel=5000): SfxInt32Item(SDRATTR_CAPTIONESCREL,nEscRel) {}
      78                 :            :     SdrCaptionEscRelItem(SvStream& rIn)    : SfxInt32Item(SDRATTR_CAPTIONESCREL,rIn)     {}
      79                 :            : };
      80                 :            : 
      81                 :            : //------------------------------------
      82                 :            : // class SdrCaptionEscAbsItem
      83                 :            : // Absoluter Linienaustritt
      84                 :            : // 0  = oben bzw. links,
      85                 :            : // >0 = in Richtung rechts bzw. unten
      86                 :            : // nur wenn SdrCaptionEscIsRelItem=FALSE
      87                 :            : //------------------------------------
      88         [ -  + ]:       6622 : class SdrCaptionEscAbsItem: public SdrMetricItem {
      89                 :            : public:
      90                 :       3512 :     SdrCaptionEscAbsItem(long nEscAbs=0): SdrMetricItem(SDRATTR_CAPTIONESCABS,nEscAbs) {}
      91                 :            :     SdrCaptionEscAbsItem(SvStream& rIn) : SdrMetricItem(SDRATTR_CAPTIONESCABS,rIn)     {}
      92                 :            : };
      93                 :            : 
      94                 :            : #endif
      95                 :            : 
      96                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10