gridfixes: #i112465# introduce HideBalloonAndQuickHelp

Change-Id: Iea03d691755ac86fae4a0ac6697b726f21925ae7
Reviewed-on: https://gerrit.libreoffice.org/538
Reviewed-by: Miklos Vajna <vmiklos@suse.cz>
Tested-by: Miklos Vajna <vmiklos@suse.cz>
This commit is contained in:
Norbert Thiebaud
2012-08-20 21:35:06 -05:00
committed by Miklos Vajna
parent 87e333667b
commit a1a165f1af
2 changed files with 20 additions and 9 deletions

View File

@@ -118,6 +118,8 @@ public:
sal_uInt16 nStyle = 0 )
{ return Help::ShowQuickHelp( pParent, rScreenRect, rHelpText, XubString(), nStyle ); }
static void HideBalloonAndQuickHelp();
static sal_uLong ShowTip( Window* pParent,
const Rectangle& rScreenRect,
const XubString& rText, sal_uInt16 nStyle = 0 );

View File

@@ -250,6 +250,15 @@ sal_Bool Help::ShowQuickHelp( Window* pParent,
// -----------------------------------------------------------------------
void Help::HideBalloonAndQuickHelp()
{
HelpTextWindow const * pHelpWin = ImplGetSVData()->maHelpData.mpHelpWin;
bool const bIsVisible = ( pHelpWin != NULL ) && pHelpWin->IsVisible();
ImplDestroyHelpWindow( bIsVisible );
}
// -----------------------------------------------------------------------
sal_uIntPtr Help::ShowTip( Window* pParent, const Rectangle& rScreenRect,
const XubString& rText, sal_uInt16 nStyle )
{