summaryrefslogtreecommitdiff
path: root/sw/source/core/graphic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2020-03-30 15:11:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-31 09:34:38 +0200
commit7d6c67d323a87f1006d84c2a95b45dfbfb03c0c8 (patch)
treea706adf3e58f81b3838a95ccef4669d6d6f769ab /sw/source/core/graphic
parent1ec7b4ae86a9fe666fc1510636c483d8980d04f6 (diff)
convert enum to scoped in SvBaseLink
Change-Id: Ief399381ac27764fce95ee053c322571a07b671c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91366 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/graphic')
-rw-r--r--sw/source/core/graphic/ndgrf.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index ab9dec20c19d..6e042765ab7c 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -162,13 +162,13 @@ bool SwGrfNode::ReRead(
OUString sCmd( sURLLink );
if( !rFltName.isEmpty() )
{
- sal_uInt16 nNewType;
+ sfx2::SvBaseLinkObjectType nNewType;
if( rFltName == "DDE" )
- nNewType = OBJECT_CLIENT_DDE;
+ nNewType = sfx2::SvBaseLinkObjectType::ClientDde;
else
{
sfx2::MakeLnkName( sCmd, nullptr, sURLLink, OUString(), &rFltName );
- nNewType = OBJECT_CLIENT_GRF;
+ nNewType = sfx2::SvBaseLinkObjectType::ClientGraphic;
}
if( nNewType != mxLink->GetObjType() )
@@ -485,11 +485,11 @@ bool SwGrfNode::GetFileFilterNms( OUString* pFileNm, OUString* pFilterNm ) const
bool bRet = false;
if( mxLink.is() && mxLink->GetLinkManager() )
{
- sal_uInt16 nType = mxLink->GetObjType();
- if( OBJECT_CLIENT_GRF == nType )
+ sfx2::SvBaseLinkObjectType nType = mxLink->GetObjType();
+ if( sfx2::SvBaseLinkObjectType::ClientGraphic == nType )
bRet = sfx2::LinkManager::GetDisplayNames(
mxLink.get(), nullptr, pFileNm, nullptr, pFilterNm );
- else if( OBJECT_CLIENT_DDE == nType && pFileNm && pFilterNm )
+ else if( sfx2::SvBaseLinkObjectType::ClientDde == nType && pFileNm && pFilterNm )
{
OUString sApp;
OUString sTopic;
@@ -576,7 +576,7 @@ void SwGrfNode::InsertLink( const OUString& rGrfName, const OUString& rFltName )
mxLink->SetContentType( SotClipboardFormatId::SVXB );
rIDLA.GetLinkManager().InsertFileLink( *mxLink,
- OBJECT_CLIENT_GRF, rGrfName,
+ sfx2::SvBaseLinkObjectType::ClientGraphic, rGrfName,
(!bSync && !rFltName.isEmpty() ? &rFltName : nullptr) );
}
}