summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/textprimitive2d.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2006-11-07 14:49:11 +0000
committerArmin Weiss <aw@openoffice.org>2006-11-07 14:49:11 +0000
commit57aa8ecd2381662ca1a5623d9efdd5e3ef0b9656 (patch)
tree2d7a3b94cfcf6726cdc8fc746db5543c25b7031e /drawinglayer/source/primitive2d/textprimitive2d.cxx
parent05bdfac87a4b81d438714361aed2364ffaffe31c (diff)
#i39532# changed various aspevcts of XPrimitive2D implementations
Diffstat (limited to 'drawinglayer/source/primitive2d/textprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/textprimitive2d.cxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx
index 286cf88bf2e1..a955065a80e1 100644
--- a/drawinglayer/source/primitive2d/textprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textprimitive2d.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: aw $ $Date: 2006-10-19 10:35:04 $
+ * last change: $Author: aw $ $Date: 2006-11-07 15:49:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -260,11 +260,6 @@ namespace drawinglayer
return false;
}
- sal_uInt32 TextSimplePortionPrimitive2D::getPrimitiveID() const
- {
- return Create2DPrimitiveID('2','T','S','i');
- }
-
basegfx::B2DRange TextSimplePortionPrimitive2D::getB2DRange(const geometry::ViewInformation2D& /*rViewInformation*/) const
{
const xub_StrLen aStrLen(getText().Len());
@@ -292,6 +287,10 @@ namespace drawinglayer
return aRetval;
}
+
+ // provide unique ID
+ ImplPrimitrive2DIDBlock(TextSimplePortionPrimitive2D, '2','T','S','i')
+
} // end of namespace primitive2d
} // end of namespace drawinglayer
@@ -367,10 +366,9 @@ namespace drawinglayer
return false;
}
- sal_uInt32 TextComplexPortionPrimitive2D::getPrimitiveID() const
- {
- return Create2DPrimitiveID('2','T','C','o');
- }
+ // provide unique ID
+ ImplPrimitrive2DIDBlock(TextComplexPortionPrimitive2D, '2','T','C','o')
+
} // end of namespace primitive2d
} // end of namespace drawinglayer