summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-12-13 15:01:42 +0000
committerKurt Zenker <kz@openoffice.org>2006-12-13 15:01:42 +0000
commitbbf22c936dbabfbfac5b554e4481c97e2a8b685a (patch)
tree3e877df8d25cdc45d40c2426844c7e3cfd06fca3
parent0721de2a8eb82c3d00187bce529a059d825c5c5d (diff)
INTEGRATION: CWS presfixes09 (1.3.18); FILE MERGED
2006/04/12 20:40:09 thb 1.3.18.3: #i37778# Replaced all shared_ptr.get() != NULL places with the more elegant automatic-conversion-to-bool version (at least where the compiler tolerated that) 2006/03/24 18:23:36 thb 1.3.18.2: #i37778# Moved whole slideshow engine from namespace presentation (which conflicts with one of the UNO subnamespaces) to slideshow 2006/03/23 17:22:45 thb 1.3.18.1: #i49357# Changed manual noncopyable boiler plate to boost::noncopyable
-rw-r--r--slideshow/source/inc/shapeattributelayerholder.hxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/slideshow/source/inc/shapeattributelayerholder.hxx b/slideshow/source/inc/shapeattributelayerholder.hxx
index 057c0b309..f036b437a 100644
--- a/slideshow/source/inc/shapeattributelayerholder.hxx
+++ b/slideshow/source/inc/shapeattributelayerholder.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: shapeattributelayerholder.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 21:18:09 $
+ * last change: $Author: kz $ $Date: 2006-12-13 16:01:42 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -39,8 +39,9 @@
#include <attributableshape.hxx>
#include <shapeattributelayer.hxx>
+#include <boost/utility.hpp>
-namespace presentation
+namespace slideshow
{
namespace internal
{
@@ -54,7 +55,7 @@ namespace presentation
process that is required for shape and attribute layer
interaction).
*/
- class ShapeAttributeLayerHolder
+ class ShapeAttributeLayerHolder : private boost::noncopyable
{
public:
/** Create a ShapeAttributeLayerHolder instance.
@@ -77,7 +78,7 @@ namespace presentation
void reset()
{
- if( mpShape.get() && mpAttributeLayer.get() )
+ if( mpShape && mpAttributeLayer )
mpShape->revokeAttributeLayer( mpAttributeLayer );
}
@@ -95,10 +96,10 @@ namespace presentation
mpShape = rShape;
- if( mpShape.get() )
+ if( mpShape )
mpAttributeLayer = mpShape->createAttributeLayer();
- return mpAttributeLayer.get() != NULL;
+ return mpAttributeLayer;
}
ShapeAttributeLayerSharedPtr get() const
@@ -107,10 +108,6 @@ namespace presentation
}
private:
- // default: disabled copy/assignment
- ShapeAttributeLayerHolder(const ShapeAttributeLayerHolder&);
- ShapeAttributeLayerHolder& operator=( const ShapeAttributeLayerHolder& );
-
AttributableShapeSharedPtr mpShape;
ShapeAttributeLayerSharedPtr mpAttributeLayer;
};