]> 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 3df418448a7fd169daddac455ca77af00ab2e4e7..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
@@ -79,8 +79,8 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
 
        // See if we can find the name of the float this caption
        // belongs to.
-       Inset * i1 = owner();
-       Inset * i2 = i1 ? i1->owner() : 0;
+       InsetOld * i1 = owner();
+       InsetOld * i2 = i1 ? i1->owner() : 0;
        string type;
        if (i2->lyxCode() == FLOAT_CODE)
                type = static_cast<InsetFloat *>(i2)->params().type;
@@ -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>";