diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-06 09:36:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-06 09:52:04 +0200 |
commit | 5a099fef6e804c8fc17647c4ad2279102d0ce383 (patch) | |
tree | 7df24de75097c16fdb4a2e5d45d235a7841970ea /svtools/source/svhtml/parhtml.cxx | |
parent | 1cbef3eb084b78734165f79854b58afc860bac1c (diff) |
convert HTMLInputType to scoped enum
Change-Id: I3f6f6aadd813898ccff93154138a2fbf911b9c8f
Diffstat (limited to 'svtools/source/svhtml/parhtml.cxx')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 4e98c3017dde..77e93354ccaf 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -53,18 +53,18 @@ const sal_Int32 MAX_ENTITY_LEN( 8L ); // <INPUT TYPE=xxx> static HTMLOptionEnum<HTMLInputType> const aInputTypeOptEnums[] = { - { OOO_STRING_SVTOOLS_HTML_IT_text, HTML_IT_TEXT }, - { OOO_STRING_SVTOOLS_HTML_IT_password, HTML_IT_PASSWORD }, - { OOO_STRING_SVTOOLS_HTML_IT_checkbox, HTML_IT_CHECKBOX }, - { OOO_STRING_SVTOOLS_HTML_IT_radio, HTML_IT_RADIO }, - { OOO_STRING_SVTOOLS_HTML_IT_range, HTML_IT_RANGE }, - { OOO_STRING_SVTOOLS_HTML_IT_scribble, HTML_IT_SCRIBBLE }, - { OOO_STRING_SVTOOLS_HTML_IT_file, HTML_IT_FILE }, - { OOO_STRING_SVTOOLS_HTML_IT_hidden, HTML_IT_HIDDEN }, - { OOO_STRING_SVTOOLS_HTML_IT_submit, HTML_IT_SUBMIT }, - { OOO_STRING_SVTOOLS_HTML_IT_image, HTML_IT_IMAGE }, - { OOO_STRING_SVTOOLS_HTML_IT_reset, HTML_IT_RESET }, - { OOO_STRING_SVTOOLS_HTML_IT_button, HTML_IT_BUTTON }, + { OOO_STRING_SVTOOLS_HTML_IT_text, HTMLInputType::Text }, + { OOO_STRING_SVTOOLS_HTML_IT_password, HTMLInputType::Password }, + { OOO_STRING_SVTOOLS_HTML_IT_checkbox, HTMLInputType::Checkbox }, + { OOO_STRING_SVTOOLS_HTML_IT_radio, HTMLInputType::Radio }, + { OOO_STRING_SVTOOLS_HTML_IT_range, HTMLInputType::Range }, + { OOO_STRING_SVTOOLS_HTML_IT_scribble, HTMLInputType::Scribble }, + { OOO_STRING_SVTOOLS_HTML_IT_file, HTMLInputType::File }, + { OOO_STRING_SVTOOLS_HTML_IT_hidden, HTMLInputType::Hidden }, + { OOO_STRING_SVTOOLS_HTML_IT_submit, HTMLInputType::Submit }, + { OOO_STRING_SVTOOLS_HTML_IT_image, HTMLInputType::Image }, + { OOO_STRING_SVTOOLS_HTML_IT_reset, HTMLInputType::Reset }, + { OOO_STRING_SVTOOLS_HTML_IT_button, HTMLInputType::Button }, { nullptr, (HTMLInputType)0 } }; @@ -198,7 +198,7 @@ void HTMLOption::GetColor( Color& rColor ) const HTMLInputType HTMLOption::GetInputType() const { DBG_ASSERT( nToken==HTML_O_TYPE, "GetInputType: Option not TYPE" ); - return (HTMLInputType)GetEnum( aInputTypeOptEnums, HTML_IT_TEXT ); + return (HTMLInputType)GetEnum( aInputTypeOptEnums, HTMLInputType::Text ); } HTMLTableFrame HTMLOption::GetTableFrame() const |