00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef ELEMENTSTYLE_H
00019 #define ELEMENTSTYLE_H
00020
00021 #include <sstream>
00022
00023 #include "stylecolour.h"
00024
00025 using namespace std;
00026
00027 namespace highlight {
00028
00034 class ElementStyle {
00035 public:
00036
00042 ElementStyle(StyleColour col, bool b, bool i, bool u);
00043
00046 ElementStyle(const string & elementStyleString);
00047
00048 ElementStyle();
00049
00050 ~ElementStyle();
00051
00055 void set(const string & elementStyleString);
00056
00058 bool isItalic() const;
00059
00061 bool isBold() const;
00062
00064 bool isUnderline() const;
00065
00067 StyleColour getColour() const;
00068
00069 private:
00070 StyleColour colour;
00071 bool bold, italic, underline;
00072 };
00073
00074 }
00075
00076 #endif