LibreOffice Module xmloff (master) 1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
xmloff::OControlExport Class Reference

Helper class for handling xml elements representing a form control. More...

#include <elementexport.hxx>

Inheritance diagram for xmloff::OControlExport:
[legend]
Collaboration diagram for xmloff::OControlExport:
[legend]

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::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< SvXMLElementExportm_pOuterElement
 
- Protected Attributes inherited from xmloff::OPropertyExport
IFormsExportContextm_rContext
 
const css::uno::Reference< css::beans::XPropertySetm_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 Protected Member Functions inherited from xmloff::OPropertyExport
::xmloff::token::XMLTokenEnum implGetPropertyXMLType (const css::uno::Type &_rType)
 

Detailed Description

Helper class for handling xml elements representing a form control.

Definition at line 83 of file elementexport.hxx.

Member Typedef Documentation

◆ Int16Set

Definition at line 89 of file elementexport.hxx.

Constructor & Destructor Documentation

◆ OControlExport()

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.

Parameters
_rControlIdthe control id to use when exporting the control
_rReferringControlsthe 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.

Member Function Documentation

◆ controlHasActiveDataBinding()

bool xmloff::OControlExport::controlHasActiveDataBinding ( ) const
protected

determines whether the control we're exporting has an active data binding.

Bindings which count here are:

  • an established connection to a database field
  • a binding to an external value supplier (<type scope="css::form::binding">XValueBinding</type>)

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().

◆ controlHasUserSuppliedListEntries()

bool xmloff::OControlExport::controlHasUserSuppliedListEntries ( ) const
protected

determines whether the list entries (of a combo or list box) are supplied by the user

List entries may be

  • specified by the user
  • specified by an external list source (<type scope="css::form::binding">XListEntrySource</type>)
  • obtained from a database query (in various ways)

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().

◆ examine()

void xmloff::OControlExport::examine ( )
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().

◆ exportAttributes()

void xmloff::OControlExport::exportAttributes ( )
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().

◆ exportBindingAttributes()

void xmloff::OControlExport::exportBindingAttributes ( )
protected

◆ exportCellBindingAttributes()

void xmloff::OControlExport::exportCellBindingAttributes ( bool  _bIncludeListLinkageType)
protected

◆ exportCellListSourceRange()

void xmloff::OControlExport::exportCellListSourceRange ( )
protected

◆ exportCommonControlAttributes()

void xmloff::OControlExport::exportCommonControlAttributes ( )
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().

◆ exportDatabaseAttributes()

void xmloff::OControlExport::exportDatabaseAttributes ( )
protected

◆ exportGenericHandlerAttributes()

void xmloff::OControlExport::exportGenericHandlerAttributes ( )
protected

◆ exportImagePositionAttributes()

void xmloff::OControlExport::exportImagePositionAttributes ( )
protected

◆ exportInnerAttributes()

void xmloff::OControlExport::exportInnerAttributes ( )
protected

◆ exportListSourceAsAttribute()

void xmloff::OControlExport::exportListSourceAsAttribute ( )
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().

◆ exportListSourceAsElements()

void xmloff::OControlExport::exportListSourceAsElements ( )
protected

◆ exportOuterAttributes()

void xmloff::OControlExport::exportOuterAttributes ( )
protected

◆ exportSpecialAttributes()

void xmloff::OControlExport::exportSpecialAttributes ( )
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().

◆ exportSubTags()

void xmloff::OControlExport::exportSubTags ( )
overrideprotectedvirtual

◆ exportXFormsBindAttributes()

void xmloff::OControlExport::exportXFormsBindAttributes ( )
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().

◆ exportXFormsListAttributes()

void xmloff::OControlExport::exportXFormsListAttributes ( )
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().

◆ exportXFormsSubmissionAttributes()

void xmloff::OControlExport::exportXFormsSubmissionAttributes ( )
protected

◆ getOuterXMLElementName()

const char * xmloff::OControlExport::getOuterXMLElementName ( ) const
protectedvirtual

get the name of the outer XML element

Reimplemented in xmloff::OColumnExport.

Definition at line 1393 of file elementexport.cxx.

Referenced by implStartElement().

◆ getScalarListSourceValue()

OUString xmloff::OControlExport::getScalarListSourceValue ( ) const
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().

◆ getSequenceInt16PropertyAsSet()

void xmloff::OControlExport::getSequenceInt16PropertyAsSet ( const OUString &  _rPropertyName,
Int16Set _rOut 
)
protected

gets a Sequence< sal_Int16 > property value as set of sal_Int16's

Parameters
_rPropertyNamethe property name to use
_rOutout 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().

◆ getXMLElementName()

const char * xmloff::OControlExport::getXMLElementName ( ) const
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.

◆ implEndElement()

void xmloff::OControlExport::implEndElement ( )
overrideprotectedvirtual

ends the XML element

Reimplemented from xmloff::OElementExport.

Definition at line 1384 of file elementexport.cxx.

References xmloff::OElementExport::implEndElement(), and m_pOuterElement.

◆ implStartElement()

void xmloff::OControlExport::implStartElement ( const char *  _pName)
overrideprotectedvirtual

Member Data Documentation

◆ m_eType

ElementType xmloff::OControlExport::m_eType
protected

◆ m_nClassId

sal_Int16 xmloff::OControlExport::m_nClassId
protected

◆ m_nIncludeBindings

BAFlags xmloff::OControlExport::m_nIncludeBindings
protected

Definition at line 100 of file elementexport.hxx.

Referenced by examine(), and exportBindingAttributes().

◆ m_nIncludeCommon

CCAFlags xmloff::OControlExport::m_nIncludeCommon
protected

◆ m_nIncludeDatabase

DAFlags xmloff::OControlExport::m_nIncludeDatabase
protected

Definition at line 97 of file elementexport.hxx.

Referenced by examine(), exportDatabaseAttributes(), and exportListSourceAsElements().

◆ m_nIncludeEvents

EAFlags xmloff::OControlExport::m_nIncludeEvents
protected

Definition at line 99 of file elementexport.hxx.

Referenced by examine().

◆ m_nIncludeSpecial

SCAFlags xmloff::OControlExport::m_nIncludeSpecial
protected

◆ m_pOuterElement

std::unique_ptr<SvXMLElementExport> xmloff::OControlExport::m_pOuterElement
protected

Definition at line 102 of file elementexport.hxx.

Referenced by implEndElement(), and implStartElement().

◆ m_sControlId

OUString xmloff::OControlExport::m_sControlId
protected

Definition at line 92 of file elementexport.hxx.

Referenced by exportInnerAttributes().

◆ m_sReferringControls

OUString xmloff::OControlExport::m_sReferringControls
protected

Definition at line 93 of file elementexport.hxx.

Referenced by exportCommonControlAttributes().


The documentation for this class was generated from the following files: