]> git.lyx.org Git - features.git/blobdiff - src/insets/insetquotes.C
change to use ostreams instead of string when writing files. fiddling with insettext...
[features.git] / src / insets / insetquotes.C
index 3e044d20c5ce6189a2cc1c0b25eeee50711aee1d..05e029d7ca789adfdc6cc38215b7a983898e0223 100644 (file)
@@ -304,7 +304,6 @@ int InsetQuotes::Latex(string & file, signed char /*fragile*/) const
        file += qstr;
        return 0;
 }
-#endif
 
 
 int InsetQuotes::Linuxdoc(string & file) const
@@ -331,6 +330,32 @@ int InsetQuotes::DocBook(string & file) const
        return 0;
 }
 
+#else
+
+int InsetQuotes::Linuxdoc(ostream & os) const
+{
+       os << "\"";
+       return 0;
+}
+
+
+int InsetQuotes::DocBook(ostream & os) const
+{
+       if(times == InsetQuotes::DoubleQ) {
+               if (side == InsetQuotes::LeftQ)
+                       os << "&ldquo;";
+               else
+                       os << "&rdquo;";
+       } else {
+               if (side == InsetQuotes::LeftQ)
+                       os << "&lsquo;";
+               else
+                       os << "&rsquo;";
+       }
+       return 0;
+}
+#endif
+
 
 void InsetQuotes::Validate(LaTeXFeatures & features) const 
 {