]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.h
Change to use preffered calling of Boost.Function
[lyx.git] / src / LColor.h
index 8c84cd6956a7af0d7236a7c32d96570e348bfecd..f5fd206601ccbde34fd30c7c82aeaa97ea117301 100644 (file)
@@ -198,6 +198,12 @@ public:
         */
        bool setColor(LColor::color col, std::string const & x11name);
 
+       /** set the given LyX color to the color defined by the X11
+        *  name given \returns true if successful. A new color entry
+        *  is created if the color is unknown
+        */
+       bool setColor(std::string const & lyxname, std::string const & x11name);
+
        /// Get the GUI name of \c color.
        std::string const getGUIName(LColor::color c) const;