+2003-04-15 Lars Gullik Bjønnes <larsbj@gullik.net>
+
+ * text2.C (getFont): adjust
+ (getLayoutFont): adjust
+ (getLabelFont): adjust
+
+ * paragraph.C (getFont): adjust
+ (getLabelFont): adjust
+ (getLayoutFont): adjust
+
+ * paragraph_funcs.[Ch] (realizeFont): remove unneeded arguments.
+
2003-04-15 John Levon <levon@movementarian.org>
From Angus Leeming
tmpfont.realize(layoutfont);
tmpfont.realize(outerfont);
- return realizeFont(tmpfont, bparams, 0, false);
+ return realizeFont(tmpfont, bparams);
}
tmpfont.setLanguage(getParLanguage(bparams));
tmpfont.realize(outerfont);
- return realizeFont(tmpfont, bparams, 0, false);
+ return realizeFont(tmpfont, bparams);
}
tmpfont.setLanguage(getParLanguage(bparams));
tmpfont.realize(outerfont);
- return realizeFont(tmpfont, bparams, 0, false);
+ return realizeFont(tmpfont, bparams);
}
LyXFont const realizeFont(LyXFont const & font,
- BufferParams const & params,
- ParagraphList::iterator pit,
- bool outerhook)
+ BufferParams const & params)
{
LyXTextClass const & tclass = params.getLyXTextClass();
LyXFont tmpfont(font);
-
- if (outerhook) {
- LyXFont of = outerFont(pit);
- tmpfont.realize(of);
- }
-
tmpfont.realize(tclass.defaultfont());
-
return tmpfont;
}
int readParagraph(Buffer & buf, Paragraph & par, LyXLex & lex);
LyXFont const realizeFont(LyXFont const & font,
- BufferParams const & params,
- ParagraphList::iterator pit,
- bool outerhook = true);
+ BufferParams const & params);
LyXFont const outerFont(ParagraphList::iterator pit);
// Realize with the fonts of lesser depth.
tmpfont.realize(outerFont(pit));
- return realizeFont(tmpfont, buf->params, pit, false);
+ return realizeFont(tmpfont, buf->params);
}
// Realize with the fonts of lesser depth.
font.realize(outerFont(pit));
- return realizeFont(font, buf->params, pit, false);
+ return realizeFont(font, buf->params);
}
// Realize with the fonts of lesser depth.
font.realize(outerFont(pit));
- return realizeFont(layout->labelfont, buf->params, pit, false);
+ return realizeFont(layout->labelfont, buf->params);
}