summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-31 16:15:27 +0200
committerNoel Grandin <noel@peralex.com>2016-09-01 11:05:21 +0200
commita53e6e2b3cc92e46961260137208eacec474093f (patch)
treea47369a1bb4b76af34bbd94e194a681606ce5085 /sw
parent3a897f7cbf44f44f2baa750f85d9aecbbbd2b6f9 (diff)
convert RefDevMode to scoped enum
and fix the bForceZeroExtleadBug TODO Change-Id: Iac9295c6ce31112d69a870e3a229823eb1e9a4f2
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/DocumentDeviceManager.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/DocumentDeviceManager.cxx b/sw/source/core/doc/DocumentDeviceManager.cxx
index e6bc91d264cb..2aae3a1ca6ce 100644
--- a/sw/source/core/doc/DocumentDeviceManager.cxx
+++ b/sw/source/core/doc/DocumentDeviceManager.cxx
@@ -151,9 +151,9 @@ void DocumentDeviceManager::setReferenceDeviceType(/*[in]*/ bool bNewVirtual, /*
{
VirtualDevice* pMyVirDev = getVirtualDevice( true );
if ( !bNewHiRes )
- pMyVirDev->SetReferenceDevice( VirtualDevice::REFDEV_MODE06 );
+ pMyVirDev->SetReferenceDevice( VirtualDevice::RefDevMode::Dpi600 );
else
- pMyVirDev->SetReferenceDevice( VirtualDevice::REFDEV_MODE_MSO1 );
+ pMyVirDev->SetReferenceDevice( VirtualDevice::RefDevMode::MSO1 );
if( m_rDoc.getIDocumentDrawModelAccess().GetDrawModel() )
m_rDoc.getIDocumentDrawModelAccess().GetDrawModel()->SetRefDevice( pMyVirDev );
@@ -265,7 +265,7 @@ VirtualDevice& DocumentDeviceManager::CreateVirtualDevice_() const
VclPtr<VirtualDevice> pNewVir = VclPtr<VirtualDevice>::Create(DeviceFormat::BITMASK);
#endif
- pNewVir->SetReferenceDevice( VirtualDevice::REFDEV_MODE_MSO1 );
+ pNewVir->SetReferenceDevice( VirtualDevice::RefDevMode::MSO1 );
// #i60945# External leading compatibility for unix systems.
if ( m_rDoc.GetDocumentSettingManager().get(DocumentSettingId::UNIX_FORCE_ZERO_EXT_LEADING ) )