LibreOffice Module xmloff (master) 1
|
helper for translating between control types and XML tags More...
#include <controlelement.hxx>
Public Types | |
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 | |
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... | |
Protected Member Functions | |
OControlElement () | |
ctor. More... | |
helper for translating between control types and XML tags
Definition at line 30 of file controlelement.hxx.
Enumerator | |
---|---|
TEXT | |
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 |
Definition at line 33 of file controlelement.hxx.
|
inlineprotected |
ctor.
This default constructor is protected, 'cause this class is not intended to be instantiated directly. Instead, the derived classes should be used.
Definition at line 64 of file controlelement.hxx.
|
static |
retrieves the tag name to be used to describe a control of the given type
The returned string is the pure element name, without any namespace.
_eType | the element type |
Definition at line 29 of file controlelement.cxx.
References BUTTON, CHECKBOX, COMBOBOX, DATE, FILE, FIXED_TEXT, FORMATTED_TEXT, FRAME, GRID, HIDDEN, IMAGE, IMAGE_FRAME, LISTBOX, PASSWORD, RADIO, TEXT, TEXT_AREA, TIME, and VALUERANGE.
Referenced by xmloff::OControlExport::getXMLElementName().
|
static |
retrieves the tag name to be used to describe a control of the given type
The returned string is the pure token, without any namespace.
_eType | the element type |
Definition at line 57 of file controlelement.cxx.
References BUTTON, CHECKBOX, COMBOBOX, DATE, FILE, FIXED_TEXT, FORMATTED_TEXT, FRAME, GRID, HIDDEN, IMAGE, IMAGE_FRAME, LISTBOX, PASSWORD, RADIO, TEXT, TEXT_AREA, TIME, VALUERANGE, xmloff::token::XML_BUTTON, xmloff::token::XML_CHECKBOX, xmloff::token::XML_COMBOBOX, xmloff::token::XML_DATE, xmloff::token::XML_FILE, xmloff::token::XML_FIXED_TEXT, xmloff::token::XML_FORMATTED_TEXT, xmloff::token::XML_FRAME, xmloff::token::XML_GENERIC_CONTROL, xmloff::token::XML_GRID, xmloff::token::XML_HIDDEN, xmloff::token::XML_IMAGE, xmloff::token::XML_IMAGE_FRAME, xmloff::token::XML_LISTBOX, xmloff::token::XML_PASSWORD, xmloff::token::XML_RADIO, xmloff::token::XML_TEXT, xmloff::token::XML_TEXTAREA, xmloff::token::XML_TIME, and xmloff::token::XML_VALUE_RANGE.
Referenced by xmloff::OElementNameMap::getElementType().