]> git.lyx.org Git - lyx.git/blobdiff - src/LColor.h
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / LColor.h
index ab0fdd3a24a7b234419dcf5b8b75e07691361145..d7ca132759fc7d485e5397883d1463fcd776dc74 100644 (file)
 #ifndef LCOLOR_H
 #define LCOLOR_H
 
+#include "support/docstring.h"
+
 #include <boost/scoped_ptr.hpp>
-#include <string>
+
+
+namespace lyx {
 
 /**
  * This is a stateless class.
@@ -93,7 +97,8 @@ public:
                greyedout,
                /// Background color of greyedout inset
                greyedoutbg,
-
+               /// Shaded box background
+               shadedbg,
 
                /// Color for the depth bars in the margin
                depthbar,
@@ -162,16 +167,12 @@ public:
                pagebreak,
 
                // FIXME: why are the next four separate ??
-               /// Color used for top of boxes
-               top,
-               /// Color used for bottom of boxes
-               bottom,
-               /// Color used for left side of boxes
-               left,
-               /// Color used for right side of boxes
-               right,
+               /// Color used for button frame
+               buttonframe,
                /// Color used for bottom background
                buttonbg,
+               /// Color used for buttom under focus
+               buttonhoverbg,
 
                // Logical attributes
 
@@ -203,7 +204,7 @@ public:
        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;
+       docstring const getGUIName(LColor::color c) const;
 
        /// Get the X11 name of \c color.
        std::string const getX11Name(LColor::color c) const;
@@ -214,10 +215,10 @@ public:
        /// Get the LyX name of \c color.
        std::string const getLyXName(LColor::color c) const;
 
-       /// \returns the LColor::color associated with the GUI name.
-       LColor::color getFromGUIName(std::string const & guiname) const;
        /// \returns the LColor::color associated with the LyX name.
        LColor::color getFromLyXName(std::string const & lyxname) const;
+       /// \returns the LColor::color associated with the LaTeX name.
+       LColor::color getFromLaTeXName(std::string const & latexname) const;
 private:
        ///
        void addColor(LColor::color c, std::string const & lyxname) const;
@@ -249,4 +250,7 @@ extern LColor lcolor;
 /// the system color definitions
 extern LColor system_lcolor;
 
+
+} // namespace lyx
+
 #endif