1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_SVX_POSTATTR_HXX
20 #define INCLUDED_SVX_POSTATTR_HXX
21 
22 #include <svl/stritem.hxx>
23 #include <svx/svxdllapi.h>
24 
25 /** The author shorthand symbol of a note
26  */
27 
28 class SVX_DLLPUBLIC SvxPostItAuthorItem final : public SfxStringItem
29 {
30 public:
31     static SfxPoolItem* CreateDefault();
32 
33     SvxPostItAuthorItem( sal_uInt16 nWhich  );
34 
35     SvxPostItAuthorItem( const OUString& rAuthor, sal_uInt16 nWhich  );
36     virtual bool GetPresentation( SfxItemPresentation ePres,
37                                   MapUnit eCoreMetric,
38                                   MapUnit ePresMetric,
39                                   OUString &rText, const IntlWrapper& ) const override;
40 
41     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = nullptr ) const override;
42 };
43 
44 
45 /** The date of a note
46  */
47 
48 class SVX_DLLPUBLIC SvxPostItDateItem final : public SfxStringItem
49 {
50 public:
51     static SfxPoolItem* CreateDefault();
52 
53     SvxPostItDateItem( sal_uInt16 nWhich  );
54 
55     SvxPostItDateItem( const OUString& rDate, sal_uInt16 nWhich  );
56     virtual bool GetPresentation( SfxItemPresentation ePres,
57                                   MapUnit eCoreMetric,
58                                   MapUnit ePresMetric,
59                                   OUString &rText, const IntlWrapper& ) const override;
60 
61     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = nullptr ) const override;
62 };
63 
64 /** The text of a note
65  */
66 
67 class SVX_DLLPUBLIC SvxPostItTextItem final : public SfxStringItem
68 {
69 public:
70     static SfxPoolItem* CreateDefault();
71 
72     SvxPostItTextItem( sal_uInt16 nWhich  );
73 
74     SvxPostItTextItem( const OUString& rText, sal_uInt16 nWhich  );
75     // "pure virtual methods" from SfxPoolItem
76     virtual bool GetPresentation( SfxItemPresentation ePres,
77                                   MapUnit eCoreMetric,
78                                   MapUnit ePresMetric,
79                                   OUString &rText, const IntlWrapper& ) const override;
80 
81     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = nullptr ) const override;
82 };
83 
84 
85 /** The internal id of a note
86  */
87 
88 class SVX_DLLPUBLIC SvxPostItIdItem final : public SfxStringItem
89 {
90 public:
91     static SfxPoolItem* CreateDefault();
92 
93     SvxPostItIdItem( sal_uInt16 nWhich );
94 
95     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = nullptr ) const override;
96 };
97 
98 #endif
99 
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
101