LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/editeng - justifyitem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 3 9 33.3 %
Date: 2012-12-27 Functions: 9 11 81.8 %
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 __EDITENG_JUSTIFYITEM_HXX__
      21             : #define __EDITENG_JUSTIFYITEM_HXX__
      22             : 
      23             : #include "editeng/editengdllapi.h"
      24             : #include "editeng/svxenum.hxx"
      25             : #include <svl/eitem.hxx>
      26             : #include <sal/types.h>
      27             : 
      28        1614 : class EDITENG_DLLPUBLIC SvxHorJustifyItem: public SfxEnumItem
      29             : {
      30             : public:
      31             :     TYPEINFO();
      32             : 
      33             :     explicit SvxHorJustifyItem( const sal_uInt16 nId );
      34             : 
      35             :     SvxHorJustifyItem(
      36             :         const SvxCellHorJustify eJustify /*= SVX_HOR_JUSTIFY_STANDARD*/,
      37             :         const sal_uInt16 nId );
      38             : 
      39             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      40             :                                     SfxMapUnit eCoreMetric,
      41             :                                     SfxMapUnit ePresMetric,
      42             :                                     String &rText, const IntlWrapper * = 0 ) const;
      43             : 
      44             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      45             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      46             : 
      47             :     virtual sal_uInt16          GetValueCount() const;
      48             :     virtual String          GetValueText( sal_uInt16 nVal ) const;
      49             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      50             :     virtual SfxPoolItem*    Create( SvStream& rStream, sal_uInt16 nVer ) const;
      51             : 
      52           0 :     inline  SvxHorJustifyItem& operator=(const SvxHorJustifyItem& rHorJustify)
      53             :             {
      54           0 :                 SetValue( rHorJustify.GetValue() );
      55           0 :                 return *this;
      56             :             }
      57             : };
      58             : 
      59             : //------------------------------------------------------------------------
      60             : 
      61        1207 : class EDITENG_DLLPUBLIC SvxVerJustifyItem: public SfxEnumItem
      62             : {
      63             : public:
      64             :     TYPEINFO();
      65             : 
      66             :     explicit SvxVerJustifyItem( const sal_uInt16 nId  );
      67             : 
      68             :     SvxVerJustifyItem(
      69             :         const SvxCellVerJustify eJustify /*= SVX_VER_JUSTIFY_STANDARD*/,
      70             :         const sal_uInt16 nId  );
      71             : 
      72             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      73             :                                     SfxMapUnit eCoreMetric,
      74             :                                     SfxMapUnit ePresMetric,
      75             :                                     String &rText, const IntlWrapper * = 0 ) const;
      76             : 
      77             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      78             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      79             : 
      80             :     virtual sal_uInt16          GetValueCount() const;
      81             :     virtual String          GetValueText( sal_uInt16 nVal ) const;
      82             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      83             :     virtual SfxPoolItem*    Create( SvStream& rStream, sal_uInt16 nVer ) const;
      84             : 
      85           0 :     inline  SvxVerJustifyItem& operator=(const SvxVerJustifyItem& rVerJustify)
      86             :             {
      87           0 :                 SetValue( rVerJustify.GetValue() );
      88           0 :                 return *this;
      89             :             }
      90             : };
      91             : 
      92             : //------------------------------------------------------------------------
      93             : 
      94        2253 : class EDITENG_DLLPUBLIC SvxJustifyMethodItem: public SfxEnumItem
      95             : {
      96             : public:
      97             :     SvxJustifyMethodItem(
      98             :         const SvxCellJustifyMethod eMethod,
      99             :         const sal_uInt16 nId );
     100             : 
     101             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
     102             :                                     SfxMapUnit eCoreMetric,
     103             :                                     SfxMapUnit ePresMetric,
     104             :                                     String &rText, const IntlWrapper * = 0 ) const;
     105             : 
     106             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
     107             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
     108             : 
     109             :     virtual sal_uInt16          GetValueCount() const;
     110             :     virtual String          GetValueText( sal_uInt16 nVal ) const;
     111             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     112             :     virtual SfxPoolItem*    Create( SvStream& rStream, sal_uInt16 nVer ) const;
     113             : 
     114             :     SvxJustifyMethodItem& operator=(const SvxJustifyMethodItem& r);
     115             : };
     116             : 
     117             : #endif
     118             : 
     119             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10