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
; }
30 namespace sd
{ class DrawDocShell
; }
32 namespace sd::framework
{
34 /** The full screen pane creates a pane that covers the complete application
35 window, i.e. that hides menu bar, tool bars, status bars.
38 : public FrameWindowPane
41 /** Create a new full screen pane.
42 @param rxComponentContext
43 Used for creating a new canvas.
45 The resource id of the new pane.
46 @param pViewShellWindow
47 The top-level parent of this window is used to obtain
48 icon for the new top-level window.
50 The DrawDocShell parent of this window is used to obtain
51 title for the new top-level window.
54 const css::uno::Reference
<css::uno::XComponentContext
>& rxComponentContext
,
55 const css::uno::Reference
<css::drawing::framework::XResourceId
>& rxPaneId
,
56 const vcl::Window
* pViewShellWindow
,
57 const DrawDocShell
* pDrawDocShell
);
58 virtual ~FullScreenPane() noexcept override
;
60 virtual void SAL_CALL
disposing() override
;
62 //----- XPane -------------------------------------------------------------
64 virtual sal_Bool SAL_CALL
isVisible() override
;
66 virtual void SAL_CALL
setVisible (sal_Bool bIsVisible
) override
;
68 virtual css::uno::Reference
<css::accessibility::XAccessible
> SAL_CALL
getAccessible() override
;
70 virtual void SAL_CALL
setAccessible (
71 const css::uno::Reference
<css::accessibility::XAccessible
>& rxAccessible
) override
;
73 DECL_LINK(WindowEventHandler
, VclWindowEvent
&, void);
76 virtual css::uno::Reference
<css::rendering::XCanvas
>
77 CreateCanvas() override
;
80 css::uno::Reference
<css::uno::XComponentContext
> mxComponentContext
;
81 VclPtr
<WorkWindow
> mpWorkWindow
;
83 static void ExtractArguments (
84 const css::uno::Reference
<css::drawing::framework::XResourceId
>& rxPaneId
,
85 sal_Int32
& rnScreenNumberReturnValue
,
89 } // end of namespace sd::framework
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */