LibreOffice Module sfx2 (master) 1
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
25class SfxViewShell;
26
27namespace svt { class AcceleratorExecute; }
28
29namespace sfx2::sidebar {
30
31class SidebarChildWindow;
32
33class SidebarController;
34
36{
37public:
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();
50
51private:
52 // Window overridables
53 virtual void GetFocus() override;
54
55 virtual SfxChildAlignment CheckAlignment (
56 SfxChildAlignment eCurrentAlignment,
57 SfxChildAlignment eRequestedAlignment) override;
58
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
Definition: chalign.hxx:27
virtual bool Close() override
The window is closed when the ChildWindow is destroyed by running the ChildWindow-slots.
Definition: dockwin.cxx:1408
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones f...
Definition: viewsh.hxx:165
Outer container of the sidebar window.
std::unique_ptr< svt::AcceleratorExecute > mpAccel
::rtl::Reference< sfx2::sidebar::SidebarController > mpSidebarController
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29
Close
void dispose()
sal_Int64 WinBits