+2005-09-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * outputparams.[Ch]: store local_font instead of local_language
+ * paragraph.C (simpleTeXOnePar): adapt to the change above
+
2005-09-08 Martin Vermeer <martin.vermeer@hut.fi>
* buffer_funcs.C:
+2005-09-07 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * insetline.C (latex): write the size argument of \lyxline again
+ * insetquotes.C (latex): adapt to OutputParams changes
+
2005-08-09 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* insettabular.C (tabularFeatures): don't force alignment to BLOCK
int InsetLine::latex(Buffer const &, ostream & os,
- OutputParams const &) const
+ OutputParams const & runparams) const
{
- os << "\\lyxline{}";
-
-/* was:
- os << "\\lyxline{\\"
- << pit->getFont(bparams, 0, outerFont(pit, paragraphs)).latexSize()
- << "}\\vspace{-1\\parskip}";
-*/
-
+ os << "\\lyxline{\\" << runparams.local_font->latexSize() << '}';
return 0;
}
string qstr;
if (language_ == FrenchQ && times_ == DoubleQ
- && prefixIs(runparams.local_language->code(), "fr")) {
+ && prefixIs(runparams.local_font->language()->code(), "fr")) {
if (side_ == LeftQ)
qstr = "\\og "; //the spaces are important here
else
OutputParams::OutputParams()
: flavor(LATEX), nice(false), moving_arg(false),
- free_spacing(false), use_babel(false),
+ local_font(0), free_spacing(false), use_babel(false),
linelen(0), depth(0),
exportdata(new ExportData)
{}
class ExportData;
-class Language;
+class LyXFont;
class OutputParams {
/** moving_arg == true means that the environment in which the inset
is typeset is a moving argument. The inset should take care about
- fragile commands by preceding the latex with \protect.
+ fragile commands by preceding the latex with \\protect.
*/
bool moving_arg;
/** intitle == true means that the environment in which the
- inset is typeset is part of a title (before a \maketitle).
+ inset is typeset is part of a title (before a \\maketitle).
Footnotes in such environments have moving arguments.
*/
bool intitle;
- /** the language at the point where the inset is
+ /** the font at the point where the inset is
*/
- Language const * local_language;
+ LyXFont const * local_font;
/** Document language babel name
*/
if (output || running_change != Change::DELETED) {
OutputParams rp = runparams;
rp.free_spacing = style->free_spacing;
- rp.local_language = font.language();
+ rp.local_font = &font;
rp.intitle = style->intitle;
pimpl_->simpleTeXSpecialChars(buf, bparams,
os, texrow, rp,