LCOV - code coverage report
Current view: top level - svx/inc/svx - sdtfsitm.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 4 75.0 %
Date: 2012-08-25 Functions: 5 6 83.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 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 _SDTFSITM_HXX
      29                 :            : #define _SDTFSITM_HXX
      30                 :            : 
      31                 :            : #include <svl/eitem.hxx>
      32                 :            : #include <svx/svddef.hxx>
      33                 :            : #include "svx/svxdllapi.h"
      34                 :            : 
      35                 :            : enum SdrFitToSizeType {
      36                 :            :     SDRTEXTFIT_NONE,         // - no fit-to-size
      37                 :            :     SDRTEXTFIT_PROPORTIONAL, // - resize all glyhs proportionally
      38                 :            :                              //   (might scale anisotrophically)
      39                 :            :     SDRTEXTFIT_ALLLINES,     // - like SDRTEXTFIT_PROPORTIONAL, but
      40                 :            :                              //   scales each line separately
      41                 :            :     SDRTEXTFIT_AUTOFIT};     // - mimics PPT's automatic adaption of
      42                 :            :                              //   font size to text rect - comparable
      43                 :            :                              //   to SDRTEXTFIT_PROPORTIONAL, but
      44                 :            :                              //   scales isotrophically
      45                 :            : 
      46                 :            : // No AutoGrow and no automatic line breaks for
      47                 :            : // SDRTEXTFIT_PROPORTIONAL and SDRTEXTFIT_ALLLINES.
      48                 :            : // No automatic line breaks for AutoGrowingWidth as well (only if
      49                 :            : // TextMaxFrameWidth is reached).
      50                 :            : 
      51                 :            : //--------------------------------
      52                 :            : // class SdrTextFitToSizeTypeItem
      53                 :            : //--------------------------------
      54         [ -  + ]:       7927 : class SVX_DLLPUBLIC SdrTextFitToSizeTypeItem: public SfxEnumItem {
      55                 :            : public:
      56                 :            :     TYPEINFO();
      57                 :       3512 :     SdrTextFitToSizeTypeItem(SdrFitToSizeType eFit=SDRTEXTFIT_NONE): SfxEnumItem(SDRATTR_TEXT_FITTOSIZE,(sal_uInt16)eFit) {}
      58                 :          0 :     SdrTextFitToSizeTypeItem(SvStream& rIn)                        : SfxEnumItem(SDRATTR_TEXT_FITTOSIZE,rIn)  {}
      59                 :            :     virtual SfxPoolItem*     Clone(SfxItemPool* pPool=NULL) const;
      60                 :            :     virtual SfxPoolItem*     Create(SvStream& rIn, sal_uInt16 nVer) const;
      61                 :            :     virtual sal_uInt16           GetValueCount() const; // { return 4; }
      62                 :      87101 :             SdrFitToSizeType GetValue() const      { return (SdrFitToSizeType)SfxEnumItem::GetValue(); }
      63                 :            : 
      64                 :            :     virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      65                 :            :     virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      66                 :            : 
      67                 :            :     virtual rtl::OUString GetValueTextByPos(sal_uInt16 nPos) const;
      68                 :            :     virtual SfxItemPresentation GetPresentation(SfxItemPresentation ePres, SfxMapUnit eCoreMetric, SfxMapUnit ePresMetric, String& rText, const IntlWrapper * = 0) const;
      69                 :            :     virtual int              HasBoolValue() const;
      70                 :            :     virtual sal_Bool             GetBoolValue() const;
      71                 :            :     virtual void             SetBoolValue(sal_Bool bVal);
      72                 :            : };
      73                 :            : 
      74                 :            : #endif
      75                 :            : 
      76                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10