20 #ifndef INCLUDED_SW_SOURCE_FILTER_HTML_PARCSS1_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_HTML_PARCSS1_HXX
23 #include <rtl/ustring.hxx>
99 : eType(eTyp), aSelector( rSel ), pNext( nullptr )
129 : cOp(cO), eType(eTyp), aValue(rVal), nValue(nVal), pNext(nullptr)
134 inline void Set(
CSS1Token eTyp,
const OUString &rVal,
double nVal );
143 void GetURL( OUString& rURL )
const;
158 return nValue < 0. ? 0UL :
static_cast<sal_uInt32
>(
nValue + .5);
163 return static_cast<sal_Int32
>(
nValue + (
nValue < 0. ? -.5 : .5 ));
200 void InitRead(
const OUString& rIn );
245 virtual void SelectorParsed( std::unique_ptr<CSS1Selector> pSelector,
bool bFirst );
253 std::unique_ptr<CSS1Expression> pExpr );
CSS1Expression(CSS1Token eTyp, const OUString &rVal, double nVal, sal_Unicode cO=0)
void Set(CSS1Token eTyp, const OUString &rVal, double nVal)
const OUString & GetString() const
sal_Unicode GetOp() const
bool IsParserWorking() const
Is the parser still working?
sal_Unicode GetNextChar()
a subexpression of a CSS1 declaration
const CSS1Expression * GetNext() const
std::unique_ptr< CSS1Selector > ParseSelector()
Parser of a style element/option.
void SetNext(CSS1Expression *pNxt)
sal_uInt32 GetULength() const
void ParseStyleOption(const OUString &rIn)
parse the content of a HTML style option
CSS1Selector(CSS1SelectorType eTyp, const OUString &rSel)
std::unique_ptr< CSS1Expression > ParseDeclaration(OUString &rProperty)
const CSS1Selector * GetNext() const
const OUString & GetString() const
sal_Int32 GetSLength() const
virtual void SelectorParsed(std::unique_ptr< CSS1Selector > pSelector, bool bFirst)
Called after a selector was parsed.
bool GetColor(Color &rRGB) const
void InitRead(const OUString &rIn)
prepare parsing
CSS1Token GetType() const
CSS1SelectorType GetType() const
void GetURL(OUString &rURL) const
virtual void DeclarationParsed(const OUString &rProperty, std::unique_ptr< CSS1Expression > pExpr)
Called after a declaration or property was parsed.
void SetNext(CSS1Selector *pNxt)