LibreOffice Module svx (master)  1
postattr.hxx
Go to the documentation of this file.
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 
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 SvxPostItAuthorItem* Clone( SfxItemPool *pPool = nullptr ) const override;
42 };
43 
44 
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 SvxPostItDateItem* Clone( SfxItemPool *pPool = nullptr ) const override;
62 };
63 
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 SvxPostItTextItem* Clone( SfxItemPool *pPool = nullptr ) const override;
82 };
83 
84 
89 {
90 public:
91  static SfxPoolItem* CreateDefault();
92 
93  SvxPostItIdItem( sal_uInt16 nWhich );
94 
95  virtual SvxPostItIdItem* Clone( SfxItemPool *pPool = nullptr ) const override;
96 };
97 
98 #endif
99 
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The date of a note.
Definition: postattr.hxx:48
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
static SfxPoolItem * CreateDefault()
virtual SfxStringItem * Clone(SfxItemPool *=nullptr) const override
SfxItemPresentation
virtual bool GetPresentation(SfxItemPresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override
The text of a note.
Definition: postattr.hxx:67
The author shorthand symbol of a note.
Definition: postattr.hxx:28
MapUnit
The internal id of a note.
Definition: postattr.hxx:88