]> git.lyx.org Git - lyx.git/blobdiff - src/ColorHandler.h
OK I'll try guii1 again ...
[lyx.git] / src / ColorHandler.h
index 44cbc9d44a285834d0d433cb31b6d534d3567668..af85ad88b6a6ef1fa48e77ba5b7e9a686f6eff1f 100644 (file)
@@ -1,10 +1,10 @@
 // -*- C++ -*-
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
- *         Copyright 1995-2000 The LyX Team
+ *
+ *         Copyright 1995-2001 The LyX Team
  *
  * ======================================================*/
 
 #pragma interface
 #endif
 
+#include "frontends/Painter.h"
+
+#include <boost/scoped_ptr.hpp>
+
 // This is only included to provide stuff for the non-public sections
 #include <X11/Xlib.h>
 
-#include "PainterBase.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:
        ///
@@ -56,6 +60,6 @@ private:
 };
 
 ///
-extern LyXColorHandler * lyxColorHandler;
+extern boost::scoped_ptr<LyXColorHandler> lyxColorHandler;
 
 #endif