* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
}
-Dimension const InsetMathAMSArray::dimension(BufferView const & bv) const
-{
- Dimension dim = InsetMathGrid::dimension(bv);
- dim.wid += 14;
- return dim;
-}
-
-
void InsetMathAMSArray::draw(PainterInfo & pi, int x, int y) const
{
Dimension const dim = dimension(*pi.base.bv);
if (s == "add-vline-left" || s == "add-vline-right") {
flag.message(bformat(
from_utf8(N_("Can't add vertical grid lines in '%1$s'")), name_));
- flag.enabled(false);
+ flag.setEnabled(false);
return true;
}
return InsetMathGrid::getStatus(cur, cmd, flag);
void InsetMathAMSArray::write(WriteStream & os) const
{
+ MathEnsurer ensurer(os);
os << "\\begin{" << name_ << '}';
InsetMathGrid::write(os);
os << "\\end{" << name_ << '}';
void InsetMathAMSArray::validate(LaTeXFeatures & features) const
{
- features.require("amsmath");
+ if (name_ == "CD")
+ // amscd is independent of amsmath although it is part of
+ // the amsmath bundle
+ features.require("amscd");
+ else
+ features.require("amsmath");
InsetMathGrid::validate(features);
}