]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathTabular.h
Coding style
[lyx.git] / src / mathed / InsetMathTabular.h
index da12246d6d82ab2ec4e3c3b22dac50f6295ab205..15a8809f92f82c35f6c64c089a52f50d697429a6 100644 (file)
 #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