LibreOffice Module slideshow (master) 1
Public Member Functions | Private Attributes | List of all members
slideshow::internal::ViewAppletShape Class Referencefinal

This class is the viewable representation of a draw document's applet object, associated to a specific View. More...

#include <viewappletshape.hxx>

Public Member Functions

 ViewAppletShape (ViewLayerSharedPtr xViewLayer, const css::uno::Reference< css::drawing::XShape > &rxShape, const OUString &rServiceName, const char **pPropCopyTable, std::size_t nNumPropEntries, css::uno::Reference< css::uno::XComponentContext > xContext)
 Create a ViewAppletShape for the given View. More...
 
 ~ViewAppletShape ()
 destroy the object More...
 
 ViewAppletShape (const ViewAppletShape &)=delete
 Forbid copy construction. More...
 
ViewAppletShapeoperator= (const ViewAppletShape &)=delete
 Forbid copy assignment. More...
 
const ViewLayerSharedPtrgetViewLayer () const
 Query the associated view layer of this shape. More...
 
void startApplet (const ::basegfx::B2DRectangle &rBounds)
 Notify the ViewShape that an animation starts now. More...
 
void endApplet ()
 Notify the ViewShape that it is no longer animated. More...
 
bool render (const ::basegfx::B2DRectangle &rBounds) const
 Render the ViewShape. More...
 
bool resize (const ::basegfx::B2DRectangle &rBounds) const
 Resize the ViewShape. More...
 

Private Attributes

ViewLayerSharedPtr mpViewLayer
 
css::uno::Reference< css::frame::XSynchronousFrameLoader > mxViewer
 the actual viewer component for this applet More...
 
css::uno::Reference< css::frame::XFrame2 > mxFrame
 the frame containing the applet More...
 
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
 

Detailed Description

This class is the viewable representation of a draw document's applet object, associated to a specific View.

The class is able to render the associated applet on View implementations.

Definition at line 53 of file viewappletshape.hxx.

Constructor & Destructor Documentation

◆ ViewAppletShape() [1/2]

slideshow::internal::ViewAppletShape::ViewAppletShape ( ViewLayerSharedPtr  xViewLayer,
const css::uno::Reference< css::drawing::XShape > &  rxShape,
const OUString &  rServiceName,
const char **  pPropCopyTable,
std::size_t  nNumPropEntries,
css::uno::Reference< css::uno::XComponentContext >  xContext 
)

Create a ViewAppletShape for the given View.

Parameters
rViewLayerThe associated View object.
rxShapeThe associated Shape
rServiceNameThe service name to use, when actually creating the viewer component
pPropCopyTableTable of plain ASCII property names, to copy from xShape to applet.
nNumPropEntriesNumber of property table entries (in pPropCopyTable)

◆ ~ViewAppletShape()

slideshow::internal::ViewAppletShape::~ViewAppletShape ( )

destroy the object

Definition at line 95 of file viewappletshape.cxx.

References TOOLS_WARN_EXCEPTION.

◆ ViewAppletShape() [2/2]

slideshow::internal::ViewAppletShape::ViewAppletShape ( const ViewAppletShape )
delete

Forbid copy construction.

Member Function Documentation

◆ endApplet()

void slideshow::internal::ViewAppletShape::endApplet ( )

Notify the ViewShape that it is no longer animated.

This methods ends animation mode on the associate target view

Definition at line 196 of file viewappletshape.cxx.

◆ getViewLayer()

const ViewLayerSharedPtr & slideshow::internal::ViewAppletShape::getViewLayer ( ) const

Query the associated view layer of this shape.

Definition at line 107 of file viewappletshape.cxx.

◆ operator=()

ViewAppletShape & slideshow::internal::ViewAppletShape::operator= ( const ViewAppletShape )
delete

Forbid copy assignment.

◆ render()

bool slideshow::internal::ViewAppletShape::render ( const ::basegfx::B2DRectangle rBounds) const

Render the ViewShape.

This method renders the ViewAppletShape on the associated view.

Parameters
rBoundsThe current applet shape bounds
Returns
whether the rendering finished successfully.

Definition at line 210 of file viewappletshape.cxx.

References slideshow::internal::fillRect().

◆ resize()

bool slideshow::internal::ViewAppletShape::resize ( const ::basegfx::B2DRectangle rBounds) const

Resize the ViewShape.

This method resizes the ViewAppletShape on the associated view. It does not render.

Parameters
rBoundsThe current applet shape bounds
Returns
whether the resize finished successfully.

Definition at line 228 of file viewappletshape.cxx.

◆ startApplet()

void slideshow::internal::ViewAppletShape::startApplet ( const ::basegfx::B2DRectangle rBounds)

Notify the ViewShape that an animation starts now.

This method enters animation mode on the associate target view. The shape can be animated in parallel on different views.

Parameters
rBoundsThe current applet shape bounds

Definition at line 112 of file viewappletshape.cxx.

References ENSURE_OR_RETURN_VOID, mxComponentContext, and xFactory.

Member Data Documentation

◆ mpViewLayer

ViewLayerSharedPtr slideshow::internal::ViewAppletShape::mpViewLayer
private

Definition at line 144 of file viewappletshape.hxx.

◆ mxComponentContext

css::uno::Reference< css::uno::XComponentContext> slideshow::internal::ViewAppletShape::mxComponentContext
private

Definition at line 154 of file viewappletshape.hxx.

◆ mxFrame

css::uno::Reference< css::frame::XFrame2> slideshow::internal::ViewAppletShape::mxFrame
private

the frame containing the applet

Definition at line 152 of file viewappletshape.hxx.

◆ mxViewer

css::uno::Reference< css::frame::XSynchronousFrameLoader> slideshow::internal::ViewAppletShape::mxViewer
private

the actual viewer component for this applet

Definition at line 148 of file viewappletshape.hxx.


The documentation for this class was generated from the following files: