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/stritem.hxx>
23 #include <svx/svxdllapi.h>
25 /** The author shorthand symbol of a note
28 class SVX_DLLPUBLIC SvxPostItAuthorItem final
: public SfxStringItem
31 static SfxPoolItem
* CreateDefault();
33 SvxPostItAuthorItem( sal_uInt16 nWhich
);
35 SvxPostItAuthorItem( const OUString
& rAuthor
, sal_uInt16 nWhich
);
36 virtual bool GetPresentation( SfxItemPresentation ePres
,
39 OUString
&rText
, const IntlWrapper
& ) const override
;
41 virtual SvxPostItAuthorItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
45 /** The date of a note
48 class SVX_DLLPUBLIC SvxPostItDateItem final
: public SfxStringItem
51 static SfxPoolItem
* CreateDefault();
53 SvxPostItDateItem( sal_uInt16 nWhich
);
55 SvxPostItDateItem( const OUString
& rDate
, sal_uInt16 nWhich
);
56 virtual bool GetPresentation( SfxItemPresentation ePres
,
59 OUString
&rText
, const IntlWrapper
& ) const override
;
61 virtual SvxPostItDateItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
64 /** The text of a note
67 class SVX_DLLPUBLIC SvxPostItTextItem final
: public SfxStringItem
70 static SfxPoolItem
* CreateDefault();
72 SvxPostItTextItem( sal_uInt16 nWhich
);
74 SvxPostItTextItem( const OUString
& rText
, sal_uInt16 nWhich
);
75 // "pure virtual methods" from SfxPoolItem
76 virtual bool GetPresentation( SfxItemPresentation ePres
,
79 OUString
&rText
, const IntlWrapper
& ) const override
;
81 virtual SvxPostItTextItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
85 /** The internal id of a note
88 class SVX_DLLPUBLIC SvxPostItIdItem final
: public SfxStringItem
91 static SfxPoolItem
* CreateDefault();
93 SvxPostItIdItem( sal_uInt16 nWhich
);
95 virtual SvxPostItIdItem
* Clone( SfxItemPool
*pPool
= nullptr ) const override
;
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */