Kaydet (Commit) 0c3a9aa4 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

tdf#101779 Multiline tooltips in template manager

This time just set a flag to use Balloon style,
instead of forcing extended tips.

Change-Id: I170bbe4b1bb95aeb9fde00cbecc2bb46c9078e9d
üst 331d3a8b
......@@ -139,6 +139,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;
......
......@@ -22,6 +22,7 @@
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/moduleoptions.hxx>
#include <vcl/builderfactory.hxx>
#include <vcl/help.hxx>
#include <vcl/pngread.hxx>
#include <vcl/layout.hxx>
......@@ -882,6 +883,19 @@ void TemplateLocalView::MouseButtonDown( const MouseEvent& rMEvt )
ThumbnailView::MouseButtonDown(rMEvt);
}
void TemplateLocalView::RequestHelp( const HelpEvent& rHEvt )
{
if ( rHEvt.GetMode() & HelpEventMode::QUICK )
{
Rectangle aRect( OutputToScreenPixel( GetPosPixel() ), GetSizePixel() );
Help::ShowQuickHelp( this, aRect, GetQuickHelpText(),
QuickHelpFlags::CtrlText | QuickHelpFlags::TipStyleBalloon );
return;
}
ThumbnailView::RequestHelp( rHEvt );
}
void TemplateLocalView::Command( const CommandEvent& rCEvt )
{
if ( rCEvt.GetCommand() == CommandEventId::ContextMenu )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment