summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/SidebarWin.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-12 16:56:45 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-12 16:56:45 +0100
commit1ba9d7fd2a7a3e2b4f52ed0f5efdf7df867b9db3 (patch)
treef438c6aa734296e0c75d2408a820ca126a18526d /sw/source/uibase/docvw/SidebarWin.cxx
parent49f453755b72654ba454acc321210e8b040df714 (diff)
sw lok: forward key events to annotation window if necessary
And to allow proper reaction by the annotation windows, inform them when a LOK callback is registered. With this, it's possible to modify the contents of annotations via LOK. Change-Id: I4489941512197880940e20cbaeb0b47a7a6f26fc
Diffstat (limited to 'sw/source/uibase/docvw/SidebarWin.cxx')
-rw-r--r--sw/source/uibase/docvw/SidebarWin.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarWin.cxx b/sw/source/uibase/docvw/SidebarWin.cxx
index cdf68384a851..c2ffc0687229 100644
--- a/sw/source/uibase/docvw/SidebarWin.cxx
+++ b/sw/source/uibase/docvw/SidebarWin.cxx
@@ -355,6 +355,12 @@ void SwSidebarWin::Draw(OutputDevice* pDev, const Point& rPt, const Size& rSz, D
}
}
+void SwSidebarWin::KeyInput(const KeyEvent& rKeyEvent)
+{
+ if (mpSidebarTextControl)
+ mpSidebarTextControl->KeyInput(rKeyEvent);
+}
+
void SwSidebarWin::SetPosSizePixelRect(long nX, long nY, long nWidth, long nHeight,
const SwRect& aAnchorRect, const long aPageBorder)
{