int leftMargin() const { return 6; } //override
///
int rightMargin() const { return 8; } //override
+ ///
+ bool handlesMulticolumn() const { return true; } //override
private:
virtual Inset * clone() const;
int leftMargin() const { return 4; } //override
///
int rightMargin() const { return 2; } //override
+ ///
+ bool handlesMulticolumn() const { return true; } //override
private:
virtual Inset * clone() const;
int leftMargin() const { return 8; } //override
///
int rightMargin() const { return 0; } //override
+ /// see e.g. https://tex.stackexchange.com/a/133283/87201
+ bool handlesMulticolumn() const { return true; } //override
private:
virtual Inset * clone() const;
virtual int vlinesep() const;
///
virtual int border() const;
+ ///
+ virtual bool handlesMulticolumn() const { return false; }
///
void write(WriteStream & os) const;
#include "InsetMathChar.h"
#include "InsetMathColor.h"
#include "InsetMathFrac.h"
-#include "InsetMathGrid.h"
#include "InsetMathNest.h"
#include "InsetMathScript.h"
#include "MathExtern.h"
void octave(OctaveStream &) const;
///
InsetCode lyxCode() const { return MATH_MATRIX_CODE; }
+ ///
+ bool handlesMulticolumn() const { return true; } //override
private:
virtual Inset * clone() const;
}
-// FIXME: InsetMathGrid should be changed to let the real column alignment be
-// given by a virtual method like displayColAlign, because the values produced
-// by defaultColAlign can be invalidated by lfuns such as add-column. I suspect
-// that for the moment the values produced by defaultColAlign are not used,
-// notably because alignment is not implemented in the LyXHTML output.
char InsetMathSplit::defaultColAlign(col_type col)
{
if (name_ == "gathered")
int leftMargin() const { return 4; } //override
///
int rightMargin() const { return 2; } //override
+ ///
+ bool handlesMulticolumn() const { return true; } //override
private:
Inset * clone() const;
}
}
- else if (t.cs() == "multicolumn") {
+ else if (t.cs() == "multicolumn" && grid.handlesMulticolumn()) {
// if the columns are specified numerically,
// extract column count and insert dummy cells,
// otherwise parse it as an user macro