LibreOffice Module xmloff (master) 1
|
Helper class for handling xml elements representing a form control. More...
#include <elementexport.hxx>
Public Member Functions | |
OControlExport (IFormsExportContext &_rContext, const css::uno::Reference< css::beans::XPropertySet > &_rxControl, OUString _sControlId, OUString _sReferringControls, const css::uno::Sequence< css::script::ScriptEventDescriptor > &_rxEvents) | |
constructs an object capable of exporting controls More... | |
Public Member Functions inherited from xmloff::OElementExport | |
OElementExport (IFormsExportContext &_rContext, const css::uno::Reference< css::beans::XPropertySet > &_rxProps, const css::uno::Sequence< css::script::ScriptEventDescriptor > &_rEvents) | |
virtual | ~OElementExport () |
void | doExport () |
Public Member Functions inherited from xmloff::OPropertyExport | |
OPropertyExport (IFormsExportContext &_rContext, const css::uno::Reference< css::beans::XPropertySet > &_rxProps) | |
constructs an object capable of handling attributes for export More... | |
template<typename T > | |
void | exportRemainingPropertiesSequence (Any const &value, token::XMLTokenEnum eValueAttName) |
Protected Types | |
typedef o3tl::sorted_vector< sal_Int16 > | Int16Set |
Protected Member Functions | |
virtual void | implStartElement (const char *_pName) override |
start the XML element More... | |
virtual void | implEndElement () override |
ends the XML element More... | |
virtual const char * | getOuterXMLElementName () const |
get the name of the outer XML element More... | |
virtual const char * | getXMLElementName () const override |
get the name of the XML element More... | |
virtual void | examine () override |
examine the control. More... | |
void | exportOuterAttributes () |
exports the attributes for the outer element More... | |
void | exportInnerAttributes () |
exports the attributes for the inner element More... | |
virtual void | exportAttributes () override |
export the attributes More... | |
void | exportSubTags () override |
writes everything which needs to be represented as sub tag More... | |
void | exportGenericHandlerAttributes () |
adds the attributes which are handled via generic IPropertyHandlers More... | |
void | exportCommonControlAttributes () |
adds common control attributes to the XMLExport context given More... | |
void | exportDatabaseAttributes () |
adds database attributes to the XMLExport context given More... | |
void | exportBindingAttributes () |
adds the XML attributes which are related to binding controls to external values and/or list sources More... | |
void | exportSpecialAttributes () |
adds attributes which are special to a control type to the export context's attribute list More... | |
void | exportListSourceAsAttribute () |
exports the ListSource property of a control as attribute More... | |
void | exportListSourceAsElements () |
exports the ListSource property of a control as XML elements More... | |
void | getSequenceInt16PropertyAsSet (const OUString &_rPropertyName, Int16Set &_rOut) |
gets a Sequence< sal_Int16 > property value as set of sal_Int16's More... | |
void | exportCellBindingAttributes (bool _bIncludeListLinkageType) |
exports the attribute which descrives a cell value binding of a control in a spreadsheet document More... | |
void | exportXFormsBindAttributes () |
exports the attribute(s) which bind this control to XForms More... | |
void | exportXFormsListAttributes () |
exports the attribute(s) which bind the list of a list control to XForms More... | |
void | exportXFormsSubmissionAttributes () |
exports the attribute(s) for an XForms submission More... | |
void | exportCellListSourceRange () |
exports the attribute which descrives a cell range which acts as list source for a list-like control More... | |
void | exportImagePositionAttributes () |
exports the attribute(s) for the ImagePosition property More... | |
bool | controlHasActiveDataBinding () const |
determines whether the control we're exporting has an active data binding. More... | |
OUString | getScalarListSourceValue () const |
retrieves the string specifying the ListSource of a list or combo box More... | |
bool | controlHasUserSuppliedListEntries () const |
determines whether the list entries (of a combo or list box) are supplied by the user More... | |
Protected Member Functions inherited from xmloff::OControlElement | |
OControlElement () | |
ctor. More... | |
Protected Member Functions inherited from xmloff::OValuePropertiesMetaData | |
OValuePropertiesMetaData () | |
Protected Member Functions inherited from xmloff::OElementExport | |
virtual const char * | getXMLElementName () const =0 |
get the name of the XML element More... | |
virtual void | examine () |
examine the element we're exporting More... | |
virtual void | exportAttributes () |
export the attributes More... | |
virtual void | exportSubTags () |
export any sub tags More... | |
void | exportEvents () |
exports the events (as script:events tag) More... | |
virtual void | exportServiceNameAttribute () |
add the service-name attribute to the export context More... | |
virtual void | implStartElement (const char *_pName) |
start the XML element More... | |
virtual void | implEndElement () |
ends the XML element More... | |
Protected Member Functions inherited from xmloff::OPropertyExport | |
void | examinePersistence () |
examines a property set given for all properties which's value are to made persistent More... | |
template<typename T > | |
void | exportRemainingPropertiesSequence (css::uno::Any const &value, token::XMLTokenEnum eValueAttName) |
void | exportRemainingProperties () |
void | exportedProperty (const OUString &_rPropertyName) |
indicates that a property has been handled by a derived class, without using the helper methods of this class. More... | |
void | exportStringPropertyAttribute (const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName) |
add an attribute which is represented by a string property to the export context More... | |
void | exportBooleanPropertyAttribute (const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const BoolAttrFlags _nBooleanAttributeFlags) |
add an attribute which is represented by a boolean property to the export context More... | |
void | exportInt16PropertyAttribute (const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const sal_Int16 _nDefault, const bool force=false) |
add an attribute which is represented by a sal_Int16 property to the export context More... | |
void | exportInt32PropertyAttribute (const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const sal_Int32 _nDefault) |
add an attribute which is represented by a sal_Int32 property to the export context More... | |
template<typename EnumT > | |
void | exportEnumPropertyAttribute (const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const SvXMLEnumMapEntry< EnumT > *_pValueMap, const EnumT _nDefault, const bool _bVoidDefault=false) |
add an attribute which is represented by an enum property to the export context More... | |
void | exportEnumPropertyAttributeImpl (const sal_uInt16 _nNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName, const SvXMLEnumMapEntry< sal_uInt16 > *_pValueMap, const sal_uInt16 _nDefault, const bool _bVoidDefault) |
void | exportTargetFrameAttribute () |
add the hlink:target-frame attribute to the export context. More... | |
void | exportTargetLocationAttribute (bool _bAddType) |
add the form:href attribute to the export context. More... | |
void | exportImageDataAttribute () |
add the form:image attribute to the export context. More... | |
void | flagStyleProperties () |
flag the style properties as 'already exported' More... | |
void | exportGenericPropertyAttribute (const sal_uInt16 _nAttributeNamespaceKey, const OUString &_pAttributeName, const OUString &_pPropertyName) |
add an arbitrary attribute extracted from an arbitrary property to the export context More... | |
void | exportStringSequenceAttribute (const sal_uInt16 _nAttributeNamespaceKey, const OUString &_pAttributeName, const OUString &_rPropertyName) |
exports a property value, which is a string sequence, as attribute More... | |
bool | shouldExportProperty (const OUString &i_propertyName) const |
determines whether the given property is to be exported More... | |
OUString | implConvertAny (const css::uno::Any &_rValue) |
tries to convert an arbitrary <type scope="com.sun:star.uno">Any</type> into an string More... | |
void | AddAttribute (sal_uInt16 _nPrefix, const OUString &_rName, const OUString &_rValue) |
void | AddAttribute (sal_uInt16 _nPrefix, ::xmloff::token::XMLTokenEnum _eName, const OUString &_rValue) |
void | AddAttribute (sal_uInt16 _nPrefix, ::xmloff::token::XMLTokenEnum _eName, ::xmloff::token::XMLTokenEnum _eValue) |
void | dbg_implCheckProperty (const OUString &_rPropertyName, const css::uno::Type *_pType) |
check a given property set for the existence and type correctness of a given property More... | |
Protected Attributes | |
OUString | m_sControlId |
OUString | m_sReferringControls |
sal_Int16 | m_nClassId |
ElementType | m_eType |
CCAFlags | m_nIncludeCommon |
DAFlags | m_nIncludeDatabase |
SCAFlags | m_nIncludeSpecial |
EAFlags | m_nIncludeEvents |
BAFlags | m_nIncludeBindings |
std::unique_ptr< SvXMLElementExport > | m_pOuterElement |
Protected Attributes inherited from xmloff::OPropertyExport | |
IFormsExportContext & | m_rContext |
const css::uno::Reference< css::beans::XPropertySet > | m_xProps |
const css::uno::Reference< css::beans::XPropertySetInfo > | m_xPropertyInfo |
const css::uno::Reference< css::beans::XPropertyState > | m_xPropertyState |
OUString | m_sValueTrue |
OUString | m_sValueFalse |
Additional Inherited Members | |
Public Types inherited from xmloff::OControlElement | |
enum | ElementType { TEXT = 0 , TEXT_AREA , PASSWORD , FILE , FORMATTED_TEXT , FIXED_TEXT , COMBOBOX , LISTBOX , BUTTON , IMAGE , CHECKBOX , RADIO , FRAME , IMAGE_FRAME , HIDDEN , GRID , VALUERANGE , GENERIC_CONTROL , TIME , DATE , UNKNOWN } |
Static Public Member Functions inherited from xmloff::OControlElement | |
static const char * | getElementName (ElementType _eType) |
retrieves the tag name to be used to describe a control of the given type More... | |
static sal_Int32 | getElementToken (ElementType _eType) |
retrieves the tag name to be used to describe a control of the given type More... | |
Static Public Member Functions inherited from xmloff::OValuePropertiesMetaData | |
static void | getValuePropertyNames (OControlElement::ElementType _eType, sal_Int16 _nFormComponentType, OUString &_rpCurrentValuePropertyName, OUString &_rpValuePropertyName) |
calculate the property names for the current-value and the value attribute. More... | |
static void | getValueLimitPropertyNames (sal_Int16 _nFormComponentType, OUString &_rpMinValuePropertyName, OUString &_rpMaxValuePropertyName) |
calculate the property names for the min-value and the max-value attribute. More... | |
static void | getRuntimeValuePropertyNames (OControlElement::ElementType _eType, sal_Int16 _nFormComponentType, OUString &_rpValuePropertyName, OUString &_rpDefaultValuePropertyName) |
calculate the names of the properties which, at runtime, are used for value and default value. More... | |
Static Protected Member Functions inherited from xmloff::OPropertyExport | |
::xmloff::token::XMLTokenEnum | implGetPropertyXMLType (const css::uno::Type &_rType) |
Helper class for handling xml elements representing a form control.
Definition at line 83 of file elementexport.hxx.
|
protected |
Definition at line 89 of file elementexport.hxx.
xmloff::OControlExport::OControlExport | ( | IFormsExportContext & | _rContext, |
const css::uno::Reference< css::beans::XPropertySet > & | _rxControl, | ||
OUString | _sControlId, | ||
OUString | _sReferringControls, | ||
const css::uno::Sequence< css::script::ScriptEventDescriptor > & | _rxEvents | ||
) |
constructs an object capable of exporting controls
You need at least two pre-requisites from outside: The control to be exported needs to have a class id assigned, and you need the list control-ids of all the controls referring to this one as LabelControl.
This information can't be collected when known only the control itself and not it's complete context.
_rControlId | the control id to use when exporting the control |
_rReferringControls | the comma-separated list of control-ids of all the controls referring to this one as LabelControl |
Definition at line 229 of file elementexport.cxx.
References CONTROL, m_eType, xmloff::OPropertyExport::m_xProps, NONE, and UNKNOWN.
|
protected |
determines whether the control we're exporting has an active data binding.
Bindings which count here are:
Definition at line 1861 of file elementexport.cxx.
References Exception, xmloff::OPropertyExport::m_xPropertyInfo, xmloff::OPropertyExport::m_xProps, and TOOLS_WARN_EXCEPTION.
Referenced by exportCommonControlAttributes().
|
protected |
determines whether the list entries (of a combo or list box) are supplied by the user
List entries may be
In the latter two cases, this method will return <FALSE>
Definition at line 1888 of file elementexport.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, getScalarListSourceValue(), xmloff::OPropertyExport::m_xPropertyInfo, xmloff::OPropertyExport::m_xProps, and xmloff::PROPERTY_LISTSOURCETYPE.
Referenced by exportSubTags().
|
overrideprotectedvirtual |
examine the control.
Some kind of CtorImpl.
Reimplemented from xmloff::OElementExport.
Reimplemented in xmloff::OColumnExport.
Definition at line 1403 of file elementexport.cxx.
References aHelper, AutoCompletion, BoundColumn, xmloff::OControlElement::BUTTON, ButtonType, xmloff::OControlElement::CHECKBOX, xmloff::OControlElement::COMBOBOX, ControlEvents, ControlId, ConvertEmpty, CurrentSelected, CurrentState, CurrentValue, DataField, xmloff::OControlElement::DATE, DBG_CHECK_PROPERTY, DefaultButton, Disabled, Dropdown, EchoChar, xmloff::OControlElement::FILE, xmloff::OControlElement::FIXED_TEXT, FocusOnClick, For, xmloff::OControlElement::FORMATTED_TEXT, xmloff::OControlElement::FRAME, xmloff::OControlElement::GENERIC_CONTROL, getXFormsBindName(), getXFormsListBindName(), getXFormsSubmissionName(), xmloff::OControlElement::GRID, GroupName, xmloff::OControlElement::HIDDEN, xmloff::OControlElement::IMAGE, xmloff::OControlElement::IMAGE_FRAME, ImageData, ImagePosition, InputRequired, xmloff::FormCellBindingHelper::isCellBinding(), xmloff::FormCellBindingHelper::isCellRangeListSource(), IsTristate, Label, LinkedCell, xmloff::OControlElement::LISTBOX, ListCellRange, ListLinkingType, ListSource, ListSource_TYPE, xmloff::FormCellBindingHelper::livesInSpreadsheetDocument(), m_eType, m_nClassId, m_nIncludeBindings, m_nIncludeCommon, m_nIncludeDatabase, m_nIncludeEvents, m_nIncludeSpecial, xmloff::OPropertyExport::m_xPropertyInfo, xmloff::OPropertyExport::m_xProps, MaxLength, MaxValue, MinValue, MultiLine, Multiple, Name, NONE, OnChange, OnClick, OnDoubleClick, OnSelect, Orientation, PageStepSize, xmloff::OControlElement::PASSWORD, Printable, xmloff::PROPERTY_CLASSID, xmloff::PROPERTY_ECHOCHAR, xmloff::PROPERTY_FORMATKEY, xmloff::PROPERTY_GROUP_NAME, xmloff::PROPERTY_IMAGE_POSITION, xmloff::PROPERTY_LISTSOURCETYPE, xmloff::PROPERTY_MULTILINE, xmloff::OControlElement::RADIO, ReadOnly, RepeatDelay, Selected, ServiceName, Size, State, StepSize, TabIndex, TabStop, TargetFrame, TargetLocation, xmloff::OControlElement::TEXT, xmloff::OControlElement::TEXT_AREA, xmloff::OControlElement::TIME, Title, Toggle, Validation, Value, xmloff::OControlElement::VALUERANGE, VisualEffect, XFormsBind, XFormsListBind, and XFormsSubmission.
Referenced by xmloff::OColumnExport::examine().
|
overrideprotectedvirtual |
export the attributes
Reimplemented from xmloff::OElementExport.
Reimplemented in xmloff::OColumnExport.
Definition at line 306 of file elementexport.cxx.
References exportOuterAttributes().
Referenced by xmloff::OColumnExport::exportAttributes().
|
protected |
adds the XML attributes which are related to binding controls to external values and/or list sources
Definition at line 867 of file elementexport.cxx.
References exportCellBindingAttributes(), exportCellListSourceRange(), exportXFormsBindAttributes(), exportXFormsListAttributes(), exportXFormsSubmissionAttributes(), LinkedCell, ListCellRange, ListLinkingType, m_nIncludeBindings, NONE, XFormsBind, XFormsListBind, and XFormsSubmission.
Referenced by exportInnerAttributes().
|
protected |
exports the attribute which descrives a cell value binding of a control in a spreadsheet document
Definition at line 1732 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), aHelper, xmloff::aListLinkageMap, SvXMLUnitConverter::convertEnum(), Exception, xmloff::OAttributeMetaData::getBindingAttributeName(), xmloff::OAttributeMetaData::getBindingAttributeNamespace(), xmloff::FormCellBindingHelper::isCellIntegerBinding(), LinkedCell, ListLinkingType, xmloff::OPropertyExport::m_xProps, and TOOLS_WARN_EXCEPTION.
Referenced by exportBindingAttributes().
|
protected |
exports the attribute which descrives a cell range which acts as list source for a list-like control
Definition at line 1788 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), aHelper, Exception, xmloff::OAttributeMetaData::getBindingAttributeName(), xmloff::OAttributeMetaData::getBindingAttributeNamespace(), ListCellRange, xmloff::OPropertyExport::m_xProps, TOOLS_WARN_EXCEPTION, and xSink.
Referenced by exportBindingAttributes().
|
protected |
adds common control attributes to the XMLExport context given
The attribute list of the context is not cleared initially, this is the responsibility of the caller.
Definition at line 488 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), xmloff::aFormButtonTypeMap, xmloff::aOrientationMap, xmloff::aVisualEffectMap, ButtonType, controlHasActiveDataBinding(), CurrentSelected, CurrentValue, DefaultFalse, DefaultTrue, DefaultVoid, Disabled, Dropdown, EnableVisible, xmloff::OPropertyExport::exportBooleanPropertyAttribute(), xmloff::OPropertyExport::exportedProperty(), xmloff::OPropertyExport::exportEnumPropertyAttribute(), xmloff::OPropertyExport::exportGenericPropertyAttribute(), xmloff::OPropertyExport::exportImageDataAttribute(), xmloff::OPropertyExport::exportInt16PropertyAttribute(), xmloff::OPropertyExport::exportStringPropertyAttribute(), xmloff::OPropertyExport::exportTargetFrameAttribute(), xmloff::OPropertyExport::exportTargetLocationAttribute(), For, xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), xmloff::OValuePropertiesMetaData::getValuePropertyNames(), i, ImageData, InverseSemantics, Label, m_eType, m_nClassId, m_nIncludeCommon, m_sReferringControls, xmloff::OPropertyExport::m_xPropertyInfo, MaxLength, NONE, Orientation, Printable, xmloff::PROPERTY_BUTTONTYPE, xmloff::PROPERTY_DEFAULT_STATE, xmloff::PROPERTY_DROPDOWN, xmloff::PROPERTY_ENABLED, xmloff::PROPERTY_ENABLEVISIBLE, xmloff::PROPERTY_LABEL, xmloff::PROPERTY_LINECOUNT, xmloff::PROPERTY_MAXTEXTLENGTH, xmloff::PROPERTY_ORIENTATION, xmloff::PROPERTY_PERSISTENCE_MAXTEXTLENGTH, xmloff::PROPERTY_PRINTABLE, xmloff::PROPERTY_READONLY, xmloff::PROPERTY_STATE, xmloff::PROPERTY_TABINDEX, xmloff::PROPERTY_TABSTOP, xmloff::PROPERTY_TITLE, xmloff::PROPERTY_VISUAL_EFFECT, ReadOnly, Selected, Size, TabIndex, TabStop, TargetFrame, TargetLocation, Title, Value, and VisualEffect.
Referenced by exportInnerAttributes().
|
protected |
adds database attributes to the XMLExport context given
The attribute list of the context is not cleared initially, this is the responsibility of the caller.
Definition at line 789 of file elementexport.cxx.
References xmloff::aListSourceTypeMap, BoundColumn, ConvertEmpty, DataField, DefaultFalse, DefaultVoid, xmloff::OPropertyExport::exportBooleanPropertyAttribute(), xmloff::OPropertyExport::exportEnumPropertyAttribute(), xmloff::OPropertyExport::exportInt16PropertyAttribute(), exportListSourceAsAttribute(), xmloff::OPropertyExport::exportStringPropertyAttribute(), xmloff::OAttributeMetaData::getDatabaseAttributeName(), xmloff::OAttributeMetaData::getDatabaseAttributeNamespace(), InputRequired, ListSource, ListSource_TYPE, m_nIncludeDatabase, NONE, xmloff::PROPERTY_BOUNDCOLUMN, xmloff::PROPERTY_DATAFIELD, xmloff::PROPERTY_EMPTY_IS_NULL, xmloff::PROPERTY_INPUT_REQUIRED, xmloff::PROPERTY_LISTSOURCETYPE, and RESET_BIT.
Referenced by exportInnerAttributes().
|
protected |
adds the attributes which are handled via generic IPropertyHandlers
In the future, this really should be all attributes, instead of this shitload of hand-crafted code we have currently...
Definition at line 439 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), Any, aProperties, xmloff::PropertyDescription::attribute, xmloff::AttributeDescription::attributeToken, DBG_UNHANDLED_EXCEPTION, Exception, xmloff::OPropertyExport::exportedProperty(), xmloff::PropertyDescription::factory, xmloff::metadata::getPropertyDescription(), xmloff::token::GetXMLToken(), xmloff::OPropertyExport::m_xPropertyInfo, xmloff::OPropertyExport::m_xProps, xmloff::AttributeDescription::namespacePrefix, xmloff::PropertyDescription::propertyId, SAL_WARN, and xmloff::OPropertyExport::shouldExportProperty().
Referenced by exportInnerAttributes().
|
protected |
exports the attribute(s) for the ImagePosition property
Definition at line 1814 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), DBG_UNHANDLED_EXCEPTION, Exception, xmloff::OPropertyExport::exportedProperty(), xmloff::token::GetXMLToken(), xmloff::OPropertyExport::m_xProps, xmloff::PROPERTY_IMAGE_ALIGN, xmloff::PROPERTY_IMAGE_POSITION, xmloff::token::XML_BOTTOM, xmloff::token::XML_CENTER, xmloff::token::XML_END, xmloff::token::XML_IMAGE_ALIGN, xmloff::token::XML_IMAGE_POSITION, XML_NAMESPACE_FORM, xmloff::token::XML_START, and xmloff::token::XML_TOP.
Referenced by exportSpecialAttributes().
|
protected |
exports the attributes for the inner element
Definition at line 273 of file elementexport.cxx.
References SvXMLExport::AddAttributeIdLegacy(), ControlId, exportBindingAttributes(), exportCommonControlAttributes(), exportDatabaseAttributes(), exportGenericHandlerAttributes(), exportSpecialAttributes(), xmloff::OPropertyExport::flagStyleProperties(), xmloff::IFormsExportContext::getGlobalContext(), m_nIncludeCommon, xmloff::OPropertyExport::m_rContext, m_sControlId, and XML_NAMESPACE_FORM.
Referenced by implStartElement().
|
protected |
exports the ListSource property of a control as attribute
The ListSource property may be exported in different ways: For a ComboBox, it is an attribute of the form:combobox element.
For a ListBox, it's an attribute if the ListSourceType states that the ListBox does not display a value list. In case of a value list, the ListSource is not exported, and the pairs of StringItem/ValueItem are exported as sub-elements.
This method does the attribute part: It exports the ListSource property as attribute, not caring about whether the object is a ComboBox or a ListBox.
Definition at line 1216 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), DBG_CHECK_PROPERTY_NO_TYPE, xmloff::OPropertyExport::exportedProperty(), xmloff::OAttributeMetaData::getDatabaseAttributeName(), xmloff::OAttributeMetaData::getDatabaseAttributeNamespace(), getScalarListSourceValue(), ListSource, and xmloff::PROPERTY_LISTSOURCE.
Referenced by exportDatabaseAttributes().
|
protected |
exports the ListSource property of a control as XML elements
Definition at line 1243 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), SvXMLExport::ClearAttrList(), sax::Converter::convertBool(), CurrentSelected, DBG_CHECK_PROPERTY, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), xmloff::IFormsExportContext::getGlobalContext(), getSequenceInt16PropertyAsSet(), i, Label, ListSource, m_nIncludeDatabase, xmloff::OPropertyExport::m_rContext, xmloff::OPropertyExport::m_xProps, NONE, xmloff::PROPERTY_DEFAULT_SELECT_SEQ, xmloff::PROPERTY_LISTSOURCE, xmloff::PROPERTY_SELECT_SEQ, xmloff::PROPERTY_STRING_ITEM_LIST, pValues, Selected, Value, and XML_NAMESPACE_FORM.
Referenced by exportSubTags().
|
protected |
exports the attributes for the outer element
Definition at line 246 of file elementexport.cxx.
References xmloff::OElementExport::exportServiceNameAttribute(), xmloff::OPropertyExport::exportStringPropertyAttribute(), xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), m_nIncludeCommon, Name, xmloff::PROPERTY_NAME, and ServiceName.
Referenced by exportAttributes().
|
protected |
adds attributes which are special to a control type to the export context's attribute list
Definition at line 926 of file elementexport.cxx.
References xmloff::aCheckStateMap, xmloff::OPropertyExport::AddAttribute(), AutoCompletion, sax::Converter::convertDuration(), CurrentState, DBG_CHECK_PROPERTY, DefaultButton, DefaultFalse, DefaultTrue, EchoChar, xmloff::OPropertyExport::exportBooleanPropertyAttribute(), xmloff::OPropertyExport::exportedProperty(), xmloff::OPropertyExport::exportEnumPropertyAttribute(), xmloff::OPropertyExport::exportGenericPropertyAttribute(), exportImagePositionAttributes(), xmloff::OPropertyExport::exportInt32PropertyAttribute(), xmloff::OPropertyExport::exportStringPropertyAttribute(), FocusOnClick, tools::Time::GetHour(), tools::Time::GetMin(), tools::Time::GetSec(), xmloff::OAttributeMetaData::getSpecialAttributeName(), xmloff::OAttributeMetaData::getSpecialAttributeNamespace(), xmloff::OValuePropertiesMetaData::getValueLimitPropertyNames(), GroupName, i, ImagePosition, IsTristate, m_nClassId, m_nIncludeSpecial, xmloff::OPropertyExport::m_xPropertyInfo, xmloff::OPropertyExport::m_xProps, tools::Time::MakeTimeFromMS(), MaxValue, MinValue, MultiLine, Multiple, NONE, nValue, PageStepSize, xmloff::PROPERTY_AUTOCOMPLETE, xmloff::PROPERTY_BLOCK_INCREMENT, xmloff::PROPERTY_DEFAULT_STATE, xmloff::PROPERTY_DEFAULTBUTTON, xmloff::PROPERTY_ECHO_CHAR, xmloff::PROPERTY_FOCUS_ON_CLICK, xmloff::PROPERTY_GROUP_NAME, xmloff::PROPERTY_LINE_INCREMENT, xmloff::PROPERTY_MULTILINE, xmloff::PROPERTY_MULTISELECTION, xmloff::PROPERTY_REPEAT_DELAY, xmloff::PROPERTY_SPIN_INCREMENT, xmloff::PROPERTY_STATE, xmloff::PROPERTY_STRICTFORMAT, xmloff::PROPERTY_TOGGLE, xmloff::PROPERTY_TRISTATE, RepeatDelay, RESET_BIT, State, StepSize, tools::Time::SYSTEM, Toggle, TRISTATE_FALSE, and Validation.
Referenced by exportInnerAttributes().
|
overrideprotectedvirtual |
writes everything which needs to be represented as sub tag
Reimplemented from xmloff::OElementExport.
Definition at line 311 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), SvXMLExport::ClearAttrList(), xmloff::OControlElement::COMBOBOX, controlHasUserSuppliedListEntries(), DBG_CHECK_PROPERTY, xmloff::IFormsExportContext::exportCollectionElements(), xmloff::OPropertyExport::exportedProperty(), exportListSourceAsElements(), xmloff::OElementExport::exportSubTags(), XMLPropertyMapEntry::getApiName(), xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), xmloff::IFormsExportContext::getGlobalContext(), XMLTextPropertySetMapper::getPropertyMapForType(), SvXMLExport::GetTextParagraphExport(), xmloff::OControlElement::GRID, XMLPropertyMapEntry::IsEnd(), Label, xmloff::OControlElement::LISTBOX, m_eType, xmloff::OPropertyExport::m_rContext, xmloff::OPropertyExport::m_xPropertyInfo, xmloff::OPropertyExport::m_xProps, xmloff::PROPERTY_CONTROLLABEL, xmloff::PROPERTY_DEFAULT_SELECT_SEQ, xmloff::PROPERTY_LISTSOURCE, xmloff::PROPERTY_RICH_TEXT, xmloff::PROPERTY_SELECT_SEQ, xmloff::PROPERTY_STRING_ITEM_LIST, xmloff::PROPERTY_VALUE_SEQ, SHAPE_PARA, TEXT, xmloff::OControlElement::TEXT_AREA, and XML_NAMESPACE_FORM.
|
protected |
exports the attribute(s) which bind this control to XForms
Definition at line 1773 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), getXFormsBindName(), xmloff::OPropertyExport::m_xProps, xmloff::token::XML_BIND, and XML_NAMESPACE_XFORMS.
Referenced by exportBindingAttributes().
|
protected |
exports the attribute(s) which bind the list of a list control to XForms
Definition at line 1778 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), getXFormsListBindName(), xmloff::OPropertyExport::m_xProps, XML_NAMESPACE_FORM, and xmloff::token::XML_XFORMS_LIST_SOURCE.
Referenced by exportBindingAttributes().
|
protected |
exports the attribute(s) for an XForms submission
Definition at line 1783 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), getXFormsSubmissionName(), xmloff::OPropertyExport::m_xProps, XML_NAMESPACE_FORM, and xmloff::token::XML_XFORMS_SUBMISSION.
Referenced by exportBindingAttributes().
|
protectedvirtual |
get the name of the outer XML element
Reimplemented in xmloff::OColumnExport.
Definition at line 1393 of file elementexport.cxx.
Referenced by implStartElement().
|
protected |
retrieves the string specifying the ListSource of a list or combo box
Definition at line 1202 of file elementexport.cxx.
References Any, xmloff::OPropertyExport::m_xProps, and xmloff::PROPERTY_LISTSOURCE.
Referenced by controlHasUserSuppliedListEntries(), and exportListSourceAsAttribute().
|
protected |
gets a Sequence< sal_Int16 > property value as set of sal_Int16's
_rPropertyName | the property name to use |
_rOut | out parameter. The set of integers. |
Definition at line 1233 of file elementexport.cxx.
References DBG_CHECK_PROPERTY, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), and xmloff::OPropertyExport::m_xProps.
Referenced by exportListSourceAsElements().
|
overrideprotectedvirtual |
get the name of the XML element
Implements xmloff::OElementExport.
Definition at line 1398 of file elementexport.cxx.
References xmloff::OControlElement::getElementName(), and m_eType.
|
overrideprotectedvirtual |
ends the XML element
Reimplemented from xmloff::OElementExport.
Definition at line 1384 of file elementexport.cxx.
References xmloff::OElementExport::implEndElement(), and m_pOuterElement.
|
overrideprotectedvirtual |
start the XML element
Reimplemented from xmloff::OElementExport.
Definition at line 1366 of file elementexport.cxx.
References exportInnerAttributes(), xmloff::IFormsExportContext::getGlobalContext(), getOuterXMLElementName(), xmloff::OElementExport::implStartElement(), m_pOuterElement, xmloff::OPropertyExport::m_rContext, and XML_NAMESPACE_FORM.
|
protected |
Definition at line 95 of file elementexport.hxx.
Referenced by examine(), exportCommonControlAttributes(), exportSubTags(), and getXMLElementName().
|
protected |
Definition at line 94 of file elementexport.hxx.
Referenced by examine(), xmloff::OColumnExport::examine(), exportCommonControlAttributes(), and exportSpecialAttributes().
|
protected |
Definition at line 100 of file elementexport.hxx.
Referenced by examine(), and exportBindingAttributes().
|
protected |
Definition at line 96 of file elementexport.hxx.
Referenced by examine(), xmloff::OColumnExport::examine(), exportCommonControlAttributes(), exportInnerAttributes(), and exportOuterAttributes().
|
protected |
Definition at line 97 of file elementexport.hxx.
Referenced by examine(), exportDatabaseAttributes(), and exportListSourceAsElements().
|
protected |
Definition at line 99 of file elementexport.hxx.
Referenced by examine().
|
protected |
Definition at line 98 of file elementexport.hxx.
Referenced by examine(), xmloff::OColumnExport::examine(), and exportSpecialAttributes().
|
protected |
Definition at line 102 of file elementexport.hxx.
Referenced by implEndElement(), and implStartElement().
|
protected |
Definition at line 92 of file elementexport.hxx.
Referenced by exportInnerAttributes().
|
protected |
Definition at line 93 of file elementexport.hxx.
Referenced by exportCommonControlAttributes().