LibreOffice Module xmloff (master) 1
|
#include <elementexport.hxx>
Public Member Functions | |
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 * | 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... | |
Private Attributes | |
css::uno::Sequence< css::script::ScriptEventDescriptor > | m_aEvents |
std::unique_ptr< SvXMLElementExport > | m_pXMLElement |
Additional Inherited Members | |
Static Protected Member Functions inherited from xmloff::OPropertyExport | |
::xmloff::token::XMLTokenEnum | implGetPropertyXMLType (const css::uno::Type &_rType) |
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 |
Definition at line 40 of file elementexport.hxx.
xmloff::OElementExport::OElementExport | ( | IFormsExportContext & | _rContext, |
const css::uno::Reference< css::beans::XPropertySet > & | _rxProps, | ||
const css::uno::Sequence< css::script::ScriptEventDescriptor > & | _rEvents | ||
) |
Definition at line 94 of file elementexport.cxx.
|
virtual |
Definition at line 101 of file elementexport.cxx.
void xmloff::OElementExport::doExport | ( | ) |
Definition at line 105 of file elementexport.cxx.
References SvXMLExport::ClearAttrList(), examine(), exportAttributes(), exportSubTags(), xmloff::IFormsExportContext::getGlobalContext(), getXMLElementName(), implEndElement(), implStartElement(), and xmloff::OPropertyExport::m_rContext.
Referenced by xmloff::OFormLayerXMLExport_Impl::exportControl(), xmloff::OFormLayerXMLExport_Impl::exportForm(), and xmloff::OFormLayerXMLExport_Impl::exportGridColumn().
|
protectedvirtual |
examine the element we're exporting
Reimplemented in xmloff::OControlExport, and xmloff::OColumnExport.
Definition at line 125 of file elementexport.cxx.
Referenced by doExport().
|
protectedvirtual |
export the attributes
Reimplemented in xmloff::OControlExport, xmloff::OColumnExport, and xmloff::OFormExport.
Definition at line 130 of file elementexport.cxx.
Referenced by doExport().
|
protected |
exports the events (as script:events tag)
Definition at line 218 of file elementexport.cxx.
References XMLEventExport::Export(), SvXMLExport::GetEventExport(), xmloff::IFormsExportContext::getGlobalContext(), m_aEvents, and xmloff::OPropertyExport::m_rContext.
Referenced by exportSubTags().
|
protectedvirtual |
add the service-name attribute to the export context
Reimplemented in xmloff::OColumnExport.
Definition at line 154 of file elementexport.cxx.
References xmloff::OPropertyExport::AddAttribute(), CHECK_N_TRANSLATE, xmloff::OAttributeMetaData::getCommonControlAttributeName(), xmloff::OAttributeMetaData::getCommonControlAttributeNamespace(), xmloff::IFormsExportContext::getGlobalContext(), SvXMLExport::GetNamespaceMap(), SvXMLNamespaceMap::GetQNameByKey(), xmloff::OPropertyExport::m_rContext, xmloff::OPropertyExport::m_xProps, xmloff::SERVICE_CHECKBOX, xmloff::SERVICE_COMBOBOX, xmloff::SERVICE_COMMANDBUTTON, xmloff::SERVICE_CURRENCYFIELD, xmloff::SERVICE_DATEFIELD, xmloff::SERVICE_EDIT, xmloff::SERVICE_FILECONTROL, xmloff::SERVICE_FIXEDTEXT, xmloff::SERVICE_FORM, xmloff::SERVICE_FORMATTEDFIELD, xmloff::SERVICE_GRID, xmloff::SERVICE_GROUPBOX, xmloff::SERVICE_HIDDENCONTROL, xmloff::SERVICE_IMAGEBUTTON, xmloff::SERVICE_IMAGECONTROL, xmloff::SERVICE_LISTBOX, xmloff::SERVICE_NUMERICFIELD, xmloff::SERVICE_PATTERNFIELD, SERVICE_PERSISTENT_COMPONENT_CHECKBOX, SERVICE_PERSISTENT_COMPONENT_COMBOBOX, SERVICE_PERSISTENT_COMPONENT_COMMANDBUTTON, SERVICE_PERSISTENT_COMPONENT_CURRENCYFIELD, SERVICE_PERSISTENT_COMPONENT_DATEFIELD, SERVICE_PERSISTENT_COMPONENT_EDIT, SERVICE_PERSISTENT_COMPONENT_FILECONTROL, SERVICE_PERSISTENT_COMPONENT_FIXEDTEXT, SERVICE_PERSISTENT_COMPONENT_FORM, SERVICE_PERSISTENT_COMPONENT_FORMATTEDFIELD, SERVICE_PERSISTENT_COMPONENT_GRID, SERVICE_PERSISTENT_COMPONENT_GROUPBOX, SERVICE_PERSISTENT_COMPONENT_HIDDENCONTROL, SERVICE_PERSISTENT_COMPONENT_IMAGEBUTTON, SERVICE_PERSISTENT_COMPONENT_IMAGECONTROL, SERVICE_PERSISTENT_COMPONENT_LISTBOX, SERVICE_PERSISTENT_COMPONENT_NUMERICFIELD, SERVICE_PERSISTENT_COMPONENT_PATTERNFIELD, SERVICE_PERSISTENT_COMPONENT_RADIOBUTTON, SERVICE_PERSISTENT_COMPONENT_TIMEFIELD, xmloff::SERVICE_RADIOBUTTON, xmloff::SERVICE_TIMEFIELD, ServiceName, sServiceName, and XML_NAMESPACE_OOO.
Referenced by xmloff::OFormExport::exportAttributes(), and xmloff::OControlExport::exportOuterAttributes().
|
protectedvirtual |
export any sub tags
Reimplemented in xmloff::OControlExport, and xmloff::OFormExport.
Definition at line 135 of file elementexport.cxx.
References exportEvents(), and xmloff::OPropertyExport::exportRemainingProperties().
Referenced by doExport(), xmloff::OControlExport::exportSubTags(), and xmloff::OFormExport::exportSubTags().
|
protectedpure virtual |
get the name of the XML element
Implemented in xmloff::OControlExport, and xmloff::OFormExport.
Referenced by doExport().
|
protectedvirtual |
ends the XML element
Reimplemented in xmloff::OControlExport.
Definition at line 149 of file elementexport.cxx.
References m_pXMLElement.
Referenced by doExport(), and xmloff::OControlExport::implEndElement().
|
protectedvirtual |
start the XML element
Reimplemented in xmloff::OControlExport.
Definition at line 144 of file elementexport.cxx.
References xmloff::IFormsExportContext::getGlobalContext(), m_pXMLElement, xmloff::OPropertyExport::m_rContext, and XML_NAMESPACE_FORM.
Referenced by doExport(), and xmloff::OControlExport::implStartElement().
|
private |
Definition at line 43 of file elementexport.hxx.
Referenced by exportEvents().
|
private |
Definition at line 45 of file elementexport.hxx.
Referenced by implEndElement(), and implStartElement().