LibreOffice Module sd (master) 1
CenterViewFocusModule.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 <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
24#include <rtl/ref.hxx>
25
27{
28class XConfigurationController;
29}
31{
32class XController;
33}
34
35namespace sd
36{
37class DrawController;
38class ViewShellBase;
39}
40
41namespace sd::framework
42{
45
52{
53public:
55 virtual ~CenterViewFocusModule() override;
56
57 virtual void disposing(std::unique_lock<std::mutex>&) override;
58
59 // XConfigurationChangeListener
60
61 virtual void SAL_CALL notifyConfigurationChange(
62 const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
63
64 // XEventListener
65
66 virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent) override;
67
68private:
69 class ViewShellContainer;
70
71 bool mbValid;
72 css::uno::Reference<css::drawing::framework::XConfigurationController>
80
85 void HandleNewView(
86 const css::uno::Reference<css::drawing::framework::XConfiguration>& rxConfiguration);
87};
88
89} // end of namespace sd::framework
90
91/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
This module waits for new views to be created for the center pane and then moves the center view to t...
CenterViewFocusModule(rtl::Reference< sd::DrawController > const &rxController)
void HandleNewView(const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration)
At the end of an update of the current configuration this method handles a new view in the center pan...
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
bool mbNewViewCreated
This flag indicates whether in the last configuration change cycle a new view has been created and th...
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
virtual void disposing(std::unique_lock< std::mutex > &) override
virtual void SAL_CALL disposing(const css::lang::EventObject &rEvent) override
comphelper::WeakComponentImplHelper< css::drawing::framework::XConfigurationChangeListener > CenterViewFocusModuleInterfaceBase