summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoframe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unoframe.cxx')
-rw-r--r--sw/source/core/unocore/unoframe.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index a0b08b5349d4..dda5d70eeef7 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1442,7 +1442,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any&
const SfxItemPool& rPool = pDoc->GetAttrPool();
const MapUnit eMapUnit(rPool.GetMetric(pEntry->nWID));
- if(eMapUnit != MAP_100TH_MM)
+ if(eMapUnit != MapUnit::Map100thMM)
{
SvxUnoConvertFromMM(eMapUnit, aValue);
}
@@ -2248,7 +2248,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
const SwRect &rRect = pTmpFrame->Frame();
Size aMM100Size = OutputDevice::LogicToLogic(
Size( rRect.Width(), rRect.Height() ),
- MapMode( MAP_TWIP ), MapMode( MAP_100TH_MM ));
+ MapMode( MapUnit::MapTwip ), MapMode( MapUnit::Map100thMM ));
aAny <<= awt::Size( aMM100Size.Width(), aMM100Size.Height() );
}
}
@@ -2347,7 +2347,7 @@ uno::Any SwXFrame::getPropertyValue(const OUString& rPropertyName)
const SfxItemPool& rPool = pDoc->GetAttrPool();
const MapUnit eMapUnit(rPool.GetMetric(pEntry->nWID));
- if(eMapUnit != MAP_100TH_MM)
+ if(eMapUnit != MapUnit::Map100thMM)
{
SvxUnoConvertToMM(eMapUnit, aAny);
}
@@ -2966,9 +2966,9 @@ void SwXFrame::attachToRange(const uno::Reference< text::XTextRange > & xTextRan
{
aSz.Width() = aSz.Height() = 5000;
aSz = OutputDevice::LogicToLogic
- ( aSz, MapMode( MAP_100TH_MM ), aRefMap );
+ ( aSz, MapMode( MapUnit::Map100thMM ), aRefMap );
}
- MapMode aMyMap( MAP_TWIP );
+ MapMode aMyMap( MapUnit::MapTwip );
aSz = OutputDevice::LogicToLogic( aSz, aRefMap, aMyMap );
SwFormatFrameSize aFrameSz;
aFrameSz.SetSize(aSz);