1*06bcd5d2SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*06bcd5d2SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*06bcd5d2SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*06bcd5d2SAndrew Rist  * distributed with this work for additional information
6*06bcd5d2SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*06bcd5d2SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*06bcd5d2SAndrew Rist  * "License"); you may not use this file except in compliance
9*06bcd5d2SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*06bcd5d2SAndrew Rist  *
11*06bcd5d2SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*06bcd5d2SAndrew Rist  *
13*06bcd5d2SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*06bcd5d2SAndrew Rist  * software distributed under the License is distributed on an
15*06bcd5d2SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*06bcd5d2SAndrew Rist  * KIND, either express or implied.  See the License for the
17*06bcd5d2SAndrew Rist  * specific language governing permissions and limitations
18*06bcd5d2SAndrew Rist  * under the License.
19*06bcd5d2SAndrew Rist  *
20*06bcd5d2SAndrew Rist  *************************************************************/
21*06bcd5d2SAndrew Rist 
22*06bcd5d2SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef SDEXT_PRESENTER_VIEW_HELPER_HXX
25cdf0e10cSrcweir #define SDEXT_PRESENTER_VIEW_HELPER_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <com/sun/star/graphic/XGraphic.hpp>
28cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp>
29cdf0e10cSrcweir #include <com/sun/star/presentation/XSlideShowController.hpp>
30cdf0e10cSrcweir #include <com/sun/star/uno/XComponentContext.hpp>
31cdf0e10cSrcweir #include <boost/noncopyable.hpp>
32cdf0e10cSrcweir 
33cdf0e10cSrcweir namespace css = ::com::sun::star;
34cdf0e10cSrcweir 
35cdf0e10cSrcweir namespace sdext { namespace presenter {
36cdf0e10cSrcweir 
37cdf0e10cSrcweir /** Collection of helper functions that do not fit in anywhere else.
38cdf0e10cSrcweir     Provide access to frequently used strings of the drawing framework.
39cdf0e10cSrcweir */
40cdf0e10cSrcweir class PresenterHelper
41cdf0e10cSrcweir     : ::boost::noncopyable
42cdf0e10cSrcweir {
43cdf0e10cSrcweir public:
44cdf0e10cSrcweir     static const ::rtl::OUString msPaneURLPrefix;
45cdf0e10cSrcweir     static const ::rtl::OUString msCenterPaneURL;
46cdf0e10cSrcweir     static const ::rtl::OUString msFullScreenPaneURL;
47cdf0e10cSrcweir 
48cdf0e10cSrcweir     static const ::rtl::OUString msViewURLPrefix;
49cdf0e10cSrcweir     static const ::rtl::OUString msPresenterScreenURL;
50cdf0e10cSrcweir     static const ::rtl::OUString msSlideSorterURL;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir     static const ::rtl::OUString msResourceActivationEvent;
53cdf0e10cSrcweir     static const ::rtl::OUString msResourceDeactivationEvent;
54cdf0e10cSrcweir 
55cdf0e10cSrcweir     static const ::rtl::OUString msDefaultPaneStyle;
56cdf0e10cSrcweir     static const ::rtl::OUString msDefaultViewStyle;
57cdf0e10cSrcweir 
58cdf0e10cSrcweir     /** Return the slide show controller of a running presentation that has
59cdf0e10cSrcweir         the same document as the given framework controller.
60cdf0e10cSrcweir         @return
61cdf0e10cSrcweir             When no presentation is running this method returns an empty reference.
62cdf0e10cSrcweir     */
63cdf0e10cSrcweir     static css::uno::Reference<css::presentation::XSlideShowController> GetSlideShowController (
64cdf0e10cSrcweir         const css::uno::Reference<css::frame::XController>& rxController);
65cdf0e10cSrcweir 
66cdf0e10cSrcweir private:
67cdf0e10cSrcweir     PresenterHelper (void);
68cdf0e10cSrcweir     ~PresenterHelper (void);
69cdf0e10cSrcweir };
70cdf0e10cSrcweir 
71cdf0e10cSrcweir } } // end of namespace presenter
72cdf0e10cSrcweir 
73cdf0e10cSrcweir #endif
74