mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-19 14:30:00 +00:00
1c84d0ca82
Fixes #10466 and visual/compilation bugs with InsetMathSplit, InsetMathDiagram, InsetMathHull, InsetMathSubstack and InsetMathXYMatrix.
73 lines
1.7 KiB
C++
73 lines
1.7 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(Buffer * buf, docstring const &, int m, int n);
|
|
///
|
|
InsetMathAMSArray(Buffer * buf, docstring const &);
|
|
///
|
|
void 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;
|
|
// Don't need mathmlize or htmlize, as this is handled by
|
|
// InsetMathMatrix after being extracted in MathExtern.
|
|
// void mathmlize(MathStream &) const;
|
|
// void htmlize(HTMLStream &) const;
|
|
///
|
|
void validate(LaTeXFeatures & features) const;
|
|
///
|
|
InsetCode lyxCode() const { return MATH_AMSARRAY_CODE; }
|
|
///
|
|
char const * name_left() const;
|
|
///
|
|
char const * name_right() const;
|
|
///
|
|
int leftMargin() const { return 6; } //override
|
|
///
|
|
int rightMargin() const { return 8; } //override
|
|
///
|
|
bool handlesMulticolumn() const { return true; } //override
|
|
|
|
private:
|
|
virtual Inset * clone() const;
|
|
///
|
|
docstring name_;
|
|
};
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|