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