diff options
Diffstat (limited to 'sd/source/ui/sidebar/MasterPageObserver.cxx')
-rw-r--r-- | sd/source/ui/sidebar/MasterPageObserver.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/sidebar/MasterPageObserver.cxx b/sd/source/ui/sidebar/MasterPageObserver.cxx index 4b2db78b4244..e2a06b42de50 100644 --- a/sd/source/ui/sidebar/MasterPageObserver.cxx +++ b/sd/source/ui/sidebar/MasterPageObserver.cxx @@ -153,10 +153,10 @@ void MasterPageObserver::Implementation::RegisterDocument ( { // Gather the names of all the master pages in the given document. MasterPageContainer::mapped_type aMasterPageSet; - sal_uInt16 nMasterPageCount = rDocument.GetMasterSdPageCount(PK_STANDARD); + sal_uInt16 nMasterPageCount = rDocument.GetMasterSdPageCount(PageKind::Standard); for (sal_uInt16 nIndex=0; nIndex<nMasterPageCount; nIndex++) { - SdPage* pMasterPage = rDocument.GetMasterSdPage (nIndex, PK_STANDARD); + SdPage* pMasterPage = rDocument.GetMasterSdPage (nIndex, PageKind::Standard); if (pMasterPage != nullptr) aMasterPageSet.insert (pMasterPage->GetName()); } @@ -236,8 +236,8 @@ void MasterPageObserver::Implementation::Notify( { SdDrawDocument& rDocument ( static_cast<SdDrawDocument&>(rBroadcaster)); - if (rDocument.GetMasterSdPageCount(PK_STANDARD) - == rDocument.GetMasterSdPageCount(PK_NOTES)) + if (rDocument.GetMasterSdPageCount(PageKind::Standard) + == rDocument.GetMasterSdPageCount(PageKind::Notes)) { AnalyzeUsedMasterPages (rDocument); } @@ -254,11 +254,11 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages ( SdDrawDocument& rDocument) { // Create a set of names of the master pages used by the given document. - sal_uInt16 nMasterPageCount = rDocument.GetMasterSdPageCount(PK_STANDARD); + sal_uInt16 nMasterPageCount = rDocument.GetMasterSdPageCount(PageKind::Standard); ::std::set<OUString> aCurrentMasterPages; for (sal_uInt16 nIndex=0; nIndex<nMasterPageCount; nIndex++) { - SdPage* pMasterPage = rDocument.GetMasterSdPage (nIndex, PK_STANDARD); + SdPage* pMasterPage = rDocument.GetMasterSdPage (nIndex, PageKind::Standard); if (pMasterPage != nullptr) aCurrentMasterPages.insert (pMasterPage->GetName()); OSL_TRACE("currently used master page %d is %s", |