20#ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_SHAPES_VIEWAPPLETSHAPE_HXX
21#define INCLUDED_SLIDESHOW_SOURCE_ENGINE_SHAPES_VIEWAPPLETSHAPE_HXX
24#include <com/sun/star/frame/XSynchronousFrameLoader.hpp>
32 class XSynchronousFrameLoader;
36 class XComponentContext;
76 const css::uno::Reference< css::drawing::XShape >& rxShape,
77 const OUString& rServiceName,
78 const char** pPropCopyTable,
79 std::size_t nNumPropEntries,
80 css::uno::Reference< css::uno::XComponentContext > xContext );
107 void startApplet( const ::basegfx::B2DRectangle& rBounds );
128 bool render( const ::basegfx::B2DRectangle& rBounds )
const;
140 bool resize( const ::basegfx::B2DRectangle& rBounds )
const;
This class is the viewable representation of a draw document's applet object, associated to a specifi...
ViewAppletShape & operator=(const ViewAppletShape &)=delete
Forbid copy assignment.
bool render(const ::basegfx::B2DRectangle &rBounds) const
Render the ViewShape.
void startApplet(const ::basegfx::B2DRectangle &rBounds)
Notify the ViewShape that an animation starts now.
~ViewAppletShape()
destroy the object
const ViewLayerSharedPtr & getViewLayer() const
Query the associated view layer of this shape.
css::uno::Reference< css::frame::XFrame2 > mxFrame
the frame containing the applet
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
css::uno::Reference< css::frame::XSynchronousFrameLoader > mxViewer
the actual viewer component for this applet
void endApplet()
Notify the ViewShape that it is no longer animated.
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.
bool resize(const ::basegfx::B2DRectangle &rBounds) const
Resize the ViewShape.
ViewLayerSharedPtr mpViewLayer
ViewAppletShape(const ViewAppletShape &)=delete
Forbid copy construction.
::std::shared_ptr< ViewAppletShape > ViewAppletShapeSharedPtr
std::shared_ptr< ViewLayer > ViewLayerSharedPtr