]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
Don't remove cell selections after fontchange.
[lyx.git] / src / insets / insetcaption.C
index 17a5197c2c46a0d083b6796221b7900cdcced750..f1ba9df2deaec60738e83e180d931f365bd05bc7 100644 (file)
@@ -22,6 +22,7 @@
 #include "insets/insetfloat.h"
 #include "debug.h"
 #include "gettext.h"
+#include "support/lstrings.h"
 
 using std::ostream;
 using std::endl;
@@ -114,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;
 }