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