1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef SDEXT_PRESENTER_VIEW_HELPER_HXX
29 #define SDEXT_PRESENTER_VIEW_HELPER_HXX
30 
31 #include <com/sun/star/graphic/XGraphic.hpp>
32 #include <com/sun/star/frame/XController.hpp>
33 #include <com/sun/star/presentation/XSlideShowController.hpp>
34 #include <com/sun/star/uno/XComponentContext.hpp>
35 #include <boost/noncopyable.hpp>
36 
37 namespace css = ::com::sun::star;
38 
39 namespace sdext { namespace presenter {
40 
41 /** Collection of helper functions that do not fit in anywhere else.
42     Provide access to frequently used strings of the drawing framework.
43 */
44 class PresenterHelper
45     : ::boost::noncopyable
46 {
47 public:
48     static const ::rtl::OUString msPaneURLPrefix;
49     static const ::rtl::OUString msCenterPaneURL;
50     static const ::rtl::OUString msFullScreenPaneURL;
51 
52     static const ::rtl::OUString msViewURLPrefix;
53     static const ::rtl::OUString msPresenterScreenURL;
54     static const ::rtl::OUString msSlideSorterURL;
55 
56     static const ::rtl::OUString msResourceActivationEvent;
57     static const ::rtl::OUString msResourceDeactivationEvent;
58 
59     static const ::rtl::OUString msDefaultPaneStyle;
60     static const ::rtl::OUString msDefaultViewStyle;
61 
62     /** Return the slide show controller of a running presentation that has
63         the same document as the given framework controller.
64         @return
65             When no presentation is running this method returns an empty reference.
66     */
67     static css::uno::Reference<css::presentation::XSlideShowController> GetSlideShowController (
68         const css::uno::Reference<css::frame::XController>& rxController);
69 
70 private:
71     PresenterHelper (void);
72     ~PresenterHelper (void);
73 };
74 
75 } } // end of namespace presenter
76 
77 #endif
78