]> git.lyx.org Git - features.git/blobdiff - src/insets/insetref.C
change to use ostreams instead of string when writing files. fiddling with insettext...
[features.git] / src / insets / insetref.C
index bd0fa93757b74553131b9556ce25789e4eb18bb5..0a13720d03237c5e0dbd1968c9b4a2c24ab77e57 100644 (file)
@@ -94,7 +94,6 @@ int InsetRef::Latex(string & file, signed char /*fragile*/) const
        }
        return 0;
 }
-#endif
 
 
 int InsetRef::Linuxdoc(string & file) const
@@ -114,6 +113,24 @@ int InsetRef::DocBook(string & file) const
        return 0;
 }
 
+#else
+
+int InsetRef::Linuxdoc(ostream & os) const
+{
+       os << "<ref id=\"" << getContents()
+          << "\" name=\"" << getOptions() << "\" >";
+       return 0;
+}
+
+
+int InsetRef::DocBook(ostream & os) const
+{
+       os << "<link linkend=\"" << getContents()
+          << "\">" << getOptions() << "</link>";
+       return 0;
+}
+#endif
+
 
 // This function escapes 8-bit characters and other problematic characters
 // It's exactly the same code as in insetlabel.C.