From abd7dc569ec746f5eef03613ecfbcbf75491e640 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Tue, 6 Sep 2016 21:23:49 +0300 Subject: tdf#101779 Allow multiline tooltips in template manager Based on 0c3a9aa403c209e522dc5c32258c33381677c91e Also includes: Related: tdf#101779 TipStyleBalloon for ShowQuickHelp too 681294d55b6b4edcdef08982596cb4bcee32e635 converted TableDataWindow::RequestHelp to use ShowQuickHelp, but it wants to set TipStyleBalloon to be able to use line break. Also I want to do the same in the template manager dialog, in the following commit. (cherry picked from commit 331d3a8b23cdbff0e1434aa5a553efdcc2c7c822) Change-Id: Ie2569a5ab29620a5f4474dafd2309513c08bd7d2 Reviewed-on: https://gerrit.libreoffice.org/28701 Reviewed-by: jan iversen Tested-by: jan iversen --- include/sfx2/templateabstractview.hxx | 2 ++ include/vcl/help.hxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/sfx2/templateabstractview.hxx b/include/sfx2/templateabstractview.hxx index 791394791f85..404b9823d81e 100644 --- a/include/sfx2/templateabstractview.hxx +++ b/include/sfx2/templateabstractview.hxx @@ -85,6 +85,8 @@ public: virtual void MouseButtonDown( const MouseEvent& rMEvt ) override; + virtual void RequestHelp( const HelpEvent& rHEvt ) override; + virtual void Command( const CommandEvent& rCEvt ) override; virtual void KeyInput( const KeyEvent& rKEvt ) override; diff --git a/include/vcl/help.hxx b/include/vcl/help.hxx index 2070caa67269..e76bd91f4c73 100644 --- a/include/vcl/help.hxx +++ b/include/vcl/help.hxx @@ -43,7 +43,7 @@ enum class QuickHelpFlags CtrlText = 0x0040, /// no delay when opening the quick help. Applies to ShowBallon and ShowQuickHelp NoDelay = 0x0080, -/// force balloon-style in ShowPopover +/// force balloon-style in ShowPopover and ShowQuickHelp TipStyleBalloon = 0x0100, NoEvadePointer = 0x0200, BiDiRtl = 0x0400, -- cgit