diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-11 12:21:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-11 14:32:40 +0200 |
commit | d58c604eb35a84b849079d3a690d0a4f428d3121 (patch) | |
tree | e856015a5405cdea664ff8d4e5a75db3b7504898 /sd/source/ui/app/sdmod2.cxx | |
parent | 1ddbbe3e0aebfa86f284ac2712c0d1b36b36fe54 (diff) |
convert DocumentType to scoped enum
Change-Id: I5a66d71db075df4680c54676dd1420e94c1a90b2
Diffstat (limited to 'sd/source/ui/app/sdmod2.cxx')
-rw-r--r-- | sd/source/ui/app/sdmod2.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx index fc4f5e76eb21..ff7a727b5994 100644 --- a/sd/source/ui/app/sdmod2.cxx +++ b/sd/source/ui/app/sdmod2.cxx @@ -271,8 +271,8 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo, void) } else { - DocumentType eDocType = pDoc ? pDoc->GetDocumentType() : DOCUMENT_TYPE_IMPRESS; - aRepresentation = ( ( eDocType == DOCUMENT_TYPE_IMPRESS ) + DocumentType eDocType = pDoc ? pDoc->GetDocumentType() : DocumentType::Impress; + aRepresentation = ( ( eDocType == DocumentType::Impress ) ? SdResId(STR_FIELD_PLACEHOLDER_SLIDENAME).toString() : SdResId(STR_FIELD_PLACEHOLDER_PAGENAME).toString() ); } @@ -414,9 +414,9 @@ SfxItemSet* SdModule::CreateItemSet( sal_uInt16 nSlot ) SdDrawDocument* pDoc = nullptr; // Here we set the DocType of the option dialog (not document!) - DocumentType eDocType = DOCUMENT_TYPE_IMPRESS; + DocumentType eDocType = DocumentType::Impress; if( nSlot == SID_SD_GRAPHIC_OPTIONS ) - eDocType = DOCUMENT_TYPE_DRAW; + eDocType = DocumentType::Draw; if (pDocSh) { @@ -540,9 +540,9 @@ void SdModule::ApplyItemSet( sal_uInt16 nSlot, const SfxItemSet& rSet ) ::sd::DrawDocShell* pDocSh = dynamic_cast< ::sd::DrawDocShell *>( SfxObjectShell::Current() ); SdDrawDocument* pDoc = nullptr; // Here we set the DocType of the option dialog (not document!) - DocumentType eDocType = DOCUMENT_TYPE_IMPRESS; + DocumentType eDocType = DocumentType::Impress; if( nSlot == SID_SD_GRAPHIC_OPTIONS ) - eDocType = DOCUMENT_TYPE_DRAW; + eDocType = DocumentType::Draw; ::sd::ViewShell* pViewShell = nullptr; |