summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshel4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-11 12:21:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-11 14:32:40 +0200
commitd58c604eb35a84b849079d3a690d0a4f428d3121 (patch)
treee856015a5405cdea664ff8d4e5a75db3b7504898 /sd/source/ui/docshell/docshel4.cxx
parent1ddbbe3e0aebfa86f284ac2712c0d1b36b36fe54 (diff)
convert DocumentType to scoped enum
Change-Id: I5a66d71db075df4680c54676dd1420e94c1a90b2
Diffstat (limited to 'sd/source/ui/docshell/docshel4.cxx')
-rw-r--r--sd/source/ui/docshell/docshel4.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index b6467f2dcd7e..be2b4f56b9de 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -768,7 +768,7 @@ bool DrawDocShell::GotoBookmark(const OUString& rBookmark)
// or the handout view.
PageKind eNewPageKind = pPage->GetPageKind();
- if( (eNewPageKind != PK_STANDARD) && (mpDoc->GetDocumentType() == DOCUMENT_TYPE_DRAW) )
+ if( (eNewPageKind != PK_STANDARD) && (mpDoc->GetDocumentType() == DocumentType::Draw) )
return false;
if (eNewPageKind != pDrawViewShell->GetPageKind())
@@ -1023,7 +1023,7 @@ void DrawDocShell::FillClass(SvGlobalName* pClassName,
{
if (nFileFormat == SOFFICE_FILEFORMAT_60)
{
- if ( meDocType == DOCUMENT_TYPE_DRAW )
+ if ( meDocType == DocumentType::Draw )
{
*pClassName = SvGlobalName(SO3_SDRAW_CLASSID_60);
*pFormat = SotClipboardFormatId::STARDRAW_60;
@@ -1038,7 +1038,7 @@ void DrawDocShell::FillClass(SvGlobalName* pClassName,
}
else if (nFileFormat == SOFFICE_FILEFORMAT_8)
{
- if ( meDocType == DOCUMENT_TYPE_DRAW )
+ if ( meDocType == DocumentType::Draw )
{
*pClassName = SvGlobalName(SO3_SDRAW_CLASSID_60);
*pFormat = bTemplate ? SotClipboardFormatId::STARDRAW_8_TEMPLATE : SotClipboardFormatId::STARDRAW_8;
@@ -1052,7 +1052,7 @@ void DrawDocShell::FillClass(SvGlobalName* pClassName,
}
}
- *pShortTypeName = OUString(SdResId( (meDocType == DOCUMENT_TYPE_DRAW) ?
+ *pShortTypeName = OUString(SdResId( (meDocType == DocumentType::Draw) ?
STR_GRAPHIC_DOCUMENT : STR_IMPRESS_DOCUMENT ));
}