LibreOffice Module slideshow (master) 1
|
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... | |
ViewAppletShape & | operator= (const ViewAppletShape &)=delete |
Forbid copy assignment. More... | |
const ViewLayerSharedPtr & | getViewLayer () 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 |
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.
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.
rViewLayer | The associated View object. |
rxShape | The associated Shape |
rServiceName | The service name to use, when actually creating the viewer component |
pPropCopyTable | Table of plain ASCII property names, to copy from xShape to applet. |
nNumPropEntries | Number of property table entries (in pPropCopyTable) |
slideshow::internal::ViewAppletShape::~ViewAppletShape | ( | ) |
destroy the object
Definition at line 95 of file viewappletshape.cxx.
References TOOLS_WARN_EXCEPTION.
|
delete |
Forbid copy construction.
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.
const ViewLayerSharedPtr & slideshow::internal::ViewAppletShape::getViewLayer | ( | ) | const |
Query the associated view layer of this shape.
Definition at line 107 of file viewappletshape.cxx.
|
delete |
Forbid copy assignment.
bool slideshow::internal::ViewAppletShape::render | ( | const ::basegfx::B2DRectangle & | rBounds | ) | const |
Render the ViewShape.
This method renders the ViewAppletShape on the associated view.
rBounds | The current applet shape bounds |
Definition at line 210 of file viewappletshape.cxx.
References slideshow::internal::fillRect().
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.
rBounds | The current applet shape bounds |
Definition at line 228 of file viewappletshape.cxx.
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.
rBounds | The current applet shape bounds |
Definition at line 112 of file viewappletshape.cxx.
References ENSURE_OR_RETURN_VOID, mxComponentContext, and xFactory.
|
private |
Definition at line 144 of file viewappletshape.hxx.
|
private |
Definition at line 154 of file viewappletshape.hxx.
|
private |
the frame containing the applet
Definition at line 152 of file viewappletshape.hxx.
|
private |
the actual viewer component for this applet
Definition at line 148 of file viewappletshape.hxx.