diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-11 13:01:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-11 14:32:40 +0200 |
commit | e588aa4d347875eb4c52bd2b51c5c917f807ba6d (patch) | |
tree | 449516f28c32cc3ae6adf1a822e46fa60a949e9c /sd/source/ui/docshell/docshel4.cxx | |
parent | 4caacff9f25498c07d9b99fe0b5db82baa58a22c (diff) |
convert PageKind to scoped enum
Change-Id: I7f90cf2e96b72031bcfff558794e6cb42ea408e8
Diffstat (limited to 'sd/source/ui/docshell/docshel4.cxx')
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index db6cc723ab7a..5b00c597b0e2 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -313,7 +313,7 @@ bool DrawDocShell::Load( SfxMedium& rMedium ) //TODO/LATER: looks a little bit strange! if( ( GetCreateMode() == SfxObjectCreateMode::EMBEDDED ) && SfxObjectShell::GetVisArea( ASPECT_CONTENT ).IsEmpty() ) { - SdPage* pPage = mpDoc->GetSdPage( 0, PK_STANDARD ); + SdPage* pPage = mpDoc->GetSdPage( 0, PageKind::Standard ); if( pPage ) SetVisArea( Rectangle( pPage->GetAllObjBoundRect() ) ); @@ -768,7 +768,7 @@ bool DrawDocShell::GotoBookmark(const OUString& rBookmark) // or the handout view. PageKind eNewPageKind = pPage->GetPageKind(); - if( (eNewPageKind != PK_STANDARD) && (mpDoc->GetDocumentType() == DocumentType::Draw) ) + if( (eNewPageKind != PageKind::Standard) && (mpDoc->GetDocumentType() == DocumentType::Draw) ) return false; if (eNewPageKind != pDrawViewShell->GetPageKind()) @@ -778,13 +778,13 @@ bool DrawDocShell::GotoBookmark(const OUString& rBookmark) OUString sViewURL; switch (eNewPageKind) { - case PK_STANDARD: + case PageKind::Standard: sViewURL = FrameworkHelper::msImpressViewURL; break; - case PK_NOTES: + case PageKind::Notes: sViewURL = FrameworkHelper::msNotesViewURL; break; - case PK_HANDOUT: + case PageKind::Handout: sViewURL = FrameworkHelper::msHandoutViewURL; break; default: @@ -996,10 +996,10 @@ bool DrawDocShell::SaveAsOwnFormat( SfxMedium& rMedium ) if (aLayoutName.isEmpty()) { - sal_uInt32 nCount = mpDoc->GetMasterSdPageCount(PK_STANDARD); + sal_uInt32 nCount = mpDoc->GetMasterSdPageCount(PageKind::Standard); for (sal_uInt32 i = 0; i < nCount; ++i) { - OUString aOldPageLayoutName = mpDoc->GetMasterSdPage(i, PK_STANDARD)->GetLayoutName(); + OUString aOldPageLayoutName = mpDoc->GetMasterSdPage(i, PageKind::Standard)->GetLayoutName(); OUString aNewLayoutName = aLayoutName; // Don't add suffix for the first master page if( i > 0 ) |