X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettheorem.C;h=9ea8506ba20409b33db65e96f6383bcd66e7ae01;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=1f4068773dcf4ea414ca8ad3392f0dc4721ff431;hpb=85a5ea7bfc80e179a61a99f2955455e84d3384cc;p=lyx.git diff --git a/src/insets/insettheorem.C b/src/insets/insettheorem.C index 1f4068773d..9ea8506ba2 100644 --- a/src/insets/insettheorem.C +++ b/src/insets/insettheorem.C @@ -42,7 +42,9 @@ InsetTheorem::InsetTheorem() font.decSize(); font.setColor(LColor::collapsable); setLabelFont(font); +#if 0 setAutoCollapse(false); +#endif setInsetName("Theorem"); } @@ -54,11 +56,12 @@ void InsetTheorem::write(Buffer const * buf, ostream & os) const } -Inset * InsetTheorem::clone(Buffer const &) const +Inset * InsetTheorem::clone(Buffer const &, bool) const { +#warning Is this inset used? If YES this is WRONG!!! (Jug) InsetTheorem * result = new InsetTheorem; - result->collapsed = collapsed; + result->collapsed_ = collapsed_; return result; } @@ -79,15 +82,3 @@ int InsetTheorem::latex(Buffer const * buf, return i + 2; } - - -bool InsetTheorem::insertInsetAllowed(Inset * inset) const -{ - lyxerr << "InsetTheorem::InsertInsetAllowed" << endl; - - if ((inset->lyxCode() == Inset::FOOT_CODE) || - (inset->lyxCode() == Inset::MARGIN_CODE)) { - return false; - } - return true; -}