diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-10-29 18:24:05 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-10-29 18:24:05 +0100 |
commit | faa12b128ac5e22aed81a1ca692ddc504b31bd10 (patch) | |
tree | 7eb8f58354341f67400b72de75a2fcbb865929ab | |
parent | 76744ba93785ec25f181ba8980398fdc2a8ca304 (diff) |
add static parse method dummies
-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); }; |