LibreOffice Module sd (master) 1
FormShellManager.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
20#pragma once
21
22#include "ViewShellManager.hxx"
23
24#include <tools/link.hxx>
25#include <svl/lstner.hxx>
26#include <vcl/vclptr.hxx>
27
28class VclWindowEvent;
29class FmFormShell;
30namespace vcl
31{
32class Window;
33}
34
35namespace sd::tools
36{
37class EventMultiplexerEvent;
38}
39
40namespace sd
41{
42class ViewShellBase;
43
56class FormShellManager final : public SfxListener
57{
58public:
60 virtual ~FormShellManager() override;
61
68 void SetFormShell(FmFormShell* pFormShell);
69
76
77private:
79
85
90
95
97
99
106
111
116 DECL_LINK(WindowEventHandler, VclWindowEvent&, void);
117
122 DECL_LINK(ConfigurationUpdateHandler, ::sd::tools::EventMultiplexerEvent&, void);
123
127 DECL_LINK(FormControlActivated, LinkParamNone*, void);
128
134 virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override;
135
137 void ImplDestroy();
138};
139
140} // end of namespace sd
141
142/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This simple class is responsible for putting the form shell above or below the main view shell on the...
virtual ~FormShellManager() override
ViewShellBase & mrBase
FmFormShell * mpFormShell
Ownership of the form shell lies with the ViewShellManager.
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
This method is called by the form shell when that is destroyed.
DECL_LINK(FormControlActivated, LinkParamNone *, void)
This call back is called by the form shell when it gets the focus.
FmFormShell * GetFormShell()
Return the form shell last set with SetFormShell().
void ImplDestroy()
dtor body
ViewShellManager::SharedShellFactory mpSubShellFactory
The factory is remembered so that it removed from the ViewShellManager when the FormShellManager is d...
void SetFormShell(FmFormShell *pFormShell)
Typically called by a ShellFactory.
void UnregisterAtCenterPane()
Unregister the listeners that were registered in RegisterAtCenterPane().
FormShellManager(ViewShellBase &rBase)
DECL_LINK(WindowEventHandler, VclWindowEvent &, void)
This call back is called by the application window (among others) when the window gets the focus.
bool mbFormShellAboveViewShell
Remember whether the form shell is currently above or below the main view shell.
DECL_LINK(ConfigurationUpdateHandler, ::sd::tools::EventMultiplexerEvent &, void)
This call back is called when view in the center pane is replaced.
void RegisterAtCenterPane()
Register at window of center pane and at the form shell that represents the form tool bar.
VclPtr< vcl::Window > mpMainViewShellWindow
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
std::shared_ptr< ShellFactory< SfxShell > > SharedShellFactory