]> git.lyx.org Git - lyx.git/blobdiff - src/ColorHandler.h
Fix fuer #209
[lyx.git] / src / ColorHandler.h
index b9e2640839f014d17f9da62f1941d551f31011f6..b5864e0f6e2b39ed580047b0f0d821f2bb47e4d2 100644 (file)
@@ -4,7 +4,7 @@
  * 
  *           LyX, The Document Processor
  *      
- *         Copyright 1995-2000 The LyX Team
+ *         Copyright 1995-2001 The LyX Team
  *
  * ======================================================*/
 
 #pragma interface
 #endif
 
-//#include "config.h"
-//#include "LString.h"
+#include <boost/smart_ptr.hpp>
 
 // This is only included to provide stuff for the non-public sections
 #include <X11/Xlib.h>
 
-#include <map>
 #include "PainterBase.h"
-#include "LColor.h"
 
 class LyXFont;
 class WorkArea;
 
-///
+/**
+ * This is a factory class that can produce GCs with a specific
+ * color. It will cache GCs for performance.
+ */
 class LyXColorHandler {
 public:
        ///
@@ -60,6 +60,7 @@ private:
        Pixmap drawable;
 };
 
-extern LyXColorHandler * lyxColorHandler;
+///
+extern boost::scoped_ptr<LyXColorHandler> lyxColorHandler;
 
 #endif