Bump for 4.0-15
[LibreOffice.git] / framework / inc / properties.h
blobd1f65e278fb18beca9fa7831ea172065f8502c7e
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 .
20 #ifndef __FRAMEWORK_PROPERTIES_H_
21 #define __FRAMEWORK_PROPERTIES_H_
23 #include <macros/generic.hxx>
24 #include <general.h>
27 namespace framework{
29 //_______________________________________________
30 /** properties for "StatusIndicatorFactory" class */
32 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_FRAME "Frame"
33 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_WINDOW "Window"
34 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_ALLOWPARENTSHOW "AllowParentShow"
35 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_DISABLERESCHEDULE "DisableReschedule"
37 #define STATUSINDICATORFACTORY_PROPNAME_FRAME DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_FRAME )
38 #define STATUSINDICATORFACTORY_PROPNAME_WINDOW DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_WINDOW )
39 #define STATUSINDICATORFACTORY_PROPNAME_ALLOWPARENTSHOW DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_ALLOWPARENTSHOW )
40 #define STATUSINDICATORFACTORY_PROPNAME_DISABLERESCHEDULE DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_DISABLERESCHEDULE)
42 //_______________________________________________
43 /** properties for "Frame" class */
45 #define FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER "DispatchRecorderSupplier"
46 #define FRAME_PROPNAME_ASCII_ISHIDDEN "IsHidden"
47 #define FRAME_PROPNAME_ASCII_LAYOUTMANAGER "LayoutManager"
48 #define FRAME_PROPNAME_ASCII_TITLE "Title"
49 #define FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION "IndicatorInterception"
51 #define FRAME_PROPNAME_DISPATCHRECORDERSUPPLIER DECLARE_ASCII(FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER)
52 #define FRAME_PROPNAME_ISHIDDEN DECLARE_ASCII(FRAME_PROPNAME_ASCII_ISHIDDEN )
53 #define FRAME_PROPNAME_LAYOUTMANAGER DECLARE_ASCII(FRAME_PROPNAME_ASCII_LAYOUTMANAGER )
54 #define FRAME_PROPNAME_TITLE DECLARE_ASCII(FRAME_PROPNAME_ASCII_TITLE )
55 #define FRAME_PROPNAME_INDICATORINTERCEPTION DECLARE_ASCII(FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION )
57 // Please add new entries alphabetical sorted and correct all other handles!
58 // Start counting with 0, so it can be used as direct index into an array too.
59 // Don't forget updating of define FRAME_PROPCOUNT below!!!
60 #define FRAME_PROPHANDLE_DISPATCHRECORDERSUPPLIER 0
61 #define FRAME_PROPHANDLE_ISHIDDEN 1
62 #define FRAME_PROPHANDLE_LAYOUTMANAGER 2
63 #define FRAME_PROPHANDLE_TITLE 3
64 #define FRAME_PROPHANDLE_INDICATORINTERCEPTION 4
66 #define FRAME_PROPCOUNT 5
68 //_______________________________________________
69 /** properties for "Desktop" class */
71 #define DESKTOP_PROPNAME_ASCII_ACTIVEFRAME "ActiveFrame"
72 #define DESKTOP_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER "DispatchRecorderSupplier"
73 #define DESKTOP_PROPNAME_ASCII_ISPLUGGED "IsPlugged"
74 #define DESKTOP_PROPNAME_ASCII_SUSPENDQUICKSTARTVETO "SuspendQuickstartVeto"
75 #define DESKTOP_PROPNAME_ASCII_TITLE "Title"
77 #define DESKTOP_PROPNAME_ACTIVEFRAME DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_ACTIVEFRAME )
78 #define DESKTOP_PROPNAME_DISPATCHRECORDERSUPPLIER DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER)
79 #define DESKTOP_PROPNAME_ISPLUGGED DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_ISPLUGGED )
80 #define DESKTOP_PROPNAME_SUSPENDQUICKSTARTVETO DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_SUSPENDQUICKSTARTVETO )
81 #define DESKTOP_PROPNAME_TITLE DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_TITLE )
83 // Please add new entries alphabetical sorted and correct all other handles!
84 // Start counting with 0, so it can be used as direct index into an array too.
85 // Don't forget updating of define DESKTOP_PROPCOUNT below!!!
86 #define DESKTOP_PROPHANDLE_ACTIVEFRAME 0
87 #define DESKTOP_PROPHANDLE_DISPATCHRECORDERSUPPLIER 1
88 #define DESKTOP_PROPHANDLE_ISPLUGGED 2
89 #define DESKTOP_PROPHANDLE_SUSPENDQUICKSTARTVETO 3
90 #define DESKTOP_PROPHANDLE_TITLE 4
92 #define DESKTOP_PROPCOUNT 5
94 //_______________________________________________
95 /** properties for "PathSettings" class */
97 #define PATHSETTINGS_PROPNAME_ASCII_ADDIN "Addin"
98 #define PATHSETTINGS_PROPNAME_ASCII_AUTOCORRECT "AutoCorrect"
99 #define PATHSETTINGS_PROPNAME_ASCII_AUTOTEXT "AutoText"
100 #define PATHSETTINGS_PROPNAME_ASCII_BACKUP "Backup"
101 #define PATHSETTINGS_PROPNAME_ASCII_BASIC "Basic"
102 #define PATHSETTINGS_PROPNAME_ASCII_BITMAP "Bitmap"
103 #define PATHSETTINGS_PROPNAME_ASCII_CONFIG "Config"
104 #define PATHSETTINGS_PROPNAME_ASCII_DICTIONARY "Dictionary"
105 #define PATHSETTINGS_PROPNAME_ASCII_FAVORITE "Favorite"
106 #define PATHSETTINGS_PROPNAME_ASCII_FILTER "Filter"
107 #define PATHSETTINGS_PROPNAME_ASCII_GALLERY "Gallery"
108 #define PATHSETTINGS_PROPNAME_ASCII_GRAPHIC "Graphic"
109 #define PATHSETTINGS_PROPNAME_ASCII_HELP "Help"
110 #define PATHSETTINGS_PROPNAME_ASCII_LINGUISTIC "Linguistic"
111 #define PATHSETTINGS_PROPNAME_ASCII_MODULE "Module"
112 #define PATHSETTINGS_PROPNAME_ASCII_PALETTE "Palette"
113 #define PATHSETTINGS_PROPNAME_ASCII_PLUGIN "Plugin"
114 #define PATHSETTINGS_PROPNAME_ASCII_STORAGE "Storage"
115 #define PATHSETTINGS_PROPNAME_ASCII_TEMP "Temp"
116 #define PATHSETTINGS_PROPNAME_ASCII_TEMPLATE "Template"
117 #define PATHSETTINGS_PROPNAME_ASCII_UICONFIG "UIConfig"
118 #define PATHSETTINGS_PROPNAME_ASCII_USERCONFIG "UserConfig"
119 #define PATHSETTINGS_PROPNAME_ASCII_USERDICTIONARY "UserDictionary"
120 #define PATHSETTINGS_PROPNAME_ASCII_WORK "Work"
122 #define PATHSETTINGS_PROPNAME_ADDIN ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_ADDIN))
123 #define PATHSETTINGS_PROPNAME_AUTOCORRECT ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_AUTOCORRECT))
124 #define PATHSETTINGS_PROPNAME_AUTOTEXT ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_AUTOTEXT))
125 #define PATHSETTINGS_PROPNAME_BACKUP ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_BACKUP))
126 #define PATHSETTINGS_PROPNAME_BASIC ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_BASIC))
127 #define PATHSETTINGS_PROPNAME_BITMAP ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_BITMAP))
128 #define PATHSETTINGS_PROPNAME_CONFIG ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_CONFIG))
129 #define PATHSETTINGS_PROPNAME_DICTIONARY ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_DICTIONARY))
130 #define PATHSETTINGS_PROPNAME_FAVORITE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_FAVORITE))
131 #define PATHSETTINGS_PROPNAME_FILTER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_FILTER))
132 #define PATHSETTINGS_PROPNAME_GALLERY ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_GALLERY))
133 #define PATHSETTINGS_PROPNAME_GRAPHIC ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_GRAPHIC))
134 #define PATHSETTINGS_PROPNAME_HELP ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_HELP))
135 #define PATHSETTINGS_PROPNAME_LINGUISTIC ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_LINGUISTIC))
136 #define PATHSETTINGS_PROPNAME_MODULE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_MODULE))
137 #define PATHSETTINGS_PROPNAME_PALETTE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_PALETTE))
138 #define PATHSETTINGS_PROPNAME_PLUGIN ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_PLUGIN))
139 #define PATHSETTINGS_PROPNAME_STORAGE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_STORAGE))
140 #define PATHSETTINGS_PROPNAME_TEMP ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_TEMP))
141 #define PATHSETTINGS_PROPNAME_TEMPLATE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_TEMPLATE))
142 #define PATHSETTINGS_PROPNAME_UICONFIG ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_UICONFIG))
143 #define PATHSETTINGS_PROPNAME_USERCONFIG ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_USERCONFIG))
144 #define PATHSETTINGS_PROPNAME_USERDICTIONARY ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_USERDICTIONARY))
145 #define PATHSETTINGS_PROPNAME_WORK ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(PATHSETTINGS_PROPNAME_ASCII_WORK))
147 // Please add new entries alphabetical sorted and correct all other handles!
148 // Start counting with 0, so it can be used as direct index into an array too.
149 // Don't forget updating of define PATHSETTINGS_PROPCOUNT below!!!
150 #define PATHSETTINGS_PROPHANDLE_ADDIN 0
151 #define PATHSETTINGS_PROPHANDLE_AUTOCORRECT 1
152 #define PATHSETTINGS_PROPHANDLE_AUTOTEXT 2
153 #define PATHSETTINGS_PROPHANDLE_BACKUP 3
154 #define PATHSETTINGS_PROPHANDLE_BASIC 4
155 #define PATHSETTINGS_PROPHANDLE_BITMAP 5
156 #define PATHSETTINGS_PROPHANDLE_CONFIG 6
157 #define PATHSETTINGS_PROPHANDLE_DICTIONARY 7
158 #define PATHSETTINGS_PROPHANDLE_FAVORITE 8
159 #define PATHSETTINGS_PROPHANDLE_FILTER 9
160 #define PATHSETTINGS_PROPHANDLE_GALLERY 10
161 #define PATHSETTINGS_PROPHANDLE_GRAPHIC 11
162 #define PATHSETTINGS_PROPHANDLE_HELP 12
163 #define PATHSETTINGS_PROPHANDLE_LINGUISTIC 13
164 #define PATHSETTINGS_PROPHANDLE_MODULE 14
165 #define PATHSETTINGS_PROPHANDLE_PALETTE 15
166 #define PATHSETTINGS_PROPHANDLE_PLUGIN 16
167 #define PATHSETTINGS_PROPHANDLE_STORAGE 17
168 #define PATHSETTINGS_PROPHANDLE_TEMP 18
169 #define PATHSETTINGS_PROPHANDLE_TEMPLATE 19
170 #define PATHSETTINGS_PROPHANDLE_UICONFIG 20
171 #define PATHSETTINGS_PROPHANDLE_USERCONFIG 21
172 #define PATHSETTINGS_PROPHANDLE_USERDICTIONARY 22
173 #define PATHSETTINGS_PROPHANDLE_WORK 23
175 #define PATHSETTINGS_PROPCOUNT 24
177 //_______________________________________________
178 /** properties for "LayoutManager" class */
180 #define LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER "MenuBarCloser"
181 #define LAYOUTMANAGER_PROPNAME_ASCII_AUTOMATICTOOLBARS "AutomaticToolbars"
182 #define LAYOUTMANAGER_PROPNAME_ASCII_REFRESHVISIBILITY "RefreshContextToolbarVisibility"
183 #define LAYOUTMANAGER_PROPNAME_ASCII_HIDECURRENTUI "HideCurrentUI"
184 #define LAYOUTMANAGER_PROPNAME_ASCII_LOCKCOUNT "LockCount"
185 #define LAYOUTMANAGER_PROPNAME_ASCII_PRESERVE_CONTENT_SIZE "PreserveContentSize"
187 #define LAYOUTMANAGER_PROPNAME_MENUBARCLOSER ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER ))
188 #define LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( LAYOUTMANAGER_PROPNAME_ASCII_AUTOMATICTOOLBARS ))
189 #define LAYOUTMANAGER_PROPNAME_REFRESHVISIBILITY ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( LAYOUTMANAGER_PROPNAME_ASCII_REFRESHVISIBILITY ))
190 #define LAYOUTMANAGER_PROPNAME_HIDECURRENTUI ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( LAYOUTMANAGER_PROPNAME_ASCII_HIDECURRENTUI ))
191 #define LAYOUTMANAGER_PROPNAME_LOCKCOUNT ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( LAYOUTMANAGER_PROPNAME_ASCII_LOCKCOUNT ))
192 #define LAYOUTMANAGER_PROPNAME_PRESERVE_CONTENT_SIZE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( LAYOUTMANAGER_PROPNAME_ASCII_PRESERVE_CONTENT_SIZE ))
194 #define LAYOUTMANAGER_PROPHANDLE_MENUBARCLOSER 0
195 #define LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS 1
196 #define LAYOUTMANAGER_PROPHANDLE_REFRESHVISIBILITY 2
197 #define LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI 3
198 #define LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT 4
199 #define LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE 5
201 //_______________________________________________
202 /** properties for "UICommandDescription" class */
203 #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDIMAGELIST "private:resource/image/commandimagelist"
204 #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDROTATEIMAGELIST "private:resource/image/commandrotateimagelist"
205 #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDMIRRORIMAGELIST "private:resource/image/commandmirrorimagelist"
207 #define UICOMMANDDESCRIPTION_PROPNAME_PROPERTIES "Properties"
208 #define UICOMMANDDESCRIPTION_PROPNAME_POPUP "Popup"
210 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE 1
211 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE_MIRRORED 2
212 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE_ROTATED 4
213 #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8
215 //_______________________________________________
216 /** properties for "AutoRecovery" class */
218 #define AUTORECOVERY_PROPNAME_ASCII_EXISTS_RECOVERYDATA "ExistsRecoveryData"
219 #define AUTORECOVERY_PROPNAME_ASCII_EXISTS_SESSIONDATA "ExistsSessionData"
220 #define AUTORECOVERY_PROPNAME_ASCII_CRASHED "Crashed"
222 #define AUTORECOVERY_PROPNAME_EXISTS_RECOVERYDATA ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( AUTORECOVERY_PROPNAME_ASCII_EXISTS_RECOVERYDATA ))
223 #define AUTORECOVERY_PROPNAME_EXISTS_SESSIONDATA ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( AUTORECOVERY_PROPNAME_ASCII_EXISTS_SESSIONDATA ))
224 #define AUTORECOVERY_PROPNAME_CRASHED ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( AUTORECOVERY_PROPNAME_ASCII_CRASHED ))
226 #define AUTORECOVERY_PROPHANDLE_EXISTS_RECOVERYDATA 0
227 #define AUTORECOVERY_PROPHANDLE_EXISTS_SESSIONDATA 1
228 #define AUTORECOVERY_PROPHANDLE_CRASHED 2
230 #define AUTORECOVERY_PROPCOUNT 3
232 //_______________________________________________
233 /** properties for Filter config */
235 #define FILTER_PROPNAME_ASCII_DOCUMENTSERVICE "DocumentService"
237 #define FILTER_PROPNAME_DOCUMENTSERVICE ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( FILTER_PROPNAME_ASCII_DOCUMENTSERVICE ))
239 //_______________________________________________
240 /** properties for office module config (Setup.xcu) */
242 #define OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES "ooSetupFactoryWindowAttributes"
243 #define OFFICEFACTORY_PROPNAME_ASCII_UINAME "ooSetupFactoryUIName"
244 #define OFFICEFACTORY_PROPNAME_ASCII_ICON "ooSetupFactoryIcon"
246 #define OFFICEFACTORY_PROPNAME_WINDOWATTRIBUTES ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES ))
247 #define OFFICEFACTORY_PROPNAME_UINAME ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( OFFICEFACTORY_PROPNAME_ASCII_UINAME ))
248 #define OFFICEFACTORY_PROPNAME_ICON ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( OFFICEFACTORY_PROPNAME_ASCII_ICON ))
250 //_______________________________________________
251 /** properties for tab window (old) */
252 #define TABWINDOW_PROPNAME_ASCII_PARENTWINDOW "ParentWindow"
253 #define TABWINDOW_PROPNAME_ASCII_TOPWINDOW "TopWindow"
254 #define TABWINDOW_PROPNAME_PARENTWINDOW ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( TABWINDOW_PROPNAME_ASCII_PARENTWINDOW ))
255 #define TABWINDOW_PROPNAME_TOPWINDOW ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( TABWINDOW_PROPNAME_ASCII_TOPWINDOW ))
257 #define TABWINDOW_PROPHANDLE_PARENTWINDOW 0
258 #define TABWINDOW_PROPHANDLE_TOPWINDOW 1
259 #define TABWINDOW_PROPCOUNT 2
261 #define TABWINDOWSERVICE_PROPHANDLE_WINDOW 0
262 #define TABWINDOWSERVICE_PROPCOUNT 1
264 //_______________________________________________
265 /** provides some helper methods to implement property sets. */
267 class PropHelper
269 public:
271 //___________________________________________
273 /** checks if given property will be changed by this settings.
274 * We compare the content of the given any values. If they are different we return sal_True - sal_False otherwhise.
276 * @param aCurrentValue contains the current value for this property
277 * @param aNewValue contains the new value for this property
278 * @param aOldValue returns the current value, in case somthing will be changed
279 * @param aChangedValue returns the new value, in case somthing will be changed
281 * @return <True/> if value of this property will be changed; <False/> otherwhise.
284 static sal_Bool willPropertyBeChanged( const css::uno::Any& aCurrentValue ,
285 const css::uno::Any& aNewValue ,
286 css::uno::Any& aOldValue ,
287 css::uno::Any& aChangedValue )
289 sal_Bool bChanged = sal_False;
291 // clear return parameter to be shure, to put out only valid values ...
292 aOldValue.clear();
293 aChangedValue.clear();
295 // if value change ...
296 bChanged = !(aCurrentValue==aNewValue);
297 if (bChanged)
299 // ... set information of change.
300 aOldValue = aCurrentValue;
301 aChangedValue = aNewValue ;
304 return bChanged;
308 } // namespace framework
310 #endif // #ifndef __FRAMEWORK_PROPERTIES_H_
312 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */