1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 29*cdf0e10cSrcweir #include "precompiled_toolkit.hxx" 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir #include <toolkit/helper/property.hxx> 33*cdf0e10cSrcweir #include <toolkit/helper/macros.hxx> 34*cdf0e10cSrcweir #include <osl/mutex.hxx> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir #include <stdlib.h> // qsort/bsearch 37*cdf0e10cSrcweir #include <tools/debug.hxx> 38*cdf0e10cSrcweir #include <com/sun/star/awt/FontWeight.hpp> 39*cdf0e10cSrcweir #include <com/sun/star/awt/FontSlant.hpp> 40*cdf0e10cSrcweir #include <com/sun/star/awt/CharSet.hpp> 41*cdf0e10cSrcweir #include <com/sun/star/awt/FontDescriptor.hpp> 42*cdf0e10cSrcweir #include <com/sun/star/awt/FontWidth.hpp> 43*cdf0e10cSrcweir #include <com/sun/star/awt/FontType.hpp> 44*cdf0e10cSrcweir #include <com/sun/star/awt/FontUnderline.hpp> 45*cdf0e10cSrcweir #include <com/sun/star/awt/FontStrikeout.hpp> 46*cdf0e10cSrcweir #include <com/sun/star/awt/FontPitch.hpp> 47*cdf0e10cSrcweir #include <com/sun/star/awt/XDevice.hpp> 48*cdf0e10cSrcweir #include <com/sun/star/awt/tree/XTreeDataModel.hpp> 49*cdf0e10cSrcweir #include <com/sun/star/awt/grid/XGridDataModel.hpp> 50*cdf0e10cSrcweir #include <com/sun/star/awt/grid/XGridColumnModel.hpp> 51*cdf0e10cSrcweir #include <com/sun/star/view/SelectionType.hpp> 52*cdf0e10cSrcweir #include <com/sun/star/style/VerticalAlignment.hpp> 53*cdf0e10cSrcweir #include <com/sun/star/util/XNumberFormatsSupplier.hpp> 54*cdf0e10cSrcweir #include <com/sun/star/beans/PropertyAttribute.hpp> 55*cdf0e10cSrcweir #include <com/sun/star/graphic/XGraphic.hpp> 56*cdf0e10cSrcweir #include <com/sun/star/resource/XStringResourceResolver.hpp> 57*cdf0e10cSrcweir #include <comphelper/types.hxx> 58*cdf0e10cSrcweir #include <functional> 59*cdf0e10cSrcweir #include <algorithm> 60*cdf0e10cSrcweir #include <toolkit/helper/property.hxx> 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir using ::com::sun::star::uno::Any; 63*cdf0e10cSrcweir using ::com::sun::star::uno::Sequence; 64*cdf0e10cSrcweir using ::com::sun::star::uno::Reference; 65*cdf0e10cSrcweir using ::com::sun::star::awt::XDevice; 66*cdf0e10cSrcweir using ::com::sun::star::awt::FontDescriptor; 67*cdf0e10cSrcweir using ::com::sun::star::style::VerticalAlignment; 68*cdf0e10cSrcweir using ::com::sun::star::graphic::XGraphic; 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir struct ImplPropertyInfo 71*cdf0e10cSrcweir { 72*cdf0e10cSrcweir ::rtl::OUString aName; 73*cdf0e10cSrcweir sal_uInt16 nPropId; 74*cdf0e10cSrcweir ::com::sun::star::uno::Type aType; 75*cdf0e10cSrcweir sal_Int16 nAttribs; 76*cdf0e10cSrcweir sal_Bool bDependsOnOthers; // eg. VALUE depends on MIN/MAX and must be set after MIN/MAX. 77*cdf0e10cSrcweir 78*cdf0e10cSrcweir ImplPropertyInfo() 79*cdf0e10cSrcweir { 80*cdf0e10cSrcweir nPropId = 0; 81*cdf0e10cSrcweir nAttribs = 0; 82*cdf0e10cSrcweir bDependsOnOthers = sal_False; 83*cdf0e10cSrcweir } 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir ImplPropertyInfo( const sal_Unicode* pName, sal_uInt16 nId, const ::com::sun::star::uno::Type& rType, 86*cdf0e10cSrcweir sal_Int16 nAttrs, sal_Bool bDepends = sal_False ) 87*cdf0e10cSrcweir : aName( pName ) 88*cdf0e10cSrcweir { 89*cdf0e10cSrcweir nPropId = nId; 90*cdf0e10cSrcweir aType = rType; 91*cdf0e10cSrcweir nAttribs = nAttrs; 92*cdf0e10cSrcweir bDependsOnOthers = bDepends; 93*cdf0e10cSrcweir } 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir }; 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir #define DECL_PROP_1( asciiname, id, type, attrib1 ) \ 98*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 ) 99*cdf0e10cSrcweir #define DECL_PROP_2( asciiname, id, type, attrib1, attrib2 ) \ 100*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 ) 101*cdf0e10cSrcweir #define DECL_PROP_3( asciiname, id, type, attrib1, attrib2, attrib3 ) \ 102*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3 ) 103*cdf0e10cSrcweir #define DECL_PROP_4( asciiname, id, type, attrib1, attrib2, attrib3, attrib4 ) \ 104*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3 | ::com::sun::star::beans::PropertyAttribute::attrib4 ) 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir #define DECL_DEP_PROP_1( asciiname, id, type, attrib1 ) \ 107*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1, sal_True ) 108*cdf0e10cSrcweir #define DECL_DEP_PROP_2( asciiname, id, type, attrib1, attrib2 ) \ 109*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2, sal_True ) 110*cdf0e10cSrcweir #define DECL_DEP_PROP_3( asciiname, id, type, attrib1, attrib2, attrib3 ) \ 111*cdf0e10cSrcweir ImplPropertyInfo( ::rtl::OUString::createFromAscii( asciiname ), BASEPROPERTY_##id, ::getCppuType( static_cast< const type* >( NULL ) ), ::com::sun::star::beans::PropertyAttribute::attrib1 | ::com::sun::star::beans::PropertyAttribute::attrib2 | ::com::sun::star::beans::PropertyAttribute::attrib3, sal_True ) 112*cdf0e10cSrcweir 113*cdf0e10cSrcweir ImplPropertyInfo* ImplGetPropertyInfos( sal_uInt16& rElementCount ) 114*cdf0e10cSrcweir { 115*cdf0e10cSrcweir static ImplPropertyInfo* pPropertyInfos = NULL; 116*cdf0e10cSrcweir static sal_uInt16 nElements = 0; 117*cdf0e10cSrcweir if( !pPropertyInfos ) 118*cdf0e10cSrcweir { 119*cdf0e10cSrcweir ::osl::Guard< ::osl::Mutex > aGuard( ::osl::Mutex::getGlobalMutex() ); 120*cdf0e10cSrcweir if( !pPropertyInfos ) 121*cdf0e10cSrcweir { 122*cdf0e10cSrcweir static ImplPropertyInfo __FAR_DATA aImplPropertyInfos [] = 123*cdf0e10cSrcweir { 124*cdf0e10cSrcweir DECL_PROP_2 ( "AccessibleName", ACCESSIBLENAME, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 125*cdf0e10cSrcweir DECL_PROP_3 ( "Align", ALIGN, sal_Int16, BOUND, MAYBEDEFAULT, MAYBEVOID ), 126*cdf0e10cSrcweir DECL_PROP_2 ( "Autocomplete", AUTOCOMPLETE, bool, BOUND, MAYBEDEFAULT ), 127*cdf0e10cSrcweir DECL_PROP_2 ( "AutoHScroll", AUTOHSCROLL, bool, BOUND, MAYBEDEFAULT ), 128*cdf0e10cSrcweir DECL_PROP_1 ( "AutoMnemonics", AUTOMNEMONICS, bool, BOUND ), 129*cdf0e10cSrcweir DECL_PROP_2 ( "AutoToggle", AUTOTOGGLE, bool, BOUND, MAYBEDEFAULT ), 130*cdf0e10cSrcweir DECL_PROP_2 ( "AutoVScroll", AUTOVSCROLL, bool, BOUND, MAYBEDEFAULT ), 131*cdf0e10cSrcweir DECL_PROP_3 ( "BackgroundColor", BACKGROUNDCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 132*cdf0e10cSrcweir DECL_DEP_PROP_2 ( "BlockIncrement", BLOCKINCREMENT, sal_Int32, BOUND, MAYBEDEFAULT ), 133*cdf0e10cSrcweir DECL_PROP_3 ( "Border", BORDER, sal_Int16, BOUND, MAYBEDEFAULT, MAYBEVOID ), 134*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "BorderColor", BORDERCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 135*cdf0e10cSrcweir DECL_PROP_2 ( "Closeable", CLOSEABLE, bool, BOUND, MAYBEDEFAULT ), 136*cdf0e10cSrcweir DECL_PROP_2 ( "CurrencySymbol", CURRENCYSYMBOL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 137*cdf0e10cSrcweir DECL_PROP_2 ( "CustomUnitText", CUSTOMUNITTEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 138*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "Date", DATE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 139*cdf0e10cSrcweir DECL_PROP_2 ( "DateFormat", EXTDATEFORMAT, sal_Int16, BOUND, MAYBEDEFAULT ), 140*cdf0e10cSrcweir DECL_PROP_2 ( "DateMax", DATEMAX, sal_Int32, BOUND, MAYBEDEFAULT ), 141*cdf0e10cSrcweir DECL_PROP_2 ( "DateMin", DATEMIN, sal_Int32, BOUND, MAYBEDEFAULT ), 142*cdf0e10cSrcweir DECL_PROP_3 ( "DateShowCentury", DATESHOWCENTURY, bool, BOUND, MAYBEDEFAULT, MAYBEVOID ), 143*cdf0e10cSrcweir DECL_PROP_2 ( "DecimalAccuracy", DECIMALACCURACY, sal_Int16, BOUND, MAYBEDEFAULT ), 144*cdf0e10cSrcweir DECL_PROP_2 ( "DefaultButton", DEFAULTBUTTON, bool, BOUND, MAYBEDEFAULT ), 145*cdf0e10cSrcweir DECL_PROP_2 ( "DefaultControl", DEFAULTCONTROL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 146*cdf0e10cSrcweir DECL_PROP_2 ( "DesktopAsParent", DESKTOP_AS_PARENT, bool, BOUND, MAYBEDEFAULT ), 147*cdf0e10cSrcweir DECL_PROP_2 ( "DisplayBackgroundColor", DISPLAYBACKGROUNDCOLOR, sal_Int32, BOUND, MAYBEVOID ), 148*cdf0e10cSrcweir DECL_PROP_2 ( "Dropdown", DROPDOWN, bool, BOUND, MAYBEDEFAULT ), 149*cdf0e10cSrcweir DECL_PROP_2 ( "EchoChar", ECHOCHAR, sal_Int16, BOUND, MAYBEDEFAULT ), 150*cdf0e10cSrcweir DECL_PROP_2 ( "EditMask", EDITMASK, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 151*cdf0e10cSrcweir DECL_PROP_3 ( "EffectiveDefault", EFFECTIVE_DEFAULT, Any, BOUND, MAYBEDEFAULT, MAYBEVOID ), 152*cdf0e10cSrcweir DECL_PROP_3 ( "EffectiveMax", EFFECTIVE_MAX, double, BOUND, MAYBEDEFAULT, MAYBEVOID ), 153*cdf0e10cSrcweir DECL_PROP_3 ( "EffectiveMin", EFFECTIVE_MIN, double, BOUND, MAYBEDEFAULT, MAYBEVOID ), 154*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "EffectiveValue", EFFECTIVE_VALUE, Any, BOUND, MAYBEDEFAULT, MAYBEVOID ), 155*cdf0e10cSrcweir DECL_PROP_2 ( "Enabled", ENABLED, bool, BOUND, MAYBEDEFAULT ), 156*cdf0e10cSrcweir DECL_PROP_2 ( "EnforceFormat", ENFORCE_FORMAT, bool, BOUND, MAYBEDEFAULT ), 157*cdf0e10cSrcweir DECL_PROP_3 ( "FillColor", FILLCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 158*cdf0e10cSrcweir DECL_PROP_2 ( "FocusOnClick", FOCUSONCLICK, bool, BOUND, MAYBEDEFAULT ), 159*cdf0e10cSrcweir DECL_PROP_2 ( "FontRelief", FONTRELIEF, sal_Int16, BOUND, MAYBEDEFAULT ), 160*cdf0e10cSrcweir DECL_PROP_2 ( "FontEmphasisMark", FONTEMPHASISMARK, sal_Int16, BOUND, MAYBEDEFAULT ), 161*cdf0e10cSrcweir DECL_PROP_2 ( "FontDescriptor", FONTDESCRIPTOR, FontDescriptor, BOUND, MAYBEDEFAULT ), 162*cdf0e10cSrcweir 163*cdf0e10cSrcweir // Teile des ::com::sun::star::awt::FontDescriptor 164*cdf0e10cSrcweir DECL_PROP_2 ( "FontName", FONTDESCRIPTORPART_NAME, ::rtl::OUString,BOUND, MAYBEDEFAULT ), 165*cdf0e10cSrcweir DECL_PROP_2 ( "FontStyleName", FONTDESCRIPTORPART_STYLENAME, ::rtl::OUString,BOUND, MAYBEDEFAULT ), 166*cdf0e10cSrcweir DECL_PROP_2 ( "FontFamily", FONTDESCRIPTORPART_FAMILY, sal_Int16, BOUND, MAYBEDEFAULT ), 167*cdf0e10cSrcweir DECL_PROP_2 ( "FontCharset", FONTDESCRIPTORPART_CHARSET, sal_Int16, BOUND, MAYBEDEFAULT ), 168*cdf0e10cSrcweir DECL_PROP_2 ( "FontHeight", FONTDESCRIPTORPART_HEIGHT, float, BOUND, MAYBEDEFAULT ), 169*cdf0e10cSrcweir DECL_PROP_2 ( "FontWidth", FONTDESCRIPTORPART_WIDTH, sal_Int16, BOUND, MAYBEDEFAULT ), 170*cdf0e10cSrcweir DECL_PROP_2 ( "FontPitch", FONTDESCRIPTORPART_PITCH, sal_Int16, BOUND, MAYBEDEFAULT ), 171*cdf0e10cSrcweir DECL_PROP_2 ( "FontWeight", FONTDESCRIPTORPART_WEIGHT, float, BOUND, MAYBEDEFAULT ), 172*cdf0e10cSrcweir DECL_PROP_2 ( "FontCharWidth", FONTDESCRIPTORPART_CHARWIDTH, float, BOUND, MAYBEDEFAULT ), 173*cdf0e10cSrcweir DECL_PROP_2 ( "FontOrientation", FONTDESCRIPTORPART_ORIENTATION, float, BOUND, MAYBEDEFAULT ), 174*cdf0e10cSrcweir DECL_PROP_2 ( "FontSlant", FONTDESCRIPTORPART_SLANT, sal_Int16, BOUND, MAYBEDEFAULT ), 175*cdf0e10cSrcweir DECL_PROP_2 ( "FontUnderline", FONTDESCRIPTORPART_UNDERLINE, sal_Int16, BOUND, MAYBEDEFAULT ), 176*cdf0e10cSrcweir DECL_PROP_2 ( "FontStrikeout", FONTDESCRIPTORPART_STRIKEOUT, sal_Int16, BOUND, MAYBEDEFAULT ), 177*cdf0e10cSrcweir DECL_PROP_2 ( "FontKerning", FONTDESCRIPTORPART_KERNING, bool, BOUND, MAYBEDEFAULT ), 178*cdf0e10cSrcweir DECL_PROP_2 ( "FontWordLineMode", FONTDESCRIPTORPART_WORDLINEMODE, bool, BOUND, MAYBEDEFAULT ), 179*cdf0e10cSrcweir DECL_PROP_2 ( "FontType", FONTDESCRIPTORPART_TYPE, sal_Int16, BOUND, MAYBEDEFAULT ), 180*cdf0e10cSrcweir 181*cdf0e10cSrcweir DECL_PROP_3 ( "FormatKey", FORMATKEY, sal_Int32, BOUND, MAYBEVOID, TRANSIENT ), 182*cdf0e10cSrcweir DECL_PROP_3 ( "FormatsSupplier", FORMATSSUPPLIER, Reference< ::com::sun::star::util::XNumberFormatsSupplier >, BOUND, MAYBEVOID, TRANSIENT ), 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir DECL_PROP_2 ( "Graphic", GRAPHIC, Reference< XGraphic >, BOUND, TRANSIENT ), 185*cdf0e10cSrcweir DECL_PROP_2 ( "HelpText", HELPTEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 186*cdf0e10cSrcweir DECL_PROP_2 ( "HelpURL", HELPURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 187*cdf0e10cSrcweir DECL_PROP_2 ( "HideInactiveSelection", HIDEINACTIVESELECTION, bool, BOUND, MAYBEDEFAULT ), 188*cdf0e10cSrcweir DECL_PROP_2 ( "HighContrastMode", HIGHCONTRASTMODE, bool, BOUND, MAYBEDEFAULT ), 189*cdf0e10cSrcweir DECL_PROP_2 ( "HScroll", HSCROLL, bool, BOUND, MAYBEDEFAULT ), 190*cdf0e10cSrcweir DECL_PROP_2 ( "HardLineBreaks", HARDLINEBREAKS, bool, BOUND, MAYBEDEFAULT ), 191*cdf0e10cSrcweir DECL_PROP_2 ( "ImageAlign", IMAGEALIGN, sal_Int16, BOUND, MAYBEDEFAULT), 192*cdf0e10cSrcweir DECL_PROP_2 ( "ImagePosition", IMAGEPOSITION, sal_Int16, BOUND, MAYBEDEFAULT), 193*cdf0e10cSrcweir DECL_PROP_2 ( "ImageURL", IMAGEURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 194*cdf0e10cSrcweir DECL_PROP_3 ( "ItemSeparatorPos", ITEM_SEPARATOR_POS, sal_Int16, BOUND, MAYBEDEFAULT, MAYBEVOID ), 195*cdf0e10cSrcweir DECL_PROP_2 ( "Label", LABEL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 196*cdf0e10cSrcweir DECL_PROP_3 ( "LineColor", LINECOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 197*cdf0e10cSrcweir DECL_PROP_2 ( "LineCount", LINECOUNT, sal_Int16, BOUND, MAYBEDEFAULT ), 198*cdf0e10cSrcweir DECL_PROP_2 ( "LineEndFormat", LINE_END_FORMAT, sal_Int16, BOUND, MAYBEDEFAULT ), 199*cdf0e10cSrcweir DECL_DEP_PROP_2 ( "LineIncrement", LINEINCREMENT, sal_Int32, BOUND, MAYBEDEFAULT ), 200*cdf0e10cSrcweir DECL_PROP_2 ( "LiteralMask", LITERALMASK, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 201*cdf0e10cSrcweir DECL_PROP_2 ( "LiveScroll", LIVE_SCROLL, bool, BOUND, MAYBEDEFAULT ), 202*cdf0e10cSrcweir DECL_PROP_2 ( "MaxTextLen", MAXTEXTLEN, sal_Int16, BOUND, MAYBEDEFAULT ), 203*cdf0e10cSrcweir DECL_PROP_2 ( "Moveable", MOVEABLE, bool, BOUND, MAYBEDEFAULT ), 204*cdf0e10cSrcweir DECL_PROP_1 ( "MouseTransparent", MOUSETRANSPARENT, bool, BOUND ), 205*cdf0e10cSrcweir DECL_PROP_2 ( "MultiLine", MULTILINE, bool, BOUND, MAYBEDEFAULT ), 206*cdf0e10cSrcweir DECL_PROP_2 ( "MultiSelection", MULTISELECTION, bool, BOUND, MAYBEDEFAULT ), 207*cdf0e10cSrcweir DECL_PROP_2 ( "MultiSelectionSimpleMode", MULTISELECTION_SIMPLEMODE, bool, BOUND, MAYBEDEFAULT ), 208*cdf0e10cSrcweir DECL_PROP_2 ( "NativeWidgetLook", NATIVE_WIDGET_LOOK, bool, BOUND, MAYBEDEFAULT ), 209*cdf0e10cSrcweir DECL_PROP_2 ( "NoLabel", NOLABEL, bool, BOUND, MAYBEDEFAULT ), 210*cdf0e10cSrcweir DECL_PROP_2 ( "Orientation", ORIENTATION, sal_Int32, BOUND, MAYBEDEFAULT ), 211*cdf0e10cSrcweir DECL_PROP_2 ( "PaintTransparent", PAINTTRANSPARENT, bool, BOUND, MAYBEDEFAULT ), 212*cdf0e10cSrcweir DECL_PROP_2 ( "PluginParent", PLUGINPARENT, sal_Int64, BOUND, MAYBEDEFAULT ), 213*cdf0e10cSrcweir DECL_PROP_2 ( "PrependCurrencySymbol", CURSYM_POSITION, bool, BOUND, MAYBEDEFAULT ), 214*cdf0e10cSrcweir DECL_PROP_2 ( "Printable", PRINTABLE, bool, BOUND, MAYBEDEFAULT ), 215*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "ProgressValue", PROGRESSVALUE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 216*cdf0e10cSrcweir DECL_PROP_2 ( "ProgressValueMax", PROGRESSVALUE_MAX, sal_Int32, BOUND, MAYBEDEFAULT ), 217*cdf0e10cSrcweir DECL_PROP_2 ( "ProgressValueMin", PROGRESSVALUE_MIN, sal_Int32, BOUND, MAYBEDEFAULT ), 218*cdf0e10cSrcweir DECL_PROP_2 ( "PushButtonType", PUSHBUTTONTYPE, sal_Int16, BOUND, MAYBEDEFAULT), 219*cdf0e10cSrcweir DECL_PROP_2 ( "ReadOnly", READONLY, bool, BOUND, MAYBEDEFAULT ), 220*cdf0e10cSrcweir DECL_PROP_2 ( "Repeat", REPEAT, bool, BOUND, MAYBEDEFAULT ), 221*cdf0e10cSrcweir DECL_PROP_2 ( "AutoRepeat", AUTO_REPEAT, sal_Bool, BOUND, MAYBEDEFAULT ), 222*cdf0e10cSrcweir DECL_PROP_2 ( "RepeatDelay", REPEAT_DELAY, sal_Int32, BOUND, MAYBEDEFAULT ), 223*cdf0e10cSrcweir DECL_PROP_2 ( "ScaleImage", SCALEIMAGE, bool, BOUND, MAYBEDEFAULT ), 224*cdf0e10cSrcweir DECL_PROP_2 ( "ScaleMode", IMAGE_SCALE_MODE, sal_Int16, BOUND, MAYBEDEFAULT ), 225*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "ScrollValue", SCROLLVALUE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 226*cdf0e10cSrcweir DECL_PROP_2 ( "ScrollValueMax", SCROLLVALUE_MAX, sal_Int32, BOUND, MAYBEDEFAULT ), 227*cdf0e10cSrcweir DECL_PROP_2 ( "ScrollValueMin", SCROLLVALUE_MIN, sal_Int32, BOUND, MAYBEDEFAULT ), 228*cdf0e10cSrcweir DECL_DEP_PROP_2 ( "SelectedItems", SELECTEDITEMS, Sequence<sal_Int16>, BOUND, MAYBEDEFAULT ), 229*cdf0e10cSrcweir DECL_PROP_2 ( "ShowThousandsSeparator", NUMSHOWTHOUSANDSEP, bool, BOUND, MAYBEDEFAULT ), 230*cdf0e10cSrcweir DECL_PROP_2 ( "Sizeable", SIZEABLE, bool, BOUND, MAYBEDEFAULT ), 231*cdf0e10cSrcweir DECL_PROP_2 ( "Spin", SPIN, bool, BOUND, MAYBEDEFAULT ), 232*cdf0e10cSrcweir DECL_PROP_2 ( "SpinIncrement", SPININCREMENT, sal_Int32, BOUND, MAYBEDEFAULT ), 233*cdf0e10cSrcweir DECL_DEP_PROP_2 ( "SpinValue", SPINVALUE, sal_Int32, BOUND, MAYBEDEFAULT ), 234*cdf0e10cSrcweir DECL_PROP_2 ( "SpinValueMax", SPINVALUE_MAX, sal_Int32, BOUND, MAYBEDEFAULT ), 235*cdf0e10cSrcweir DECL_PROP_2 ( "SpinValueMin", SPINVALUE_MIN, sal_Int32, BOUND, MAYBEDEFAULT ), 236*cdf0e10cSrcweir DECL_DEP_PROP_2 ( "State", STATE, sal_Int16, BOUND, MAYBEDEFAULT ), 237*cdf0e10cSrcweir DECL_PROP_2 ( "StrictFormat", STRICTFORMAT, bool, BOUND, MAYBEDEFAULT ), 238*cdf0e10cSrcweir DECL_PROP_2 ( "StringItemList", STRINGITEMLIST, Sequence< ::rtl::OUString >, BOUND, MAYBEDEFAULT ), 239*cdf0e10cSrcweir DECL_PROP_2 ( "VisualEffect", VISUALEFFECT, sal_Int16, BOUND, MAYBEDEFAULT ), 240*cdf0e10cSrcweir DECL_PROP_3 ( "SymbolColor", SYMBOL_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 241*cdf0e10cSrcweir DECL_PROP_3 ( "Tabstop", TABSTOP, bool, BOUND, MAYBEDEFAULT, MAYBEVOID ), 242*cdf0e10cSrcweir DECL_PROP_2 ( "Text", TEXT, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 243*cdf0e10cSrcweir DECL_PROP_3 ( "TextColor", TEXTCOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 244*cdf0e10cSrcweir DECL_PROP_3 ( "TextLineColor", TEXTLINECOLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 245*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "Time", TIME, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 246*cdf0e10cSrcweir DECL_PROP_2 ( "TimeFormat", EXTTIMEFORMAT, sal_Int16, BOUND, MAYBEDEFAULT ), 247*cdf0e10cSrcweir DECL_PROP_2 ( "TimeMax", TIMEMAX, sal_Int32, BOUND, MAYBEDEFAULT ), 248*cdf0e10cSrcweir DECL_PROP_2 ( "TimeMin", TIMEMIN, sal_Int32, BOUND, MAYBEDEFAULT ), 249*cdf0e10cSrcweir DECL_PROP_2 ( "Title", TITLE, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 250*cdf0e10cSrcweir DECL_PROP_2 ( "Toggle", TOGGLE, bool, BOUND, MAYBEDEFAULT ), 251*cdf0e10cSrcweir DECL_PROP_3 ( "TreatAsNumber", TREATASNUMBER, bool, BOUND, MAYBEDEFAULT,TRANSIENT ), 252*cdf0e10cSrcweir DECL_PROP_2 ( "TriState", TRISTATE, bool, BOUND, MAYBEDEFAULT ), 253*cdf0e10cSrcweir DECL_PROP_2 ( "Unit", UNIT, sal_Int16, BOUND, MAYBEDEFAULT ), 254*cdf0e10cSrcweir DECL_PROP_2 ( "VScroll", VSCROLL, bool, BOUND, MAYBEDEFAULT ), 255*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "Value", VALUE_DOUBLE, double, BOUND, MAYBEDEFAULT, MAYBEVOID ), 256*cdf0e10cSrcweir DECL_PROP_2 ( "ValueMax", VALUEMAX_DOUBLE, double, BOUND, MAYBEDEFAULT ), 257*cdf0e10cSrcweir DECL_PROP_2 ( "ValueMin", VALUEMIN_DOUBLE, double, BOUND, MAYBEDEFAULT ), 258*cdf0e10cSrcweir DECL_PROP_2 ( "ValueStep", VALUESTEP_DOUBLE, double, BOUND, MAYBEDEFAULT ), 259*cdf0e10cSrcweir DECL_PROP_3 ( "VerticalAlign", VERTICALALIGN, VerticalAlignment, BOUND, MAYBEDEFAULT, MAYBEVOID ), 260*cdf0e10cSrcweir DECL_DEP_PROP_3 ( "VisibleSize", VISIBLESIZE, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 261*cdf0e10cSrcweir DECL_PROP_2 ( "Activated", ACTIVATED, sal_Bool, BOUND, MAYBEDEFAULT ), 262*cdf0e10cSrcweir DECL_PROP_2 ( "Complete", COMPLETE, sal_Bool, BOUND, MAYBEDEFAULT ), 263*cdf0e10cSrcweir DECL_PROP_2 ( "CurrentItemID", CURRENTITEMID, sal_Int16, BOUND, MAYBEDEFAULT ), 264*cdf0e10cSrcweir 265*cdf0e10cSrcweir DECL_PROP_2 ( "MouseWheelBehavior", MOUSE_WHEEL_BEHAVIOUR, sal_Int16, BOUND, MAYBEDEFAULT ), 266*cdf0e10cSrcweir DECL_PROP_2 ( "StepTime", STEP_TIME, sal_Int32, BOUND, MAYBEDEFAULT ), 267*cdf0e10cSrcweir DECL_PROP_2 ( "Decoration", DECORATION, sal_Bool, BOUND, MAYBEDEFAULT ), 268*cdf0e10cSrcweir 269*cdf0e10cSrcweir DECL_PROP_2 ( "SelectionType", TREE_SELECTIONTYPE, ::com::sun::star::view::SelectionType, BOUND, MAYBEDEFAULT ), 270*cdf0e10cSrcweir DECL_PROP_2 ( "Editable", TREE_EDITABLE, sal_Bool, BOUND, MAYBEDEFAULT ), 271*cdf0e10cSrcweir DECL_PROP_3 ( "DataModel", TREE_DATAMODEL, Reference< ::com::sun::star::awt::tree::XTreeDataModel >, BOUND, MAYBEDEFAULT, MAYBEVOID ), 272*cdf0e10cSrcweir DECL_PROP_2 ( "RootDisplayed", TREE_ROOTDISPLAYED, sal_Bool, BOUND, MAYBEDEFAULT ), 273*cdf0e10cSrcweir DECL_PROP_2 ( "ShowsHandles", TREE_SHOWSHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ), 274*cdf0e10cSrcweir DECL_PROP_2 ( "ShowsRootHandles", TREE_SHOWSROOTHANDLES, sal_Bool, BOUND, MAYBEDEFAULT ), 275*cdf0e10cSrcweir DECL_PROP_3 ( "RowHeight", ROW_HEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 276*cdf0e10cSrcweir DECL_PROP_2 ( "InvokesStopNodeEditing", TREE_INVOKESSTOPNODEEDITING, sal_Bool, BOUND, MAYBEDEFAULT ), 277*cdf0e10cSrcweir DECL_PROP_2 ( "DialogSourceURL", DIALOGSOURCEURL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 278*cdf0e10cSrcweir DECL_PROP_2 ( "URL", URL, ::rtl::OUString, BOUND, MAYBEDEFAULT ), 279*cdf0e10cSrcweir DECL_PROP_2 ( "WritingMode", WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT ), 280*cdf0e10cSrcweir DECL_PROP_3 ( "ContextWritingMode", CONTEXT_WRITING_MODE, sal_Int16, BOUND, MAYBEDEFAULT, TRANSIENT ), 281*cdf0e10cSrcweir DECL_PROP_2 ( "ShowRowHeader", GRID_SHOWROWHEADER, sal_Bool, BOUND, MAYBEDEFAULT ), 282*cdf0e10cSrcweir DECL_PROP_2 ( "RowHeaderWidth", ROW_HEADER_WIDTH, sal_Int32, BOUND, MAYBEDEFAULT ), 283*cdf0e10cSrcweir DECL_PROP_2 ( "ShowColumnHeader", GRID_SHOWCOLUMNHEADER, sal_Bool, BOUND, MAYBEDEFAULT ), 284*cdf0e10cSrcweir DECL_PROP_3 ( "ColumnHeaderHeight", COLUMN_HEADER_HEIGHT, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 285*cdf0e10cSrcweir DECL_PROP_1 ( "GridDataModel", GRID_DATAMODEL, Reference< ::com::sun::star::awt::grid::XGridDataModel >, BOUND ), 286*cdf0e10cSrcweir DECL_PROP_1 ( "ColumnModel", GRID_COLUMNMODEL, Reference< ::com::sun::star::awt::grid::XGridColumnModel >, BOUND ), 287*cdf0e10cSrcweir DECL_PROP_3 ( "SelectionModel", GRID_SELECTIONMODE, ::com::sun::star::view::SelectionType, BOUND, MAYBEDEFAULT, MAYBEVOID ), 288*cdf0e10cSrcweir DECL_PROP_2 ( "EnableVisible", ENABLEVISIBLE, sal_Bool, BOUND, MAYBEDEFAULT ), 289*cdf0e10cSrcweir DECL_PROP_3 ( "ReferenceDevice", REFERENCE_DEVICE, Reference< XDevice >,BOUND, MAYBEDEFAULT, TRANSIENT ), 290*cdf0e10cSrcweir DECL_PROP_3 ( "HeaderBackgroundColor", GRID_HEADER_BACKGROUND, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 291*cdf0e10cSrcweir DECL_PROP_3 ( "HeaderTextColor", GRID_HEADER_TEXT_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 292*cdf0e10cSrcweir DECL_PROP_3 ( "GridLineColor", GRID_LINE_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 293*cdf0e10cSrcweir DECL_PROP_3 ( "RowBackgroundColors", GRID_ROW_BACKGROUND_COLORS, Sequence< sal_Int32 >, BOUND, MAYBEDEFAULT, MAYBEVOID ), 294*cdf0e10cSrcweir DECL_PROP_2 ( "UseGridLines", USE_GRID_LINES, sal_Bool, BOUND, MAYBEDEFAULT ), 295*cdf0e10cSrcweir DECL_PROP_3 ( "ActiveSelectionBackgroundColor", ACTIVE_SEL_BACKGROUND_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 296*cdf0e10cSrcweir DECL_PROP_3 ( "InactiveSelectionBackgroundColor", INACTIVE_SEL_BACKGROUND_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 297*cdf0e10cSrcweir DECL_PROP_3 ( "ActiveSelectionTextColor", ACTIVE_SEL_TEXT_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 298*cdf0e10cSrcweir DECL_PROP_3 ( "InactiveSelectionTextColor", INACTIVE_SEL_TEXT_COLOR, sal_Int32, BOUND, MAYBEDEFAULT, MAYBEVOID ), 299*cdf0e10cSrcweir }; 300*cdf0e10cSrcweir pPropertyInfos = aImplPropertyInfos; 301*cdf0e10cSrcweir nElements = sizeof( aImplPropertyInfos ) / sizeof( ImplPropertyInfo ); 302*cdf0e10cSrcweir } 303*cdf0e10cSrcweir } 304*cdf0e10cSrcweir rElementCount = nElements; 305*cdf0e10cSrcweir return pPropertyInfos; 306*cdf0e10cSrcweir } 307*cdf0e10cSrcweir 308*cdf0e10cSrcweir 309*cdf0e10cSrcweir struct ImplPropertyInfoCompareFunctor : ::std::binary_function<ImplPropertyInfo,::rtl::OUString,bool> 310*cdf0e10cSrcweir { 311*cdf0e10cSrcweir inline bool operator()(const ImplPropertyInfo& lhs,const ImplPropertyInfo& rhs) const 312*cdf0e10cSrcweir { 313*cdf0e10cSrcweir return lhs.aName.compareTo(rhs.aName) < 0; 314*cdf0e10cSrcweir } 315*cdf0e10cSrcweir inline bool operator()(const ImplPropertyInfo& lhs,const ::rtl::OUString& rhs) const 316*cdf0e10cSrcweir { 317*cdf0e10cSrcweir return lhs.aName.compareTo(rhs) < 0; 318*cdf0e10cSrcweir } 319*cdf0e10cSrcweir inline bool operator()(const ::rtl::OUString& lhs,const ImplPropertyInfo& rhs) const 320*cdf0e10cSrcweir { 321*cdf0e10cSrcweir return lhs.compareTo(rhs.aName) < 0; 322*cdf0e10cSrcweir } 323*cdf0e10cSrcweir }; 324*cdf0e10cSrcweir 325*cdf0e10cSrcweir void ImplAssertValidPropertyArray() 326*cdf0e10cSrcweir { 327*cdf0e10cSrcweir static sal_Bool bSorted = sal_False; 328*cdf0e10cSrcweir if( !bSorted ) 329*cdf0e10cSrcweir { 330*cdf0e10cSrcweir sal_uInt16 nElements; 331*cdf0e10cSrcweir ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); 332*cdf0e10cSrcweir ::std::sort(pInfos, pInfos+nElements,ImplPropertyInfoCompareFunctor()); 333*cdf0e10cSrcweir bSorted = sal_True; 334*cdf0e10cSrcweir } 335*cdf0e10cSrcweir } 336*cdf0e10cSrcweir 337*cdf0e10cSrcweir sal_uInt16 GetPropertyId( const ::rtl::OUString& rPropertyName ) 338*cdf0e10cSrcweir { 339*cdf0e10cSrcweir ImplAssertValidPropertyArray(); 340*cdf0e10cSrcweir 341*cdf0e10cSrcweir sal_uInt16 nElements; 342*cdf0e10cSrcweir ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); 343*cdf0e10cSrcweir ImplPropertyInfo* pInf = ::std::lower_bound(pInfos,pInfos+nElements,rPropertyName,ImplPropertyInfoCompareFunctor()); 344*cdf0e10cSrcweir /* 345*cdf0e10cSrcweir (ImplPropertyInfo*) 346*cdf0e10cSrcweir bsearch( &aSearch, pInfos, nElements, sizeof( ImplPropertyInfo ), ImplPropertyInfoCompare ); 347*cdf0e10cSrcweir */ 348*cdf0e10cSrcweir 349*cdf0e10cSrcweir return ( pInf && pInf != (pInfos+nElements) && pInf->aName == rPropertyName) ? pInf->nPropId: 0; 350*cdf0e10cSrcweir } 351*cdf0e10cSrcweir 352*cdf0e10cSrcweir const ImplPropertyInfo* ImplGetImplPropertyInfo( sal_uInt16 nPropertyId ) 353*cdf0e10cSrcweir { 354*cdf0e10cSrcweir ImplAssertValidPropertyArray(); 355*cdf0e10cSrcweir 356*cdf0e10cSrcweir sal_uInt16 nElements; 357*cdf0e10cSrcweir ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); 358*cdf0e10cSrcweir sal_uInt16 n; 359*cdf0e10cSrcweir for ( n = 0; n < nElements && pInfos[n].nPropId != nPropertyId; ++n) 360*cdf0e10cSrcweir ; 361*cdf0e10cSrcweir 362*cdf0e10cSrcweir return (n < nElements) ? &pInfos[n] : NULL; 363*cdf0e10cSrcweir } 364*cdf0e10cSrcweir 365*cdf0e10cSrcweir sal_uInt16 GetPropertyOrderNr( sal_uInt16 nPropertyId ) 366*cdf0e10cSrcweir { 367*cdf0e10cSrcweir ImplAssertValidPropertyArray(); 368*cdf0e10cSrcweir 369*cdf0e10cSrcweir sal_uInt16 nElements; 370*cdf0e10cSrcweir ImplPropertyInfo* pInfos = ImplGetPropertyInfos( nElements ); 371*cdf0e10cSrcweir for ( sal_uInt16 n = nElements; n; ) 372*cdf0e10cSrcweir { 373*cdf0e10cSrcweir if ( pInfos[--n].nPropId == nPropertyId ) 374*cdf0e10cSrcweir return n; 375*cdf0e10cSrcweir } 376*cdf0e10cSrcweir return 0xFFFF; 377*cdf0e10cSrcweir } 378*cdf0e10cSrcweir 379*cdf0e10cSrcweir const ::rtl::OUString& GetPropertyName( sal_uInt16 nPropertyId ) 380*cdf0e10cSrcweir { 381*cdf0e10cSrcweir const ImplPropertyInfo* pImplPropertyInfo = ImplGetImplPropertyInfo( nPropertyId ); 382*cdf0e10cSrcweir DBG_ASSERT( pImplPropertyInfo, "Invalid PropertyId!" ); 383*cdf0e10cSrcweir return pImplPropertyInfo->aName; 384*cdf0e10cSrcweir } 385*cdf0e10cSrcweir 386*cdf0e10cSrcweir const ::com::sun::star::uno::Type* GetPropertyType( sal_uInt16 nPropertyId ) 387*cdf0e10cSrcweir { 388*cdf0e10cSrcweir const ImplPropertyInfo* pImplPropertyInfo = ImplGetImplPropertyInfo( nPropertyId ); 389*cdf0e10cSrcweir DBG_ASSERT( pImplPropertyInfo, "Invalid PropertyId!" ); 390*cdf0e10cSrcweir return pImplPropertyInfo ? &pImplPropertyInfo->aType : NULL; 391*cdf0e10cSrcweir } 392*cdf0e10cSrcweir 393*cdf0e10cSrcweir sal_Int16 GetPropertyAttribs( sal_uInt16 nPropertyId ) 394*cdf0e10cSrcweir { 395*cdf0e10cSrcweir const ImplPropertyInfo* pImplPropertyInfo = ImplGetImplPropertyInfo( nPropertyId ); 396*cdf0e10cSrcweir DBG_ASSERT( pImplPropertyInfo, "Invalid PropertyId!" ); 397*cdf0e10cSrcweir return pImplPropertyInfo ? pImplPropertyInfo->nAttribs : 0; 398*cdf0e10cSrcweir } 399*cdf0e10cSrcweir 400*cdf0e10cSrcweir sal_Bool DoesDependOnOthers( sal_uInt16 nPropertyId ) 401*cdf0e10cSrcweir { 402*cdf0e10cSrcweir const ImplPropertyInfo* pImplPropertyInfo = ImplGetImplPropertyInfo( nPropertyId ); 403*cdf0e10cSrcweir DBG_ASSERT( pImplPropertyInfo, "Invalid PropertyId!" ); 404*cdf0e10cSrcweir return pImplPropertyInfo ? pImplPropertyInfo->bDependsOnOthers : sal_False; 405*cdf0e10cSrcweir } 406*cdf0e10cSrcweir 407*cdf0e10cSrcweir sal_Bool CompareProperties( const ::com::sun::star::uno::Any& r1, const ::com::sun::star::uno::Any& r2 ) 408*cdf0e10cSrcweir { 409*cdf0e10cSrcweir return ::comphelper::compare( r1, r2 ); 410*cdf0e10cSrcweir } 411*cdf0e10cSrcweir 412*cdf0e10cSrcweir 413*cdf0e10cSrcweir 414