summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorC├ędric Bosdonnat <cedric.bosdonnat@free.fr>2012-01-05 11:34:49 +0100
committerPetr Mladek <pmladek@suse.cz>2012-01-10 11:24:54 +0100
commit6e3d9d601cf7a9f20a93eb8fc9abf5d8464eec28 (patch)
treebf4777e014145bff440bb30bbd96bc67b8242899 /sw
parentc17724737cc54fbecb32c510c437c4fda045d94b (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.cxx21
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();
}