// Quotes. Used for the various quotes. German, English, French,
// Danish, Polish, all either double or single.
-extern BufferView * current_view;
-
// codes used to read/write quotes to LyX files
static char const * const language_char = "esgpfa";
static char const * const side_char = "lr" ;
}
-int InsetQuotes::Latex(Buffer const *, ostream & os,
+int InsetQuotes::Latex(Buffer const * buf, ostream & os,
bool /*fragile*/, bool) const
{
- string doclang =
- current_view->buffer()->GetLanguage();
+ string doclang = buf->GetLanguage()->lang();
int quoteind = quote_index[side][language];
string qstr;
{
char type = quote_char[quote_index[side][language]];
- if (current_view->buffer()->GetLanguage() == "default"
+ if (features.bufferParams().language->lang() == "default"
&& lyxrc.fontenc != "T1") {
if (times == InsetQuotes::SingleQ)
switch (type) {
}
-Inset * InsetQuotes::Clone() const
+Inset * InsetQuotes::Clone(Buffer const &) const
{
return new InsetQuotes(language, side, times);
}