LibreOffice Module slideshow (master) 1
|
Represents a slide's shape object. More...
#include <shape.hxx>
Classes | |
struct | lessThanShape |
Functor struct, for shape ordering. More... | |
Public Member Functions | |
Shape () | |
virtual | ~Shape () |
Shape (const Shape &)=delete | |
Shape & | operator= (const Shape &)=delete |
virtual css::uno::Reference< css::drawing::XShape > | getXShape () const =0 |
Get the associated XShape of this shape. More... | |
virtual void | addViewLayer (const ViewLayerSharedPtr &rNewLayer, bool bRedrawLayer)=0 |
Add a new view layer. More... | |
virtual bool | removeViewLayer (const ViewLayerSharedPtr &rNewLayer)=0 |
Withdraw the shape from a view layer. More... | |
virtual void | clearAllViewLayers ()=0 |
Withdraw all view layers at once. More... | |
virtual bool | update () const =0 |
Update the shape. More... | |
virtual bool | render () const =0 |
Render the shape. More... | |
virtual bool | isContentChanged () const =0 |
Query whether shape content changed. More... | |
virtual ::basegfx::B2DRectangle | getBounds () const =0 |
Get the current shape position and size. More... | |
virtual ::basegfx::B2DRectangle | getDomBounds () const =0 |
Get the DOM position and size of the shape. More... | |
virtual ::basegfx::B2DRectangle | getUpdateArea () const =0 |
Get the current shape update area. More... | |
virtual bool | isVisible () const =0 |
Query whether the shape is visible at all. More... | |
virtual double | getPriority () const =0 |
Get the shape priority. More... | |
virtual bool | isBackgroundDetached () const =0 |
Query whether the Shape is currently detached from the background. More... | |
virtual bool | isForeground () const |
Check whether the shape belongs to the foreground. More... | |
virtual void | setIsForeground (const bool bIsForeground) |
Set the flag that holds whether the shape is in the foreground or not. More... | |
Private Attributes | |
bool | mbIsForeground |
Flag to check whether the shape belongs to the foreground. More... | |
Represents a slide's shape object.
This interface represents the view-independent aspects of a slide's shape, providing bound rect, underlying XShape and basic paint methods.
|
inlinevirtual |
|
delete |
|
pure virtual |
Add a new view layer.
This method adds a new view layer, this shape shall show itself on.
rNewLayer | New layer to show on |
bRedrawLayer | Redraw shape on given layer |
Implemented in slideshow::internal::DrawShape.
|
pure virtual |
Withdraw all view layers at once.
This method will be faster than repeated removeViewLayer() calls.
Implemented in slideshow::internal::DrawShape.
|
pure virtual |
Get the current shape position and size.
This method yields the currently effective shape bounds (which might change over time, for animated shapes). Please note that possibly shape rotations from its original document state must not be taken into account here: if you need the screen bounding box, use getUpdateArea() instead. Note further that shape rotations, which are already contained in the shape as displayed in the original document are included herein (we currently take the shape as-is from the document, assuming a rotation angle of 0).
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
pure virtual |
Get the DOM position and size of the shape.
This method yields the underlying DOM shape bounds, i.e. the original shape bounds from the document model. This value is always unaffected by any animation activity. Note that shape rotations, which are already contained in the shape as displayed in the original document are already included herein (we currently take the shape as-is from the document, assuming a rotation angle of 0).
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
pure virtual |
Get the shape priority.
The shape priority defines the relative order of the shapes on the slide.
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
Referenced by slideshow::internal::Shape::lessThanShape::compare().
|
pure virtual |
Get the current shape update area.
This method yields the currently effective update area for the shape, i.e. the area that needs to be updated, should the shape be painted. Normally, this will be the (possibly rotated and sheared) area returned by getBounds().
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
pure virtual |
Get the associated XShape of this shape.
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
pure virtual |
Query whether the Shape is currently detached from the background.
This method checks whether the Shape is currently detached from the slide background, i.e. whether shape updates affect the underlying slide background or not. A shape that returns true here must not alter slide content in any way when called render() or update() (this is normally achieved by making this shape a sprite).
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
pure virtual |
Query whether shape content changed.
This method returns true, if shape content changed since the last rendering (i.e. the shape needs an update to reflect that changed content on the views).
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
inlinevirtual |
Check whether the shape belongs to the foreground.
For instance, if the shape is in the master slide it does not belong to the foreground.
Definition at line 212 of file shape.hxx.
References mbIsForeground.
|
pure virtual |
Query whether the shape is visible at all.
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
pure virtual |
Withdraw the shape from a view layer.
This method removes the shape from the given view layer.
Implemented in slideshow::internal::DrawShape.
|
pure virtual |
Render the shape.
This method renders the shape on all registered view layers, regardless of whether shape content has changed or not.
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
inlinevirtual |
Set the flag that holds whether the shape is in the foreground or not.
bIsForeground | Shape is on the foreground |
Definition at line 221 of file shape.hxx.
References mbIsForeground.
|
pure virtual |
Update the shape.
This method updates the Shape on all registered view layers, but only if shape content has actually changed.
Implemented in slideshow::internal::DrawShape, and slideshow::internal::ExternalShapeBase.
|
private |
Flag to check whether the shape belongs to the foreground.
For instance, it is false if the shape belongs to the master slide.
Definition at line 272 of file shape.hxx.
Referenced by isForeground(), and setIsForeground().