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

Protected Member Functions

 OControlElement ()
 ctor. More...
 

Detailed Description

helper for translating between control types and XML tags

Definition at line 31 of file controlelement.hxx.

Member Enumeration Documentation

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 34 of file controlelement.hxx.

Constructor & Destructor Documentation

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 65 of file controlelement.hxx.

Member Function Documentation

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 26 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::OElementNameMap::getElementType(), and xmloff::OControlExport::getXMLElementName().


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