]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Color.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / Color.h
index 79979b7f03810643f440ba39f00978d5deb92004..a297ae0765c3cf97f640ec7df7182e9cbc561701 100644 (file)
@@ -16,8 +16,7 @@
 #ifndef COLOR_H
 #define COLOR_H
 
-
-#include "support/std_string.h"
+#include <string>
 
 
 class LColor_color;
@@ -31,7 +30,7 @@ bool getRGBColor(LColor_color col,
 
 struct RGBColor;
 /// returns a string of form #rrggbb, given an RGBColor struct
-string const X11hexname(RGBColor const & col);
+std::string const X11hexname(RGBColor const & col);
 
 struct HSVColor {
        double h;
@@ -52,16 +51,17 @@ struct RGBColor {
                : r(red), g(green), b(blue) {}
        RGBColor(HSVColor const &);
        /// \param x11hexname is of the form "#ffa071"
-       RGBColor(string const & x11hexname);
+       RGBColor(std::string const & x11hexname);
 };
 
 struct NamedColor : public RGBColor {
-       string name;
+       std::string lyxname;
+       std::string guiname;
        NamedColor() : RGBColor() {}
-       NamedColor(string const & n, RGBColor const & c)
-               : RGBColor(c), name(n) {}
+       NamedColor(std::string const & lyx, std::string const & gui,
+                  RGBColor const & c)
+               : RGBColor(c), lyxname(lyx), guiname(gui) {}
        RGBColor const & color() const { return *this; }
-       string const & getname() const { return name; }
 };
 
 inline