Branch libreoffice-5-0-4
[LibreOffice.git] / include / svx / postattr.hxx
blob45cf1204e25dea263eba3dd0c6d0d2095b1cd8f9
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/stritem.hxx>
23 #include <svx/svxdllapi.h>
25 // class SvxPostItAuthorItem ---------------------------------------------
30 The author shorthand symbol of a note
33 class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem
35 public:
36 TYPEINFO_OVERRIDE();
38 SvxPostItAuthorItem( sal_uInt16 nWhich );
40 SvxPostItAuthorItem( const OUString& rAuthor, sal_uInt16 nWhich );
41 virtual bool GetPresentation( SfxItemPresentation ePres,
42 SfxMapUnit eCoreMetric,
43 SfxMapUnit ePresMetric,
44 OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
46 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
48 inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor )
50 SetValue( rAuthor.GetValue() );
51 return *this;
56 // class SvxPostItDateItem -----------------------------------------------
61 The date of a note
64 class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem
66 public:
67 TYPEINFO_OVERRIDE();
69 SvxPostItDateItem( sal_uInt16 nWhich );
71 SvxPostItDateItem( const OUString& rDate, sal_uInt16 nWhich );
72 virtual bool GetPresentation( SfxItemPresentation ePres,
73 SfxMapUnit eCoreMetric,
74 SfxMapUnit ePresMetric,
75 OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
77 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
79 inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate )
81 SetValue( rDate.GetValue() );
82 return *this;
87 // class SvxPostItTextItem -----------------------------------------------
92 The text of a note
95 class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem
97 public:
98 TYPEINFO_OVERRIDE();
100 SvxPostItTextItem( sal_uInt16 nWhich );
102 SvxPostItTextItem( const OUString& rText, sal_uInt16 nWhich );
103 // "pure virtual methods" from SfxPoolItem
104 virtual bool GetPresentation( SfxItemPresentation ePres,
105 SfxMapUnit eCoreMetric,
106 SfxMapUnit ePresMetric,
107 OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
109 virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
111 inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText )
113 SetValue( rText.GetValue() );
114 return *this;
120 #endif
122 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */