Kaydet (Commit) d9b653f2 authored tarafından Radek Doulik's avatar Radek Doulik Kaydeden (comit) Jan Holesovsky

sw-auto-scrollbars-2.diff: Hide scrollbars in Writer - final.

üst 6169b36f
...@@ -1112,6 +1112,8 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh ) ...@@ -1112,6 +1112,8 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
ShowHScrollbar( FALSE ); ShowHScrollbar( FALSE );
if( !pVScrollbar->IsVisible( TRUE ) ) if( !pVScrollbar->IsVisible( TRUE ) )
ShowVScrollbar( FALSE ); ShowVScrollbar( FALSE );
GetViewFrame()->GetWindow().AddChildEventListener( LINK( this, SwView, WindowChildEventListener ) );
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
...@@ -1121,6 +1123,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh ) ...@@ -1121,6 +1123,7 @@ SwView::SwView( SfxViewFrame *_pFrame, SfxViewShell* pOldSh )
SwView::~SwView() SwView::~SwView()
{ {
GetViewFrame()->GetWindow().RemoveChildEventListener( LINK( this, SwView, WindowChildEventListener ) );
delete mpPostItMgr; delete mpPostItMgr;
// --> OD 2009-03-10 #i100035# // --> OD 2009-03-10 #i100035#
mpPostItMgr = 0; mpPostItMgr = 0;
......
...@@ -359,8 +359,6 @@ int SwView::_CreateScrollbar( BOOL bHori ) ...@@ -359,8 +359,6 @@ int SwView::_CreateScrollbar( BOOL bHori )
(*ppScrollbar)->SetAuto( TRUE ); (*ppScrollbar)->SetAuto( TRUE );
pMDI->AddChildEventListener( LINK( this, SwView, WindowChildEventListener ));
if(GetWindow()) if(GetWindow())
InvalidateBorder(); InvalidateBorder();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment