namespace SfxFrameHTMLParser
{ void ParseFrameOptions(
SfxFrameDescriptor *pFrame, const HTMLOptions& rOptions, std::u16string_view rBaseURL )
{ // Get and set the options
Size aMargin( pFrame->GetMargin() );
// Netscape seems to set marginwidth to 0 as soon as // marginheight is set, and vice versa. // Netscape does however not allow for a direct // setting to 0, while IE4.0 does // We will not mimic that bug ! bool bMarginWidth = false, bMarginHeight = false;
for (constauto & rOption : rOptions)
{ switch( rOption.GetToken() )
{ case HtmlOptionId::SRC:
pFrame->SetURL(
INetURLObject::GetAbsURL(
rBaseURL, rOption.GetString()) ); break; case HtmlOptionId::NAME:
pFrame->SetName( rOption.GetString() ); break; case HtmlOptionId::MARGINWIDTH:
aMargin.setWidth( rOption.GetNumber() );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.