diff options
-rw-r--r-- | src/css.cc | 10 | ||||
-rw-r--r-- | src/css.hh | 5 |
2 files changed, 14 insertions, 1 deletions
@@ -12,6 +12,11 @@ #include <stdio.h> #include "css.hh" +/** \todo dummy only */ +CssPropertyList *CssPropertyList::parse (const char *buf, int buflen) { + return NULL; +} + void CssPropertyList::set (CssProperty::Name name, CssProperty::Value value) { for (int i = 0; i < size (); i++) if (getRef (i)->name == name) { @@ -30,6 +35,11 @@ void CssPropertyList::apply (CssPropertyList *props) { } /** \todo dummy only */ +CssSelector *CssSelector::parse (const char *buf, int buflen) { + return NULL; +} + +/** \todo dummy only */ bool CssSelector::match (Doctree *docTree) { return tagIndex < 0 || tagIndex == docTree->top ()->tagIndex; } @@ -116,6 +116,7 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> { public: CssPropertyList() : lout::misc::SimpleVector <CssProperty> (1) {}; + static CssPropertyList *parse (const char *buf, int buflen); void set (CssProperty::Name name, CssProperty::Value value); void apply (CssPropertyList *props); }; @@ -131,7 +132,9 @@ class CssSelector { this->tagIndex = tagIndex; this->klass = klass; this->id = id; - }; + }; + + static CssSelector *parse (const char *buf, int buflen); bool match (Doctree *dt); }; |