- ///
- void LColor::fill(LColor::color c,
- std::string const & lyxname,
- std::string const & x11name = std::string(),
- std::string const & latexname = std::string(),
- std::string const & guiname = std::string());
-
- /// set the given LyX color to the color defined by the X11 name given
- void setColor(LColor::color col, std::string const & x11name);
- /// set the given LyX color to the color defined by the X11 name given
+ /** set the given LyX color to the color defined by the X11 name given
+ * \returns true if successful.
+ */
+ 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
+ */