summaryrefslogtreecommitdiff
path: root/sw/source/ui/app
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-06-28 11:11:19 +0000
committerOliver Specht <os@openoffice.org>2002-06-28 11:11:19 +0000
commit5eeb54d5edd23484e41cbb050384f0b47b9b6716 (patch)
tree2818f3f6c4d5927411d253d5054878ec74718ed7 /sw/source/ui/app
parentbc888a05ee0e7f9cfdd4d71a2907f2951e1a3e20 (diff)
#94707# scrollbars are hidden only, not deleted anymore
Diffstat (limited to 'sw/source/ui/app')
-rw-r--r--sw/source/ui/app/apphdl.cxx8
-rw-r--r--sw/source/ui/app/swmodul1.cxx24
2 files changed, 10 insertions, 22 deletions
diff --git a/sw/source/ui/app/apphdl.cxx b/sw/source/ui/app/apphdl.cxx
index 0587791af166..63400141c827 100644
--- a/sw/source/ui/app/apphdl.cxx
+++ b/sw/source/ui/app/apphdl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: apphdl.cxx,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: mba $ $Date: 2002-06-27 08:37:16 $
+ * last change: $Author: os $ $Date: 2002-06-28 12:08:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -428,9 +428,9 @@ void SwModule::StateViewOptions(SfxItemSet &rSet)
nWhich = 0;
}
else
- aBool.SetValue( pActView->StatHScrollbar() ); break;
+ aBool.SetValue( pActView->IsHScrollbarVisible() ); break;
case FN_VSCROLLBAR:
- aBool.SetValue( pActView->StatVScrollbar() ); break;
+ aBool.SetValue( pActView->IsVScrollbarVisible() ); break;
case SID_AUTOSPELL_CHECK:
aBool.SetValue( pOpt->IsOnlineSpell() );
break;
diff --git a/sw/source/ui/app/swmodul1.cxx b/sw/source/ui/app/swmodul1.cxx
index d1ce822e8e87..31d462bbd24e 100644
--- a/sw/source/ui/app/swmodul1.cxx
+++ b/sw/source/ui/app/swmodul1.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: swmodul1.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: os $ $Date: 2002-03-07 08:56:33 $
+ * last change: $Author: os $ $Date: 2002-06-28 12:09:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -296,17 +296,11 @@ void lcl_SetUIPrefs(const SwViewOption* pPref, SwView* pView, ViewShell* pSh )
// Scrollbars an / aus
if(bVScrollChanged)
{
- if(pNewPref->IsViewVScrollBar())
- pView->CreateVScrollbar();
- else
- pView->KillVScrollbar();
+ pView->ShowVScrollbar(pNewPref->IsViewVScrollBar());
}
if(bHScrollChanged)
{
- if ( pNewPref->IsViewHScrollBar() || pSh->IsBrowseMode() )
- pView->CreateHScrollbar();
- else
- pView->KillHScrollbar();
+ pView->ShowHScrollbar( pNewPref->IsViewHScrollBar() || pSh->IsBrowseMode());
}
//if only the position of the vertical ruler has been changed initiate an update
if(bVAlignChanged && !bHScrollChanged && !bVScrollChanged)
@@ -468,14 +462,8 @@ void SwModule::ApplyUsrPref(const SwViewOption &rUsrPref, SwView* pActView,
{
if(!bViewOnly)
pPref->SetUIOptions( rUsrPref );
- if(pPref->IsViewVScrollBar())
- pPPView->CreateVScrollbar();
- else
- pPPView->KillVScrollbar();
- if(pPref->IsViewHScrollBar())
- pPPView->CreateHScrollbar();
- else
- pPPView->KillHScrollbar();
+ pPPView->ShowVScrollbar(pPref->IsViewVScrollBar());
+ pPPView->ShowHScrollbar(pPref->IsViewHScrollBar());
if(!bViewOnly)
{
pPref->SetPagePrevRow(rUsrPref.GetPagePrevRow());