template<typename EnumT> struct HTMLOptionEnum
{ constchar *pName; // value of an HTML option
EnumT nValue; // and corresponding value of an enum
};
/** Representation of an HTML option (=attribute in a start tag). *Thevaluesoftheoptionsarealwaysstoredasstrings. *ThemethodsGetNumber,...mayonlybecallediftheoption *isactuallynumerical,...
*/ class SVT_DLLPUBLIC HTMLOption
{
OUString aValue; // value of the option (always as string)
OUString aToken; // name of the option as string
HtmlOptionId nToken; // and respective token
// name of the option...
HtmlOptionId GetToken() const { return nToken; } // ... as enum const OUString& GetTokenString() const { return aToken; } // ... as string
// value of the option ... const OUString& GetString() const { return aValue; } // ... as string
sal_uInt32 GetNumber() const; // ... as number
sal_Int32 GetSNumber() const; // ... as number void GetNumbers( std::vector<sal_uInt32> &rNumbers ) const; // ... as numbers void GetColor( Color& ) const; // ... as color
// Filter the current token according to the current mode // (PRE, XMP, ...) and set the flags. Is called by Continue before // NextToken is called. If you implement own loops or call // NextToken yourself, you should call this method beforehand.
HtmlTokenId FilterToken( HtmlTokenId nToken );
// Token without \-sequences void UnescapeToken();
// Determine the options. pNoConvertToken is the optional token // of an option, for which the CR/LFs are not deleted from the value // of the option. const HTMLOptions& GetOptions( HtmlOptionId const *pNoConvertToken=nullptr );
// for asynchronous reading from the SvStream virtualvoidContinue( HtmlTokenId nToken ) override;
// Remove a comment around the content of <SCRIPT> or <STYLE>. // The whole line behind a "<!--" might be deleted (for JavaScript). staticvoid RemoveSGMLComment( OUString &rString );
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.