]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_gridinfo.h
Fix to bug 2362: Deleting superscript also deletes subscript.
[lyx.git] / src / mathed / math_gridinfo.h
index 5d3e844767503e6e4bafb6ee2419825be5e9dfea..2c9c8874eab00ba25a9b7178db8e1e798ad87caf 100644 (file)
@@ -1,33 +1,50 @@
+// -*- C++ -*-
+/**
+ * \file math_gridinfo.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 MATH_GRIDINFO_H
 #define MATH_GRIDINFO_H
 
-struct ColInfo
+#include <string>
+
+
+class ColInfo
 {
+public:
        ColInfo() : align('c'), rightline(0), leftline(false) {}
        char   align;      // column alignment
-       string width;      // column width
-       string special;    // special column alignment
+       std::string width;      // column width
+       std::string special;    // special column alignment
        int    rightline;  // a line on the right?
        bool   leftline;
 };
 
 
-struct RowInfo
+class RowInfo
 {
-       RowInfo() : topline(false), bottomline(false) {} 
+public:
+       RowInfo() : topline(false), bottomline(false) {}
        bool topline;     // horizontal line above
        int  bottomline;  // horizontal line below
 };
 
 
-struct CellInfo
+class CellInfo
 {
+public:
        CellInfo()
                : multi(0), leftline(false), rightline(false),
           topline(false), bottomline(false)
        {}
 
-       string content;    // cell content
+       std::string content;    // cell content
        int multi;         // multicolumn flag
        char align;        // cell alignment
        bool leftline;     // do we have a line on the left?