diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-02-14 17:33:16 +0530 |
---|---|---|
committer | pranavk <pranavk@collabora.co.uk> | 2018-02-14 19:19:37 +0100 |
commit | 712540224d7c5c8cdb4a5214e2d7963a314c1928 (patch) | |
tree | 101386fc33b278d6ab307c665256a22b8beb439f /sc/source/ui/unoobj/docuno.cxx | |
parent | 4e1161c6cbdaf2bf0a92d3a5195ee559f2b77bed (diff) |
lok IME: support dialogs as well
Change-Id: Ic78da45dadaa5a4e1ca78e20d04974108581121e
Reviewed-on: https://gerrit.libreoffice.org/49714
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index d12a063a926a..b64645dfe667 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -549,6 +549,16 @@ OUString ScModelObj::getPartHash( int nPart ) return (pViewData->GetDocument()->GetHashCode(nPart, nHashCode) ? OUString::number(nHashCode) : OUString()); } +VclPtr<vcl::Window> ScModelObj::getDocWindow() +{ + SolarMutexGuard aGuard; + ScViewData* pViewData = ScDocShell::GetViewData(); + VclPtr<vcl::Window> pWindow; + if (pViewData) + pWindow = pViewData->GetActiveWin(); + return pWindow; +} + Size ScModelObj::getDocumentSize() { Size aSize(10, 10); // minimum size @@ -619,30 +629,6 @@ void ScModelObj::postKeyEvent(int nType, int nCharCode, int nKeyCode) } } -void ScModelObj::postExtTextInputEvent(int nType, const OUString& rText) -{ - SolarMutexGuard aGuard; - - ScViewData* pViewData = ScDocShell::GetViewData(); - vcl::Window* pWindow = pViewData->GetActiveWin(); - - if (!pWindow) - return; - - CommandExtTextInputData aTextInputData(rText, nullptr, 0, 0, false); - switch (nType) - { - case LOK_EXT_TEXTINPUT: - pWindow->PostExtTextInputEvent(VclEventId::ExtTextInput, rText); - break; - case LOK_EXT_TEXTINPUT_END: - pWindow->PostExtTextInputEvent(VclEventId::EndExtTextInput, ""); - break; - default: - assert(false && "Unhandled External Text input event!"); - } -} - void ScModelObj::postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier) { SolarMutexGuard aGuard; |