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