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

helper for translating between control types and XML tags More...

#include <controlelement.hxx>

Inheritance diagram for xmloff::OControlElement:
[legend]

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...
 

Detailed Description

helper for translating between control types and XML tags

Definition at line 30 of file controlelement.hxx.

Member Enumeration Documentation

◆ ElementType

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.

Constructor & Destructor Documentation

◆ OControlElement()

xmloff::OControlElement::OControlElement ( )
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.

Member Function Documentation

◆ getElementName()

const char * xmloff::OControlElement::getElementName ( ElementType  _eType)
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.

Parameters
_eTypethe 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().

◆ getElementToken()

sal_Int32 xmloff::OControlElement::getElementToken ( ElementType  _eType)
static

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