1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SVX_POSTATTR_HXX
20 #define INCLUDED_SVX_POSTATTR_HXX
22 #include <svl/intitem.hxx>
23 #include <svl/stritem.hxx>
24 #include <svx/svxdllapi.h>
26 // class SvxPostItAuthorItem ---------------------------------------------
30 The author shorthand symbol of a note
33 class SVX_DLLPUBLIC SvxPostItAuthorItem
: public SfxStringItem
36 static SfxPoolItem
* CreateDefault();
38 SvxPostItAuthorItem( sal_uInt16 nWhich
);
40 SvxPostItAuthorItem( const OUString
& rAuthor
, sal_uInt16 nWhich
);
41 virtual bool GetPresentation( SfxItemPresentation ePres
,
44 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
46 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
48 SvxPostItAuthorItem
& operator=( const SvxPostItAuthorItem
& rAuthor
)
50 SetValue( rAuthor
.GetValue() );
56 // class SvxPostItDateItem -----------------------------------------------
63 class SVX_DLLPUBLIC SvxPostItDateItem
: public SfxStringItem
66 static SfxPoolItem
* CreateDefault();
68 SvxPostItDateItem( sal_uInt16 nWhich
);
70 SvxPostItDateItem( const OUString
& rDate
, sal_uInt16 nWhich
);
71 virtual bool GetPresentation( SfxItemPresentation ePres
,
74 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
76 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
78 SvxPostItDateItem
& operator=( const SvxPostItDateItem
& rDate
)
80 SetValue( rDate
.GetValue() );
86 // class SvxPostItTextItem -----------------------------------------------
93 class SVX_DLLPUBLIC SvxPostItTextItem
: public SfxStringItem
96 static SfxPoolItem
* CreateDefault();
98 SvxPostItTextItem( sal_uInt16 nWhich
);
100 SvxPostItTextItem( const OUString
& rText
, sal_uInt16 nWhich
);
101 // "pure virtual methods" from SfxPoolItem
102 virtual bool GetPresentation( SfxItemPresentation ePres
,
105 OUString
&rText
, const IntlWrapper
* = nullptr ) const override
;
107 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
109 SvxPostItTextItem
& operator=( const SvxPostItTextItem
& rText
)
111 SetValue( rText
.GetValue() );
116 // class SvxPostItIdItem -----------------------------------------------
120 The internal id of a note
123 class SVX_DLLPUBLIC SvxPostItIdItem
: public SfxStringItem
126 static SfxPoolItem
* CreateDefault();
128 SvxPostItIdItem( sal_uInt16 nWhich
);
130 virtual SfxPoolItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
132 SvxPostItIdItem
& operator=( const SvxPostItIdItem
& rId
)
134 SetValue( rId
.GetValue() );
142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */