summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/chartuno.cxx2
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx8
-rw-r--r--sc/source/ui/unoobj/textuno.cxx6
3 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/ui/unoobj/chartuno.cxx b/sc/source/ui/unoobj/chartuno.cxx
index 8cb4a28ff5c2..f604e9dfc574 100644
--- a/sc/source/ui/unoobj/chartuno.cxx
+++ b/sc/source/ui/unoobj/chartuno.cxx
@@ -231,7 +231,7 @@ void SAL_CALL ScChartsObj::addNewByName( const OUString& rName,
sal_Int64 nAspect(embed::Aspects::MSOLE_CONTENT);
MapUnit aMapUnit(VCLUnoHelper::UnoEmbed2VCLMapUnit( xObj->getMapUnit( nAspect ) ));
Size aSize(aInsRect.GetSize());
- aSize = vcl::Window::LogicToLogic( aSize, MapMode( MAP_100TH_MM ), MapMode( aMapUnit ) );
+ aSize = vcl::Window::LogicToLogic( aSize, MapMode( MapUnit::Map100thMM ), MapMode( aMapUnit ) );
awt::Size aSz;
aSz.Width = aSize.Width();
aSz.Height = aSize.Height();
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index 03679b621c7c..763ff041b097 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -744,7 +744,7 @@ void SAL_CALL ScStyleFamilyObj::removeByName( const OUString& aName )
{
// wie ScViewFunc::RemoveStyleSheetInUse
ScopedVclPtrInstance< VirtualDevice > pVDev;
- Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MAP_TWIP );
+ Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MapUnit::MapTwip );
double nPPTX = aLogic.X() / 1000.0;
double nPPTY = aLogic.Y() / 1000.0;
Fraction aZoom(1,1);
@@ -1084,7 +1084,7 @@ void SAL_CALL ScStyleObj::setParentStyle( const OUString& rParentStyle )
// update lineheight
ScopedVclPtrInstance< VirtualDevice > pVDev;
- Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MAP_TWIP );
+ Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MapUnit::MapTwip );
double nPPTX = aLogic.X() / 1000.0;
double nPPTY = aLogic.Y() / 1000.0;
Fraction aZoom(1,1);
@@ -1450,7 +1450,7 @@ void SAL_CALL ScStyleObj::setAllPropertiesToDefault()
// row heights
ScopedVclPtrInstance< VirtualDevice > pVDev;
- Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MAP_TWIP );
+ Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MapUnit::MapTwip );
double nPPTX = aLogic.X() / 1000.0;
double nPPTY = aLogic.Y() / 1000.0;
Fraction aZoom(1,1);
@@ -1830,7 +1830,7 @@ void ScStyleObj::SetOnePropertyValue( const OUString& rPropertyName, const SfxIt
{
// update lineheight
ScopedVclPtrInstance< VirtualDevice > pVDev;
- Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MAP_TWIP );
+ Point aLogic = pVDev->LogicToPixel( Point(1000,1000), MapUnit::MapTwip );
double nPPTX = aLogic.X() / 1000.0;
double nPPTY = aLogic.Y() / 1000.0;
Fraction aZoom(1,1);
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index 041ac3d4e747..ddf83ee1b8cf 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -211,7 +211,7 @@ SvxTextForwarder* ScHeaderFooterTextData::GetTextForwarder()
ScHeaderEditEngine* pHdrEngine = new ScHeaderEditEngine( pEnginePool );
pHdrEngine->EnableUndo( false );
- pHdrEngine->SetRefMapMode( MAP_TWIP );
+ pHdrEngine->SetRefMapMode( MapUnit::MapTwip );
// default font must be set, independently of document
// -> use global pool from module
@@ -859,7 +859,7 @@ ScDrawTextCursor* ScDrawTextCursor::getImplementation(const uno::Reference<uno::
ScSimpleEditSourceHelper::ScSimpleEditSourceHelper()
{
SfxItemPool* pEnginePool = EditEngine::CreatePool();
- pEnginePool->SetDefaultMetric( MAP_100TH_MM );
+ pEnginePool->SetDefaultMetric( MapUnit::Map100thMM );
pEnginePool->FreezeIdRanges();
pEditEngine = new ScFieldEditEngine(nullptr, pEnginePool, nullptr, true); // TRUE: become owner of pool
@@ -960,7 +960,7 @@ SvxTextForwarder* ScCellTextData::GetTextForwarder()
if (pDocShell)
pEditEngine->SetRefDevice(pDocShell->GetRefDevice());
else
- pEditEngine->SetRefMapMode( MAP_100TH_MM );
+ pEditEngine->SetRefMapMode( MapUnit::Map100thMM );
pForwarder = new SvxEditEngineForwarder(*pEditEngine);
}