Rename ExternalMediaShape to IExternalMediaShapeBase
"I" because of interface. "Base" because it's an interface of a base class and because it's easy to mix it up with the inherited MediaShape. (MediaShape also an externally rendered thing so the name ExternalMediaShape doesn't make any difference between the two classes) Change-Id: I4a03dd090034092942eea39d35894ce6cfc9947b
This commit is contained in:
parent
728acd3390
commit
cae4370bce
@ -49,7 +49,7 @@ AnimationCommandNode::AnimationCommandNode( uno::Reference<animations::XAnimatio
|
||||
uno::Reference< drawing::XShape > xShape( mxCommandNode->getTarget(),
|
||||
uno::UNO_QUERY );
|
||||
ShapeSharedPtr pShape( getContext().mpSubsettableShapeManager->lookupShape( xShape ) );
|
||||
mpShape = ::boost::dynamic_pointer_cast< ExternalMediaShape >( pShape );
|
||||
mpShape = ::boost::dynamic_pointer_cast< IExternalMediaShapeBase >( pShape );
|
||||
}
|
||||
|
||||
void AnimationCommandNode::dispose()
|
||||
|
@ -20,7 +20,7 @@
|
||||
#define INCLUDED_SLIDESHOW_ANIMATIONCOMMANDNODE_HXX
|
||||
|
||||
#include "basecontainernode.hxx"
|
||||
#include "externalmediashape.hxx"
|
||||
#include "iexternalmediashapebase.hxx"
|
||||
#include "soundplayer.hxx"
|
||||
#include "com/sun/star/animations/XCommand.hpp"
|
||||
|
||||
@ -49,7 +49,7 @@ private:
|
||||
virtual bool hasPendingAnimation() const SAL_OVERRIDE;
|
||||
|
||||
private:
|
||||
ExternalMediaShapeSharedPtr mpShape;
|
||||
IExternalMediaShapeBaseSharedPtr mpShape;
|
||||
::com::sun::star::uno::Reference<
|
||||
::com::sun::star::animations::XCommand > mxCommandNode;
|
||||
};
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "externalmediashape.hxx"
|
||||
#include "iexternalmediashapebase.hxx"
|
||||
#include "unoview.hxx"
|
||||
#include "subsettableshapemanager.hxx"
|
||||
#include "slideshowexceptions.hxx"
|
||||
@ -44,7 +44,7 @@ namespace slideshow
|
||||
(including mutual overdraw). It therefore reports yes for
|
||||
the isBackgroundDetached() question.
|
||||
*/
|
||||
class ExternalShapeBase : public ExternalMediaShape
|
||||
class ExternalShapeBase : public IExternalMediaShapeBase
|
||||
{
|
||||
public:
|
||||
/** Create a shape for the given XShape for an external shape
|
||||
|
@ -29,12 +29,13 @@ namespace slideshow
|
||||
{
|
||||
namespace internal
|
||||
{
|
||||
/** Represents a shape containing media (video, sound).
|
||||
/** Represents a shape containing playable content rendered by
|
||||
external engine (e.g. media or applet).
|
||||
|
||||
This interface adds media handling methods to a shape. It
|
||||
allows starting/stopping and pausing playback.
|
||||
*/
|
||||
class ExternalMediaShape : public Shape
|
||||
*/
|
||||
class IExternalMediaShapeBase : public Shape
|
||||
{
|
||||
public:
|
||||
// Animation methods
|
||||
@ -51,7 +52,7 @@ namespace slideshow
|
||||
|
||||
This method leaves playback mode on all registered
|
||||
views. The media is then rewound to the start, and
|
||||
removed from screen (for videos)
|
||||
removed from screen (for videos)
|
||||
*/
|
||||
virtual void stop() = 0;
|
||||
|
||||
@ -75,7 +76,7 @@ namespace slideshow
|
||||
virtual void setMediaTime(double fTime) = 0;
|
||||
};
|
||||
|
||||
typedef ::boost::shared_ptr< ExternalMediaShape > ExternalMediaShapeSharedPtr;
|
||||
typedef ::boost::shared_ptr< IExternalMediaShapeBase > IExternalMediaShapeBaseSharedPtr;
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user