diff options
author | jp <jp@openoffice.org> | 2001-01-23 19:21:55 +0000 |
---|---|---|
committer | jp <jp@openoffice.org> | 2001-01-23 19:21:55 +0000 |
commit | c64f367962540c209c8533d175306fc77f9a9942 (patch) | |
tree | 20e1996bb21c2fdeb6d5d639d305dedb7bae120d /sw | |
parent | 7659d2da3ee1856c9cdefa68d9fa02637dcaf5c3 (diff) |
new: assign operator for the ruby attribut
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/fmtruby.hxx | 6 | ||||
-rw-r--r-- | sw/source/core/txtnode/fmtatr2.cxx | 15 |
2 files changed, 17 insertions, 4 deletions
diff --git a/sw/inc/fmtruby.hxx b/sw/inc/fmtruby.hxx index fde2c9f392ff..784b476a68e1 100644 --- a/sw/inc/fmtruby.hxx +++ b/sw/inc/fmtruby.hxx @@ -2,9 +2,9 @@ * * $RCSfile: fmtruby.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: jp $ $Date: 2000-10-23 16:11:14 $ + * last change: $Author: jp $ $Date: 2001-01-23 20:20:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -86,6 +86,8 @@ public: SwFmtRuby( const SwFmtRuby& rAttr ); virtual ~SwFmtRuby(); + SwFmtRuby& operator=( const SwFmtRuby& rAttr ); + // "pure virtual Methoden" vom SfxPoolItem virtual int operator==( const SfxPoolItem& ) const; virtual SfxPoolItem* Clone( SfxItemPool* pPool = 0 ) const; diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx index ce278bd1dad7..2fbaedfb65d1 100644 --- a/sw/source/core/txtnode/fmtatr2.cxx +++ b/sw/source/core/txtnode/fmtatr2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fmtatr2.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: mib $ $Date: 2001-01-19 08:40:48 $ + * last change: $Author: jp $ $Date: 2001-01-23 20:21:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -476,6 +476,17 @@ SwFmtRuby::~SwFmtRuby() { } +SwFmtRuby& SwFmtRuby::operator=( const SwFmtRuby& rAttr ) +{ + sRubyTxt = rAttr.sRubyTxt; + sCharFmtName = rAttr.sCharFmtName; + nCharFmtId = rAttr.nCharFmtId; + nPosition = rAttr.nPosition; + nAdjustment = rAttr.nAdjustment; + pTxtAttr = 0; + return *this; +} + int SwFmtRuby::operator==( const SfxPoolItem& rAttr ) const { ASSERT( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" ); |