*** 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:
André Pönitz 2003-03-03 11:55:18 +00:00
parent ea59317b9a
commit b15159f000
3 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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_;

View File

@ -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