LibreOffice Module svtools (master) 1
|
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 |
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.
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.
void HTMLOption::GetColor | ( | Color & | rColor | ) | const |
Definition at line 161 of file parhtml.cxx.
References aValue, COLOR_END, COLOR_START, DBG_ASSERT, GetHTMLColor(), i, nPos, nToken, SAL_MAX_UINT32, Color::SetBlue(), Color::SetGreen(), Color::SetRed(), and SIZE.
|
inline |
Definition at line 110 of file parhtml.hxx.
References HTMLOptionEnum< EnumT >::nValue, and HTMLOptionEnum< EnumT >::pName.
Referenced by GetInputType(), GetTableFrame(), GetTableRules(), HTMLParser::ParseMetaOptionsImpl(), and HTMLParser::ParseScriptOptions().
|
inline |
Definition at line 123 of file parhtml.hxx.
References HTMLOptionEnum< EnumT >::nValue, and HTMLOptionEnum< EnumT >::pName.
HTMLInputType HTMLOption::GetInputType | ( | ) | const |
Definition at line 199 of file parhtml.cxx.
References aInputTypeOptEnums, DBG_ASSERT, GetEnum(), nToken, Text, and TYPE.
sal_uInt32 HTMLOption::GetNumber | ( | ) | const |
Definition at line 109 of file parhtml.cxx.
References aValue, CONTEXT_END, CONTEXT_START, DBG_ASSERT, nToken, NUMBER_END, NUMBER_START, comphelper::string::stripStart(), and VALUE.
void HTMLOption::GetNumbers | ( | std::vector< sal_uInt32 > & | rNumbers | ) | const |
Definition at line 131 of file parhtml.cxx.
sal_Int32 HTMLOption::GetSNumber | ( | ) | const |
Definition at line 122 of file parhtml.cxx.
References aValue, CONTEXT_END, CONTEXT_START, DBG_ASSERT, nToken, NUMBER_END, NUMBER_START, and comphelper::string::stripStart().
|
inline |
Definition at line 102 of file parhtml.hxx.
Referenced by HTMLParser::ParseMetaOptionsImpl(), and HTMLParser::ParseScriptOptions().
HTMLTableFrame HTMLOption::GetTableFrame | ( | ) | const |
Definition at line 205 of file parhtml.cxx.
References aTableFrameOptEnums, DBG_ASSERT, FRAME, GetEnum(), and nToken.
HTMLTableRules HTMLOption::GetTableRules | ( | ) | const |
Definition at line 211 of file parhtml.cxx.
References aTableRulesOptEnums, DBG_ASSERT, GetEnum(), nToken, and RULES.
|
inline |
Definition at line 98 of file parhtml.hxx.
References nToken.
Referenced by HTMLParser::ParseMetaOptionsImpl(), and HTMLParser::ParseScriptOptions().
|
inline |
Definition at line 99 of file parhtml.hxx.
|
private |
Definition at line 90 of file parhtml.hxx.
|
private |
Definition at line 89 of file parhtml.hxx.
Referenced by GetColor(), GetNumber(), GetNumbers(), and GetSNumber().
|
private |
Definition at line 91 of file parhtml.hxx.
Referenced by GetColor(), GetInputType(), GetNumber(), GetSNumber(), GetTableFrame(), GetTableRules(), and HTMLOption().