2010-10-27 12:53:26 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2009-03-19 16:03:37 +00:00
|
|
|
|
2013-10-23 22:38:46 +02:00
|
|
|
#ifndef INCLUDED_SD_SOURCE_UI_INC_DOCUMENTRENDERER_HXX
|
|
|
|
#define INCLUDED_SD_SOURCE_UI_INC_DOCUMENTRENDERER_HXX
|
2009-03-19 16:03:37 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/view/XRenderable.hpp>
|
2015-08-30 21:24:35 +09:00
|
|
|
#include <cppuhelper/compbase.hxx>
|
2009-03-19 16:03:37 +00:00
|
|
|
#include <cppuhelper/basemutex.hxx>
|
2015-09-18 09:09:12 +01:00
|
|
|
#include <memory>
|
2009-03-19 16:03:37 +00:00
|
|
|
|
2018-06-10 13:48:58 +02:00
|
|
|
namespace sd { class ViewShellBase; }
|
|
|
|
|
2009-03-19 16:03:37 +00:00
|
|
|
namespace sd {
|
|
|
|
|
2016-12-21 15:05:10 +01:00
|
|
|
typedef ::cppu::WeakComponentImplHelper <
|
|
|
|
css::view::XRenderable
|
|
|
|
> DocumentRendererInterfaceBase;
|
2009-03-19 16:03:37 +00:00
|
|
|
|
|
|
|
class DocumentRenderer
|
|
|
|
: protected ::cppu::BaseMutex,
|
|
|
|
public DocumentRendererInterfaceBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DocumentRenderer (ViewShellBase& rBase);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~DocumentRenderer() override;
|
2009-03-19 16:03:37 +00:00
|
|
|
|
|
|
|
// XRenderable
|
|
|
|
virtual sal_Int32 SAL_CALL getRendererCount (
|
|
|
|
const css::uno::Any& aSelection,
|
2017-01-26 12:28:58 +01:00
|
|
|
const css::uno::Sequence<css::beans::PropertyValue >& xOptions) override;
|
2009-03-19 16:03:37 +00:00
|
|
|
|
|
|
|
virtual css::uno::Sequence<css::beans::PropertyValue> SAL_CALL getRenderer (
|
|
|
|
sal_Int32 nRenderer,
|
|
|
|
const css::uno::Any& rSelection,
|
2017-01-26 12:28:58 +01:00
|
|
|
const css::uno::Sequence<css::beans::PropertyValue>& rxOptions) override;
|
2009-03-19 16:03:37 +00:00
|
|
|
|
|
|
|
virtual void SAL_CALL render (
|
|
|
|
sal_Int32 nRenderer,
|
|
|
|
const css::uno::Any& rSelection,
|
2017-01-26 12:28:58 +01:00
|
|
|
const css::uno::Sequence<css::beans::PropertyValue>& rxOptions) override;
|
2009-03-19 16:03:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Implementation;
|
2015-09-26 12:31:35 +01:00
|
|
|
std::unique_ptr<Implementation> mpImpl;
|
2009-03-19 16:03:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end of namespace sd
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 12:53:26 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|