mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +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>
|
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>
|
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)
|
dispatch_result InsetNote::localDispatch(FuncRequest const & cmd)
|
||||||
{
|
{
|
||||||
BufferView * bv = cmd.view();
|
BufferView * bv = cmd.view();
|
||||||
|
@ -53,6 +53,8 @@ public:
|
|||||||
void setButtonLabel();
|
void setButtonLabel();
|
||||||
///
|
///
|
||||||
dispatch_result InsetNote::localDispatch(FuncRequest const &);
|
dispatch_result InsetNote::localDispatch(FuncRequest const &);
|
||||||
|
/// show the note dialog
|
||||||
|
bool showInsetDialog(BufferView * bv) const;
|
||||||
///
|
///
|
||||||
int latex(Buffer const *, std::ostream &,
|
int latex(Buffer const *, std::ostream &,
|
||||||
LatexRunParams const &) const;
|
LatexRunParams const &) const;
|
||||||
|
@ -515,6 +515,9 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & ev) const
|
|||||||
case Inset::WRAP_CODE:
|
case Inset::WRAP_CODE:
|
||||||
disable = ev.argument != "wrap";
|
disable = ev.argument != "wrap";
|
||||||
break;
|
break;
|
||||||
|
case Inset::NOTE_CODE:
|
||||||
|
disable = ev.argument != "note";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user