1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
22 #include <com/sun/star/drawing/framework/XResourceFactory.hpp>
23 #include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
24 #include <comphelper/compbase.hxx>
25 #include <rtl/ref.hxx>
27 namespace com::sun::star::frame
{ class XController
; }
28 namespace sd
{ class DrawController
; }
30 namespace sd::framework
{
32 typedef comphelper::WeakComponentImplHelper
<
33 css::drawing::framework::XResourceFactory
,
34 css::drawing::framework::XConfigurationChangeListener
35 > PresentationFactoryInterfaceBase
;
37 /** This factory creates a marker view whose existence in a configuration
38 indicates that a slideshow is running (in another but associated
41 class PresentationFactory final
42 : public PresentationFactoryInterfaceBase
46 const rtl::Reference
<::sd::DrawController
>& rxController
);
47 virtual ~PresentationFactory() override
;
49 static void install(const rtl::Reference
<::sd::DrawController
>& rxController
);
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
;
58 virtual void SAL_CALL
releaseResource (
59 const css::uno::Reference
<css::drawing::framework::XResource
>& xView
) override
;
61 // XConfigurationChangeListener
63 virtual void SAL_CALL
notifyConfigurationChange (
64 const css::drawing::framework::ConfigurationChangeEvent
& rEvent
) override
;
66 // lang::XEventListener
68 using WeakComponentImplHelperBase::disposing
;
69 virtual void SAL_CALL
disposing (
70 const css::lang::EventObject
& rEventObject
) override
;
73 rtl::Reference
<::sd::DrawController
> mxController
;
75 /// @throws css::lang::DisposedException
76 void ThrowIfDisposed() const;
79 } // end of namespace sd::framework
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */