]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
fix typo that put too many include paths for most people
[lyx.git] / src / insets / insetcaption.C
index a4dd96f5319ea0f8d32b3e995397c9f2a928592a..1414e2d438de57ba91e6e87124a644a21b5331c3 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
  * ======================================================
- * 
+ *
  *           LyX, The Document Processor
- *      
+ *
  *          Copyright 2000-2001 The LyX Team.
  *
  * ======================================================
@@ -27,8 +27,8 @@
 using std::ostream;
 using std::endl;
 
-InsetCaption::InsetCaption()
-       : InsetText()
+InsetCaption::InsetCaption(BufferParams const & bp)
+       : InsetText(bp)
 {
        setAutoBreakRows(true);
        setDrawFrame(0, InsetText::LOCKED);
@@ -59,7 +59,7 @@ void InsetCaption::read(Buffer const * buf, LyXLex & lex)
 }
 
 
-string const InsetCaption::editMessage() const 
+string const InsetCaption::editMessage() const
 {
        return _("Opened Caption Inset");
 }
@@ -87,7 +87,7 @@ void InsetCaption::draw(BufferView * bv, LyXFont const & f,
 
        // Generate the label
        string const label = _(fl) + " " + num + ":";
-       
+
        Painter & pain = bv->painter();
        int const w = lyxfont::width(label, f);
        pain.text(int(x), baseline, label, f);
@@ -120,8 +120,11 @@ int InsetCaption::ascii(Buffer const * /*buf*/,
 }
 
 
-int InsetCaption::docBook(Buffer const * /*buf*/, ostream & /*os*/) const
+int InsetCaption::docbook(Buffer const * buf, ostream & os) const
 {
-       // Fix: Implement me!
-       return 0;
+       int ret;
+       os << "<title>";
+       ret = InsetText::docbook(buf, os);
+       os << "</title>\n";
+       return ret;
 }