]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.h
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathTabular.h
index da12246d6d82ab2ec4e3c3b22dac50f6295ab205..db96bc89397cc0e157e934f4d8e17b9e3a7ca50d 100644 (file)
@@ -4,7 +4,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "InsetMathGrid.h"
 
 
+namespace lyx {
+
+
 /// Inset for things like \begin{tabular}...\end{tabular}
 class InsetMathTabular : public InsetMathGrid {
 public:
        ///
-       InsetMathTabular(std::string const &, int m, int n);
-       ///
-       InsetMathTabular(std::string const &, int m, int n,
-               char valign, std::string const & halign);
+       InsetMathTabular(docstring const &, int m, int n);
        ///
-       InsetMathTabular(std::string const &, char valign, std::string const & halign);
+       InsetMathTabular(docstring const &, int m, int n,
+               char valign, docstring const & halign);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
+       Dimension const dimension(BufferView const &) const;
+       ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
        InsetMathTabular * asTabularInset() { return this; }
@@ -37,16 +40,18 @@ public:
        ///
        void write(WriteStream & os) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
        ///
        void normalize(NormalStream &) const;
        ///
        void maple(MapleStream &) const;
 
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       Inset * clone() const;
        ///
-       std::string name_;
+       docstring name_;
 };
 
+} // namespace lyx
+
 #endif