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{
30public:
31 static SfxPoolItem* CreateDefault();
32
34
35 SvxPostItAuthorItem( const OUString& rAuthor, TypedWhichId<SvxPostItAuthorItem> 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{
50public:
51 static SfxPoolItem* CreateDefault();
52
54
55 SvxPostItDateItem( const OUString& rDate, TypedWhichId<SvxPostItDateItem> 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{
69public:
70 static SfxPoolItem* CreateDefault();
71
73
74 SvxPostItTextItem( const OUString& rText, TypedWhichId<SvxPostItTextItem> 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{
90public:
91 static SfxPoolItem* CreateDefault();
92
94
95 virtual SvxPostItIdItem* Clone( SfxItemPool *pPool = nullptr ) const override;
96};
97
98#endif
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool GetPresentation(SfxItemPresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override
virtual SfxStringItem * Clone(SfxItemPool *=nullptr) const override
static SfxPoolItem * CreateDefault()
The author shorthand symbol of a note.
Definition: postattr.hxx:29
The date of a note.
Definition: postattr.hxx:49
The internal id of a note.
Definition: postattr.hxx:89
The text of a note.
Definition: postattr.hxx:68
MapUnit
SfxItemPresentation
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28