summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/shapes/backgroundshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/shapes/backgroundshape.cxx')
-rw-r--r--slideshow/source/engine/shapes/backgroundshape.cxx60
1 files changed, 30 insertions, 30 deletions
diff --git a/slideshow/source/engine/shapes/backgroundshape.cxx b/slideshow/source/engine/shapes/backgroundshape.cxx
index 7d13d9247455..4f46d9172fb2 100644
--- a/slideshow/source/engine/shapes/backgroundshape.cxx
+++ b/slideshow/source/engine/shapes/backgroundshape.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,20 +84,20 @@ namespace slideshow
peculiarities of the draw API regarding background
content.
*/
- BackgroundShape( const ::com::sun::star::uno::Reference<
+ BackgroundShape( const ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XDrawPage >& xDrawPage,
- const ::com::sun::star::uno::Reference<
+ const ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XDrawPage >& xMasterPage,
const SlideShowContext& rContext ); // throw ShapeLoadFailedException;
- virtual ::com::sun::star::uno::Reference<
+ virtual ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XShape > getXShape() const;
// View layer methods
//------------------------------------------------------------------
- virtual void addViewLayer( const ViewLayerSharedPtr& rNewLayer,
- bool bRedrawLayer );
+ virtual void addViewLayer( const ViewLayerSharedPtr& rNewLayer,
+ bool bRedrawLayer );
virtual bool removeViewLayer( const ViewLayerSharedPtr& rNewLayer );
virtual bool clearAllViewLayers();
@@ -110,7 +110,7 @@ namespace slideshow
virtual ::basegfx::B2DRectangle getUpdateArea() const;
virtual bool isVisible() const;
virtual double getPriority() const;
- virtual bool isBackgroundDetached() const;
+ virtual bool isBackgroundDetached() const;
// render methods
@@ -119,17 +119,17 @@ namespace slideshow
virtual bool update() const;
virtual bool render() const;
virtual bool isContentChanged() const;
-
+
private:
/// The metafile actually representing the Shape
- GDIMetaFileSharedPtr mpMtf;
+ GDIMetaFileSharedPtr mpMtf;
// The attributes of this Shape
- ::basegfx::B2DRectangle maBounds; // always needed for rendering
+ ::basegfx::B2DRectangle maBounds; // always needed for rendering
/// the list of active view shapes (one for each registered view layer)
typedef ::std::vector< ViewBackgroundShapeSharedPtr > ViewBackgroundShapeVector;
- ViewBackgroundShapeVector maViewShapes;
+ ViewBackgroundShapeVector maViewShapes;
};
@@ -143,7 +143,7 @@ namespace slideshow
maBounds(),
maViewShapes()
{
- uno::Reference< beans::XPropertySet > xPropSet( xDrawPage,
+ uno::Reference< beans::XPropertySet > xPropSet( xDrawPage,
uno::UNO_QUERY_THROW );
GDIMetaFileSharedPtr pMtf( new GDIMetaFile() );
@@ -178,15 +178,15 @@ namespace slideshow
return uno::Reference< drawing::XShape >();
}
- void BackgroundShape::addViewLayer( const ViewLayerSharedPtr& rNewLayer,
- bool bRedrawLayer )
+ void BackgroundShape::addViewLayer( const ViewLayerSharedPtr& rNewLayer,
+ bool bRedrawLayer )
{
ViewBackgroundShapeVector::iterator aEnd( maViewShapes.end() );
// already added?
- if( ::std::find_if( maViewShapes.begin(),
- aEnd,
- ::boost::bind<bool>(
+ if( ::std::find_if( maViewShapes.begin(),
+ aEnd,
+ ::boost::bind<bool>(
::std::equal_to< ViewLayerSharedPtr >(),
::boost::bind( &ViewBackgroundShape::getViewLayer,
_1 ),
@@ -196,8 +196,8 @@ namespace slideshow
return;
}
- maViewShapes.push_back(
- ViewBackgroundShapeSharedPtr(
+ maViewShapes.push_back(
+ ViewBackgroundShapeSharedPtr(
new ViewBackgroundShape( rNewLayer,
maBounds ) ) );
@@ -210,9 +210,9 @@ namespace slideshow
{
const ViewBackgroundShapeVector::iterator aEnd( maViewShapes.end() );
- OSL_ENSURE( ::std::count_if(maViewShapes.begin(),
- aEnd,
- ::boost::bind<bool>(
+ OSL_ENSURE( ::std::count_if(maViewShapes.begin(),
+ aEnd,
+ ::boost::bind<bool>(
::std::equal_to< ViewLayerSharedPtr >(),
::boost::bind( &ViewBackgroundShape::getViewLayer,
_1 ),
@@ -221,9 +221,9 @@ namespace slideshow
ViewBackgroundShapeVector::iterator aIter;
- if( (aIter=::std::remove_if( maViewShapes.begin(),
- aEnd,
- ::boost::bind<bool>(
+ if( (aIter=::std::remove_if( maViewShapes.begin(),
+ aEnd,
+ ::boost::bind<bool>(
::std::equal_to< ViewLayerSharedPtr >(),
::boost::bind( &ViewBackgroundShape::getViewLayer,
_1 ),
@@ -249,7 +249,7 @@ namespace slideshow
{
return maBounds;
}
-
+
::basegfx::B2DRectangle BackgroundShape::getDomBounds() const
{
return maBounds;
@@ -296,13 +296,13 @@ namespace slideshow
// redraw all view shapes, by calling their render() method
if( ::std::count_if( maViewShapes.begin(),
- maViewShapes.end(),
+ maViewShapes.end(),
::boost::bind( &ViewBackgroundShape::render,
_1,
::boost::cref( mpMtf ) ) )
!= static_cast<ViewBackgroundShapeVector::difference_type>(maViewShapes.size()) )
{
- // at least one of the ViewBackgroundShape::render() calls did return
+ // at least one of the ViewBackgroundShape::render() calls did return
// false - update failed on at least one ViewLayer
return false;
}
@@ -322,13 +322,13 @@ namespace slideshow
//////////////////////////////////////////////////////////
- ShapeSharedPtr createBackgroundShape(
+ ShapeSharedPtr createBackgroundShape(
const uno::Reference< drawing::XDrawPage >& xDrawPage,
const uno::Reference< drawing::XDrawPage >& xMasterPage,
const SlideShowContext& rContext )
{
return ShapeSharedPtr(
- new BackgroundShape(
+ new BackgroundShape(
xDrawPage,
xMasterPage,
rContext ));