X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetcollapsable.C;h=e4015dd1cf24a5d968aec31aeb854c53e016e80d;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=c314aa2f82e7fec75790c5ecdd8adf1150df581a;hpb=bc2017704562ca48a2c6a646c5ea27d2024ef917;p=lyx.git diff --git a/src/insets/insetcollapsable.C b/src/insets/insetcollapsable.C index c314aa2f82..e4015dd1cf 100644 --- a/src/insets/insetcollapsable.C +++ b/src/insets/insetcollapsable.C @@ -19,21 +19,25 @@ #include "lyxfont.h" #include "BufferView.h" #include "Painter.h" -#include "insets/insettext.h" -#include "support/LOstream.h" -#include "support/lstrings.h" #include "debug.h" #include "lyxtext.h" #include "font.h" #include "lyxlex.h" -class LyXText; +#include "insets/insettext.h" + +#include "support/LOstream.h" +#include "support/lstrings.h" +using std::vector; using std::ostream; using std::endl; using std::max; +class LyXText; + + InsetCollapsable::InsetCollapsable(bool collapsed) : UpdatableInset(), collapsed_(collapsed), button_length(0), button_top_y(0), button_bottom_y(0), @@ -381,6 +385,24 @@ int InsetCollapsable::latex(Buffer const * buf, ostream & os, return inset.latex(buf, os, fragile, free_spc); } + +int InsetCollapsable::ascii(Buffer const * buf, ostream & os, int ll) const +{ + return inset.ascii(buf, os, ll); +} + + +int InsetCollapsable::linuxdoc(Buffer const * buf, ostream & os) const +{ + return inset.linuxdoc(buf, os); +} + + +int InsetCollapsable::docbook(Buffer const * buf, ostream & os) const +{ + return inset.docbook(buf, os); +} + #if 0 int InsetCollapsable::getMaxWidth(BufferView * bv, UpdatableInset const * in) const @@ -453,7 +475,7 @@ bool InsetCollapsable::unlockInsetInInset(BufferView * bv, UpdatableInset * in, bool InsetCollapsable::updateInsetInInset(BufferView * bv, Inset *in) { - if (&inset == in) + if (in == this) return true; return inset.updateInsetInInset(bv, in); } @@ -546,7 +568,7 @@ void InsetCollapsable::resizeLyXText(BufferView * bv, bool force) const } -std::vector const InsetCollapsable::getLabelList() const +vector const InsetCollapsable::getLabelList() const { return inset.getLabelList(); } @@ -628,7 +650,7 @@ void InsetCollapsable::setLabel(string const & l) const bool InsetCollapsable::searchForward(BufferView * bv, string const & str, - bool const & cs, bool const & mw) + bool cs, bool mw) { bool found = inset.searchForward(bv, str, cs, mw); if (first_after_edit && !found) @@ -639,7 +661,7 @@ bool InsetCollapsable::searchForward(BufferView * bv, string const & str, bool InsetCollapsable::searchBackward(BufferView * bv, string const & str, - bool const & cs, bool const & mw) + bool cs, bool mw) { bool found = inset.searchBackward(bv, str, cs, mw); if (first_after_edit && !found)