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 OUString getCommonControlAttributeName (CCAFlags _nId)
 calculates the xml attribute representation of a common control attribute. More...
 
static sal_Int32 getCommonControlAttributeToken (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 OUString getFormAttributeName (FormAttributes _eAttrib)
 retrieves the name of an attribute of a form xml representation More...
 
static sal_Int32 getFormAttributeToken (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 OUString getDatabaseAttributeName (DAFlags _nId)
 calculates the xml attribute representation of a database attribute. More...
 
static sal_Int32 getDatabaseAttributeToken (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 OUString getSpecialAttributeName (SCAFlags _nId)
 calculates the xml attribute representation of a special attribute. More...
 
static sal_Int32 getSpecialAttributeToken (SCAFlags _nId)
 calculates the xml attribute representation of a special attribute. More...
 
static OUString getBindingAttributeName (BAFlags _nId)
 calculates the xml attribute representation of a binding attribute. More...
 
static sal_Int32 getBindingAttributeToken (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 OUString getOfficeFormsAttributeName (OfficeFormsAttributes _eAttrib)
 calculates the xml attribute representation of an attribute of the office:forms element More...
 
static xmloff::token::XMLTokenEnum getOfficeFormsAttributeToken (OfficeFormsAttributes _eAttrib)
 
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

OUString 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 216 of file formattributes.cxx.

References LinkedCell, ListCellRange, and ListLinkingType.

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

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 267 of file formattributes.hxx.

References XML_NAMESPACE_FORM.

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

sal_Int32 xmloff::OAttributeMetaData::getBindingAttributeToken ( 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 229 of file formattributes.cxx.

References LinkedCell, ListCellRange, ListLinkingType, xmloff::token::XML_LINKED_CELL, xmloff::token::XML_LIST_LINKAGE_TYPE, xmloff::token::XML_SOURCE_CELL_RANGE, and xmloff::token::XML_UNKNOWN.

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

OUString xmloff::OAttributeMetaData::getCommonControlAttributeName ( CCAFlags  _nId)
static
sal_uInt16 xmloff::OAttributeMetaData::getCommonControlAttributeNamespace ( CCAFlags  _nId)
static
sal_Int32 xmloff::OAttributeMetaData::getCommonControlAttributeToken ( 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 72 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, VisualEffect, xmloff::token::XML_BUTTON_TYPE, xmloff::token::XML_CONTROL_IMPLEMENTATION, xmloff::token::XML_CURRENT_SELECTED, xmloff::token::XML_CURRENT_VALUE, xmloff::token::XML_DISABLED, xmloff::token::XML_DROPDOWN, xmloff::token::XML_FOR, xmloff::token::XML_HREF, xmloff::token::XML_IMAGE_DATA, xmloff::token::XML_LABEL, xmloff::token::XML_MAX_LENGTH, xmloff::token::XML_NAME, xmloff::token::XML_ORIENTATION, xmloff::token::XML_PRINTABLE, xmloff::token::XML_READONLY, xmloff::token::XML_SELECTED, xmloff::token::XML_SIZE, xmloff::token::XML_TAB_INDEX, xmloff::token::XML_TAB_STOP, xmloff::token::XML_TARGET_FRAME, xmloff::token::XML_TITLE, xmloff::token::XML_UNKNOWN, xmloff::token::XML_VALUE, xmloff::token::XML_VISIBLE, and xmloff::token::XML_VISUAL_EFFECT.

Referenced by 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::startFastElement(), xmloff::OListOptionImport::startFastElement(), xmloff::OComboItemImport::startFastElement(), and xmloff::OFormImport::startFastElement().

OUString xmloff::OAttributeMetaData::getDatabaseAttributeName ( DAFlags  _nId)
static

calculates the xml attribute representation of a database attribute.

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

Definition at line 184 of file formattributes.cxx.

References BoundColumn, ConvertEmpty, DataField, InputRequired, ListSource, and ListSource_TYPE.

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

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 233 of file formattributes.hxx.

References XML_NAMESPACE_FORM.

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

sal_Int32 xmloff::OAttributeMetaData::getDatabaseAttributeToken ( DAFlags  _nId)
static
OUString 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 176 of file formattributes.cxx.

References xmloff::faAction, XML_NAMESPACE_FORM, and XML_NAMESPACE_XLINK.

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

sal_Int32 xmloff::OAttributeMetaData::getFormAttributeToken ( FormAttributes  _eAttrib)
static
OUString 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 308 of file formattributes.cxx.

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

Referenced by xmloff::OFormsRootExport::implExportBool().

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 290 of file formattributes.hxx.

References XML_NAMESPACE_FORM.

Referenced by xmloff::OFormsRootExport::implExportBool().

xmloff::token::XMLTokenEnum xmloff::OAttributeMetaData::getOfficeFormsAttributeToken ( OfficeFormsAttributes  _eAttrib)
static
OUString xmloff::OAttributeMetaData::getSpecialAttributeName ( SCAFlags  _nId)
static

calculates the xml attribute representation of a special attribute.

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

Definition at line 242 of file formattributes.cxx.

References AutoCompletion, ColumnStyleName, CurrentState, DefaultButton, EchoChar, FocusOnClick, GroupName, IsTristate, MaxValue, MinValue, MultiLine, Multiple, PageStepSize, RepeatDelay, State, StepSize, Toggle, and Validation.

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

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 298 of file formattributes.cxx.

References GroupName, XML_NAMESPACE_FORM, and XML_NAMESPACE_FORMX.

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

sal_Int32 xmloff::OAttributeMetaData::getSpecialAttributeToken ( SCAFlags  _nId)
static

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