summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/editsh.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-04-20 00:46:19 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-03 20:28:15 -0400
commit4aeb8aff9e418aef1fde4b2b60333216cc527f13 (patch)
tree95423fbf41b16708f4d8d91ac50d96981d9ebf0c /sc/source/ui/view/editsh.cxx
parent9b99bf09a25d9c9016a1c6b730fa0ef1cc5bc04a (diff)
New menu now inserts current time into cell.
Diffstat (limited to 'sc/source/ui/view/editsh.cxx')
-rw-r--r--sc/source/ui/view/editsh.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 8b05f33ce43b..197b0041d4ac 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -615,7 +615,11 @@ void ScEditShell::Execute( SfxRequest& rReq )
lclInsertCharacter( pTableView, pTopView, CHAR_ZWNBSP );
break;
case SID_INSERT_FIELD_TEST:
- fprintf(stdout, "ScEditShell::Execute: SID_INSERT_FIELD_TEST\n");
+ {
+ SvxExtTimeField aField;
+ SvxFieldItem aItem(aField, EE_FEATURE_FIELD);
+ pTableView->InsertField(aItem);
+ }
break;
}
@@ -718,7 +722,6 @@ void ScEditShell::GetState( SfxItemSet& rSet )
}
break;
case SID_INSERT_FIELD_TEST:
- fprintf(stdout, "ScEditShell::GetState: SID_INSERT_FIELD_TEST\n");
break;
}