]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.h
ws changes only
[lyx.git] / src / metricsinfo.h
index fe64b81725b457b38b45b1d70a088da3c11af140..4b16ac312002bcc8a294336208398950ee28b4a3 100644 (file)
@@ -1,8 +1,20 @@
+// -*- C++ -*-
+/**
+ * \file metricsinfo.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #ifndef METRICSINFO_H
 #define METRICSINFO_H
 
 #include "lyxfont.h"
-#include "LString.h"
+
+#include <string>
 
 class Painter;
 class BufferView;
@@ -21,7 +33,7 @@ enum Styles {
 };
 
 
-// 
+//
 // This is the part common to MetricsInfo and PainterInfo
 //
 struct MetricsBase {
@@ -37,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;
 };
@@ -164,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