]> git.lyx.org Git - lyx.git/blobdiff - src/ColorHandler.h
fix "make dist" target
[lyx.git] / src / ColorHandler.h
index f868fbfb341c247d72a10e2a543d4a8c85ee7690..f78d3937e70ea8e75a8679f6db4507d00203b13e 100644 (file)
 #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;
@@ -42,6 +39,9 @@ public:
        ///
        GC getGCLinepars(PainterBase::line_style,
                         PainterBase::line_width, LColor::color c);
+       /// update the cache after a color definition change
+       void updateColor(LColor::color c);
+
 private:
        ///
        Display * display;
@@ -57,6 +57,7 @@ private:
        Pixmap drawable;
 };
 
-extern LyXColorHandler * lyxColorHandler;
+///
+extern boost::scoped_ptr<LyXColorHandler> lyxColorHandler;
 
 #endif