Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svx / postattr.hxx
blobea3230211ac00b1f826cb193f4ec4c610c9e83cd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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
35 public:
36 static SfxPoolItem* CreateDefault();
38 SvxPostItAuthorItem( sal_uInt16 nWhich );
40 SvxPostItAuthorItem( const OUString& rAuthor, sal_uInt16 nWhich );
41 virtual bool GetPresentation( SfxItemPresentation ePres,
42 MapUnit eCoreMetric,
43 MapUnit ePresMetric,
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() );
51 return *this;
56 // class SvxPostItDateItem -----------------------------------------------
60 The date of a note
63 class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem
65 public:
66 static SfxPoolItem* CreateDefault();
68 SvxPostItDateItem( sal_uInt16 nWhich );
70 SvxPostItDateItem( const OUString& rDate, sal_uInt16 nWhich );
71 virtual bool GetPresentation( SfxItemPresentation ePres,
72 MapUnit eCoreMetric,
73 MapUnit ePresMetric,
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() );
81 return *this;
86 // class SvxPostItTextItem -----------------------------------------------
90 The text of a note
93 class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem
95 public:
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,
103 MapUnit eCoreMetric,
104 MapUnit ePresMetric,
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() );
112 return *this;
116 // class SvxPostItIdItem -----------------------------------------------
120 The internal id of a note
123 class SVX_DLLPUBLIC SvxPostItIdItem: public SfxStringItem
125 public:
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() );
135 return *this;
140 #endif
142 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */