LibreOffice Module sd (master) 1
PresentationFactory.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/XResourceFactory.hpp>
23#include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
25#include <rtl/ref.hxx>
26
27namespace com::sun::star::frame { class XController; }
28namespace sd { class DrawController; }
29
30namespace sd::framework {
31
33 css::drawing::framework::XResourceFactory,
34 css::drawing::framework::XConfigurationChangeListener
36
43{
44public:
46 const rtl::Reference<::sd::DrawController>& rxController);
47 virtual ~PresentationFactory() override;
48
49 static void install(const rtl::Reference<::sd::DrawController>& rxController);
50
51 // XResourceFactory
52
53 virtual css::uno::Reference<css::drawing::framework::XResource>
54 SAL_CALL createResource (
55 const css::uno::Reference<
56 css::drawing::framework::XResourceId>& rxViewId) override;
57
58 virtual void SAL_CALL releaseResource (
59 const css::uno::Reference<css::drawing::framework::XResource>& xView) override;
60
61 // XConfigurationChangeListener
62
63 virtual void SAL_CALL notifyConfigurationChange (
64 const css::drawing::framework::ConfigurationChangeEvent& rEvent) override;
65
66 // lang::XEventListener
67
68 using WeakComponentImplHelperBase::disposing;
69 virtual void SAL_CALL disposing (
70 const css::lang::EventObject& rEventObject) override;
71
72private:
74
76 void ThrowIfDisposed() const;
77};
78
79} // end of namespace sd::framework
80
81/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This factory creates a marker view whose existence in a configuration indicates that a slideshow is r...
virtual css::uno::Reference< css::drawing::framework::XResource > SAL_CALL createResource(const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId) override
virtual void SAL_CALL releaseResource(const css::uno::Reference< css::drawing::framework::XResource > &xView) override
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
virtual void SAL_CALL disposing(const css::lang::EventObject &rEventObject) override
static void install(const rtl::Reference<::sd::DrawController > &rxController)
PresentationFactory(const rtl::Reference<::sd::DrawController > &rxController)
rtl::Reference<::sd::DrawController > mxController
comphelper::WeakComponentImplHelper< css::drawing::framework::XResourceFactory, css::drawing::framework::XConfigurationChangeListener > PresentationFactoryInterfaceBase