Kaydet (Commit) e1700f33 authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS mfdouble (1.15.138); FILE MERGED

2006/12/14 19:15:49 pl 1.15.138.1: #i71046# increase precision of MetricField and friends
üst bf6efc7b
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: labdlg.cxx,v $ * $RCSfile: labdlg.cxx,v $
* *
* $Revision: 1.15 $ * $Revision: 1.16 $
* *
* last change: $Author: obo $ $Date: 2006-10-12 12:17:01 $ * last change: $Author: obo $ $Date: 2007-01-23 11:35:09 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -300,7 +300,7 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& ) ...@@ -300,7 +300,7 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
eUnit = pPool->GetMetric( nWhich ); eUnit = pPool->GetMetric( nWhich );
nEscAbs = ( ( const SdrCaptionEscAbsItem& ) rOutAttrs.Get( nWhich ) ).GetValue(); nEscAbs = ( ( const SdrCaptionEscAbsItem& ) rOutAttrs.Get( nWhich ) ).GetValue();
SetMetricValue( aMF_ANSATZ, nEscAbs, eUnit ); SetMetricValue( aMF_ANSATZ, nEscAbs, eUnit );
nEscAbs = aMF_ANSATZ.GetValue(); nEscAbs = static_cast<long>(aMF_ANSATZ.GetValue());
//------- relative Ansatzentfernung ---------- //------- relative Ansatzentfernung ----------
nWhich = GetWhich( SDRATTR_CAPTIONESCREL ); nWhich = GetWhich( SDRATTR_CAPTIONESCREL );
...@@ -311,14 +311,14 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& ) ...@@ -311,14 +311,14 @@ void SvxCaptionTabPage::Reset( const SfxItemSet& )
eUnit = pPool->GetMetric( nWhich ); eUnit = pPool->GetMetric( nWhich );
nLineLen = ( ( const SdrCaptionLineLenItem& ) rOutAttrs.Get( nWhich ) ).GetValue(); nLineLen = ( ( const SdrCaptionLineLenItem& ) rOutAttrs.Get( nWhich ) ).GetValue();
SetMetricValue( aMF_LAENGE, nLineLen, eUnit ); SetMetricValue( aMF_LAENGE, nLineLen, eUnit );
nLineLen = aMF_LAENGE.GetValue(); nLineLen = static_cast<long>(aMF_LAENGE.GetValue());
//------- Abstand zur Box ---------- //------- Abstand zur Box ----------
nWhich = GetWhich( SDRATTR_CAPTIONGAP ); nWhich = GetWhich( SDRATTR_CAPTIONGAP );
eUnit = pPool->GetMetric( nWhich ); eUnit = pPool->GetMetric( nWhich );
nGap = ( ( const SdrCaptionGapItem& ) rOutAttrs.Get( nWhich ) ).GetValue(); nGap = ( ( const SdrCaptionGapItem& ) rOutAttrs.Get( nWhich ) ).GetValue();
SetMetricValue( aMF_ABSTAND, nGap, eUnit ); SetMetricValue( aMF_ABSTAND, nGap, eUnit );
nGap = aMF_ABSTAND.GetValue(); nGap = static_cast<long>(aMF_ABSTAND.GetValue());
nCaptionType = (short)( ( const SdrCaptionTypeItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONTYPE ) ) ).GetValue(); nCaptionType = (short)( ( const SdrCaptionTypeItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONTYPE ) ) ).GetValue();
bFixedAngle = ( ( const SfxBoolItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONFIXEDANGLE ) ) ).GetValue(); bFixedAngle = ( ( const SfxBoolItem& ) rOutAttrs.Get( GetWhich( SDRATTR_CAPTIONFIXEDANGLE ) ) ).GetValue();
......
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