]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/ColorHandler.h
Introduce LFUN_PRINT.
[lyx.git] / src / frontends / xforms / ColorHandler.h
index af85ad88b6a6ef1fa48e77ba5b7e9a686f6eff1f..594d33d47cc3227e7ce133ed8e11f25015c559a5 100644 (file)
@@ -1,27 +1,28 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- *           LyX, The Document Processor
+/**
+ * \file ColorHandler.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *         Copyright 1995-2001 The LyX Team
+ * \author unknown
  *
- * ======================================================*/
+ * Full author contact details are available in file CREDITS.
+ */
 
 #ifndef COLOR_HANDLER_H
 #define COLOR_HANDLER_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "frontends/Painter.h"
 
+#include <map>
+#include <vector>
 #include <boost/scoped_ptr.hpp>
 
 // This is only included to provide stuff for the non-public sections
 #include <X11/Xlib.h>
 
+class LColor_color;
 class LyXFont;
 
 /**
@@ -35,14 +36,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(PainterBase::line_style,
-                        PainterBase::line_width, LColor::color c);
+       GC getGCLinepars(Painter::line_style,
+                        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:
        ///
@@ -50,7 +51,9 @@ private:
        ///
        Colormap colormap;
        ///
-       GC colorGCcache[LColor::ignore + 1];
+       std::vector<GC> colorGCcache;
+       ///
+       GC getGCForeground(std::string const & s);
        ///
        typedef std::map<int, GC> LineGCCache;
        ///