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:
John Levon 2003-07-15 23:52:05 +00:00
parent bd76214fd4
commit f64d7de0bf
5 changed files with 19 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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();

View File

@ -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;

View File

@ -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;
} }