]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/ColorHandler.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / ColorHandler.h
index ba2304373d73a1297fe86986de609aa89e41d757..d4086ae9a6f1e80ffe87e54b7e8f9d915845a0cc 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef COLOR_HANDLER_H
 #define COLOR_HANDLER_H
 
-
 #include "frontends/Painter.h"
 
 #include <map>
 // This is only included to provide stuff for the non-public sections
 #include <X11/Xlib.h>
 
+class LColor_color;
 class LyXFont;
 
+namespace lyx {
+namespace frontend {
+
 /**
  * This is a factory class that can produce GCs with a specific
  * color. It will cache GCs for performance.
@@ -35,14 +38,14 @@ public:
        ///
        ~LyXColorHandler();
        ///
-       unsigned long colorPixel(LColor::color c);
+       unsigned long colorPixel(LColor_color c);
        ///
-       GC getGCForeground(LColor::color c);
+       GC getGCForeground(LColor_color c);
        ///
        GC getGCLinepars(Painter::line_style,
-                        Painter::line_width, LColor::color c);
+                        Painter::line_width, LColor_color c);
        /// update the cache after a color definition change
-       void updateColor(LColor::color c);
+       void updateColor(LColor_color c);
 
 private:
        ///
@@ -52,7 +55,7 @@ private:
        ///
        std::vector<GC> colorGCcache;
        ///
-       GC getGCForeground(string const & s);
+       GC getGCForeground(std::string const & s);
        ///
        typedef std::map<int, GC> LineGCCache;
        ///
@@ -64,4 +67,7 @@ private:
 ///
 extern boost::scoped_ptr<LyXColorHandler> lyxColorHandler;
 
+} // namespace frontend
+} // namespace lyx
+
 #endif