LibreOffice Module sd (master) 1
DocumentRenderer.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/view/XRenderable.hpp>
24#include <memory>
25
26namespace sd { class ViewShellBase; }
27
28namespace sd {
29
31 css::view::XRenderable
33
36{
37public:
39 virtual ~DocumentRenderer() override;
40
41 // XRenderable
42 virtual sal_Int32 SAL_CALL getRendererCount (
43 const css::uno::Any& aSelection,
44 const css::uno::Sequence<css::beans::PropertyValue >& xOptions) override;
45
46 virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getRenderer (
47 sal_Int32 nRenderer,
48 const css::uno::Any& rSelection,
49 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions) override;
50
51 virtual void SAL_CALL render (
52 sal_Int32 nRenderer,
53 const css::uno::Any& rSelection,
54 const css::uno::Sequence<css::beans::PropertyValue>& rxOptions) override;
55
56private:
57 class Implementation;
58 std::unique_ptr<Implementation> mpImpl;
59};
60
61} // end of namespace sd
62
63/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~DocumentRenderer() override
virtual sal_Int32 SAL_CALL getRendererCount(const css::uno::Any &aSelection, const css::uno::Sequence< css::beans::PropertyValue > &xOptions) override
virtual void SAL_CALL render(sal_Int32 nRenderer, const css::uno::Any &rSelection, const css::uno::Sequence< css::beans::PropertyValue > &rxOptions) override
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getRenderer(sal_Int32 nRenderer, const css::uno::Any &rSelection, const css::uno::Sequence< css::beans::PropertyValue > &rxOptions) override
DocumentRenderer(ViewShellBase &rBase)
std::unique_ptr< Implementation > mpImpl
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
comphelper::WeakComponentImplHelper< css::view::XRenderable > DocumentRendererInterfaceBase