fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / sd / source / ui / inc / DocumentRenderer.hxx
blobf45020c7b5a0de2f848e1d10561fe51ba04fda6e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 SD_DOCUMENT_RENDERER_HXX
21 #define SD_DOCUMENT_RENDERER_HXX
23 #include "ViewShellBase.hxx"
25 #include <com/sun/star/view/XRenderable.hpp>
26 #include <cppuhelper/compbase1.hxx>
27 #include <cppuhelper/basemutex.hxx>
28 #include <boost/scoped_ptr.hpp>
30 namespace sd {
32 namespace {
33 typedef ::cppu::WeakComponentImplHelper1 <
34 ::com::sun::star::view::XRenderable
35 > DocumentRendererInterfaceBase;
39 class DocumentRenderer
40 : protected ::cppu::BaseMutex,
41 public DocumentRendererInterfaceBase
43 public:
44 DocumentRenderer (ViewShellBase& rBase);
45 virtual ~DocumentRenderer (void);
47 // XRenderable
48 virtual sal_Int32 SAL_CALL getRendererCount (
49 const css::uno::Any& aSelection,
50 const css::uno::Sequence<css::beans::PropertyValue >& xOptions)
51 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
53 virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getRenderer (
54 sal_Int32 nRenderer,
55 const css::uno::Any& rSelection,
56 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
57 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
59 virtual void SAL_CALL render (
60 sal_Int32 nRenderer,
61 const css::uno::Any& rSelection,
62 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
63 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException);
65 private:
66 class Implementation;
67 ::boost::scoped_ptr<Implementation> mpImpl;
70 } // end of namespace sd
72 #endif
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */