string qstr;
if (language_ == FrenchQ && times_ == DoubleQ
- && runparams.lang == "frenchb") {
+ && prefixIs(runparams.local_font->language()->code(), "fr")) {
if (side_ == LeftQ)
qstr = "\\og "; //the spaces are important here
else
qstr = " \\fg{}"; //and here
- } else if (language_ == FrenchQ && times_ == DoubleQ
- && runparams.lang == "french") {
- if (side_ == LeftQ)
- qstr = "<< "; //the spaces are important here
- else
- qstr = " >>"; //and here
} else if (lyxrc.fontenc == "T1") {
qstr = latex_quote_t1[times_][quoteind];
#ifdef DO_USE_DEFAULT_LANGUAGE
}
+int InsetQuotes::textString(Buffer const & buf, ostream & os,
+ OutputParams const & op) const
+{
+ return plaintext(buf, os, op);
+}
+
+
void InsetQuotes::validate(LaTeXFeatures & features) const
{
bool const use_babel = features.useBabel();
}
-auto_ptr<InsetBase> InsetQuotes::clone() const
+auto_ptr<InsetBase> InsetQuotes::doClone() const
{
return auto_ptr<InsetBase>(new InsetQuotes(language_, side_, times_));
}
-InsetOld::Code InsetQuotes::lyxCode() const
+InsetBase::Code InsetQuotes::lyxCode() const
{
- return InsetOld::QUOTE_CODE;
+ return InsetBase::QUOTE_CODE;
}