summaryrefslogtreecommitdiff
path: root/src/css.hh
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-07-11 16:40:35 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-07-11 16:40:35 +0200
commitb2e341a63d6b2d5e458aa3511b66ca43e040da8f (patch)
tree31567056180eb47ad60cae4c466443acfadffa42 /src/css.hh
parent3c9d42d1fbfe6dc6c74360faec48c09e8449506f (diff)
make CssSimpleSelector members private
Diffstat (limited to 'src/css.hh')
-rw-r--r--src/css.hh18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/css.hh b/src/css.hh
index c6749fe2..462031e0 100644
--- a/src/css.hh
+++ b/src/css.hh
@@ -312,17 +312,31 @@ class CssPropertyList : public lout::misc::SimpleVector <CssProperty> {
};
class CssSimpleSelector {
+ private:
+ int element;
+ char *klass, *pseudo, *id;
+
public:
enum {
ELEMENT_NONE = -1,
ELEMENT_ANY = -2,
};
- int element;
- char *klass, *pseudo, *id;
+ typedef enum {
+ SELECT_NONE,
+ SELECT_CLASS,
+ SELECT_PSEUDO_CLASS,
+ SELECT_ID,
+ } SelectType;
CssSimpleSelector ();
~CssSimpleSelector ();
+ inline void setElement (int e) { element = e; };
+ void setSelect (SelectType t, const char *v);
+ inline const char *getClass () { return klass; };
+ inline const char *getPseudoClass () { return pseudo; };
+ inline const char *getId () { return id; };
+ inline int getElement () { return element; };
bool match (const DoctreeNode *node);
int specificity ();
void print ();