merge the formfield patch from ooo-build
[ooovba.git] / sd / source / ui / framework / module / SlideSorterModule.hxx
blob30118e0793c2354fd27bed39b089d12325eeb721
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: SlideSorterModule.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SD_FRAMEWORK_SLIDE_SORTER_MODULE_HXX
32 #define SD_FRAMEWORK_SLIDE_SORTER_MODULE_HXX
34 #include "ResourceManager.hxx"
36 #include <com/sun/star/drawing/framework/XControllerManager.hpp>
37 #include <com/sun/star/drawing/framework/XTabBar.hpp>
39 namespace css = ::com::sun::star;
41 namespace sd { namespace framework {
43 /** This module is responsible for showing the slide sorter bar and the the
44 slide sorter view in the center pane.
46 class SlideSorterModule
47 : public ResourceManager
49 public:
50 SlideSorterModule (
51 const css::uno::Reference<css::frame::XController>& rxController,
52 const ::rtl::OUString& rsLeftPaneURL);
53 virtual ~SlideSorterModule (void);
56 // XConfigurationChangeListener
58 virtual void SAL_CALL notifyConfigurationChange (
59 const css::drawing::framework::ConfigurationChangeEvent& rEvent)
60 throw (css::uno::RuntimeException);
62 private:
63 css::uno::Reference<css::drawing::framework::XResourceId> mxViewTabBarId;
64 css::uno::Reference<css::drawing::framework::XControllerManager> mxControllerManager;
66 void UpdateViewTabBar (
67 const css::uno::Reference<css::drawing::framework::XTabBar>& rxViewTabBar);
70 } } // end of namespace sd::framework
72 #endif