LibreOffice Module toolkit (master) 1
|
#include <helper/property.hxx>
#include <tools/debug.hxx>
#include <com/sun/star/awt/FontDescriptor.hpp>
#include <com/sun/star/awt/XDevice.hpp>
#include <com/sun/star/awt/tree/XTreeDataModel.hpp>
#include <com/sun/star/awt/grid/XGridDataModel.hpp>
#include <com/sun/star/awt/grid/XGridColumnModel.hpp>
#include <com/sun/star/view/SelectionType.hpp>
#include <com/sun/star/style/VerticalAlignment.hpp>
#include <com/sun/star/util/XNumberFormatsSupplier.hpp>
#include <com/sun/star/util/Date.hpp>
#include <com/sun/star/util/Time.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/graphic/XGraphic.hpp>
#include <com/sun/star/container/XNameContainer.hpp>
#include <algorithm>
#include <string_view>
#include <utility>
#include <unordered_map>
Go to the source code of this file.
Macros | |
#define | DECL_PROP_1(asciiname, id, type, attrib1) { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 ) } |
#define | DECL_PROP_2(asciiname, id, type, attrib1, attrib2) { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2 ) } |
#define | DECL_PROP_3(asciiname, id, type, attrib1, attrib2, attrib3) { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2 | css::beans::PropertyAttribute::attrib3 ) } |
#define | DECL_DEP_PROP_2(asciiname, id, type, attrib1, attrib2) { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2, true ) } |
#define | DECL_DEP_PROP_3(asciiname, id, type, attrib1, attrib2, attrib3) { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2 | css::beans::PropertyAttribute::attrib3, true ) } |
Typedefs | |
typedef std::unordered_map< OUString, ImplPropertyInfo > | ImpPropertyInfoMap |
Functions | |
static const ImpPropertyInfoMap & | ImplGetPropertyInfos () |
sal_uInt16 | GetPropertyId (const OUString &rPropertyName) |
static const ImplPropertyInfo * | ImplGetImplPropertyInfo (sal_uInt16 nPropertyId) |
const OUString & | GetPropertyName (sal_uInt16 nPropertyId) |
const css::uno::Type * | GetPropertyType (sal_uInt16 nPropertyId) |
sal_Int16 | GetPropertyAttribs (sal_uInt16 nPropertyId) |
bool | DoesDependOnOthers (sal_uInt16 nPropertyId) |
bool | CompareProperties (const css::uno::Any &r1, const css::uno::Any &r2) |
#define DECL_DEP_PROP_2 | ( | asciiname, | |
id, | |||
type, | |||
attrib1, | |||
attrib2 | |||
) | { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2, true ) } |
Definition at line 80 of file property.cxx.
#define DECL_DEP_PROP_3 | ( | asciiname, | |
id, | |||
type, | |||
attrib1, | |||
attrib2, | |||
attrib3 | |||
) | { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2 | css::beans::PropertyAttribute::attrib3, true ) } |
Definition at line 82 of file property.cxx.
#define DECL_PROP_1 | ( | asciiname, | |
id, | |||
type, | |||
attrib1 | |||
) | { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 ) } |
Definition at line 73 of file property.cxx.
#define DECL_PROP_2 | ( | asciiname, | |
id, | |||
type, | |||
attrib1, | |||
attrib2 | |||
) | { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2 ) } |
Definition at line 75 of file property.cxx.
#define DECL_PROP_3 | ( | asciiname, | |
id, | |||
type, | |||
attrib1, | |||
attrib2, | |||
attrib3 | |||
) | { asciiname, ImplPropertyInfo( BASEPROPERTY_##id, cppu::UnoType<type>::get(), css::beans::PropertyAttribute::attrib1 | css::beans::PropertyAttribute::attrib2 | css::beans::PropertyAttribute::attrib3 ) } |
Definition at line 77 of file property.cxx.
typedef std::unordered_map<OUString, ImplPropertyInfo> ImpPropertyInfoMap |
Definition at line 85 of file property.cxx.
bool CompareProperties | ( | const css::uno::Any & | r1, |
const css::uno::Any & | r2 | ||
) |
Definition at line 329 of file property.cxx.
Referenced by UnoControlModel::convertFastPropertyValue(), toolkit::UnoControlFormattedFieldModel::convertFastPropertyValue(), OGeometryControlModel_Base::getPropertyStateByHandle(), and UnoControlModel::getPropertyStateImpl().
bool DoesDependOnOthers | ( | sal_uInt16 | nPropertyId | ) |
Definition at line 322 of file property.cxx.
References DBG_ASSERT, ImplGetImplPropertyInfo(), and nPropertyId.
Referenced by UnoControl::ImplModelPropertiesChanged().
sal_Int16 GetPropertyAttribs | ( | sal_uInt16 | nPropertyId | ) |
Definition at line 315 of file property.cxx.
References DBG_ASSERT, ImplGetImplPropertyInfo(), and nPropertyId.
Referenced by UnoPropertyArrayHelper::fillPropertyMembersByHandle(), UnoPropertyArrayHelper::getProperties(), UnoPropertyArrayHelper::getPropertyByName(), UnoControlModel::setFastPropertyValue_NoBroadcast(), and UnoControlModel::write().
sal_uInt16 GetPropertyId | ( | const OUString & | rPropertyName | ) |
Definition at line 278 of file property.cxx.
References ImplGetPropertyInfos().
Referenced by UnoPropertyArrayHelper::fillHandles(), UnoPropertyArrayHelper::getHandleByName(), VCLXWindow::getProperty(), VCLXGraphicControl::getProperty(), VCLXButton::getProperty(), VCLXCheckBox::getProperty(), VCLXRadioButton::getProperty(), VCLXFixedHyperlink::getProperty(), VCLXScrollBar::getProperty(), VCLXEdit::getProperty(), SVTXFormattedField::getProperty(), VCLXListBox::getProperty(), VCLXComboBox::getProperty(), toolkit::AnimatedImagesPeer::getProperty(), toolkit::VCLXSpinButton::getProperty(), VCLXImageControl::getProperty(), VCLXMultiPage::getProperty(), VCLXMultiLineEdit::getProperty(), VCLXProgressBar::getProperty(), VCLXFormattedSpinField::getProperty(), VCLXDateField::getProperty(), VCLXTimeField::getProperty(), VCLXNumericField::getProperty(), VCLXMetricField::getProperty(), VCLXPatternField::getProperty(), SVTXCurrencyField::getProperty(), SVTXGridControl::getProperty(), TreeControlPeer::getProperty(), UnoPropertyArrayHelper::getPropertyByName(), UnoControlModel::getPropertyDefault(), UnoControlModel::getPropertyStateImpl(), UnoPropertyArrayHelper::hasPropertyByName(), UnoControl::ImplModelPropertiesChanged(), UnoPatternFieldControl::ImplSetPeerProperty(), VCLXWindow::setProperty(), VCLXGraphicControl::setProperty(), VCLXButton::setProperty(), VCLXCheckBox::setProperty(), VCLXRadioButton::setProperty(), VCLXFixedHyperlink::setProperty(), VCLXScrollBar::setProperty(), VCLXEdit::setProperty(), SVTXFormattedField::setProperty(), VCLXListBox::setProperty(), VCLXComboBox::setProperty(), toolkit::AnimatedImagesPeer::setProperty(), VCLXContainer::setProperty(), toolkit::VCLXSpinButton::setProperty(), VCLXImageControl::setProperty(), VCLXDialog::setProperty(), VCLXTabPage::setProperty(), VCLXMultiPage::setProperty(), VCLXMultiLineEdit::setProperty(), VCLXProgressBar::setProperty(), VCLXFormattedSpinField::setProperty(), VCLXDateField::setProperty(), VCLXTimeField::setProperty(), VCLXNumericField::setProperty(), VCLXMetricField::setProperty(), VCLXPatternField::setProperty(), VCLXFileControl::setProperty(), SVTXCurrencyField::setProperty(), SVTXDateField::setProperty(), SVTXGridControl::setProperty(), TreeControlPeer::setProperty(), UnoControlModel::setPropertyToDefault(), and toolkit::UnoControlFormattedFieldModel::setPropertyValues().
const OUString & GetPropertyName | ( | sal_uInt16 | nPropertyId | ) |
Definition at line 295 of file property.cxx.
References EMPTY, ImplGetPropertyInfos(), and nPropertyId.
Referenced by UnoMultiPageControl::activated(), UnoMultiPageControl::activateTab(), UnoListBoxControl::addItems(), UnoComboBoxControl::addItems(), toolkit::UnoScrollBarControl::adjustmentValueChanged(), UnoMultiPageControl::bindPage(), UnoControlModel::convertFastPropertyValue(), toolkit::UnoControlFormattedFieldModel::convertFastPropertyValue(), UnoControl::createPeer(), UnoRadioButtonControl::createPeer(), UnoDialogControl::createPeer(), UnoMultiPageControl::createPeer(), UnoCheckBoxControl::enableTriState(), UnoPropertyArrayHelper::fillPropertyMembersByHandle(), UnoFixedHyperlinkControl::getAlignment(), UnoFixedTextControl::getAlignment(), toolkit::AnimatedImagesControlModel::getAutoRepeat(), UnoButtonControl::GetComponentServiceName(), UnoDialogControl::GetComponentServiceName(), UnoMultiPageControl::GetComponentServiceName(), toolkit::UnoControlRoadmapModel::GetCurrentItemID(), ControlModelContainerBase::getEnabled(), UnoListBoxControl::getItem(), UnoComboBoxControl::getItem(), UnoListBoxControl::getItemCount(), UnoComboBoxControl::getItemCount(), UnoListBoxControl::getItems(), UnoComboBoxControl::getItems(), UnoPropertyArrayHelper::getProperties(), toolkit::AnimatedImagesControlModel::getScaleMode(), UnoRadioButtonControl::getState(), UnoCheckBoxControl::getState(), toolkit::AnimatedImagesControlModel::getStepTime(), ControlModelContainerBase::getTitle(), UnoControlBase::ImplGetPropertyValueClass(), UnoControlBase::ImplGetPropertyValuePOD(), UnoControlBase::ImplHasProperty(), ControlContainerBase::ImplInsertControl(), UnoDialogControl::ImplModelPropertiesChanged(), UnoListBoxControl::ImplSetPeerProperty(), UnoComboBoxControl::ImplSetPeerProperty(), ControlContainerBase::ImplSetPosSize(), UnoFrameControl::ImplSetPosSize(), UnoListBoxControl::ImplUpdateSelectedItemsProperty(), UnoControlTabPageModel::initialize(), toolkit::UnoControlRoadmapModel::insertByIndex(), ControlModelContainerBase::insertByName(), UnoButtonControl::itemStateChanged(), UnoRadioButtonControl::itemStateChanged(), UnoCheckBoxControl::itemStateChanged(), toolkit::UnoRoadmapControl::itemStateChanged(), UnoDialogControl::PrepareWindowDescriptor(), VCLXTabPageContainer::propertiesChange(), UnoControlModel::read(), toolkit::UnoControlRoadmapModel::removeByIndex(), ControlModelContainerBase::removeByName(), UnoListBoxControl::removeItems(), UnoComboBoxControl::removeItems(), ControlModelContainerBase::replaceByName(), UnoFixedHyperlinkControl::setAlignment(), UnoFixedTextControl::setAlignment(), toolkit::AnimatedImagesControlModel::setAutoRepeat(), UnoProgressBarControl::setBackgroundColor(), toolkit::UnoScrollBarControl::setBlockIncrement(), UnoDateFieldControl::setDate(), UnoNumericFieldControl::setDecimalDigits(), UnoCurrencyFieldControl::setDecimalDigits(), UnoListBoxControl::setDropDownLineCount(), UnoComboBoxControl::setDropDownLineCount(), ControlModelContainerBase::setEnabled(), UnoProgressBarControl::setForegroundColor(), ControlModelContainerBase::setImageURL(), UnoButtonControl::setLabel(), UnoRadioButtonControl::setLabel(), UnoCheckBoxControl::setLabel(), toolkit::UnoScrollBarControl::setLineIncrement(), UnoPatternFieldControl::setMasks(), UnoDateFieldControl::setMax(), UnoTimeFieldControl::setMax(), UnoNumericFieldControl::setMax(), UnoCurrencyFieldControl::setMax(), toolkit::UnoScrollBarControl::setMaximum(), UnoDateFieldControl::setMin(), UnoTimeFieldControl::setMin(), UnoNumericFieldControl::setMin(), UnoCurrencyFieldControl::setMin(), UnoListBoxControl::setMultipleMode(), toolkit::UnoScrollBarControl::setOrientation(), UnoProgressBarControl::setRange(), toolkit::AnimatedImagesControlModel::setScaleMode(), UnoNumericFieldControl::setSpinSize(), UnoCurrencyFieldControl::setSpinSize(), UnoRadioButtonControl::setState(), UnoCheckBoxControl::setState(), toolkit::AnimatedImagesControlModel::setStepTime(), UnoDateFieldControl::setStrictFormat(), UnoTimeFieldControl::setStrictFormat(), UnoNumericFieldControl::setStrictFormat(), UnoCurrencyFieldControl::setStrictFormat(), UnoPatternFieldControl::setStrictFormat(), UnoFixedHyperlinkControl::setText(), UnoFixedTextControl::setText(), UnoTimeFieldControl::setTime(), ControlModelContainerBase::setTitle(), UnoDialogControl::setTitle(), UnoFixedHyperlinkControl::setURL(), UnoNumericFieldControl::setValue(), UnoCurrencyFieldControl::setValue(), toolkit::UnoScrollBarControl::setValue(), UnoProgressBarControl::setValue(), toolkit::UnoScrollBarControl::setValues(), toolkit::UnoScrollBarControl::setVisibleSize(), UnoDateFieldControl::textChanged(), UnoTimeFieldControl::textChanged(), UnoNumericFieldControl::textChanged(), UnoCurrencyFieldControl::textChanged(), toolkit::UnoFormattedFieldControl::textChanged(), UnoListBoxControl::updateFromModel(), ControlModelContainerBase::updateUserFormChildren(), and UnoControlModel::write().
const css::uno::Type * GetPropertyType | ( | sal_uInt16 | nPropertyId | ) |
Definition at line 308 of file property.cxx.
References DBG_ASSERT, ImplGetImplPropertyInfo(), and nPropertyId.
Referenced by UnoControlModel::convertFastPropertyValue(), UnoPropertyArrayHelper::getProperties(), UnoPropertyArrayHelper::getPropertyByName(), and UnoControlModel::read().
|
static |
Definition at line 285 of file property.cxx.
References ImplGetPropertyInfos(), and nPropertyId.
Referenced by DoesDependOnOthers(), GetPropertyAttribs(), and GetPropertyType().
|
static |
Definition at line 86 of file property.cxx.
References ALIGN, Any, AUTOCOMPLETE, BACKGROUNDCOLOR, BORDER, BORDERCOLOR, BOUND, CLOSEABLE, DATE, DECL_DEP_PROP_2, DECL_DEP_PROP_3, DECL_PROP_1, DECL_PROP_2, DECL_PROP_3, DECORATION, DROPDOWN, ENABLED, FILLCOLOR, FONTDESCRIPTOR, GRAPHIC, HSCROLL, LINECOLOR, MAYBEDEFAULT, MAYBEVOID, MOVEABLE, MULTISELECTION, ORIENTATION, PRINTABLE, READONLY, REPEAT, SIZEABLE, TABSTOP, TEXT, TEXTCOLOR, TEXTLINECOLOR, TIME, TITLE, TOGGLE, TRANSIENT, TRISTATE, URL, and VSCROLL.
Referenced by GetPropertyId(), GetPropertyName(), and ImplGetImplPropertyInfo().