summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorZolnai Tamás <zolniatamas@caesar.elte.hu>2012-08-10 09:32:03 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-08-10 11:07:58 +0200
commit31b18677987eb82169730750670faf8409206e8c (patch)
tree42cfdabda3904a4eef173bd644505c1290956550 /svx/inc
parent7f01893356d1bd8882bde5c7df27f00073854514 (diff)
fdo#37791 Insert selected text to Findbar by Ctrl F
The dispatch function of FindbarDispatcher class is called when Ctrl+f is pressed. This function makes Toolbar visible and takes focus to TextField. So expand this function to insert the selected text to TextField at the same time. With dynamic_cast convert Window pointer, which point to the TextField and call TextField's new function: SetTextToSelected_Impl(), which makes the mentioned insertion. Plus make a little cleanup. Replace one string, which is defined by a macro. Change-Id: I2a8a3b10a016f5b28ea58fa3e63a3f31c9a816bf
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/tbunosearchcontrollers.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/inc/tbunosearchcontrollers.hxx b/svx/inc/tbunosearchcontrollers.hxx
index 0118f519f43f..8fb7d33b2583 100644
--- a/svx/inc/tbunosearchcontrollers.hxx
+++ b/svx/inc/tbunosearchcontrollers.hxx
@@ -65,6 +65,7 @@ public:
void InitControls_Impl();
void Remember_Impl(const String& rStr);
+ void SetTextToSelected_Impl();
private: