summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjp <jp@openoffice.org>2001-05-29 12:39:52 +0000
committerjp <jp@openoffice.org>2001-05-29 12:39:52 +0000
commit9eecd8284aa92db821e8ebd6794548279e0d68ec (patch)
tree7fa0f0245a44badc032f4ec1994a87546be58e89
parentdb87f114eda18697deb281c8c5a7c43a0639b3c4 (diff)
Bug #87355#: setPropertyValue - call ToggleBrowseMode only if it needed
-rw-r--r--sw/source/ui/uno/unomod.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/sw/source/ui/uno/unomod.cxx b/sw/source/ui/uno/unomod.cxx
index 1348352b4a31..5ec702f8c5ef 100644
--- a/sw/source/ui/uno/unomod.cxx
+++ b/sw/source/ui/uno/unomod.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomod.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: os $ $Date: 2001-04-27 10:51:54 $
+ * last change: $Author: jp $ $Date: 2001-05-29 13:39:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -544,7 +544,7 @@ void SwXViewSettings::setPropertyValue(const OUString& rPropertyName,
case WID_VIEWSET_ONLINE_LAYOUT :
{
bApply = sal_False;
- if(pView)
+ if( pView && bVal != pView->GetWrtShell().IsBrowseMode() )
pView->GetDocShell()->ToggleBrowserMode(bVal, pView );
}
break;
@@ -557,11 +557,12 @@ void SwXViewSettings::setPropertyValue(const OUString& rPropertyName,
throw beans::UnknownPropertyException();
if(bApplyZoom && pView)
- {
- pView->SetZoom( (SvxZoomType)aVOpt.GetZoomType(), aVOpt.GetZoom(), sal_True );
- }
- SW_MOD()->ApplyUsrPref(aVOpt, pView, pView ? VIEWOPT_DEST_VIEW_ONLY : bWeb ? VIEWOPT_DEST_WEB : VIEWOPT_DEST_TEXT );
+ pView->SetZoom( (SvxZoomType)aVOpt.GetZoomType(),
+ aVOpt.GetZoom(), sal_True );
+ SW_MOD()->ApplyUsrPref( aVOpt, pView, pView ? VIEWOPT_DEST_VIEW_ONLY
+ : bWeb ? VIEWOPT_DEST_WEB
+ : VIEWOPT_DEST_TEXT );
}
/*-- 18.12.98 11:01:12---------------------------------------------------
@@ -701,6 +702,9 @@ Sequence< OUString > SwXViewSettings::getSupportedServiceNames(void) throw( Runt
/*------------------------------------------------------------------------
$Log: not supported by cvs2svn $
+ Revision 1.5 2001/04/27 10:51:54 os
+ new zoom type for preview added
+
Revision 1.4 2001/04/17 11:44:03 os
#84807# SwXModule and SwXAutoTextContainer correctly registered