X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetref.C;h=0df28abc6d3d3b5dc56c5d2ee2aefedff12dae1e;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=b4a7c2408cccfc02044d7b75fdc5b8c0ca2df01a;hpb=c52895023e231587208b5c9257ae7825dc493ef0;p=lyx.git diff --git a/src/insets/insetref.C b/src/insets/insetref.C index b4a7c2408c..0df28abc6d 100644 --- a/src/insets/insetref.C +++ b/src/insets/insetref.C @@ -16,6 +16,8 @@ #include "commandtags.h" #include "gettext.h" +using std::ostream; + extern BufferView * current_view; @@ -43,10 +45,10 @@ InsetRef::InsetRef(InsetCommand const & inscmd, Buffer * bf) } -void InsetRef::Edit(BufferView * bv, int, int) +void InsetRef::Edit(BufferView * bv, int, int, unsigned int) { - bv->owner()->getLyXFunc() - ->Dispatch(LFUN_REFGOTO, getContents().c_str()); + bv->owner()->getLyXFunc()-> + Dispatch(LFUN_REFGOTO, getContents().c_str()); } @@ -67,7 +69,8 @@ string InsetRef::getScreenLabel() const } -int InsetRef::Latex(ostream & os, signed char /*fragile*/) const +int InsetRef::Latex(ostream & os, + bool /*fragile*/, bool /*fs*/) const { if(getOptions().empty()) os << escape(getCommand()); @@ -81,34 +84,25 @@ int InsetRef::Latex(ostream & os, signed char /*fragile*/) const } -int InsetRef::Latex(string & file, signed char /*fragile*/) const +int InsetRef::Ascii(ostream & os) const { - if(getOptions().empty()) - file += escape(getCommand()); - else { - string ns; - InsetCommand clone = InsetCommand(getCmdName(), - getContents(), ns); - file += escape(clone.getCommand()); - } + os << "[" << getContents() << "]"; return 0; } -int InsetRef::Linuxdoc(string & file) const +int InsetRef::Linuxdoc(ostream & os) const { - file += "" ; - + os << ""; return 0; } -int InsetRef::DocBook(string & file) const +int InsetRef::DocBook(ostream & os) const { - file += ""+ getOptions() +"" ; - + os << "" << getOptions() << ""; return 0; }