gridfixes: #i112465# delegate RequestHelp to the base class,
when we do not have own help to display Change-Id: I953144aa0921e849df14e9de31010e8904dffc5f Reviewed-on: https://gerrit.libreoffice.org/539 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
This commit is contained in:
committed by
Miklos Vajna
parent
a1a165f1af
commit
3d934d4860
@@ -142,18 +142,26 @@ namespace svt { namespace table
|
|||||||
|
|
||||||
if ( !sHelpText.isEmpty() )
|
if ( !sHelpText.isEmpty() )
|
||||||
{
|
{
|
||||||
|
// hide the standard (singleton) help window, so we do not have two help windows open at the same time
|
||||||
|
Help::HideBalloonAndQuickHelp();
|
||||||
|
|
||||||
Rectangle const aControlScreenRect(
|
Rectangle const aControlScreenRect(
|
||||||
OutputToScreenPixel( Point( 0, 0 ) ),
|
OutputToScreenPixel( Point( 0, 0 ) ),
|
||||||
GetOutputSizePixel()
|
GetOutputSizePixel()
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( m_nTipWindowHandle )
|
if ( m_nTipWindowHandle )
|
||||||
|
{
|
||||||
Help::UpdateTip( m_nTipWindowHandle, this, aControlScreenRect, sHelpText );
|
Help::UpdateTip( m_nTipWindowHandle, this, aControlScreenRect, sHelpText );
|
||||||
|
}
|
||||||
else
|
else
|
||||||
m_nTipWindowHandle = Help::ShowTip( this, aControlScreenRect, sHelpText, nHelpStyle );
|
m_nTipWindowHandle = Help::ShowTip( this, aControlScreenRect, sHelpText, nHelpStyle );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
impl_hideTipWindow();
|
impl_hideTipWindow();
|
||||||
|
Window::RequestHelp( rHEvt );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user