summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
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
parent9b99bf09a25d9c9016a1c6b730fa0ef1cc5bc04a (diff)
New menu now inserts current time into cell.
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/editsh.cxx7
-rw-r--r--sc/source/ui/view/gridwin.cxx2
-rw-r--r--sc/source/ui/view/output2.cxx2
3 files changed, 7 insertions, 4 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;
}
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 8b243dfc1319..c0f0a385ff6e 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -5085,7 +5085,7 @@ bool ScGridWindow::GetEditUrlOrError( bool bSpellErr, const Point& rPos,
// EditEngine
- ScFieldEditEngine aEngine( pDoc->GetEditPool() );
+ ScFieldEditEngine aEngine(pDoc, pDoc->GetEditPool());
ScSizeDeviceProvider aProv(pDocSh);
aEngine.SetRefDevice( aProv.GetDevice() );
aEngine.SetRefMapMode( MAP_100TH_MM );
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index bca73f5ca7a4..a91a7fe86526 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -2001,7 +2001,7 @@ void ScOutputData::DrawStrings( sal_Bool bPixelToLogic )
ScFieldEditEngine* ScOutputData::CreateOutputEditEngine()
{
- ScFieldEditEngine* pEngine = new ScFieldEditEngine( pDoc->GetEnginePool() );
+ ScFieldEditEngine* pEngine = new ScFieldEditEngine(pDoc, pDoc->GetEnginePool());
pEngine->SetUpdateMode( false );
// a RefDevice always has to be set, otherwise EditEngine would create a VirtualDevice
pEngine->SetRefDevice( pFmtDevice );