2010-10-14 08:27:31 +02: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 .
|
|
|
|
*/
|
2004-03-18 09:41:15 +00:00
|
|
|
|
2020-08-06 14:38:33 +00:00
|
|
|
#pragma once
|
2004-03-18 09:41:15 +00:00
|
|
|
|
|
|
|
#include <cppcanvas/canvas.hxx>
|
|
|
|
#include <cppcanvas/customsprite.hxx>
|
2017-10-23 22:43:32 +02:00
|
|
|
#include "implsprite.hxx"
|
|
|
|
#include "implspritecanvas.hxx"
|
2004-03-18 09:41:15 +00:00
|
|
|
|
2020-07-16 15:34:53 +02:00
|
|
|
namespace cppcanvas::internal
|
2004-03-18 09:41:15 +00:00
|
|
|
{
|
|
|
|
// share Sprite implementation of ImplSprite
|
|
|
|
class ImplCustomSprite : public virtual CustomSprite, protected virtual ImplSprite
|
|
|
|
{
|
|
|
|
public:
|
2015-07-28 09:46:23 +02:00
|
|
|
ImplCustomSprite( const css::uno::Reference<
|
|
|
|
css::rendering::XSpriteCanvas >& rParentCanvas,
|
|
|
|
const css::uno::Reference<
|
|
|
|
css::rendering::XCustomSprite >& rSprite,
|
2015-07-28 13:47:37 +02:00
|
|
|
const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter );
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~ImplCustomSprite() override;
|
2004-03-18 09:41:15 +00:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual CanvasSharedPtr getContentCanvas() const override;
|
2004-03-18 09:41:15 +00:00
|
|
|
|
|
|
|
private:
|
2015-10-12 15:25:41 +02:00
|
|
|
ImplCustomSprite(const ImplCustomSprite&) = delete;
|
|
|
|
ImplCustomSprite& operator=( const ImplCustomSprite& ) = delete;
|
2004-03-18 09:41:15 +00:00
|
|
|
|
2015-07-28 13:47:37 +02:00
|
|
|
mutable CanvasSharedPtr mpLastCanvas;
|
|
|
|
const css::uno::Reference< css::rendering::XCustomSprite > mxCustomSprite;
|
2004-03-18 09:41:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|