diff options
Diffstat (limited to 'sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx')
-rwxr-xr-x | sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx index 61483f278a4f..b9fa0d87b663 100755 --- a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx +++ b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx @@ -306,9 +306,9 @@ SdPage* TemplatePageObjectProvider::operator() (SdDrawDocument* pContainerDocume { SfxApplication* pSfxApp = SFX_APP(); SfxItemSet* pSet = new SfxAllItemSet (pSfxApp->GetPool()); - pSet->Put (SfxBoolItem (SID_TEMPLATE, TRUE)); - pSet->Put (SfxBoolItem (SID_PREVIEW, TRUE)); - if (pSfxApp->LoadTemplate (mxDocumentShell, sFileName, TRUE, pSet)) + pSet->Put (SfxBoolItem (SID_TEMPLATE, sal_True)); + pSet->Put (SfxBoolItem (SID_PREVIEW, sal_True)); + if (pSfxApp->LoadTemplate (mxDocumentShell, sFileName, sal_True, pSet)) { mxDocumentShell = NULL; } @@ -355,7 +355,7 @@ SdPage* DefaultPageObjectProvider::operator () (SdDrawDocument* pContainerDocume if (pContainerDocument != NULL) { sal_Int32 nIndex (0); - SdPage* pLocalSlide = pContainerDocument->GetSdPage((USHORT)nIndex, PK_STANDARD); + SdPage* pLocalSlide = pContainerDocument->GetSdPage((sal_uInt16)nIndex, PK_STANDARD); if (pLocalSlide!=NULL && pLocalSlide->TRG_HasMasterPage()) pLocalMasterPage = dynamic_cast<SdPage*>(&pLocalSlide->TRG_GetMasterPage()); } |