]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
add parOwner to Inset, optimize LyXText::workWidth, fix memory corruption with lots...
[lyx.git] / src / insets / insetcaption.C
index d5a773f3e8fda2c989ebeb6cf16d0a642f0d92eb..f1ba9df2deaec60738e83e180d931f365bd05bc7 100644 (file)
@@ -115,17 +115,16 @@ int InsetCaption::latex(Buffer const * buf, ostream & os,
 int InsetCaption::ascii(Buffer const * /*buf*/,
                        ostream & /*os*/, int /*linelen*/) const
 {
-#ifdef WITH_WARNINGS
-#warning Implement me!
-#endif
+       // FIX: Implement me!
        return 0;
 }
 
 
-int InsetCaption::docBook(Buffer const * /*buf*/, ostream & /*os*/) const
+int InsetCaption::docbook(Buffer const * buf, ostream & os) const
 {
-#ifdef WITH_WARNINGS
-#warning Implement me!
-#endif
-       return 0;
+       int ret;
+       os << "<title>";
+       ret = InsetText::docbook(buf, os);
+       os << "</title>\n";
+       return ret;
 }