1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef SD_FRAMEWORK_SLIDE_SORTER_MODULE_HXX 25 #define SD_FRAMEWORK_SLIDE_SORTER_MODULE_HXX 26 27 #include "ResourceManager.hxx" 28 29 #include <com/sun/star/drawing/framework/XControllerManager.hpp> 30 #include <com/sun/star/drawing/framework/XTabBar.hpp> 31 32 namespace css = ::com::sun::star; 33 34 namespace sd { namespace framework { 35 36 /** This module is responsible for showing the slide sorter bar and the the 37 slide sorter view in the center pane. 38 */ 39 class SlideSorterModule 40 : public ResourceManager 41 { 42 public: 43 SlideSorterModule ( 44 const css::uno::Reference<css::frame::XController>& rxController, 45 const ::rtl::OUString& rsLeftPaneURL); 46 virtual ~SlideSorterModule (void); 47 48 49 // XConfigurationChangeListener 50 51 virtual void SAL_CALL notifyConfigurationChange ( 52 const css::drawing::framework::ConfigurationChangeEvent& rEvent) 53 throw (css::uno::RuntimeException); 54 55 private: 56 css::uno::Reference<css::drawing::framework::XResourceId> mxViewTabBarId; 57 css::uno::Reference<css::drawing::framework::XControllerManager> mxControllerManager; 58 59 void UpdateViewTabBar ( 60 const css::uno::Reference<css::drawing::framework::XTabBar>& rxViewTabBar); 61 }; 62 63 } } // end of namespace sd::framework 64 65 #endif 66