From 3bd1db46540986f2e0599e77a338a2f8c8b33ad9 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 25 Feb 2003 15:38:45 +0000 Subject: [PATCH] Enable the dialog to parse the string passed to it by RefInset. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6258 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/ref_inset.C | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index c049d028af..67cc0901b8 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2003-02-25 Angus Leeming + + * ref_inset.C (dispatch): add an '\end_inset' to the string passed to + the dialog. + 2003-02-21 Angus Leeming * formulabase.C (localDispatch): retire LFUN_REF_INSERT. Add diff --git a/src/mathed/ref_inset.C b/src/mathed/ref_inset.C index 98de8ee722..3fba790a82 100644 --- a/src/mathed/ref_inset.C +++ b/src/mathed/ref_inset.C @@ -41,8 +41,7 @@ void RefInset::infoize(std::ostream & os) const dispatch_result RefInset::dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos) { - lyxerr << "RefInset::dispatch" << std::endl; - lyxerr << "dispatching " << cmd.argument << "\n"; + lyxerr << "RefInset::dispatch " << cmd.argument << std::endl; switch (cmd.action) { case LFUN_MOUSE_RELEASE: if (cmd.button() == mouse_button::button3) { @@ -51,17 +50,12 @@ RefInset::dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos) return DISPATCHED; } if (cmd.button() == mouse_button::button1) { - lyxerr << "trying to open ref" << cell(0) << "\n"; // Eventually trigger dialog with button 3 // not 1 ostringstream data; WriteStream wsdata(data); write(wsdata); - - lyxerr << "ref_inset dispatch.\n" - << "this " << this << "\n" - << "The data is "<< data.str() - << std::endl; + wsdata << "\n\\end_inset\n\n"; cmd.view()->owner()->getDialogs(). show("ref", data.str(), this); -- 2.39.5