summaryrefslogtreecommitdiffstats
path: root/sd/source/ui/framework/module/SlideSorterModule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/module/SlideSorterModule.cxx')
-rw-r--r--sd/source/ui/framework/module/SlideSorterModule.cxx34
1 files changed, 18 insertions, 16 deletions
diff --git a/sd/source/ui/framework/module/SlideSorterModule.cxx b/sd/source/ui/framework/module/SlideSorterModule.cxx
index 412a7c608e48..bc5e108cc4fb 100644
--- a/sd/source/ui/framework/module/SlideSorterModule.cxx
+++ b/sd/source/ui/framework/module/SlideSorterModule.cxx
@@ -34,10 +34,8 @@ using namespace ::com::sun::star::drawing::framework;
using ::sd::framework::FrameworkHelper;
-
namespace sd { namespace framework {
-
//===== SlideSorterModule ==================================================
SlideSorterModule::SlideSorterModule (
@@ -74,9 +72,6 @@ SlideSorterModule::SlideSorterModule (
}
}
-
-
-
SlideSorterModule::~SlideSorterModule (void)
{
}
@@ -91,7 +86,6 @@ void SlideSorterModule::SaveResourceState (void)
SvtSlideSorterBarOptions().SetVisibleDrawView(IsResourceActive(FrameworkHelper::msDrawViewURL));
}
-
void SAL_CALL SlideSorterModule::notifyConfigurationChange (
const ConfigurationChangeEvent& rEvent)
throw (RuntimeException)
@@ -137,24 +131,32 @@ void SlideSorterModule::UpdateViewTabBar (const Reference<XTabBar>& rxTabBar)
if (xBar.is())
{
- TabBarButton aButtonA;
- aButtonA.ResourceId = FrameworkHelper::CreateResourceId(
+ TabBarButton aButtonPos;
+ // lookup the position
+ aButtonPos.ResourceId = FrameworkHelper::CreateResourceId(
+ FrameworkHelper::msHandoutViewURL,
+ FrameworkHelper::msCenterPaneURL);
+
+ TabBarButton aButtonSorter;
+ aButtonSorter.ResourceId = FrameworkHelper::CreateResourceId(
FrameworkHelper::msSlideSorterURL,
FrameworkHelper::msCenterPaneURL);
- aButtonA.ButtonLabel = String(SdResId(STR_SLIDE_MODE));
+ aButtonSorter.ButtonLabel = String(SdResId(STR_SLIDE_MODE));
- TabBarButton aButtonB;
- aButtonB.ResourceId = FrameworkHelper::CreateResourceId(
- FrameworkHelper::msHandoutViewURL,
+ TabBarButton aButtonJockey;
+ aButtonJockey.ResourceId = FrameworkHelper::CreateResourceId(
+ FrameworkHelper::msJockeySorterURL,
FrameworkHelper::msCenterPaneURL);
+ aButtonJockey.ButtonLabel = String(SdResId(STR_JOCKEY_MODE));
- if ( ! xBar->hasTabBarButton(aButtonA))
- xBar->addTabBarButtonAfter(aButtonA, aButtonB);
+ if (!xBar->hasTabBarButton(aButtonSorter))
+ xBar->addTabBarButtonAfter(aButtonSorter, aButtonPos);
+
+ if (!xBar->hasTabBarButton(aButtonJockey))
+ xBar->addTabBarButtonAfter(aButtonJockey, aButtonSorter);
}
}
-
-
} } // end of namespace sd::framework
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */