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 .
20 #ifndef INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_PRESENTATIONFACTORY_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_FRAMEWORK_PRESENTATIONFACTORY_HXX
23 #include <MutexOwner.hxx>
25 #include <com/sun/star/drawing/framework/XResourceFactory.hpp>
26 #include <com/sun/star/drawing/framework/XConfigurationChangeListener.hpp>
27 #include <cppuhelper/compbase.hxx>
29 namespace com
{ namespace sun
{ namespace star
{ namespace frame
{ class XController
; } } } }
31 namespace sd
{ namespace framework
{
33 typedef ::cppu::WeakComponentImplHelper
<
34 css::drawing::framework::XResourceFactory
,
35 css::drawing::framework::XConfigurationChangeListener
36 > PresentationFactoryInterfaceBase
;
38 /** This factory creates a marker view whose existence in a configuration
39 indicates that a slideshow is running (in another but associated
42 class PresentationFactory
43 : private sd::MutexOwner
,
44 public PresentationFactoryInterfaceBase
48 const css::uno::Reference
<css::frame::XController
>& rxController
);
49 virtual ~PresentationFactory() override
;
51 virtual void SAL_CALL
disposing() override
;
55 virtual css::uno::Reference
<css::drawing::framework::XResource
>
56 SAL_CALL
createResource (
57 const css::uno::Reference
<
58 css::drawing::framework::XResourceId
>& rxViewId
) override
;
60 virtual void SAL_CALL
releaseResource (
61 const css::uno::Reference
<css::drawing::framework::XResource
>& xView
) override
;
63 // XConfigurationChangeListener
65 virtual void SAL_CALL
notifyConfigurationChange (
66 const css::drawing::framework::ConfigurationChangeEvent
& rEvent
) override
;
68 // lang::XEventListener
70 virtual void SAL_CALL
disposing (
71 const css::lang::EventObject
& rEventObject
) override
;
74 css::uno::Reference
<css::frame::XController
> mxController
;
76 /// @throws css::lang::DisposedException
77 void ThrowIfDisposed() const;
80 } } // end of namespace sd::framework
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */