]> git.lyx.org Git - lyx.git/blobdiff - src/ColorSet.h
Document NeedCProtect -1
[lyx.git] / src / ColorSet.h
index d688f4494ae9e7532cf100bb22153480e70becec..c1de480f4f0b66dd8a2f0cba2572627a110b0e04 100644 (file)
@@ -63,6 +63,17 @@ public:
        bool setColor(std::string const & lyxname, std::string const & x11hexname,
                      std::string const & x11darkhexname = std::string());
 
+       /** set the given LyX color to a latexcolor if not yet defined
+        *  \returns true if successful. A new color entry
+        *  is created if the color is unknown.
+        */
+       bool setLaTeXName(std::string const & lyxname, std::string const & latexname);
+
+       /** set the GUI name of a given LyX color to a guiname if not yet defined
+        *  \returns true if successful.
+        */
+       bool setGUIName(std::string const & lyxname, std::string const & guiname);
+
        /// Get the GUI name of \c color.
        docstring const getGUIName(ColorCode c) const;