Line data Source code
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 _SVX_POSTATTR_HXX
20 : #define _SVX_POSTATTR_HXX
21 :
22 : #include <svl/stritem.hxx>
23 : #include "svx/svxdllapi.h"
24 :
25 : // class SvxPostItAuthorItem ---------------------------------------------
26 :
27 :
28 :
29 : /*
30 : The author shorthand symbol of a note
31 : */
32 :
33 0 : class SVX_DLLPUBLIC SvxPostItAuthorItem: public SfxStringItem
34 : {
35 : public:
36 : TYPEINFO();
37 :
38 : SvxPostItAuthorItem( sal_uInt16 nWhich );
39 :
40 : SvxPostItAuthorItem( const String& rAuthor, sal_uInt16 nWhich );
41 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
42 : SfxMapUnit eCoreMetric,
43 : SfxMapUnit ePresMetric,
44 : String &rText, const IntlWrapper * = 0 ) const;
45 :
46 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
47 :
48 : inline SvxPostItAuthorItem& operator=( const SvxPostItAuthorItem& rAuthor )
49 : {
50 : SetValue( rAuthor.GetValue() );
51 : return *this;
52 : }
53 : };
54 :
55 :
56 : // class SvxPostItDateItem -----------------------------------------------
57 :
58 :
59 :
60 : /*
61 : The date of a note
62 : */
63 :
64 0 : class SVX_DLLPUBLIC SvxPostItDateItem: public SfxStringItem
65 : {
66 : public:
67 : TYPEINFO();
68 :
69 : SvxPostItDateItem( sal_uInt16 nWhich );
70 :
71 : SvxPostItDateItem( const String& rDate, sal_uInt16 nWhich );
72 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
73 : SfxMapUnit eCoreMetric,
74 : SfxMapUnit ePresMetric,
75 : String &rText, const IntlWrapper * = 0 ) const;
76 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
77 :
78 : inline SvxPostItDateItem& operator=( const SvxPostItDateItem& rDate )
79 : {
80 : SetValue( rDate.GetValue() );
81 : return *this;
82 : }
83 : };
84 :
85 :
86 : // class SvxPostItTextItem -----------------------------------------------
87 :
88 :
89 :
90 : /*
91 : The text of a note
92 : */
93 :
94 0 : class SVX_DLLPUBLIC SvxPostItTextItem: public SfxStringItem
95 : {
96 : public:
97 : TYPEINFO();
98 :
99 : SvxPostItTextItem( sal_uInt16 nWhich );
100 :
101 : SvxPostItTextItem( const String& rText, sal_uInt16 nWhich );
102 : // "pure virtual methods" vom SfxPoolItem
103 : virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
104 : SfxMapUnit eCoreMetric,
105 : SfxMapUnit ePresMetric,
106 : String &rText, const IntlWrapper * = 0 ) const;
107 :
108 : virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
109 :
110 : inline SvxPostItTextItem& operator=( const SvxPostItTextItem& rText )
111 : {
112 : SetValue( rText.GetValue() );
113 : return *this;
114 : }
115 : };
116 :
117 :
118 :
119 : #endif
120 :
121 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|