mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
showInsetDialog() for note
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7287 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bd76214fd4
commit
f64d7de0bf
@ -1,3 +1,6 @@
|
||||
2003-07-16 John Levon <levon@movementarian.org>
|
||||
|
||||
* lyxfunc.C: support LFUN_INSET_SETTINGS for Note
|
||||
|
||||
2003-07-15 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2003-07-16 John Levon <levon@movementarian.org>
|
||||
|
||||
* insetnote.h:
|
||||
* insetnote.C: implement showInsetDialog()
|
||||
|
||||
2003-07-15 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
|
@ -102,6 +102,13 @@ void InsetNote::setButtonLabel()
|
||||
}
|
||||
|
||||
|
||||
bool InsetNote::showInsetDialog(BufferView * bv) const
|
||||
{
|
||||
InsetNoteMailer("note", const_cast<InsetNote &>(*this)).showDialog(bv);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
dispatch_result InsetNote::localDispatch(FuncRequest const & cmd)
|
||||
{
|
||||
BufferView * bv = cmd.view();
|
||||
|
@ -53,6 +53,8 @@ public:
|
||||
void setButtonLabel();
|
||||
///
|
||||
dispatch_result InsetNote::localDispatch(FuncRequest const &);
|
||||
/// show the note dialog
|
||||
bool showInsetDialog(BufferView * bv) const;
|
||||
///
|
||||
int latex(Buffer const *, std::ostream &,
|
||||
LatexRunParams const &) const;
|
||||
|
@ -515,6 +515,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
|
||||
case Inset::WRAP_CODE:
|
||||
disable = ev.argument != "wrap";
|
||||
break;
|
||||
case Inset::NOTE_CODE:
|
||||
disable = ev.argument != "note";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user