1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 #ifndef _SVX_POSTATTR_HXX 24 #define _SVX_POSTATTR_HXX 25 26 // include --------------------------------------------------------------- 27 28 #include <svl/stritem.hxx> 29 #include "svx/svxdllapi.h" 30 31 // class SvxPostItAuthorItem --------------------------------------------- 32 33 34 35 /* 36 [Beschreibung] 37 Dieses Item beschreibt das Autoren-Kuerzel eines Notizzettels. 38 */ 39 40 class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem 41 { 42 public: 43 TYPEINFO(); 44 45 SvxPostItAuthorItem( sal_uInt16 nWhich ); 46 47 SvxPostItAuthorItem( const String& rAuthor, sal_uInt16 nWhich ); 48 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 49 SfxMapUnit eCoreMetric, 50 SfxMapUnit ePresMetric, 51 String &rText, const IntlWrapper * = 0 ) const; 52 53 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 54 operator =(const SvxPostItAuthorItem & rAuthor)55 inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor ) 56 { 57 SetValue( rAuthor.GetValue() ); 58 return *this; 59 } 60 }; 61 62 63 // class SvxPostItDateItem ----------------------------------------------- 64 65 66 67 /* 68 [Beschreibung] 69 Dieses Item beschreibt das Datum eines Notizzettels. 70 */ 71 72 class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem 73 { 74 public: 75 TYPEINFO(); 76 77 SvxPostItDateItem( sal_uInt16 nWhich ); 78 79 SvxPostItDateItem( const String& rDate, sal_uInt16 nWhich ); 80 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 81 SfxMapUnit eCoreMetric, 82 SfxMapUnit ePresMetric, 83 String &rText, const IntlWrapper * = 0 ) const; 84 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 85 operator =(const SvxPostItDateItem & rDate)86 inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate ) 87 { 88 SetValue( rDate.GetValue() ); 89 return *this; 90 } 91 }; 92 93 94 // class SvxPostItTextItem ----------------------------------------------- 95 96 97 98 /* 99 [Beschreibung] 100 Dieses Item beschreibt den Text eines Notizzettels. 101 */ 102 103 class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem 104 { 105 public: 106 TYPEINFO(); 107 108 SvxPostItTextItem( sal_uInt16 nWhich ); 109 110 SvxPostItTextItem( const String& rText, sal_uInt16 nWhich ); 111 // "pure virtual Methoden" vom SfxPoolItem 112 virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres, 113 SfxMapUnit eCoreMetric, 114 SfxMapUnit ePresMetric, 115 String &rText, const IntlWrapper * = 0 ) const; 116 117 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const; 118 operator =(const SvxPostItTextItem & rText)119 inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText ) 120 { 121 SetValue( rText.GetValue() ); 122 return *this; 123 } 124 }; 125 126 127 128 #endif 129 130