|
LibreOffice Module xmloff (master) 1
|
Helper class for exporting a grid column. More...
#include <elementexport.hxx>
Public Member Functions | |
| OColumnExport (IFormsExportContext &_rContext, const css::uno::Reference< css::beans::XPropertySet > &_rxControl, const OUString &_rControlId, const css::uno::Sequence< css::script::ScriptEventDescriptor > &_rxEvents) | |
| ctor More... | |
| virtual | ~OColumnExport () override |
Public Member Functions inherited from 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 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 Member Functions | |
| virtual const char * | getOuterXMLElementName () const override |
| get the name of the outer XML element More... | |
| virtual void | exportServiceNameAttribute () override |
| add the service-name attribute to the export context More... | |
| virtual void | exportAttributes () override |
| export the attributes More... | |
| virtual void | examine () override |
| examine the control. More... | |
Protected Member Functions inherited from xmloff::OControlExport | |
| 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... | |
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... | |
Protected Types inherited from xmloff::OControlExport | |
| typedef o3tl::sorted_vector< sal_Int16 > | Int16Set |
Static Protected Member Functions inherited from xmloff::OPropertyExport | |
| ::xmloff::token::XMLTokenEnum | implGetPropertyXMLType (const css::uno::Type &_rType) |
Protected Attributes inherited from xmloff::OControlExport | |
| 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 |
Helper class for exporting a grid column.
Definition at line 261 of file elementexport.hxx.
| xmloff::OColumnExport::OColumnExport | ( | IFormsExportContext & | _rContext, |
| const css::uno::Reference< css::beans::XPropertySet > & | _rxControl, | ||
| const OUString & | _rControlId, | ||
| const css::uno::Sequence< css::script::ScriptEventDescriptor > & | _rxEvents | ||
| ) |
|
overridevirtual |
Definition at line 1927 of file elementexport.cxx.
|
overrideprotectedvirtual |
examine the control.
Some kind of CtorImpl.
Reimplemented from xmloff::OControlExport.
Definition at line 1982 of file elementexport.cxx.
References AutoCompletion, EchoChar, xmloff::OControlExport::examine(), For, Label, xmloff::OControlExport::m_nClassId, xmloff::OControlExport::m_nIncludeCommon, xmloff::OControlExport::m_nIncludeSpecial, MultiLine, Multiple, Printable, TabIndex, and TabStop.
|
overrideprotectedvirtual |
export the attributes
Reimplemented from xmloff::OControlExport.
Definition at line 1960 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), ColumnStyleName, xmloff::OControlExport::exportAttributes(), xmloff::OPropertyExport::exportStringPropertyAttribute(), xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), xmloff::IFormsExportContext::getObjectStyleName(), xmloff::OAttributeMetaData::getSpecialAttributeName(), xmloff::OAttributeMetaData::getSpecialAttributeNamespace(), Label, xmloff::OPropertyExport::m_rContext, xmloff::OPropertyExport::m_xProps, and xmloff::PROPERTY_LABEL.
|
overrideprotectedvirtual |
add the service-name attribute to the export context
Reimplemented from xmloff::OElementExport.
Definition at line 1931 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), DBG_CHECK_PROPERTY, xmloff::OPropertyExport::exportedProperty(), xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), xmloff::IFormsExportContext::getGlobalContext(), SvXMLExport::GetNamespaceMap(), SvXMLNamespaceMap::GetQNameByKey(), xmloff::OPropertyExport::m_rContext, xmloff::OPropertyExport::m_xProps, xmloff::PROPERTY_COLUMNSERVICENAME, ServiceName, and XML_NAMESPACE_OOO.
|
overrideprotectedvirtual |
get the name of the outer XML element
Reimplemented from xmloff::OControlExport.
Definition at line 1955 of file elementexport.cxx.