LibreOffice Module sfx2 (master)
1
include
sfx2
sidebar
SidebarDockingWindow.hxx
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
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/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
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 .
18
*/
19
#pragma once
20
21
#include <
sfx2/dockwin.hxx
>
22
23
#include <rtl/ref.hxx>
24
25
class
SfxViewShell
;
26
27
namespace
svt
{
class
AcceleratorExecute; }
28
29
namespace
sfx2::sidebar
{
30
31
class
SidebarChildWindow;
32
33
class
SidebarController;
34
35
class
SFX2_DLLPUBLIC
SidebarDockingWindow
final :
public
SfxDockingWindow
36
{
37
public
:
38
SidebarDockingWindow
(
SfxBindings
* pBindings,
SidebarChildWindow
& rChildWindow,
39
vcl::Window
* pParent,
WinBits
nBits);
40
virtual
~SidebarDockingWindow
()
override
;
41
virtual
void
dispose
()
override
;
42
virtual
bool
EventNotify(
NotifyEvent
& rEvent)
override
;
43
virtual
bool
Close
()
override
;
44
46
void
SyncUpdate();
47
48
rtl::Reference<sfx2::sidebar::SidebarController>
& GetOrCreateSidebarController();
49
using
SfxDockingWindow::Close
;
50
51
private
:
52
// Window overridables
53
virtual
void
GetFocus
()
override
;
54
55
virtual
SfxChildAlignment
CheckAlignment (
56
SfxChildAlignment
eCurrentAlignment,
57
SfxChildAlignment
eRequestedAlignment)
override
;
58
59
::rtl::Reference<sfx2::sidebar::SidebarController>
mpSidebarController
;
60
bool
mbIsReadyToDrag
;
61
std::unique_ptr<svt::AcceleratorExecute>
mpAccel
;
62
};
63
64
}
// end of namespace sfx2::sidebar
65
66
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxChildAlignment
SfxChildAlignment
Definition:
chalign.hxx:27
NotifyEvent
SfxBindings
Definition:
bindings.hxx:92
SfxDockingWindow
Definition:
dockwin.hxx:41
SfxDockingWindow::Close
virtual bool Close() override
The window is closed when the ChildWindow is destroyed by running the ChildWindow-slots.
Definition:
dockwin.cxx:1408
SfxViewShell
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones f...
Definition:
viewsh.hxx:165
rtl::Reference< sfx2::sidebar::SidebarController >
sfx2::sidebar::SidebarChildWindow
Outer container of the sidebar window.
Definition:
SidebarChildWindow.hxx:33
sfx2::sidebar::SidebarDockingWindow
Definition:
SidebarDockingWindow.hxx:36
sfx2::sidebar::SidebarDockingWindow::mpAccel
std::unique_ptr< svt::AcceleratorExecute > mpAccel
Definition:
SidebarDockingWindow.hxx:61
sfx2::sidebar::SidebarDockingWindow::mpSidebarController
::rtl::Reference< sfx2::sidebar::SidebarController > mpSidebarController
Definition:
SidebarDockingWindow.hxx:59
sfx2::sidebar::SidebarDockingWindow::mbIsReadyToDrag
bool mbIsReadyToDrag
Definition:
SidebarDockingWindow.hxx:60
SFX2_DLLPUBLIC
#define SFX2_DLLPUBLIC
Definition:
dllapi.h:29
dockwin.hxx
Close
Close
sfx2::sidebar
Definition:
appdata.hxx:56
svt
dispose
void dispose()
SalEvent::GetFocus
@ GetFocus
vcl::Window
WinBits
sal_Int64 WinBits
Generated on Sun Jul 30 2023 04:33:35 for LibreOffice Module sfx2 (master) by
1.9.3