LibreOffice Module xmloff (master)  1
Static Public Member Functions | List of all members
xmloff::OAttributeMetaData Class Reference

allows the translation of attribute ids into strings. More...

#include <formattributes.hxx>

Static Public Member Functions

static const char * getCommonControlAttributeName (CCAFlags _nId)
 calculates the xml attribute representation of a common control attribute. More...
 
static sal_uInt16 getCommonControlAttributeNamespace (CCAFlags _nId)
 calculates the xml namespace key to use for a common control attribute More...
 
static const char * getFormAttributeName (FormAttributes _eAttrib)
 retrieves the name of an attribute of a form xml representation More...
 
static sal_uInt16 getFormAttributeNamespace (FormAttributes _eAttrib)
 calculates the xml namespace key to use for an attribute of a form xml representation More...
 
static const char * getDatabaseAttributeName (DAFlags _nId)
 calculates the xml attribute representation of a database attribute. More...
 
static sal_uInt16 getDatabaseAttributeNamespace ()
 calculates the xml namespace key to use for a database attribute. More...
 
static const char * getSpecialAttributeName (SCAFlags _nId)
 calculates the xml attribute representation of a special attribute. More...
 
static const char * getBindingAttributeName (BAFlags _nId)
 calculates the xml attribute representation of a binding attribute. More...
 
static sal_uInt16 getBindingAttributeNamespace ()
 calculates the xml namespace key to use for a binding attribute. More...
 
static sal_uInt16 getSpecialAttributeNamespace (SCAFlags _nId)
 calculates the xml namespace key to use for a special attribute. More...
 
static const char * getOfficeFormsAttributeName (OfficeFormsAttributes _eAttrib)
 calculates the xml attribute representation of an attribute of the office:forms element More...
 
static sal_uInt16 getOfficeFormsAttributeNamespace ()
 calculates the xml namedspace key of an attribute of the office:forms element More...
 

Detailed Description

allows the translation of attribute ids into strings.

This class does not allow to connect xml attributes to property names or something like that, it only deals with the xml side

Definition at line 178 of file formattributes.hxx.

Member Function Documentation

const char * xmloff::OAttributeMetaData::getBindingAttributeName ( BAFlags  _nId)
static

calculates the xml attribute representation of a binding attribute.

Parameters
<em>nIdthe id of the attribute. Has to be one of the BA* constants.

Definition at line 134 of file formattributes.cxx.

References LinkedCell, ListCellRange, and ListLinkingType.

Referenced by xmloff::OControlExport::exportCellBindingAttributes(), xmloff::OControlExport::exportCellListSourceRange(), xmloff::OControlImport::handleAttribute(), and xmloff::OListAndComboImport::handleAttribute().

static sal_uInt16 xmloff::OAttributeMetaData::getBindingAttributeNamespace ( )
inlinestatic

calculates the xml namespace key to use for a binding attribute.

Parameters
<em>nIdthe id of the attribute. Has to be one of the BA* constants.

Definition at line 237 of file formattributes.hxx.

References XML_NAMESPACE_FORM.

Referenced by xmloff::OControlExport::exportCellBindingAttributes(), and xmloff::OControlExport::exportCellListSourceRange().

const char * xmloff::OAttributeMetaData::getCommonControlAttributeName ( CCAFlags  _nId)
static

calculates the xml attribute representation of a common control attribute.

Parameters
<em>nIdthe id of the attribute. Has to be one of the CCA* constants.

Definition at line 35 of file formattributes.cxx.

References ButtonType, CurrentSelected, CurrentValue, Disabled, Dropdown, EnableVisible, For, ImageData, Label, MaxLength, Name, Orientation, Printable, ReadOnly, Selected, ServiceName, Size, TabIndex, TabStop, TargetFrame, TargetLocation, Title, Value, and VisualEffect.

Referenced by xmloff::OColumnExport::exportAttributes(), xmloff::OControlExport::exportCommonControlAttributes(), xmloff::OControlExport::exportListSourceAsElements(), xmloff::OControlExport::exportOuterAttributes(), xmloff::OPropertyExport::exportRelativeTargetLocation(), xmloff::OElementExport::exportServiceNameAttribute(), xmloff::OColumnExport::exportServiceNameAttribute(), xmloff::OControlExport::exportSubTags(), xmloff::OFormExport::exportSubTags(), xmloff::OPropertyExport::exportTargetFrameAttribute(), xmloff::OControlImport::handleAttribute(), xmloff::OImagePositionImport::handleAttribute(), xmloff::OReferredControlImport::handleAttribute(), xmloff::ORadioImport::handleAttribute(), xmloff::OURLReferenceImport::handleAttribute(), xmloff::OFormLayerXMLImport_Impl::OFormLayerXMLImport_Impl(), xmloff::OXMLDataSourceImport::OXMLDataSourceImport(), xmloff::OButtonImport::StartElement(), xmloff::OListOptionImport::StartElement(), xmloff::OComboItemImport::StartElement(), and xmloff::OFormImport::StartElement().

sal_uInt16 xmloff::OAttributeMetaData::getCommonControlAttributeNamespace ( CCAFlags  _nId)
static
const char * xmloff::OAttributeMetaData::getDatabaseAttributeName ( DAFlags  _nId)
static
static sal_uInt16 xmloff::OAttributeMetaData::getDatabaseAttributeNamespace ( )
inlinestatic

calculates the xml namespace key to use for a database attribute.

Parameters
<em>nIdthe id of the attribute. Has to be one of the DA* constants.

Definition at line 215 of file formattributes.hxx.

References XML_NAMESPACE_FORM.

Referenced by xmloff::OControlExport::exportDatabaseAttributes(), and xmloff::OControlExport::exportListSourceAsAttribute().

const char * xmloff::OAttributeMetaData::getFormAttributeName ( FormAttributes  _eAttrib)
static
sal_uInt16 xmloff::OAttributeMetaData::getFormAttributeNamespace ( FormAttributes  _eAttrib)
static

calculates the xml namespace key to use for an attribute of a form xml representation

Parameters
_eAttribenum value specifying the attribute

Definition at line 110 of file formattributes.cxx.

References xmloff::faAction, XML_NAMESPACE_FORM, and XML_NAMESPACE_XLINK.

Referenced by xmloff::OFormExport::exportAttributes().

const char * xmloff::OAttributeMetaData::getOfficeFormsAttributeName ( OfficeFormsAttributes  _eAttrib)
static

calculates the xml attribute representation of an attribute of the office:forms element

Parameters
_nIdthe id of the attribute

Definition at line 185 of file formattributes.cxx.

References xmloff::ofaApplyDesignMode, and xmloff::ofaAutomaticFocus.

Referenced by xmloff::OFormsRootExport::implExportBool(), and xmloff::OFormsRootImport::implImportBool().

static sal_uInt16 xmloff::OAttributeMetaData::getOfficeFormsAttributeNamespace ( )
inlinestatic

calculates the xml namedspace key of an attribute of the office:forms element

Parameters
_nIdthe id of the attribute

Definition at line 259 of file formattributes.hxx.

References XML_NAMESPACE_FORM.

Referenced by xmloff::OFormsRootExport::implExportBool(), and xmloff::OFormsRootImport::implImportBool().

const char * xmloff::OAttributeMetaData::getSpecialAttributeName ( SCAFlags  _nId)
static
sal_uInt16 xmloff::OAttributeMetaData::getSpecialAttributeNamespace ( SCAFlags  _nId)
static

calculates the xml namespace key to use for a special attribute.

Parameters
<em>nIdthe id of the attribute. Has to be one of the SCA* constants.

Definition at line 175 of file formattributes.cxx.

References GroupName, XML_NAMESPACE_FORM, and XML_NAMESPACE_FORMX.

Referenced by xmloff::OColumnExport::exportAttributes(), and xmloff::OControlExport::exportSpecialAttributes().


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