namespace lyx {
+class BufferParams;
+
/** Gridded math inset base class.
* This is the base to all grid-like editable math objects
InsetMathGrid(Buffer * buf, col_type m, row_type n, char valign,
docstring const & halign);
///
+ marker_type marker(BufferView const *) const { return MARKER2; };
+ ///
void metrics(MetricsInfo & mi, Dimension &) const;
///
void draw(PainterInfo & pi, int x, int y) const;
- /// draw decorations.
- void drawDecoration(PainterInfo & pi, int x, int y) const
- { drawMarkers2(pi, x, y); }
///
void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
///
bool idxBackward(Cursor &) const;
///
bool idxForward(Cursor &) const;
- ///
- bool idxFirst(Cursor &) const;
- ///
- bool idxLast(Cursor &) const;
+ //
+ idx_type firstIdx() const;
+ //
+ idx_type lastIdx() const;
///
bool idxDelete(idx_type & idx);
/// pulls cell after pressing erase
//void maple(MapleStream &) const;
///
void mathmlize(MathStream &) const;
- ///
+ ///
void htmlize(HtmlStream &) const;
///
void htmlize(HtmlStream &, std::string attrib) const;
/// Width of cell, taking combined columns into account
int cellWidth(idx_type idx) const;
///
- virtual int leftMargin() const { return 1; }
+ virtual int leftMargin() const { return 0; }
///
- virtual int rightMargin() const { return 1; }
+ virtual int rightMargin() const { return 0; }
/// returns proper 'end of line' code for LaTeX
virtual docstring eolString(row_type row, bool fragile, bool latex,
// The following two functions are used in InsetMathHull and
// InsetMathSplit.
- /// The value of a fixed col align for a certain hull type
- static char colAlign(HullType type, col_type col);
+ /// The value of a fixed col align for a certain hull type (can
+ /// depend on the "indent math" setting).
+ static char colAlign(HullType type, col_type col, BufferParams const &);
/// The value of a fixed col spacing for a certain hull type
static int colSpace(HullType type, col_type col);