]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
Change string
[lyx.git] / src / insets / InsetCaption.cpp
index 5c7a9753b8227ab02fb57a469c186093f5968864..4d02187e09f0ccca01c6cffcc3f8b71e12c1ff00 100644 (file)
@@ -47,24 +47,14 @@ using namespace lyx::support;
 namespace lyx {
 
 
-InsetCaption::InsetCaption(InsetCaption const & ic)
-       : InsetText(ic)
+InsetCaption::InsetCaption(Buffer const & buf)
+       : InsetText(buf)
 {
        setAutoBreakRows(true);
        setDrawFrame(true);
        setFrameColor(Color_captionframe);
-}
-
-
-InsetCaption::InsetCaption(BufferParams const & bp)
-       : InsetText(bp)
-{
-       setAutoBreakRows(true);
-       setDrawFrame(true);
-       setFrameColor(Color_captionframe);
-       //FIXME Do we need to set all paragraphs here? or will there
-       //always only be one?
-       paragraphs().back().setLayout(bp.documentClass().emptyLayout());
+       // There will always be only one
+       paragraphs().back().setLayout(buf.params().documentClass().emptyLayout());
 }
 
 
@@ -316,10 +306,4 @@ void InsetCaption::updateLabels(ParIterator const & it)
 }
 
 
-Inset * InsetCaption::clone() const
-{
-       return new InsetCaption(*this);
-}
-
-
 } // namespace lyx