diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-03 14:48:34 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-05-03 20:28:18 -0400 |
commit | 4b8186dbe41677c5c7ee156c586f3295dab7528c (patch) | |
tree | 2d60ec2fb27c9df7a8c9fc01b3e4b3af85720a9b /sc/source/ui/view/editsh.cxx | |
parent | 7684ae6cf43e2fa186f6e9c80d7d377e0dc1a1ab (diff) |
Add menu entries for sheet name and date field items.
Change-Id: I5ae910d455a7364209a203c2e3567a902e1f01a2
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r-- | sc/source/ui/view/editsh.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx index cf479772b8b5..adb60bb5a485 100644 --- a/sc/source/ui/view/editsh.cxx +++ b/sc/source/ui/view/editsh.cxx @@ -614,13 +614,20 @@ void ScEditShell::Execute( SfxRequest& rReq ) case SID_INSERT_ZWNBSP: lclInsertCharacter( pTableView, pTopView, CHAR_ZWNBSP ); break; - case SID_INSERT_FIELD_TEST: + case SID_INSERT_FIELD_SHEET: { SvxTableField aField(pViewData->GetTabNo()); SvxFieldItem aItem(aField, EE_FEATURE_FIELD); pTableView->InsertField(aItem); } break; + case SID_INSERT_FIELD_DATE_VAR: + { + SvxDateField aField; + SvxFieldItem aItem(aField, EE_FEATURE_FIELD); + pTableView->InsertField(aItem); + } + break; } pHdl->DataChanged(); @@ -721,7 +728,8 @@ void ScEditShell::GetState( SfxItemSet& rSet ) rSet.DisableItem( SID_THES ); } break; - case SID_INSERT_FIELD_TEST: + case SID_INSERT_FIELD_SHEET: + case SID_INSERT_FIELD_DATE_VAR: break; } |