2024-08-08 15:44:47 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* 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/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sddllapi.h>
|
|
|
|
#include <tools/gen.hxx>
|
|
|
|
#include <rtl/string.hxx>
|
2024-11-15 13:20:06 +01:00
|
|
|
#include <deque>
|
2024-08-08 15:44:47 +02:00
|
|
|
|
|
|
|
class SdrPage;
|
2024-11-15 13:20:06 +01:00
|
|
|
class SdrModel;
|
|
|
|
|
2024-08-08 15:44:47 +02:00
|
|
|
class Size;
|
|
|
|
|
|
|
|
namespace sd
|
|
|
|
{
|
2024-11-15 13:20:06 +01:00
|
|
|
enum class SlideRenderStage
|
|
|
|
{
|
|
|
|
Master,
|
|
|
|
Slide
|
|
|
|
};
|
|
|
|
|
2024-08-08 15:44:47 +02:00
|
|
|
class SD_DLLPUBLIC SlideshowLayerRenderer
|
|
|
|
{
|
2024-11-15 13:20:06 +01:00
|
|
|
SdrPage& mrPage;
|
|
|
|
SdrModel& mrModel;
|
|
|
|
|
2024-08-08 15:44:47 +02:00
|
|
|
Size maSlideSize;
|
2024-11-15 13:20:06 +01:00
|
|
|
|
|
|
|
std::deque<SlideRenderStage> maRenderStages;
|
2024-08-08 15:44:47 +02:00
|
|
|
|
|
|
|
public:
|
2024-11-15 13:20:06 +01:00
|
|
|
SlideshowLayerRenderer(SdrPage& rPage);
|
2024-08-08 15:44:47 +02:00
|
|
|
Size calculateAndSetSizePixel(Size const& rDesiredSizePixel);
|
|
|
|
bool render(unsigned char* pBuffer, OString& rJsonMsg);
|
2024-11-15 13:20:06 +01:00
|
|
|
bool renderMaster(unsigned char* pBuffer, OString& rJsonMsg);
|
|
|
|
bool renderSlide(unsigned char* pBuffer, OString& rJsonMsg);
|
2024-08-08 15:44:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // end of namespace sd
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|