X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsettoc.C;h=88a46f1ea52b7545d63eb9359a5471cf9e329dfa;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=e93003c44318bc8e5d18f221572dcb4c0129d265;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/src/insets/insettoc.C b/src/insets/insettoc.C index e93003c443..88a46f1ea5 100644 --- a/src/insets/insettoc.C +++ b/src/insets/insettoc.C @@ -10,23 +10,31 @@ #include "commandtags.h" #include "lyxfunc.h" #include "LyXView.h" +#include "BufferView.h" -extern BufferView *current_view; +using std::ostream; -void InsetTOC::Edit(int, int) + +string InsetTOC::getScreenLabel() const +{ + return _("Table of Contents"); +} + + +void InsetTOC::Edit(BufferView * bv, int, int, unsigned int) { - current_view->getOwner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW); + bv->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW); } -int InsetTOC::Linuxdoc(LString &file) +int InsetTOC::Linuxdoc(ostream & os) const { - file += ""; + os << ""; return 0; } -int InsetTOC::DocBook(LString &file) +int InsetTOC::DocBook(ostream & os) const { - file += ""; + os << ""; return 0; }