diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-17 09:46:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-18 08:49:02 +0200 |
commit | 7232f03f9a74cc839710d4355470963610aff21d (patch) | |
tree | c1bbe4077c9c7206cf2d979489b4610949e0b61f /sd | |
parent | screenshots: fix sc screenshot test (diff) | |
download | core-7232f03f9a74cc839710d4355470963610aff21d.tar.gz core-7232f03f9a74cc839710d4355470963610aff21d.zip |
convert SvXMLEmbeddedObjectHelperMode to scoped enum
Change-Id: I12ccc8c7ba0885b3bacd0c17d430a853d327524b
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index 4a8c7550d640..343a9243fedc 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -563,7 +563,7 @@ bool SdXMLFilter::Import( ErrCode& nError ) xGraphicResolver = pGraphicHelper; pObjectHelper = SvXMLEmbeddedObjectHelper::Create( xStorage, *pDoc->GetPersist(), - EMBEDDEDOBJECTHELPER_MODE_READ, + SvXMLEmbeddedObjectHelperMode::Read, false ); xObjectResolver = pObjectHelper; } @@ -886,7 +886,7 @@ bool SdXMLFilter::Export() // create helper for graphic and ole export if we have a storage if( xStorage.is() ) { - pObjectHelper = SvXMLEmbeddedObjectHelper::Create( xStorage, *mrDocShell.GetDoc()->GetPersist(), EMBEDDEDOBJECTHELPER_MODE_WRITE, false ); + pObjectHelper = SvXMLEmbeddedObjectHelper::Create( xStorage, *mrDocShell.GetDoc()->GetPersist(), SvXMLEmbeddedObjectHelperMode::Write, false ); xObjectResolver = pObjectHelper; pGraphicHelper = SvXMLGraphicHelper::Create( xStorage, SvXMLGraphicHelperMode::Write, false ); diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index d3e409fa2c2c..0f14dfbdbd1a 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -960,7 +960,7 @@ css::uno::Reference<css::uno::XInterface> SdXImpressDocument::create( if( nullptr == pPersist ) throw lang::DisposedException(); - return static_cast<cppu::OWeakObject *>(new SvXMLEmbeddedObjectHelper( *pPersist, EMBEDDEDOBJECTHELPER_MODE_WRITE )); + return static_cast<cppu::OWeakObject *>(new SvXMLEmbeddedObjectHelper( *pPersist, SvXMLEmbeddedObjectHelperMode::Write )); } if( aServiceSpecifier == "com.sun.star.document.ImportEmbeddedObjectResolver" ) @@ -969,7 +969,7 @@ css::uno::Reference<css::uno::XInterface> SdXImpressDocument::create( if( nullptr == pPersist ) throw lang::DisposedException(); - return static_cast<cppu::OWeakObject *>(new SvXMLEmbeddedObjectHelper( *pPersist, EMBEDDEDOBJECTHELPER_MODE_READ )); + return static_cast<cppu::OWeakObject *>(new SvXMLEmbeddedObjectHelper( *pPersist, SvXMLEmbeddedObjectHelperMode::Read )); } uno::Reference< uno::XInterface > xRet; |