1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: postattr.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_POSTATTR_HXX
31 #define _SVX_POSTATTR_HXX
33 // include ---------------------------------------------------------------
35 #include <svtools/stritem.hxx>
36 #include "svx/svxdllapi.h"
38 // class SvxPostItAuthorItem ---------------------------------------------
44 Dieses Item beschreibt das Autoren-Kuerzel eines Notizzettels.
47 class SVX_DLLPUBLIC SvxPostItAuthorItem
: public SfxStringItem
52 SvxPostItAuthorItem( USHORT nWhich
);
54 SvxPostItAuthorItem( const String
& rAuthor
, USHORT nWhich
);
55 virtual SfxItemPresentation
GetPresentation( SfxItemPresentation ePres
,
56 SfxMapUnit eCoreMetric
,
57 SfxMapUnit ePresMetric
,
58 String
&rText
, const IntlWrapper
* = 0 ) const;
60 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
62 inline SvxPostItAuthorItem
& operator=( const SvxPostItAuthorItem
& rAuthor
)
64 SetValue( rAuthor
.GetValue() );
70 // class SvxPostItDateItem -----------------------------------------------
76 Dieses Item beschreibt das Datum eines Notizzettels.
79 class SVX_DLLPUBLIC SvxPostItDateItem
: public SfxStringItem
84 SvxPostItDateItem( USHORT nWhich
);
86 SvxPostItDateItem( const String
& rDate
, USHORT nWhich
);
87 virtual SfxItemPresentation
GetPresentation( SfxItemPresentation ePres
,
88 SfxMapUnit eCoreMetric
,
89 SfxMapUnit ePresMetric
,
90 String
&rText
, const IntlWrapper
* = 0 ) const;
91 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
93 inline SvxPostItDateItem
& operator=( const SvxPostItDateItem
& rDate
)
95 SetValue( rDate
.GetValue() );
101 // class SvxPostItTextItem -----------------------------------------------
107 Dieses Item beschreibt den Text eines Notizzettels.
110 class SVX_DLLPUBLIC SvxPostItTextItem
: public SfxStringItem
115 SvxPostItTextItem( USHORT nWhich
);
117 SvxPostItTextItem( const String
& rText
, USHORT nWhich
);
118 // "pure virtual Methoden" vom SfxPoolItem
119 virtual SfxItemPresentation
GetPresentation( SfxItemPresentation ePres
,
120 SfxMapUnit eCoreMetric
,
121 SfxMapUnit ePresMetric
,
122 String
&rText
, const IntlWrapper
* = 0 ) const;
124 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= 0 ) const;
126 inline SvxPostItTextItem
& operator=( const SvxPostItTextItem
& rText
)
128 SetValue( rText
.GetValue() );