]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_matrixinset.h
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_matrixinset.h
index 950caa9e174a5ffed8f5da39f15a0cb3467c2751..8d8386bf6806870d131a57f87b780fff5f5b6f8e 100644 (file)
@@ -4,83 +4,34 @@
 
 #include "math_gridinset.h"
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-/** Multiline math paragraph base class.
-    This is the base to all multiline editable math objects
-    like array and eqnarray.
-    \author Alejandro Aguilar Sierra
-*/
 
-class LaTeXFeatures;
+// "shortcut" for DelimInset("(",ArrayInset,")")
 
 class MathMatrixInset : public MathGridInset {
-public: 
+public:
        ///
-       MathMatrixInset();
+       MathMatrixInset(MathGridInset const &);
        ///
-       explicit MathMatrixInset(MathInsetTypes t);
+       MathMatrixInset(string const & str);
        ///
        MathInset * clone() const;
        ///
-       void Write(std::ostream &, bool fragile) const;
-       ///
-       void Metrics(MathStyles st, int asc = 0, int des = 0);
-       ///
-       void draw(Painter &, int, int);
-       ///
-       string label(int row) const;
-       ///
-       void label(int row, string const & label);
-       ///
-       void numbered(int row, bool num);
-       ///
-       bool numbered(int row) const;
-       ///
-       bool numberedType() const;
-       ///
-       bool display() const;
-       ///
-       bool ams() const;
-       ///
-       std::vector<string> const getLabelList() const;
-       ///
-       void Validate(LaTeXFeatures & features) const;
+       void metrics(MathMetricsInfo &) const {}
+       /// identifies MatrixInsets
+       MathMatrixInset const * asMatrixInset() const { return this; }
 
        ///
-       void addRow(int);
-       ///
-       void delRow(int);
-       ///
-       void addCol(int);
+       void write(WriteStream & os) const;
        ///
-       void delCol(int);
+       void normalize(NormalStream &) const;
        ///
-       void appendRow();
-
-       /// change type
-       void mutate(string const &);
-       ///
-       void mutate(short);
-
-private:
+       void maple(MapleStream &) const;
        ///
-       void Validate1(LaTeXFeatures & features);
-       ///
-       void header_write(std::ostream &) const;
-       ///
-       void footer_write(std::ostream &) const;
-       ///
-       void glueall();
-       ///
-       string nicelabel(int row) const;
-
+       void maxima(MaximaStream &) const;
        ///
-       std::vector<int> nonum_;
+       void mathmlize(MathMLStream &) const;
        ///
-       std::vector<string> label_;
+       void octave(OctaveStream &) const;
 };
 
 #endif