bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / inc / DocumentRenderer.hxx
blob77a5d1d8f525f5fa0cffb04e583ec625e8452d88
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 INCLUDED_SD_SOURCE_UI_INC_DOCUMENTRENDERER_HXX
21 #define INCLUDED_SD_SOURCE_UI_INC_DOCUMENTRENDERER_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;
38 class DocumentRenderer
39 : protected ::cppu::BaseMutex,
40 public DocumentRendererInterfaceBase
42 public:
43 DocumentRenderer (ViewShellBase& rBase);
44 virtual ~DocumentRenderer();
46 // XRenderable
47 virtual sal_Int32 SAL_CALL getRendererCount (
48 const css::uno::Any& aSelection,
49 const css::uno::Sequence<css::beans::PropertyValue >& xOptions)
50 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
52 virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getRenderer (
53 sal_Int32 nRenderer,
54 const css::uno::Any& rSelection,
55 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
56 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 virtual void SAL_CALL render (
59 sal_Int32 nRenderer,
60 const css::uno::Any& rSelection,
61 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions)
62 throw (css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
64 private:
65 class Implementation;
66 ::boost::scoped_ptr<Implementation> mpImpl;
69 } // end of namespace sd
71 #endif
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */