1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SD_SOURCE_UI_FRAMEWORK_FACTORIES_FULLSCREENPANE_HXX
21 #define INCLUDED_SD_SOURCE_UI_FRAMEWORK_FACTORIES_FULLSCREENPANE_HXX
23 #include "FrameWindowPane.hxx"
24 #include <com/sun/star/frame/XLayoutManager.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <vcl/vclevent.hxx>
27 #include <boost/scoped_ptr.hpp>
31 namespace sd
{ class ViewShellBase
; }
33 namespace sd
{ namespace framework
{
35 /** The full screen pane creates a pane that covers the complete application
36 window, i.e. that hides menu bar, tool bars, status bars.
39 : public FrameWindowPane
42 /** Create a new full screen pane.
43 @param rxComponentContext
44 Used for creating a new canvas.
46 The resource id of the new pane.
47 @param pViewShellWindow
48 The top-level parent of this window is used to obtain title and
49 icon for the new top-level window.
52 const css::uno::Reference
<css::uno::XComponentContext
>& rxComponentContext
,
53 const css::uno::Reference
<css::drawing::framework::XResourceId
>& rxPaneId
,
54 const vcl::Window
* pViewShellWindow
);
55 virtual ~FullScreenPane() throw();
57 virtual void SAL_CALL
disposing() SAL_OVERRIDE
;
59 //----- XPane -------------------------------------------------------------
61 virtual sal_Bool SAL_CALL
isVisible()
62 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
64 virtual void SAL_CALL
setVisible (sal_Bool bIsVisible
)
65 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
67 virtual css::uno::Reference
<css::accessibility::XAccessible
> SAL_CALL
getAccessible()
68 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
70 virtual void SAL_CALL
setAccessible (
71 const css::uno::Reference
<css::accessibility::XAccessible
>& rxAccessible
)
72 throw (css::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
74 DECL_LINK(WindowEventHandler
, VclWindowEvent
*);
77 virtual ::com::sun::star::uno::Reference
<com::sun::star::rendering::XCanvas
>
79 throw (::com::sun::star::uno::RuntimeException
) SAL_OVERRIDE
;
82 css::uno::Reference
<css::uno::XComponentContext
> mxComponentContext
;
83 VclPtr
<WorkWindow
> mpWorkWindow
;
85 static void ExtractArguments (
86 const css::uno::Reference
<css::drawing::framework::XResourceId
>& rxPaneId
,
87 sal_Int32
& rnScreenNumberReturnValue
);
90 } } // end of namespace sd::framework
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */