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 .
22 #include "FrameWindowPane.hxx"
23 #include <tools/link.hxx>
24 #include <vcl/wrkwin.hxx>
28 namespace vcl
{ class Window
; }
29 namespace com::sun::star::uno
{ class XComponentContext
; }
31 namespace sd::framework
{
33 /** The full screen pane creates a pane that covers the complete application
34 window, i.e. that hides menu bar, tool bars, status bars.
37 : public FrameWindowPane
40 /** Create a new full screen pane.
41 @param rxComponentContext
42 Used for creating a new canvas.
44 The resource id of the new pane.
45 @param pViewShellWindow
46 The top-level parent of this window is used to obtain title and
47 icon for the new top-level window.
50 const css::uno::Reference
<css::uno::XComponentContext
>& rxComponentContext
,
51 const css::uno::Reference
<css::drawing::framework::XResourceId
>& rxPaneId
,
52 const vcl::Window
* pViewShellWindow
);
53 virtual ~FullScreenPane() noexcept override
;
55 virtual void SAL_CALL
disposing() override
;
57 //----- XPane -------------------------------------------------------------
59 virtual sal_Bool SAL_CALL
isVisible() override
;
61 virtual void SAL_CALL
setVisible (sal_Bool bIsVisible
) override
;
63 virtual css::uno::Reference
<css::accessibility::XAccessible
> SAL_CALL
getAccessible() override
;
65 virtual void SAL_CALL
setAccessible (
66 const css::uno::Reference
<css::accessibility::XAccessible
>& rxAccessible
) override
;
68 DECL_LINK(WindowEventHandler
, VclWindowEvent
&, void);
71 virtual css::uno::Reference
<css::rendering::XCanvas
>
72 CreateCanvas() override
;
75 css::uno::Reference
<css::uno::XComponentContext
> mxComponentContext
;
76 VclPtr
<WorkWindow
> mpWorkWindow
;
78 static void ExtractArguments (
79 const css::uno::Reference
<css::drawing::framework::XResourceId
>& rxPaneId
,
80 sal_Int32
& rnScreenNumberReturnValue
,
84 } // end of namespace sd::framework
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */