]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathAMSArray.h
visual mode for bidi cursor movement
[lyx.git] / src / mathed / InsetMathAMSArray.h
index d890aee7a2b4310af886ebdc342be0668eaadc3d..2b5491fe37e7b2da5bf05d586f6a9ed6a827123c 100644 (file)
 #include "InsetMathGrid.h"
 
 
+namespace lyx {
+
 /// Inset for things like [pbvV]matrix, psmatrix etc
 class InsetMathAMSArray : public InsetMathGrid {
 public:
        ///
-       InsetMathAMSArray(std::string const & name, int m, int n);
+       InsetMathAMSArray(docstring const & name, int m, int n);
        ///
-       InsetMathAMSArray(std::string const & name);
+       InsetMathAMSArray(docstring const & name);
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
+       Dimension const dimension(BufferView const &) const;
+       ///
        void draw(PainterInfo & pain, int x, int y) const;
        ///
        InsetMathAMSArray * asAMSArrayInset() { return this; }
@@ -32,25 +36,27 @@ public:
        InsetMathAMSArray const * asAMSArrayInset() const { return this; }
 
        ///
-       bool getStatus(LCursor & cur, FuncRequest const & cmd,
+       bool getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const;
        ///
        void write(WriteStream & os) const;
        ///
-       void infoize(std::ostream & os) const;
+       void infoize(odocstream & os) const;
        ///
        void normalize(NormalStream &) const;
        ///
        void validate(LaTeXFeatures & features) const;
 private:
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual Inset * clone() const;
        ///
        char const * name_left() const;
        ///
        char const * name_right() const;
 
        ///
-       std::string name_;
+       docstring name_;
 };
 
+} // namespace lyx
+
 #endif