1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef __FRAMEWORK_PROPERTIES_H_ 25 #define __FRAMEWORK_PROPERTIES_H_ 26 27 //_______________________________________________ 28 // includes 29 30 #include <macros/generic.hxx> 31 #include <general.h> 32 33 //_______________________________________________ 34 // namespace 35 36 namespace framework{ 37 38 //_______________________________________________ 39 /** properties for "StatusIndicatorFactory" class */ 40 41 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_FRAME "Frame" 42 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_WINDOW "Window" 43 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_ALLOWPARENTSHOW "AllowParentShow" 44 #define STATUSINDICATORFACTORY_PROPNAME_ASCII_DISABLERESCHEDULE "DisableReschedule" 45 46 #define STATUSINDICATORFACTORY_PROPNAME_FRAME DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_FRAME ) 47 #define STATUSINDICATORFACTORY_PROPNAME_WINDOW DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_WINDOW ) 48 #define STATUSINDICATORFACTORY_PROPNAME_ALLOWPARENTSHOW DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_ALLOWPARENTSHOW ) 49 #define STATUSINDICATORFACTORY_PROPNAME_DISABLERESCHEDULE DECLARE_ASCII(STATUSINDICATORFACTORY_PROPNAME_ASCII_DISABLERESCHEDULE) 50 51 //_______________________________________________ 52 /** properties for "Frame" class */ 53 54 #define FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER "DispatchRecorderSupplier" 55 #define FRAME_PROPNAME_ASCII_ISHIDDEN "IsHidden" 56 #define FRAME_PROPNAME_ASCII_LAYOUTMANAGER "LayoutManager" 57 #define FRAME_PROPNAME_ASCII_TITLE "Title" 58 #define FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION "IndicatorInterception" 59 60 #define FRAME_PROPNAME_DISPATCHRECORDERSUPPLIER DECLARE_ASCII(FRAME_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER) 61 #define FRAME_PROPNAME_ISHIDDEN DECLARE_ASCII(FRAME_PROPNAME_ASCII_ISHIDDEN ) 62 #define FRAME_PROPNAME_LAYOUTMANAGER DECLARE_ASCII(FRAME_PROPNAME_ASCII_LAYOUTMANAGER ) 63 #define FRAME_PROPNAME_TITLE DECLARE_ASCII(FRAME_PROPNAME_ASCII_TITLE ) 64 #define FRAME_PROPNAME_INDICATORINTERCEPTION DECLARE_ASCII(FRAME_PROPNAME_ASCII_INDICATORINTERCEPTION ) 65 66 // Please add new entries alphabetical sorted and correct all other handles! 67 // Start counting with 0, so it can be used as direct index into an array too. 68 // Don't forget updating of define FRAME_PROPCOUNT below!!! 69 #define FRAME_PROPHANDLE_DISPATCHRECORDERSUPPLIER 0 70 #define FRAME_PROPHANDLE_ISHIDDEN 1 71 #define FRAME_PROPHANDLE_LAYOUTMANAGER 2 72 #define FRAME_PROPHANDLE_TITLE 3 73 #define FRAME_PROPHANDLE_INDICATORINTERCEPTION 4 74 75 #define FRAME_PROPCOUNT 5 76 77 //_______________________________________________ 78 /** properties for "Desktop" class */ 79 80 #define DESKTOP_PROPNAME_ASCII_ACTIVEFRAME "ActiveFrame" 81 #define DESKTOP_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER "DispatchRecorderSupplier" 82 #define DESKTOP_PROPNAME_ASCII_ISPLUGGED "IsPlugged" 83 #define DESKTOP_PROPNAME_ASCII_SUSPENDQUICKSTARTVETO "SuspendQuickstartVeto" 84 #define DESKTOP_PROPNAME_ASCII_TITLE "Title" 85 86 #define DESKTOP_PROPNAME_ACTIVEFRAME DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_ACTIVEFRAME ) 87 #define DESKTOP_PROPNAME_DISPATCHRECORDERSUPPLIER DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_DISPATCHRECORDERSUPPLIER) 88 #define DESKTOP_PROPNAME_ISPLUGGED DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_ISPLUGGED ) 89 #define DESKTOP_PROPNAME_SUSPENDQUICKSTARTVETO DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_SUSPENDQUICKSTARTVETO ) 90 #define DESKTOP_PROPNAME_TITLE DECLARE_ASCII(DESKTOP_PROPNAME_ASCII_TITLE ) 91 92 // Please add new entries alphabetical sorted and correct all other handles! 93 // Start counting with 0, so it can be used as direct index into an array too. 94 // Don't forget updating of define DESKTOP_PROPCOUNT below!!! 95 #define DESKTOP_PROPHANDLE_ACTIVEFRAME 0 96 #define DESKTOP_PROPHANDLE_DISPATCHRECORDERSUPPLIER 1 97 #define DESKTOP_PROPHANDLE_ISPLUGGED 2 98 #define DESKTOP_PROPHANDLE_SUSPENDQUICKSTARTVETO 3 99 #define DESKTOP_PROPHANDLE_TITLE 4 100 101 #define DESKTOP_PROPCOUNT 5 102 103 //_______________________________________________ 104 /** properties for "PathSettings" class */ 105 106 #define PATHSETTINGS_PROPNAME_ASCII_ADDIN "Addin" 107 #define PATHSETTINGS_PROPNAME_ASCII_AUTOCORRECT "AutoCorrect" 108 #define PATHSETTINGS_PROPNAME_ASCII_AUTOTEXT "AutoText" 109 #define PATHSETTINGS_PROPNAME_ASCII_BACKUP "Backup" 110 #define PATHSETTINGS_PROPNAME_ASCII_BASIC "Basic" 111 #define PATHSETTINGS_PROPNAME_ASCII_BITMAP "Bitmap" 112 #define PATHSETTINGS_PROPNAME_ASCII_CONFIG "Config" 113 #define PATHSETTINGS_PROPNAME_ASCII_DICTIONARY "Dictionary" 114 #define PATHSETTINGS_PROPNAME_ASCII_FAVORITE "Favorite" 115 #define PATHSETTINGS_PROPNAME_ASCII_FILTER "Filter" 116 #define PATHSETTINGS_PROPNAME_ASCII_GALLERY "Gallery" 117 #define PATHSETTINGS_PROPNAME_ASCII_GRAPHIC "Graphic" 118 #define PATHSETTINGS_PROPNAME_ASCII_HELP "Help" 119 #define PATHSETTINGS_PROPNAME_ASCII_LINGUISTIC "Linguistic" 120 #define PATHSETTINGS_PROPNAME_ASCII_MODULE "Module" 121 #define PATHSETTINGS_PROPNAME_ASCII_PALETTE "Palette" 122 #define PATHSETTINGS_PROPNAME_ASCII_PLUGIN "Plugin" 123 #define PATHSETTINGS_PROPNAME_ASCII_STORAGE "Storage" 124 #define PATHSETTINGS_PROPNAME_ASCII_TEMP "Temp" 125 #define PATHSETTINGS_PROPNAME_ASCII_TEMPLATE "Template" 126 #define PATHSETTINGS_PROPNAME_ASCII_UICONFIG "UIConfig" 127 #define PATHSETTINGS_PROPNAME_ASCII_USERCONFIG "UserConfig" 128 #define PATHSETTINGS_PROPNAME_ASCII_USERDICTIONARY "UserDictionary" 129 #define PATHSETTINGS_PROPNAME_ASCII_WORK "Work" 130 131 #define PATHSETTINGS_PROPNAME_ADDIN ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_ADDIN ) 132 #define PATHSETTINGS_PROPNAME_AUTOCORRECT ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_AUTOCORRECT ) 133 #define PATHSETTINGS_PROPNAME_AUTOTEXT ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_AUTOTEXT ) 134 #define PATHSETTINGS_PROPNAME_BACKUP ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_BACKUP ) 135 #define PATHSETTINGS_PROPNAME_BASIC ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_BASIC ) 136 #define PATHSETTINGS_PROPNAME_BITMAP ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_BITMAP ) 137 #define PATHSETTINGS_PROPNAME_CONFIG ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_CONFIG ) 138 #define PATHSETTINGS_PROPNAME_DICTIONARY ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_DICTIONARY ) 139 #define PATHSETTINGS_PROPNAME_FAVORITE ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_FAVORITE ) 140 #define PATHSETTINGS_PROPNAME_FILTER ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_FILTER ) 141 #define PATHSETTINGS_PROPNAME_GALLERY ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_GALLERY ) 142 #define PATHSETTINGS_PROPNAME_GRAPHIC ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_GRAPHIC ) 143 #define PATHSETTINGS_PROPNAME_HELP ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_HELP ) 144 #define PATHSETTINGS_PROPNAME_LINGUISTIC ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_LINGUISTIC ) 145 #define PATHSETTINGS_PROPNAME_MODULE ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_MODULE ) 146 #define PATHSETTINGS_PROPNAME_PALETTE ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_PALETTE ) 147 #define PATHSETTINGS_PROPNAME_PLUGIN ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_PLUGIN ) 148 #define PATHSETTINGS_PROPNAME_STORAGE ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_STORAGE ) 149 #define PATHSETTINGS_PROPNAME_TEMP ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_TEMP ) 150 #define PATHSETTINGS_PROPNAME_TEMPLATE ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_TEMPLATE ) 151 #define PATHSETTINGS_PROPNAME_UICONFIG ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_UICONFIG ) 152 #define PATHSETTINGS_PROPNAME_USERCONFIG ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_USERCONFIG ) 153 #define PATHSETTINGS_PROPNAME_USERDICTIONARY ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_USERDICTIONARY) 154 #define PATHSETTINGS_PROPNAME_WORK ::rtl::OUString::createFromAscii(PATHSETTINGS_PROPNAME_ASCII_WORK ) 155 156 // Please add new entries alphabetical sorted and correct all other handles! 157 // Start counting with 0, so it can be used as direct index into an array too. 158 // Don't forget updating of define PATHSETTINGS_PROPCOUNT below!!! 159 #define PATHSETTINGS_PROPHANDLE_ADDIN 0 160 #define PATHSETTINGS_PROPHANDLE_AUTOCORRECT 1 161 #define PATHSETTINGS_PROPHANDLE_AUTOTEXT 2 162 #define PATHSETTINGS_PROPHANDLE_BACKUP 3 163 #define PATHSETTINGS_PROPHANDLE_BASIC 4 164 #define PATHSETTINGS_PROPHANDLE_BITMAP 5 165 #define PATHSETTINGS_PROPHANDLE_CONFIG 6 166 #define PATHSETTINGS_PROPHANDLE_DICTIONARY 7 167 #define PATHSETTINGS_PROPHANDLE_FAVORITE 8 168 #define PATHSETTINGS_PROPHANDLE_FILTER 9 169 #define PATHSETTINGS_PROPHANDLE_GALLERY 10 170 #define PATHSETTINGS_PROPHANDLE_GRAPHIC 11 171 #define PATHSETTINGS_PROPHANDLE_HELP 12 172 #define PATHSETTINGS_PROPHANDLE_LINGUISTIC 13 173 #define PATHSETTINGS_PROPHANDLE_MODULE 14 174 #define PATHSETTINGS_PROPHANDLE_PALETTE 15 175 #define PATHSETTINGS_PROPHANDLE_PLUGIN 16 176 #define PATHSETTINGS_PROPHANDLE_STORAGE 17 177 #define PATHSETTINGS_PROPHANDLE_TEMP 18 178 #define PATHSETTINGS_PROPHANDLE_TEMPLATE 19 179 #define PATHSETTINGS_PROPHANDLE_UICONFIG 20 180 #define PATHSETTINGS_PROPHANDLE_USERCONFIG 21 181 #define PATHSETTINGS_PROPHANDLE_USERDICTIONARY 22 182 #define PATHSETTINGS_PROPHANDLE_WORK 23 183 184 #define PATHSETTINGS_PROPCOUNT 24 185 186 //_______________________________________________ 187 /** properties for "LayoutManager" class */ 188 189 #define LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER "MenuBarCloser" 190 #define LAYOUTMANAGER_PROPNAME_ASCII_AUTOMATICTOOLBARS "AutomaticToolbars" 191 #define LAYOUTMANAGER_PROPNAME_ASCII_REFRESHVISIBILITY "RefreshContextToolbarVisibility" 192 #define LAYOUTMANAGER_PROPNAME_ASCII_HIDECURRENTUI "HideCurrentUI" 193 #define LAYOUTMANAGER_PROPNAME_ASCII_LOCKCOUNT "LockCount" 194 #define LAYOUTMANAGER_PROPNAME_ASCII_PRESERVE_CONTENT_SIZE "PreserveContentSize" 195 196 #define LAYOUTMANAGER_PROPNAME_MENUBARCLOSER ::rtl::OUString::createFromAscii( LAYOUTMANAGER_PROPNAME_ASCII_MENUBARCLOSER ) 197 #define LAYOUTMANAGER_PROPNAME_AUTOMATICTOOLBARS ::rtl::OUString::createFromAscii( LAYOUTMANAGER_PROPNAME_ASCII_AUTOMATICTOOLBARS ) 198 #define LAYOUTMANAGER_PROPNAME_REFRESHVISIBILITY ::rtl::OUString::createFromAscii( LAYOUTMANAGER_PROPNAME_ASCII_REFRESHVISIBILITY ) 199 #define LAYOUTMANAGER_PROPNAME_HIDECURRENTUI ::rtl::OUString::createFromAscii( LAYOUTMANAGER_PROPNAME_ASCII_HIDECURRENTUI ) 200 #define LAYOUTMANAGER_PROPNAME_LOCKCOUNT ::rtl::OUString::createFromAscii( LAYOUTMANAGER_PROPNAME_ASCII_LOCKCOUNT ) 201 #define LAYOUTMANAGER_PROPNAME_PRESERVE_CONTENT_SIZE ::rtl::OUString::createFromAscii( LAYOUTMANAGER_PROPNAME_ASCII_PRESERVE_CONTENT_SIZE ) 202 203 #define LAYOUTMANAGER_PROPHANDLE_MENUBARCLOSER 0 204 #define LAYOUTMANAGER_PROPHANDLE_AUTOMATICTOOLBARS 1 205 #define LAYOUTMANAGER_PROPHANDLE_REFRESHVISIBILITY 2 206 #define LAYOUTMANAGER_PROPHANDLE_HIDECURRENTUI 3 207 #define LAYOUTMANAGER_PROPHANDLE_LOCKCOUNT 4 208 #define LAYOUTMANAGER_PROPHANDLE_PRESERVE_CONTENT_SIZE 5 209 210 //_______________________________________________ 211 /** properties for "UICommandDescription" class */ 212 #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDIMAGELIST "private:resource/image/commandimagelist" 213 #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDROTATEIMAGELIST "private:resource/image/commandrotateimagelist" 214 #define UICOMMANDDESCRIPTION_NAMEACCESS_COMMANDMIRRORIMAGELIST "private:resource/image/commandmirrorimagelist" 215 216 #define UICOMMANDDESCRIPTION_PROPNAME_PROPERTIES "Properties" 217 #define UICOMMANDDESCRIPTION_PROPNAME_POPUP "Popup" 218 219 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE 1 220 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE_MIRRORED 2 221 #define UICOMMANDDESCRIPTION_PROPERTIES_IMAGE_ROTATED 4 222 #define UICOMMANDDESCRIPTION_PROPERTIES_TOGGLEBUTTON 8 223 224 //_______________________________________________ 225 /** properties for "AutoRecovery" class */ 226 227 #define AUTORECOVERY_PROPNAME_ASCII_EXISTS_RECOVERYDATA "ExistsRecoveryData" 228 #define AUTORECOVERY_PROPNAME_ASCII_EXISTS_SESSIONDATA "ExistsSessionData" 229 #define AUTORECOVERY_PROPNAME_ASCII_CRASHED "Crashed" 230 231 #define AUTORECOVERY_PROPNAME_EXISTS_RECOVERYDATA ::rtl::OUString::createFromAscii( AUTORECOVERY_PROPNAME_ASCII_EXISTS_RECOVERYDATA ) 232 #define AUTORECOVERY_PROPNAME_EXISTS_SESSIONDATA ::rtl::OUString::createFromAscii( AUTORECOVERY_PROPNAME_ASCII_EXISTS_SESSIONDATA ) 233 #define AUTORECOVERY_PROPNAME_CRASHED ::rtl::OUString::createFromAscii( AUTORECOVERY_PROPNAME_ASCII_CRASHED ) 234 235 #define AUTORECOVERY_PROPHANDLE_EXISTS_RECOVERYDATA 0 236 #define AUTORECOVERY_PROPHANDLE_EXISTS_SESSIONDATA 1 237 #define AUTORECOVERY_PROPHANDLE_CRASHED 2 238 239 #define AUTORECOVERY_PROPCOUNT 3 240 241 //_______________________________________________ 242 /** properties for Filter config */ 243 244 #define FILTER_PROPNAME_ASCII_DOCUMENTSERVICE "DocumentService" 245 246 #define FILTER_PROPNAME_DOCUMENTSERVICE ::rtl::OUString::createFromAscii( FILTER_PROPNAME_ASCII_DOCUMENTSERVICE ) 247 248 //_______________________________________________ 249 /** properties for office module config (Setup.xcu) */ 250 251 #define OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES "ooSetupFactoryWindowAttributes" 252 #define OFFICEFACTORY_PROPNAME_ASCII_UINAME "ooSetupFactoryUIName" 253 #define OFFICEFACTORY_PROPNAME_ASCII_ICON "ooSetupFactoryIcon" 254 255 #define OFFICEFACTORY_PROPNAME_WINDOWATTRIBUTES ::rtl::OUString::createFromAscii( OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES ) 256 #define OFFICEFACTORY_PROPNAME_UINAME ::rtl::OUString::createFromAscii( OFFICEFACTORY_PROPNAME_ASCII_UINAME ) 257 #define OFFICEFACTORY_PROPNAME_ICON ::rtl::OUString::createFromAscii( OFFICEFACTORY_PROPNAME_ASCII_ICON ) 258 259 //_______________________________________________ 260 /** properties for tab window (old) */ 261 #define TABWINDOW_PROPNAME_ASCII_PARENTWINDOW "ParentWindow" 262 #define TABWINDOW_PROPNAME_ASCII_TOPWINDOW "TopWindow" 263 #define TABWINDOW_PROPNAME_PARENTWINDOW ::rtl::OUString::createFromAscii( TABWINDOW_PROPNAME_ASCII_PARENTWINDOW ) 264 #define TABWINDOW_PROPNAME_TOPWINDOW ::rtl::OUString::createFromAscii( TABWINDOW_PROPNAME_ASCII_TOPWINDOW ) 265 266 #define TABWINDOW_PROPHANDLE_PARENTWINDOW 0 267 #define TABWINDOW_PROPHANDLE_TOPWINDOW 1 268 #define TABWINDOW_PROPCOUNT 2 269 270 //_______________________________________________ 271 /** properties for tab window service (new) */ 272 #define TABWINDOWSERVICE_PROPNAME_ASCII_WINDOW "Window" 273 #define TABWINDOWSERVICE_PROPNAME_WINDOW ::rtl::OUString::createFromAscii( TABWINDOWSERVICE_PROPNAME_ASCII_WINDOW ) 274 275 #define TABWINDOWSERVICE_PROPHANDLE_WINDOW 0 276 #define TABWINDOWSERVICE_PROPCOUNT 1 277 278 //_______________________________________________ 279 /** properties of tabreg service */ 280 static const char* TABREG_PROPNAME_ASCII_TITLE = "title"; 281 282 static const ::rtl::OUString TABREG_PROPNAME_TITLE = ::rtl::OUString::createFromAscii(TABREG_PROPNAME_ASCII_TITLE); 283 284 //_______________________________________________ 285 /** properties of controller service */ 286 static const char* CONTROLLER_PROPNAME_ASCII_ICONID = "IconId"; 287 288 static const ::rtl::OUString CONTROLLER_PROPNAME_ICONID = ::rtl::OUString::createFromAscii(CONTROLLER_PROPNAME_ASCII_ICONID); 289 290 //_______________________________________________ 291 /** provides some helper methods to implement property sets. */ 292 293 class PropHelper 294 { 295 public: 296 297 //___________________________________________ 298 299 /** checks if given property will be changed by this settings. 300 * We compare the content of the given any values. If they are different we return sal_True - sal_False otherwise. 301 * 302 * @param aCurrentValue contains the current value for this property 303 * @param aNewValue contains the new value for this property 304 * @param aOldValue returns the current value, in case somthing will be changed 305 * @param aChangedValue returns the new value, in case somthing will be changed 306 * 307 * @return <True/> if value of this property will be changed; <False/> otherwise. 308 */ 309 willPropertyBeChanged(const css::uno::Any & aCurrentValue,const css::uno::Any & aNewValue,css::uno::Any & aOldValue,css::uno::Any & aChangedValue)310 static sal_Bool willPropertyBeChanged( const css::uno::Any& aCurrentValue , 311 const css::uno::Any& aNewValue , 312 css::uno::Any& aOldValue , 313 css::uno::Any& aChangedValue ) 314 { 315 sal_Bool bChanged = sal_False; 316 317 // clear return parameter to be sure, to put out only valid values ... 318 aOldValue.clear(); 319 aChangedValue.clear(); 320 321 // if value change ... 322 bChanged = !(aCurrentValue==aNewValue); 323 if (bChanged) 324 { 325 // ... set information of change. 326 aOldValue = aCurrentValue; 327 aChangedValue = aNewValue ; 328 } 329 330 return bChanged; 331 } 332 }; 333 334 } // namespace framework 335 336 #endif // #ifndef __FRAMEWORK_PROPERTIES_H_ 337