20#ifndef INCLUDED_SW_SOURCE_FILTER_HTML_PARCSS1_HXX
21#define INCLUDED_SW_SOURCE_FILTER_HTML_PARCSS1_HXX
23#include <rtl/ustring.hxx>
136 inline void Set(
CSS1Token eTyp,
const OUString &rVal,
double nVal );
145 void GetURL( OUString& rURL )
const;
165 return static_cast<sal_Int32
>(
nValue + (
nValue < 0. ? -.5 : .5 ));
202 void InitRead(
const OUString& rIn );
247 virtual void SelectorParsed( std::unique_ptr<CSS1Selector> pSelector,
bool bFirst );
255 std::unique_ptr<CSS1Expression> pExpr );
Parser of a style element/option.
bool IsParserWorking() const
Is the parser still working?
void InitRead(const OUString &rIn)
prepare parsing
virtual void SelectorParsed(std::unique_ptr< CSS1Selector > pSelector, bool bFirst)
Called after a selector was parsed.
virtual void DeclarationParsed(const OUString &rProperty, std::unique_ptr< CSS1Expression > pExpr)
Called after a declaration or property was parsed.
sal_Unicode GetNextChar()
std::unique_ptr< CSS1Expression > ParseDeclaration(OUString &rProperty)
void ParseStyleOption(const OUString &rIn)
parse the content of a HTML style option
std::unique_ptr< CSS1Selector > ParseSelector()
CSS1SelectorType GetType() const
void SetNext(CSS1Selector *pNxt)
const OUString & GetString() const
CSS1Selector(CSS1SelectorType eTyp, OUString aSel)
const CSS1Selector * GetNext() const
@ CSS1_SELTYPE_ELEM_CLASS
a subexpression of a CSS1 declaration
void SetNext(CSS1Expression *pNxt)
CSS1Expression(CSS1Token eTyp, OUString aVal, double nVal, sal_Unicode cO=0)
const CSS1Expression * GetNext() const
CSS1Token GetType() const
void Set(CSS1Token eTyp, const OUString &rVal, double nVal)
void GetURL(OUString &rURL) const
sal_uInt32 GetULength() const
sal_Unicode GetOp() const
const OUString & GetString() const
sal_Int32 GetSLength() const
bool GetColor(Color &rRGB) const