]> git.lyx.org Git - lyx.git/blobdiff - src/metricsinfo.h
Move #includes out of header files.
[lyx.git] / src / metricsinfo.h
index c626956491b529b3be94f37f1d85a8369ea4af00..4881cf8ad6de4df6c5419d81bee6c74ec9d13fc1 100644 (file)
@@ -1,3 +1,14 @@
+// -*- 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
 
@@ -27,6 +38,8 @@ enum Styles {
 struct MetricsBase {
        ///
        MetricsBase();
+       ///
+       MetricsBase(BufferView * bv, LyXFont const & font, int textwidth);
 
        /// the current view
        BufferView * bv;
@@ -34,11 +47,9 @@ struct MetricsBase {
        LyXFont font;
        /// current math style (display/text/script/..)
        Styles style;
-       /// name of current font
+       /// name of current font - mathed specific
        string fontname;
-       /// if this is set...
-       bool restrictwidth;
-       /// ... this is valid
+       /// This is the width available in pixels
        int textwidth;
 };
 
@@ -50,6 +61,8 @@ struct MetricsBase {
 struct MetricsInfo {
        ///
        MetricsInfo();
+       ///
+       MetricsInfo(BufferView * bv, LyXFont const & font, int textwidth);
 
        ///
        MetricsBase base;