fixed Note submenu issues

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7447 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2003-07-30 13:08:12 +00:00
parent 1771dbf348
commit eaa3fd6ee0
4 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2003-07-29 Martin Vermeer <martin.vermeer@hut.fi>
* ui/stdmenus.ui: fixed Note submenu issues
2003-07-29 Martin Vermeer <martin.vermeer@hut.fi>
* ui/stdmenus.ui: submenu for Note/Comment/Greyedout

View File

@ -326,9 +326,9 @@ Menuset
End
Menu "insert_note"
Item "Yellow Note" "note-insert Note"
Item "LaTeX Comment" "note-insert Comment"
Item "Greyed Out" "note-insert Greyedout"
Item "LyX Note|N" "note-insert Note"
Item "Comment|C" "note-insert Comment"
Item "Greyed Out|G" "note-insert Greyedout"
End
#

View File

@ -1,3 +1,7 @@
2003-07-30 Martin Vermeer <martin.vermeer@hut.fi>
* factory.C: fixed Note submenu issues
2003-07-30 Martin Vermeer <martin.vermeer@hut.fi>
* factory.C: submenu for Note/Comment/Greyedout

View File

@ -62,6 +62,7 @@ InsetOld * createInset(FuncRequest const & cmd)
{
BufferView * bv = cmd.view();
BufferParams const & params = bv->buffer()->params;
string arg;
switch (cmd.action) {
case LFUN_HFILL:
@ -71,7 +72,10 @@ InsetOld * createInset(FuncRequest const & cmd)
return new InsetMinipage(params);
case LFUN_INSERT_NOTE:
return new InsetNote(params, cmd.getArg(0));
arg = cmd.getArg(0);
if (arg.empty())
arg = "Note";
return new InsetNote(params, arg);
case LFUN_INSET_ERT:
return new InsetERT(params);