LibreOffice Module svx (master)
1
include
svx
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
28
class
SVX_DLLPUBLIC
SvxPostItAuthorItem
final :
public
SfxStringItem
29
{
30
public
:
31
static
SfxPoolItem
*
CreateDefault
();
32
33
SvxPostItAuthorItem
(
TypedWhichId<SvxPostItAuthorItem>
nWhich );
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
48
class
SVX_DLLPUBLIC
SvxPostItDateItem
final :
public
SfxStringItem
49
{
50
public
:
51
static
SfxPoolItem
*
CreateDefault
();
52
53
SvxPostItDateItem
(
TypedWhichId<SvxPostItDateItem>
nWhich );
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
67
class
SVX_DLLPUBLIC
SvxPostItTextItem
final :
public
SfxStringItem
68
{
69
public
:
70
static
SfxPoolItem
*
CreateDefault
();
71
72
SvxPostItTextItem
(
TypedWhichId<SvxPostItTextItem>
nWhich );
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
88
class
SVX_DLLPUBLIC
SvxPostItIdItem
final :
public
SfxStringItem
89
{
90
public
:
91
static
SfxPoolItem
*
CreateDefault
();
92
93
SvxPostItIdItem
(
TypedWhichId<SvxPostItIdItem>
nWhich );
94
95
virtual
SvxPostItIdItem
*
Clone
(
SfxItemPool
*pPool =
nullptr
)
const override
;
96
};
97
98
#endif
99
100
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
CntUnencodedStringItem::GetPresentation
virtual bool GetPresentation(SfxItemPresentation, MapUnit, MapUnit, OUString &rText, const IntlWrapper &) const override
IntlWrapper
SfxPoolItem
SfxStringItem
SfxStringItem::Clone
virtual SfxStringItem * Clone(SfxItemPool *=nullptr) const override
SfxStringItem::CreateDefault
static SfxPoolItem * CreateDefault()
SvxPostItAuthorItem
The author shorthand symbol of a note.
Definition:
postattr.hxx:29
SvxPostItDateItem
The date of a note.
Definition:
postattr.hxx:49
SvxPostItIdItem
The internal id of a note.
Definition:
postattr.hxx:89
SvxPostItTextItem
The text of a note.
Definition:
postattr.hxx:68
TypedWhichId
MapUnit
MapUnit
SfxItemPresentation
SfxItemPresentation
stritem.hxx
SfxItemPool
svxdllapi.h
SVX_DLLPUBLIC
#define SVX_DLLPUBLIC
Definition:
svxdllapi.h:28
Generated on Sun Jul 30 2023 04:27:34 for LibreOffice Module svx (master) by
1.9.3