mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
ed858d73e5
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19920 a592a061-630c-0410-9148-cb99ea01b6c8
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file InsetMathAMSArray.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef MATH_AMSARRAYINSET_H
|
|
#define MATH_AMSARRAYINSET_H
|
|
|
|
#include "InsetMathGrid.h"
|
|
|
|
|
|
namespace lyx {
|
|
|
|
/// Inset for things like [pbvV]matrix, psmatrix etc
|
|
class InsetMathAMSArray : public InsetMathGrid {
|
|
public:
|
|
///
|
|
InsetMathAMSArray(docstring const & name, int m, int n);
|
|
///
|
|
InsetMathAMSArray(docstring const & name);
|
|
///
|
|
bool metrics(MetricsInfo & mi, Dimension & dim) const;
|
|
///
|
|
void draw(PainterInfo & pain, int x, int y) const;
|
|
///
|
|
InsetMathAMSArray * asAMSArrayInset() { return this; }
|
|
///
|
|
InsetMathAMSArray const * asAMSArrayInset() const { return this; }
|
|
|
|
///
|
|
bool getStatus(Cursor & cur, FuncRequest const & cmd,
|
|
FuncStatus & flag) const;
|
|
///
|
|
void write(WriteStream & os) const;
|
|
///
|
|
void infoize(odocstream & os) const;
|
|
///
|
|
void normalize(NormalStream &) const;
|
|
///
|
|
void validate(LaTeXFeatures & features) const;
|
|
private:
|
|
virtual Inset * clone() const;
|
|
///
|
|
char const * name_left() const;
|
|
///
|
|
char const * name_right() const;
|
|
|
|
///
|
|
docstring name_;
|
|
};
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|