mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
*** empty log message ***
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6316 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ea59317b9a
commit
b15159f000
@ -22,6 +22,7 @@ MathInset * MathFrameboxInset::clone() const
|
||||
|
||||
void MathFrameboxInset::metrics(MathMetricsInfo & mi) const
|
||||
{
|
||||
MathFontSetChanger dummy(mi.base, "textnormal");
|
||||
w_ = mathed_char_width(mi.base.font, '[');
|
||||
MathNestInset::metrics(mi);
|
||||
dim_ = cell(0).dim();
|
||||
@ -33,6 +34,7 @@ void MathFrameboxInset::metrics(MathMetricsInfo & mi) const
|
||||
|
||||
void MathFrameboxInset::draw(MathPainterInfo & pi, int x, int y) const
|
||||
{
|
||||
MathFontSetChanger dummy(pi.base, "textnormal");
|
||||
pi.pain.rectangle(x + 1, y - ascent() + 1, width() - 2, height() - 2,
|
||||
LColor::black);
|
||||
x += 5;
|
||||
|
@ -25,6 +25,8 @@ public:
|
||||
void write(WriteStream & os) const;
|
||||
/// write normalized content
|
||||
void normalize(NormalStream & ns) const;
|
||||
///
|
||||
mode_type currentMode() const { return TEXT_MODE; }
|
||||
private:
|
||||
/// width of '[' in current font
|
||||
mutable int w_;
|
||||
|
@ -1123,8 +1123,8 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
|
||||
|
||||
else if (t.cs() == "framebox") {
|
||||
cell->push_back(createMathInset(t.cs()));
|
||||
parse(cell->back().nucleus()->cell(0), FLAG_OPTION, mode);
|
||||
parse(cell->back().nucleus()->cell(1), FLAG_ITEM, mode);
|
||||
parse(cell->back().nucleus()->cell(0), FLAG_OPTION, MathInset::TEXT_MODE);
|
||||
parse(cell->back().nucleus()->cell(1), FLAG_ITEM, MathInset::TEXT_MODE);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user