diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-01-05 11:34:49 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-01-05 11:36:45 +0100 |
commit | 3a326395a48db313b907b4a35392216d7b2e2a11 (patch) | |
tree | 9b81bf61a22207694dc62ebe63801376cea4c103 /sw | |
parent | cff24b6fa1d566a614339e8ba82568a7d79f7757 (diff) |
Page Break: center the tab on the mouse and remove click on the line
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/docvw/PageBreakWin.cxx | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/sw/source/ui/docvw/PageBreakWin.cxx b/sw/source/ui/docvw/PageBreakWin.cxx index b16e51f08652..f954b6e6c767 100644 --- a/sw/source/ui/docvw/PageBreakWin.cxx +++ b/sw/source/ui/docvw/PageBreakWin.cxx @@ -125,7 +125,6 @@ namespace m_pWin( pWin ) {}; virtual void MouseMove( const MouseEvent& rMEvt ); - virtual void MouseButtonDown( const MouseEvent& rMEvt ); }; void SwBreakDashedLine::MouseMove( const MouseEvent& rMEvt ) @@ -148,16 +147,6 @@ namespace m_pWin->UpdatePosition( pPtr ); } } - - void SwBreakDashedLine::MouseButtonDown( const MouseEvent& rMEvt ) - { - sal_uInt16 nItemId = m_pWin->GetPopupMenu()->Execute( this, rMEvt.GetPosPixel() ); - if ( nItemId ) - { - m_pWin->SetCurItemId( nItemId ); - m_pWin->Select(); - } - } } SwPageBreakWin::SwPageBreakWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm ) : @@ -452,14 +441,10 @@ void SwPageBreakWin::UpdatePosition( const Point* pEvtPt ) if ( m_pMousePt ) { - nBtnLeft = nLineLeft + m_pMousePt->X(); + nBtnLeft = nLineLeft + m_pMousePt->X() - aBtnSize.getWidth() / 2; - if ( Application::GetSettings().GetLayoutRTL() ) - { - nBtnLeft -= aBtnSize.getWidth(); - if ( nBtnLeft < nLineLeft ) - nBtnLeft = nLineLeft; - } + if ( nBtnLeft < nLineLeft ) + nBtnLeft = nLineLeft; else if ( ( nBtnLeft + aBtnSize.getWidth() ) > nLineRight ) nBtnLeft = nLineRight - aBtnSize.getWidth(); } |