summaryrefslogtreecommitdiff
path: root/sd/source/ui/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 10:26:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-15 12:05:23 +0200
commite45f61a5906cb84cdd895ef00648d5b7a6468ac5 (patch)
treec0b848bb9b21354802e8c80621d52f27167866f1 /sd/source/ui/app
parent2b825fe7f525ac017966044a1400d9095c8b7986 (diff)
convert SvxFileType to scoped enum
Change-Id: Iec1c67f7f0f9b2244b1d6ef52921ddd09f944fbb Reviewed-on: https://gerrit.libreoffice.org/42314 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r--sd/source/ui/app/sdmod2.cxx2
-rw-r--r--sd/source/ui/app/sdpopup.cxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index 293f7672948f..e22d875fde2c 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -187,7 +187,7 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo, void)
}
else if( (pExtFileField = dynamic_cast< const SvxExtFileField * >(pField)) != nullptr )
{
- if( pDocShell && (pExtFileField->GetType() != SVXFILETYPE_FIX) )
+ if( pDocShell && (pExtFileField->GetType() != SvxFileType::Fix) )
{
OUString aName;
if( pDocShell->HasName() )
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx
index 7bb783418831..da39b3c0f688 100644
--- a/sd/source/ui/app/sdpopup.cxx
+++ b/sd/source/ui/app/sdpopup.cxx
@@ -126,7 +126,7 @@ void SdFieldPopup::Fill( LanguageType eLanguage )
const SvxExtFileField* pFileField = static_cast<const SvxExtFileField*>(pField);
//SvxExtFileField aFileField( *pFileField );
- if( pFileField->GetType() == SVXFILETYPE_FIX )
+ if( pFileField->GetType() == SvxFileType::Fix )
CheckItem( 1 );
else
CheckItem( 2 );
@@ -241,9 +241,9 @@ SvxFieldData* SdFieldPopup::GetField()
sal_uInt16 i;
if( IsItemChecked( 1 ) )
- eType = SVXFILETYPE_FIX;
+ eType = SvxFileType::Fix;
else
- eType = SVXFILETYPE_VAR;
+ eType = SvxFileType::Var;
for( i = 3; i <= nCount; i++ )
{