LCOV - code coverage report
Current view: top level - include/editeng - justifyitem.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 9 0.0 %
Date: 2014-04-14 Functions: 0 11 0.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 INCLUDED_EDITENG_JUSTIFYITEM_HXX
      21             : #define INCLUDED_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           0 : class EDITENG_DLLPUBLIC SvxHorJustifyItem: public SfxEnumItem
      29             : {
      30             : public:
      31             :     TYPEINFO_OVERRIDE();
      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             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      43             : 
      44             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
      45             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
      46             : 
      47             :     virtual sal_uInt16          GetValueCount() const SAL_OVERRIDE;
      48             :     virtual OUString        GetValueText( sal_uInt16 nVal ) const;
      49             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      50             :     virtual SfxPoolItem*    Create( SvStream& rStream, sal_uInt16 nVer ) const SAL_OVERRIDE;
      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           0 : class EDITENG_DLLPUBLIC SvxVerJustifyItem: public SfxEnumItem
      62             : {
      63             : public:
      64             :     TYPEINFO_OVERRIDE();
      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             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      76             : 
      77             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
      78             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
      79             : 
      80             :     virtual sal_uInt16          GetValueCount() const SAL_OVERRIDE;
      81             :     virtual OUString        GetValueText( sal_uInt16 nVal ) const;
      82             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      83             :     virtual SfxPoolItem*    Create( SvStream& rStream, sal_uInt16 nVer ) const SAL_OVERRIDE;
      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           0 : 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             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
     105             : 
     106             :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
     107             :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
     108             : 
     109             :     virtual sal_uInt16          GetValueCount() const SAL_OVERRIDE;
     110             :     virtual OUString        GetValueText( sal_uInt16 nVal ) const;
     111             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
     112             :     virtual SfxPoolItem*    Create( SvStream& rStream, sal_uInt16 nVer ) const SAL_OVERRIDE;
     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