1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 #ifndef _SVX_POSTATTR_HXX 28 #define _SVX_POSTATTR_HXX 29 30 // include --------------------------------------------------------------- 31 32 #include <svl/stritem.hxx> 33 #include "svx/svxdllapi.h" 34 35 // class SvxPostItAuthorItem --------------------------------------------- 36 37 38 39 /* 40 [Beschreibung] 41 Dieses Item beschreibt das Autoren-Kuerzel eines Notizzettels. 42 */ 43 44 class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem 45 { 46 public: 47 TYPEINFO(); 48 49 SvxPostItAuthorItem( sal_uInt16 nWhich ); 50 51 SvxPostItAuthorItem( const String& rAuthor, sal_uInt16 nWhich ); 52 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 53 SfxMapUnit eCoreMetric, 54 SfxMapUnit ePresMetric, 55 String &rText, const IntlWrapper * = 0 ) const; 56 57 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 58 59 inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor ) 60 { 61 SetValue( rAuthor.GetValue() ); 62 return *this; 63 } 64 }; 65 66 67 // class SvxPostItDateItem ----------------------------------------------- 68 69 70 71 /* 72 [Beschreibung] 73 Dieses Item beschreibt das Datum eines Notizzettels. 74 */ 75 76 class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem 77 { 78 public: 79 TYPEINFO(); 80 81 SvxPostItDateItem( sal_uInt16 nWhich ); 82 83 SvxPostItDateItem( const String& rDate, sal_uInt16 nWhich ); 84 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 85 SfxMapUnit eCoreMetric, 86 SfxMapUnit ePresMetric, 87 String &rText, const IntlWrapper * = 0 ) const; 88 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 89 90 inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate ) 91 { 92 SetValue( rDate.GetValue() ); 93 return *this; 94 } 95 }; 96 97 98 // class SvxPostItTextItem ----------------------------------------------- 99 100 101 102 /* 103 [Beschreibung] 104 Dieses Item beschreibt den Text eines Notizzettels. 105 */ 106 107 class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem 108 { 109 public: 110 TYPEINFO(); 111 112 SvxPostItTextItem( sal_uInt16 nWhich ); 113 114 SvxPostItTextItem( const String& rText, sal_uInt16 nWhich ); 115 // "pure virtual Methoden" vom SfxPoolItem 116 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 117 SfxMapUnit eCoreMetric, 118 SfxMapUnit ePresMetric, 119 String &rText, const IntlWrapper * = 0 ) const; 120 121 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 122 123 inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText ) 124 { 125 SetValue( rText.GetValue() ); 126 return *this; 127 } 128 }; 129 130 131 132 #endif 133 134