mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
1771dbf348
commit
eaa3fd6ee0
@ -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
|
||||
|
@ -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
|
||||
|
||||
#
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user