summaryrefslogtreecommitdiff
path: root/svx/source/dialog/grfpage.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2000-10-09 10:43:14 +0000
committerPeter Burow <pb@openoffice.org>2000-10-09 10:43:14 +0000
commit292f9ac5172ed217f6b3dc35be86bcc43c08519d (patch)
treec92a6c5cd2edc158f6e67b0d57cb45f396b7e022 /svx/source/dialog/grfpage.cxx
parente67184cbad69114d985ade98a2ef310be655caca (diff)
chg: replaced SfxOptions::GetMetric() with getModuleFieldUnit()
Diffstat (limited to 'svx/source/dialog/grfpage.cxx')
-rw-r--r--svx/source/dialog/grfpage.cxx27
1 files changed, 11 insertions, 16 deletions
diff --git a/svx/source/dialog/grfpage.cxx b/svx/source/dialog/grfpage.cxx
index 0af0a3ab3e..4dc38b1676 100644
--- a/svx/source/dialog/grfpage.cxx
+++ b/svx/source/dialog/grfpage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: grfpage.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: ka $ $Date: 2000-09-29 08:29:01 $
+ * last change: $Author: pb $ $Date: 2000-10-09 11:40:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,9 +74,6 @@
#ifndef _SFXAPP_HXX //autogen
#include <sfx2/app.hxx>
#endif
-#ifndef _SFX_SAVEOPT_HXX //autogen
-#include <sfx2/saveopt.hxx>
-#endif
#ifndef _SFXMODULE_HXX //autogen
#include <sfx2/module.hxx>
#endif
@@ -165,15 +162,14 @@ SvxGrfCropPage::SvxGrfCropPage ( Window *pParent, const SfxItemSet &rSet )
SetExchangeSupport();
// set the correct Metrik
- FieldUnit aMetric;
- GET_MODULE_FIELDUNIT( aMetric );
+ const FieldUnit eMetric = GetModuleFieldUnit();
- SetFieldUnit( aWidthMF, aMetric );
- SetFieldUnit( aHeightMF, aMetric );
- SetFieldUnit( aLeftMF, aMetric );
- SetFieldUnit( aRightMF, aMetric );
- SetFieldUnit( aTopMF , aMetric );
- SetFieldUnit( aBottomMF, aMetric );
+ SetFieldUnit( aWidthMF, eMetric );
+ SetFieldUnit( aHeightMF, eMetric );
+ SetFieldUnit( aLeftMF, eMetric );
+ SetFieldUnit( aRightMF, eMetric );
+ SetFieldUnit( aTopMF , eMetric );
+ SetFieldUnit( aBottomMF, eMetric );
Link aLk = LINK(this, SvxGrfCropPage, SizeHdl);
aWidthMF.SetModifyHdl( aLk );
@@ -768,11 +764,10 @@ void SvxGrfCropPage::GraphicHasChanged( BOOL bFound )
aBottomMF.SetSpinSize(nSpin);
//Originalgroesse anzeigen
- FieldUnit aMetric;
- GET_MODULE_FIELDUNIT( aMetric );
+ const FieldUnit eMetric = GetModuleFieldUnit();
MetricField aFld(this, WB_HIDE);
- SetFieldUnit( aFld, aMetric );
+ SetFieldUnit( aFld, eMetric );
aFld.SetDecimalDigits( aWidthMF.GetDecimalDigits() );
aFld.SetMax( LONG_MAX - 1 );