]> git.lyx.org Git - features.git/blobdiff - src/frontends/xforms/ColorHandler.h
The 'Branches' mega-patch.
[features.git] / src / frontends / xforms / ColorHandler.h
index 1fa8dc830209aaef9cc3c1ea26cdd543d80c45d5..7f6ccf2e53681963328fca882f9b37780055ae23 100644 (file)
@@ -1,7 +1,8 @@
 // -*- C++ -*-
 /**
  * \file ColorHandler.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author unknown
  *
 #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
@@ -49,8 +49,10 @@ private:
        Display * display;
        ///
        Colormap colormap;
+       /// 
+       std::vector<GC> colorGCcache;
        ///
-       GC colorGCcache[LColor::ignore + 1];
+       GC getGCForeground(string const & s);
        ///
        typedef std::map<int, GC> LineGCCache;
        ///