#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; }
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