diff options
author | Gabor Kelemen <kelemeng@ubuntu.com> | 2017-08-18 21:57:35 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-08-19 05:13:39 +0200 |
commit | 793246e1ae1266e8bd4261aa45dad40f5da16785 (patch) | |
tree | c91a53ebd77b2351ddbdf765fd4ffc7ed94cb9c9 /sd/source | |
parent | 81d40428bbcfe332b78e154b4cd3fd7feff5ff73 (diff) |
tdf#107183 Set different dialog title for renaming master slide
Change-Id: I351e6db782cce8ece78083e5a79e4c2baaa414ee
Reviewed-on: https://gerrit.libreoffice.org/41310
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 13 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index ce146a969ddc..9cf3a557e4a0 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -241,7 +241,7 @@ void SlotManager::FuTemporary (SfxRequest& rRequest) case SID_RENAMEPAGE: case SID_RENAME_MASTER_PAGE: - RenameSlide (); + RenameSlide (rRequest); rRequest.Done (); break; @@ -851,7 +851,7 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet) } } -void SlotManager::RenameSlide() +void SlotManager::RenameSlide(SfxRequest& rRequest) { View* pDrView = &mrSlideSorter.GetView(); @@ -868,7 +868,14 @@ void SlotManager::RenameSlide() pSelectedPage = aSelectedPages.GetNextElement()->GetPage(); if (pSelectedPage != nullptr) { - OUString aTitle( SdResId( STR_TITLE_RENAMESLIDE ) ); + // tdf#107183 Set different dialog titles when renaming + // master slides or normal ones + OUString aTitle; + if( rRequest.GetSlot() == SID_RENAME_MASTER_PAGE ) + aTitle = SdResId( STR_TITLE_RENAMEMASTER ); + else + aTitle = SdResId( STR_TITLE_RENAMESLIDE ); + OUString aDescr( SdResId( STR_DESC_RENAMESLIDE ) ); OUString aPageName = pSelectedPage->GetName(); diff --git a/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx b/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx index 41bb97e56c2f..1ca42fcd6cb6 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsSlotManager.hxx @@ -81,7 +81,7 @@ private: /** The implementation is a copy of the code for SID_RENAMEPAGE in drviews2.cxx. */ - void RenameSlide(); + void RenameSlide( SfxRequest& rRequest ); DECL_LINK(RenameSlideHdl, AbstractSvxNameDialog&, bool); bool RenameSlideFromDrawViewShell( sal_uInt16 nPageId, const OUString& rName); |