]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
Enable convertDefault.sh to run even if its executable bit is not set.
[lyx.git] / src / insets / insetcaption.C
index 38044bf3312612eda48e7c3967d3741c05fc83d8..3bc71ac4d7e4d4d592e9e45937bacb64b0e0c640 100644 (file)
@@ -5,7 +5,7 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #include <config.h>
@@ -36,19 +36,19 @@ InsetCaption::InsetCaption(BufferParams const & bp)
        : InsetText(bp)
 {
        setAutoBreakRows(true);
-       setDrawFrame(0, InsetText::LOCKED);
-       setFrameColor(0, LColor::captionframe);
+       setDrawFrame(InsetText::LOCKED);
+       setFrameColor(LColor::captionframe);
 }
 
 
-void InsetCaption::write(Buffer const * buf, ostream & os) const
+void InsetCaption::write(Buffer const & buf, ostream & os) const
 {
        os << "Caption\n";
        writeParagraphData(buf, os);
 }
 
 
-void InsetCaption::read(Buffer const * buf, LyXLex & lex)
+void InsetCaption::read(Buffer const & buf, LyXLex & lex)
 {
 #if 0
        // We will enably this check again when the compability
@@ -104,7 +104,7 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-int InsetCaption::latex(Buffer const * buf, ostream & os,
+int InsetCaption::latex(Buffer const & buf, ostream & os,
                        LatexRunParams const & runparams) const
 {
        // This is a bit too simplistic to take advantage of
@@ -119,7 +119,7 @@ int InsetCaption::latex(Buffer const * buf, ostream & os,
 }
 
 
-int InsetCaption::ascii(Buffer const * /*buf*/,
+int InsetCaption::ascii(Buffer const & /*buf*/,
                        ostream & /*os*/, int /*linelen*/) const
 {
        // FIX: Implement me!
@@ -127,7 +127,7 @@ int InsetCaption::ascii(Buffer const * /*buf*/,
 }
 
 
-int InsetCaption::docbook(Buffer const * buf, ostream & os, bool mixcont) const
+int InsetCaption::docbook(Buffer const & buf, ostream & os, bool mixcont) const
 {
        int ret;
        os << "<title>";