diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 14 | ||||
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/view/tabview4.cxx | 6 |
3 files changed, 15 insertions, 12 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index c50bc28bd667..834cf59346ed 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -868,9 +868,8 @@ void ScInputHandler::HideTip() { if ( nTipVisible ) { - if (pTipVisibleParent) - pTipVisibleParent->RemoveEventListener( LINK( this, ScInputHandler, ShowHideTipVisibleParentListener ) ); - Help::HideTip( nTipVisible ); + pTipVisibleParent->RemoveEventListener( LINK( this, ScInputHandler, ShowHideTipVisibleParentListener ) ); + Help::HidePopover(pTipVisibleParent, nTipVisible ); nTipVisible = 0; pTipVisibleParent = nullptr; } @@ -880,9 +879,8 @@ void ScInputHandler::HideTipBelow() { if ( nTipVisibleSec ) { - if (pTipVisibleSecParent) - pTipVisibleSecParent->RemoveEventListener( LINK( this, ScInputHandler, ShowHideTipVisibleSecParentListener ) ); - Help::HideTip( nTipVisibleSec ); + pTipVisibleSecParent->RemoveEventListener( LINK( this, ScInputHandler, ShowHideTipVisibleSecParentListener ) ); + Help::HidePopover(pTipVisibleSecParent, nTipVisibleSec); nTipVisibleSec = 0; pTipVisibleSecParent = nullptr; } @@ -1082,7 +1080,7 @@ void ScInputHandler::ShowTip( const OUString& rText ) Rectangle aRect( aPos, aPos ); QuickHelpFlags nAlign = QuickHelpFlags::Left|QuickHelpFlags::Bottom; - nTipVisible = Help::ShowTip(pTipVisibleParent, aRect, rText, nAlign); + nTipVisible = Help::ShowPopover(pTipVisibleParent, aRect, rText, nAlign); pTipVisibleParent->AddEventListener( LINK( this, ScInputHandler, ShowHideTipVisibleParentListener ) ); } } @@ -1106,7 +1104,7 @@ void ScInputHandler::ShowTipBelow( const OUString& rText ) aPos = pTipVisibleSecParent->OutputToScreenPixel( aPos ); Rectangle aRect( aPos, aPos ); QuickHelpFlags nAlign = QuickHelpFlags::Left | QuickHelpFlags::Top | QuickHelpFlags::NoEvadePointer; - nTipVisibleSec = Help::ShowTip(pTipVisibleSecParent, aRect, rText, nAlign); + nTipVisibleSec = Help::ShowPopover(pTipVisibleSecParent, aRect, rText, nAlign); pTipVisibleSecParent->AddEventListener( LINK( this, ScInputHandler, ShowHideTipVisibleSecParentListener ) ); } } diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 105ba1ab5086..6dd2e8fd06f1 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -2066,7 +2066,10 @@ void ScPosWnd::HideTip() { if ( nTipVisible ) { - Help::HideTip( nTipVisible ); + vcl::Window* pWin = GetSubEdit(); + if (!pWin) + pWin = this; + Help::HidePopover(pWin, nTipVisible); nTipVisible = 0; } } @@ -2174,7 +2177,7 @@ void ScPosWnd::Modify() OUString aText = ScGlobal::GetRscString( nStrId ); QuickHelpFlags nAlign = QuickHelpFlags::Left|QuickHelpFlags::Bottom; - nTipVisible = Help::ShowTip(pWin, aRect, aText, nAlign); + nTipVisible = Help::ShowPopover(pWin, aRect, aText, nAlign); } } } diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx index baa16c1a434a..71da36182bf3 100644 --- a/sc/source/ui/view/tabview4.cxx +++ b/sc/source/ui/view/tabview4.cxx @@ -37,7 +37,9 @@ void ScTabView::HideTip() { if ( nTipVisible ) { - Help::HideTip( nTipVisible ); + ScSplitPos eWhich = aViewData.GetActivePart(); + vcl::Window* pWin = pGridWin[eWhich]; + Help::HidePopover(pWin, nTipVisible); nTipVisible = 0; } } @@ -90,7 +92,7 @@ void ScTabView::ShowRefTip() //! Test, ob geaendert ?? HideTip(); - nTipVisible = Help::ShowTip( pWin, aRect, aHelp, nFlags ); + nTipVisible = Help::ShowPopover(pWin, aRect, aHelp, nFlags); bDone = true; } } |