mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Reduce horizontal spacing for simple inline equations
This commit is contained in:
parent
a48581f48c
commit
f5fe3c17be
@ -2120,6 +2120,24 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int InsetMathHull::leftMargin() const
|
||||||
|
{
|
||||||
|
return (getType() == hullSimple) ? 0 : InsetMathGrid::leftMargin();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int InsetMathHull::rightMargin() const
|
||||||
|
{
|
||||||
|
return (getType() == hullSimple) ? 0 : InsetMathGrid::rightMargin();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int InsetMathHull::border() const
|
||||||
|
{
|
||||||
|
return (getType() == hullSimple) ? 0 : InsetMathGrid::border();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
@ -200,6 +200,12 @@ protected:
|
|||||||
/// do we want to handle this event?
|
/// do we want to handle this event?
|
||||||
bool getStatus(Cursor & cur, FuncRequest const & cmd,
|
bool getStatus(Cursor & cur, FuncRequest const & cmd,
|
||||||
FuncStatus & status) const;
|
FuncStatus & status) const;
|
||||||
|
/// override to set to 0 for inline equation
|
||||||
|
int leftMargin() const;
|
||||||
|
/// override to set to 0 for inline equation
|
||||||
|
int rightMargin() const;
|
||||||
|
/// override to set to 0 for inline equation
|
||||||
|
int border() const;
|
||||||
///
|
///
|
||||||
docstring eolString(row_type row, bool fragile, bool latex,
|
docstring eolString(row_type row, bool fragile, bool latex,
|
||||||
bool last_eoln) const;
|
bool last_eoln) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user