summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller
diff options
context:
space:
mode:
authorRob Snelders <programming@ertai.nl>2013-03-23 19:36:41 +0100
committerThorsten Behrens <tbehrens@suse.com>2013-03-23 22:58:52 +0100
commit99120b7ddc8ede9108d4a45a5605ac191fe22bc9 (patch)
tree8500cc2657aada3d22e8c5b7ff690861d77ba491 /sd/source/ui/slidesorter/controller
parent78eda507c8452e8f6d743427d56526a91b779790 (diff)
Display the number of active slides in the statusbar
Conflicts: sd/source/ui/view/drviews4.cxx Change-Id: I788070fdf093ec8b9f875ea5e81999990cd04501
Diffstat (limited to 'sd/source/ui/slidesorter/controller')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsSlotManager.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
index 6db42a09c38f..bdf802bcacb6 100644
--- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx
@@ -815,6 +815,8 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
SdPage* pPage = NULL;
SdPage* pFirstPage = NULL;
sal_uInt16 nFirstPage;
+ sal_Int32 nPageCount;
+ sal_Int32 nActivePageCount;
sal_uInt16 nSelectedPages = mrSlideSorter.GetController().GetPageSelector().GetSelectedPageCount();
OUStringBuffer aPageStr;
String aLayoutStr;
@@ -831,7 +833,14 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
{
pPage = pDescriptor->GetPage();
nFirstPage = (pPage->GetPageNum()/2) + 1;
- aPageStr.append(" ").append(static_cast<sal_Int32>(nFirstPage), 10).append(" / ").append(mrSlideSorter.GetModel().GetPageCount(), 10);
+ nPageCount = mrSlideSorter.GetModel().GetPageCount();
+ nActivePageCount = static_cast<sal_Int32>(mrSlideSorter.GetModel().GetDocument()->GetActiveSdPageCount());
+
+ aPageStr.append(" ").append(static_cast<sal_Int32>(nFirstPage), 10).append(" / ").append(nPageCount, 10);
+ if (nPageCount != nActivePageCount)
+ {
+ aPageStr.append(" (").append(nActivePageCount, 10).append(")");
+ }
}
rSet.Put( SfxStringItem( SID_STATUS_PAGE, aPageStr.makeStringAndClear() ) );
}