20#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_SHAPE_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_INC_SHAPE_HXX
23#include <com/sun/star/uno/Reference.hxx>
24#include <com/sun/star/drawing/XShape.hpp>
66 virtual css::uno::Reference< css::drawing::XShape >
getXShape()
const = 0;
84 bool bRedrawLayer ) = 0;
257 return nPrioL == nPrioR ? pLHS < pRHS : nPrioL < nPrioR;
262 return compare(rLHS.get(),rRHS.get());
277 typedef ::std::set< ShapeSharedPtr, Shape::lessThanShape >
ShapeSet;
Represents a slide's shape object.
virtual bool isVisible() const =0
Query whether the shape is visible at all.
virtual ::basegfx::B2DRectangle getBounds() const =0
Get the current shape position and size.
virtual void addViewLayer(const ViewLayerSharedPtr &rNewLayer, bool bRedrawLayer)=0
Add a new view layer.
bool mbIsForeground
Flag to check whether the shape belongs to the foreground.
virtual void setIsForeground(const bool bIsForeground)
Set the flag that holds whether the shape is in the foreground or not.
virtual ::basegfx::B2DRectangle getDomBounds() const =0
Get the DOM position and size of the shape.
virtual bool isContentChanged() const =0
Query whether shape content changed.
virtual bool isForeground() const
Check whether the shape belongs to the foreground.
virtual ::basegfx::B2DRectangle getUpdateArea() const =0
Get the current shape update area.
Shape(const Shape &)=delete
virtual css::uno::Reference< css::drawing::XShape > getXShape() const =0
Get the associated XShape of this shape.
virtual bool removeViewLayer(const ViewLayerSharedPtr &rNewLayer)=0
Withdraw the shape from a view layer.
virtual bool update() const =0
Update the shape.
virtual void clearAllViewLayers()=0
Withdraw all view layers at once.
virtual bool isBackgroundDetached() const =0
Query whether the Shape is currently detached from the background.
virtual bool render() const =0
Render the shape.
Shape & operator=(const Shape &)=delete
virtual double getPriority() const =0
Get the shape priority.
::std::set< ShapeSharedPtr, Shape::lessThanShape > ShapeSet
A set which contains all shapes in an ordered fashion.
std::shared_ptr< ViewLayer > ViewLayerSharedPtr
::std::shared_ptr< Shape > ShapeSharedPtr
Functor struct, for shape ordering.
static bool compare(const Shape *pLHS, const Shape *pRHS)
bool operator()(const ShapeSharedPtr &rLHS, const ShapeSharedPtr &rRHS) const