]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetquotes.C
The speed patch: redraw only rows that have changed
[lyx.git] / src / insets / insetquotes.C
index 3b548cd69da21aa0734d42f2755bf7064712d578..7a85306c6d5cff8ca1ce9eb9603e94fcfd3b5630 100644 (file)
@@ -270,17 +270,11 @@ int InsetQuotes::latex(Buffer const &, ostream & os,
        string qstr;
 
        if (language_ == FrenchQ && times_ == DoubleQ
-           && runparams.local_language == "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.local_language == "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
@@ -336,6 +330,13 @@ int InsetQuotes::docbook(Buffer const &, ostream & os,
 }
 
 
+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();
@@ -371,7 +372,7 @@ auto_ptr<InsetBase> InsetQuotes::doClone() const
 }
 
 
-InsetOld::Code InsetQuotes::lyxCode() const
+InsetBase::Code InsetQuotes::lyxCode() const
 {
-  return InsetOld::QUOTE_CODE;
+  return InsetBase::QUOTE_CODE;
 }