]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.h
more cursor dispatch
[lyx.git] / src / metricsinfo.h
index 88fe44aaa380e0b987160ba5b221208908ffbd5e..4b16ac312002bcc8a294336208398950ee28b4a3 100644 (file)
@@ -13,7 +13,8 @@
 #define METRICSINFO_H
 
 #include "lyxfont.h"
-#include "support/std_string.h"
+
+#include <string>
 
 class Painter;
 class BufferView;
@@ -32,7 +33,7 @@ enum Styles {
 };
 
 
-// 
+//
 // This is the part common to MetricsInfo and PainterInfo
 //
 struct MetricsBase {
@@ -48,7 +49,7 @@ struct MetricsBase {
        /// current math style (display/text/script/..)
        Styles style;
        /// name of current font - mathed specific
-       string fontname;
+       std::string fontname;
        /// This is the width available in pixels
        int textwidth;
 };
@@ -175,4 +176,12 @@ struct WidthChanger : public Changer<MetricsBase>
 };
 
 
+// temporarily change the used color
+struct ColorChanger : public Changer<LyXFont, std::string> {
+       ///
+       ColorChanger(LyXFont & font, std::string const & color);
+       ///
+       ~ColorChanger();
+};
+
 #endif