]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Color.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / Color.h
index 8ce8548f05404f1fff5d98fd1e32de39ec4aadf6..acd04527ecc52672c01de3fe087a72f4582f648a 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef COLOR_H
 #define COLOR_H
 
-#include <utility> // for pair
-
 #ifdef __GNUG_
 #pragma interface
 #endif
@@ -42,17 +40,13 @@ struct RGBColor {
        RGBColor(HSVColor const &);
 };
 
-typedef std::pair<string, RGBColor> X11Color;
-
-/// struct holding xform-specific colors
-struct XformColor {
+struct NamedColor : public RGBColor {
        string name;
-       int colorID;
-       RGBColor col;
-       XformColor() : colorID(0) {}
+       NamedColor() : RGBColor() {}
+       NamedColor(string const & n, RGBColor const & c )
+               : RGBColor(c), name(n) {}
+       RGBColor const & color() const { return *this; }
        string const & getname() const { return name; }
-       static bool read(string const &);
-       static bool write(string const &);
 };
 
 inline