51 bool bMarginWidth =
false, bMarginHeight =
false;
53 for (
const auto & rOption : rOptions)
55 switch( rOption.GetToken() )
57 case HtmlOptionId::SRC:
60 rBaseURL, rOption.GetString()) );
62 case HtmlOptionId::NAME:
63 pFrame->
SetName( rOption.GetString() );
65 case HtmlOptionId::MARGINWIDTH:
66 aMargin.
setWidth( rOption.GetNumber() );
72 case HtmlOptionId::MARGINHEIGHT:
79 case HtmlOptionId::SCROLLING:
82 case HtmlOptionId::FRAMEBORDER:
84 const OUString&
aStr = rOption.GetString();
86 if (
aStr.equalsIgnoreAsciiCase(
"NO") ||
87 aStr.equalsIgnoreAsciiCase(
"0") )
static OUString GetAbsURL(std::u16string_view rTheBaseURIRef, OUString const &rTheRelURIRef, EncodeMechanism eEncodeMechanism=EncodeMechanism::WasEncoded, DecodeMechanism eDecodeMechanism=DecodeMechanism::ToIUri, rtl_TextEncoding eCharset=RTL_TEXTENCODING_UTF8)
void SetURL(std::u16string_view rURL)
void SetScrollingMode(ScrollingMode eMode)
void SetName(const OUString &rName)
void SetFrameBorder(bool bBorder)
const Size & GetMargin() const
void SetMargin(const Size &rMargin)
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
char const sHTML_SC_auto[]
HTMLOptionEnum< ScrollingMode > const aScrollingTable[]
char const sHTML_SC_yes[]
void ParseFrameOptions(SfxFrameDescriptor *pFrame, const HTMLOptions &rOptions, std::u16string_view rBaseURL)
::std::vector< HTMLOption > HTMLOptions