]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / src / insets / InsetBranch.cpp
index 9d968e7aa93f4d7476cb51f4f635c431876d91cc..852b04fc0cee4e993a3196ec898db45527bc88a5 100644 (file)
@@ -33,14 +33,8 @@ using namespace std;
 namespace lyx {
 
 
-InsetBranch::InsetBranch(BufferParams const & bp,
-                        InsetBranchParams const & params)
-       : InsetCollapsable(bp), params_(params)
-{}
-
-
-InsetBranch::InsetBranch(InsetBranch const & in)
-       : InsetCollapsable(in), params_(in.params_)
+InsetBranch::InsetBranch(Buffer const & buf, InsetBranchParams const & params)
+       : InsetCollapsable(buf), params_(params)
 {}
 
 
@@ -50,12 +44,6 @@ InsetBranch::~InsetBranch()
 }
 
 
-Inset * InsetBranch::clone() const
-{
-       return new InsetBranch(*this);
-}
-
-
 docstring InsetBranch::editMessage() const
 {
        return _("Opened Branch Inset");
@@ -76,7 +64,7 @@ void InsetBranch::read(Lexer & lex)
 }
 
 
-docstring InsetBranch::toolTip(BufferView const & bv, int x, int y) const
+docstring InsetBranch::toolTip(BufferView const &, int, int) const
 {
        return _("Branch: ") + params_.branch;
 }
@@ -224,7 +212,7 @@ void InsetBranch::updateLabels(ParIterator const & it)
        if (isBranchSelected())
                InsetCollapsable::updateLabels(it);
        else {
-               TextClass const & tclass = buffer().params().textClass();
+               DocumentClass const & tclass = buffer().params().documentClass();
                Counters savecnt = tclass.counters();
                InsetCollapsable::updateLabels(it);
                tclass.counters() = savecnt;