LibreOffice Module svtools (master) 1
Public Member Functions | Private Attributes | List of all members
HTMLOption Class Reference

Representation of an HTML option (=attribute in a start tag). More...

#include <parhtml.hxx>

Public Member Functions

 HTMLOption (HtmlOptionId nTyp, OUString aToken, OUString aValue)
 
HtmlOptionId GetToken () const
 
const OUString & GetTokenString () const
 
const OUString & GetString () const
 
sal_uInt32 GetNumber () const
 
sal_Int32 GetSNumber () const
 
void GetNumbers (std::vector< sal_uInt32 > &rNumbers) const
 
void GetColor (Color &) const
 
template<typename EnumT >
EnumT GetEnum (const HTMLOptionEnum< EnumT > *pOptEnums, EnumT nDflt=static_cast< EnumT >(0)) const
 
template<typename EnumT >
bool GetEnum (EnumT &rEnum, const HTMLOptionEnum< EnumT > *pOptEnums) const
 
HTMLInputType GetInputType () const
 
HTMLTableFrame GetTableFrame () const
 
HTMLTableRules GetTableRules () const
 

Private Attributes

OUString aValue
 
OUString aToken
 
HtmlOptionId nToken
 

Detailed Description

Representation of an HTML option (=attribute in a start tag).

The values of the options are always stored as strings. The methods GetNumber,... may only be called if the option is actually numerical,...

Definition at line 87 of file parhtml.hxx.

Constructor & Destructor Documentation

◆ HTMLOption()

HTMLOption::HTMLOption ( HtmlOptionId  nTyp,
OUString  aToken,
OUString  aValue 
)

Definition at line 99 of file parhtml.cxx.

References BOOL_START, DBG_ASSERT, END, nToken, and nToken.

Member Function Documentation

◆ GetColor()

void HTMLOption::GetColor ( Color rColor) const

◆ GetEnum() [1/2]

template<typename EnumT >
EnumT HTMLOption::GetEnum ( const HTMLOptionEnum< EnumT > *  pOptEnums,
EnumT  nDflt = static_cast<EnumT>(0) 
) const
inline

◆ GetEnum() [2/2]

template<typename EnumT >
bool HTMLOption::GetEnum ( EnumT &  rEnum,
const HTMLOptionEnum< EnumT > *  pOptEnums 
) const
inline

Definition at line 123 of file parhtml.hxx.

References HTMLOptionEnum< EnumT >::nValue, and HTMLOptionEnum< EnumT >::pName.

◆ GetInputType()

HTMLInputType HTMLOption::GetInputType ( ) const

Definition at line 199 of file parhtml.cxx.

References aInputTypeOptEnums, DBG_ASSERT, GetEnum(), nToken, Text, and TYPE.

◆ GetNumber()

sal_uInt32 HTMLOption::GetNumber ( ) const

◆ GetNumbers()

void HTMLOption::GetNumbers ( std::vector< sal_uInt32 > &  rNumbers) const

Definition at line 131 of file parhtml.cxx.

References aValue, and i.

◆ GetSNumber()

sal_Int32 HTMLOption::GetSNumber ( ) const

◆ GetString()

const OUString & HTMLOption::GetString ( ) const
inline

◆ GetTableFrame()

HTMLTableFrame HTMLOption::GetTableFrame ( ) const

Definition at line 205 of file parhtml.cxx.

References aTableFrameOptEnums, DBG_ASSERT, FRAME, GetEnum(), and nToken.

◆ GetTableRules()

HTMLTableRules HTMLOption::GetTableRules ( ) const

Definition at line 211 of file parhtml.cxx.

References aTableRulesOptEnums, DBG_ASSERT, GetEnum(), nToken, and RULES.

◆ GetToken()

HtmlOptionId HTMLOption::GetToken ( ) const
inline

Definition at line 98 of file parhtml.hxx.

References nToken.

Referenced by HTMLParser::ParseMetaOptionsImpl(), and HTMLParser::ParseScriptOptions().

◆ GetTokenString()

const OUString & HTMLOption::GetTokenString ( ) const
inline

Definition at line 99 of file parhtml.hxx.

Member Data Documentation

◆ aToken

OUString HTMLOption::aToken
private

Definition at line 90 of file parhtml.hxx.

◆ aValue

OUString HTMLOption::aValue
private

Definition at line 89 of file parhtml.hxx.

Referenced by GetColor(), GetNumber(), GetNumbers(), and GetSNumber().

◆ nToken

HtmlOptionId HTMLOption::nToken
private

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