LCOV - code coverage report
Current view: top level - include/svx - postattr.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 3 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 9 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             : #ifndef INCLUDED_SVX_POSTATTR_HXX
      20             : #define INCLUDED_SVX_POSTATTR_HXX
      21             : 
      22             : #include <svl/stritem.hxx>
      23             : #include <svx/svxdllapi.h>
      24             : 
      25             : // class SvxPostItAuthorItem ---------------------------------------------
      26             : 
      27             : 
      28             : 
      29             : /*
      30             : The author shorthand symbol of a note
      31             : */
      32             : 
      33           0 : class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem
      34             : {
      35             : public:
      36             :     TYPEINFO_OVERRIDE();
      37             : 
      38             :     SvxPostItAuthorItem( sal_uInt16 nWhich  );
      39             : 
      40             :     SvxPostItAuthorItem( const OUString& rAuthor, sal_uInt16 nWhich  );
      41             :     virtual bool GetPresentation( SfxItemPresentation ePres,
      42             :                                     SfxMapUnit eCoreMetric,
      43             :                                     SfxMapUnit ePresMetric,
      44             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      45             : 
      46             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      47             : 
      48             :     inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor )
      49             :     {
      50             :         SetValue( rAuthor.GetValue() );
      51             :         return *this;
      52             :     }
      53             : };
      54             : 
      55             : 
      56             : // class SvxPostItDateItem -----------------------------------------------
      57             : 
      58             : 
      59             : 
      60             : /*
      61             : The date of a note
      62             : */
      63             : 
      64           0 : class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem
      65             : {
      66             : public:
      67             :     TYPEINFO_OVERRIDE();
      68             : 
      69             :     SvxPostItDateItem( sal_uInt16 nWhich  );
      70             : 
      71             :     SvxPostItDateItem( const OUString& rDate, sal_uInt16 nWhich  );
      72             :     virtual bool GetPresentation( SfxItemPresentation ePres,
      73             :                                     SfxMapUnit eCoreMetric,
      74             :                                     SfxMapUnit ePresMetric,
      75             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      76             : 
      77             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      78             : 
      79             :     inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate )
      80             :     {
      81             :         SetValue( rDate.GetValue() );
      82             :         return *this;
      83             :     }
      84             : };
      85             : 
      86             : 
      87             : // class SvxPostItTextItem -----------------------------------------------
      88             : 
      89             : 
      90             : 
      91             : /*
      92             : The text of a note
      93             : */
      94             : 
      95           0 : class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem
      96             : {
      97             : public:
      98             :     TYPEINFO_OVERRIDE();
      99             : 
     100             :     SvxPostItTextItem( sal_uInt16 nWhich  );
     101             : 
     102             :     SvxPostItTextItem( const OUString& rText, sal_uInt16 nWhich  );
     103             :     // "pure virtual methods" from SfxPoolItem
     104             :     virtual bool GetPresentation( SfxItemPresentation ePres,
     105             :                                     SfxMapUnit eCoreMetric,
     106             :                                     SfxMapUnit ePresMetric,
     107             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
     108             : 
     109             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
     110             : 
     111             :     inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText )
     112             :     {
     113             :         SetValue( rText.GetValue() );
     114             :         return *this;
     115             :     }
     116             : };
     117             : 
     118             : 
     119             : 
     120             : #endif
     121             : 
     122             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11