sw/source/core/draw/dobjfac.cxx | 11 ++--------- sw/source/core/para/paratr.cxx | 30 ++++++++++++------------------ 2 files changed, 14 insertions(+), 27 deletions(-)
New commits: commit 26bb45921a2eac1da79ed7f53f5f39575b998f61 Author: Philipp Weissenbacher <p.weissenbac...@gmail.com> Date: Tue Mar 12 21:42:13 2013 +0100 Translate German comments Change-Id: I0b386fd0c7cb0382fa3a5187389369966365b1fb Reviewed-on: https://gerrit.libreoffice.org/2691 Reviewed-by: Fridrich Strba <fridr...@documentfoundation.org> Tested-by: Fridrich Strba <fridr...@documentfoundation.org> diff --git a/sw/source/core/draw/dobjfac.cxx b/sw/source/core/draw/dobjfac.cxx index 6ad9d25..891856b 100644 --- a/sw/source/core/draw/dobjfac.cxx +++ b/sw/source/core/draw/dobjfac.cxx @@ -23,23 +23,16 @@ SwObjectFactory aSwObjectFactory; -/************************************************************************* -|* -|* void SwObjectFactory::MakeObject() -|* -\************************************************************************/ - IMPL_LINK( SwObjectFactory, MakeObject, SdrObjFactory*, pObjFactory ) { if ( pObjFactory->nInventor == SWGInventor ) { - //Kein switch, derzeit gibt es nur einen. + // No switch, there's only one at the moment OSL_ENSURE( pObjFactory->nIdentifier == SwFlyDrawObjIdentifier, - "Falscher Inventor oder identifier." ); + "Wrong inventor or identifier" ); pObjFactory->pNewObj = new SwFlyDrawObj(); } return 0; } - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/core/para/paratr.cxx b/sw/source/core/para/paratr.cxx index 6810db2..1db5303 100644 --- a/sw/source/core/para/paratr.cxx +++ b/sw/source/core/para/paratr.cxx @@ -48,12 +48,6 @@ TYPEINIT1_AUTOFACTORY( SwRegisterItem, SfxBoolItem); TYPEINIT1_AUTOFACTORY( SwNumRuleItem, SfxStringItem); TYPEINIT1_AUTOFACTORY( SwParaConnectBorderItem, SfxBoolItem); -/************************************************************************* -|* Beschreibung Methoden von SwFmtDrop -*************************************************************************/ - - - SwFmtDrop::SwFmtDrop() : SfxPoolItem( RES_PARATR_DROP ), SwClient( 0 ), @@ -90,7 +84,7 @@ SwFmtDrop::~SwFmtDrop() void SwFmtDrop::SetCharFmt( SwCharFmt *pNew ) { - //Ummelden + // Rewire if ( GetRegisteredIn() ) GetRegisteredInNonConst()->Remove( this ); if(pNew) @@ -109,9 +103,8 @@ void SwFmtDrop::Modify( const SfxPoolItem*, const SfxPoolItem * ) else if( pDefinedIn->GetDepends() && !pDefinedIn->IsModifyLocked() ) { - // selbst den Abhaengigen vom Format bescheid sagen. Das - // Format selbst wuerde es nicht weitergeben, weil es ueber - // die Abpruefung nicht hinauskommt. + // Notify those who are dependend on the format on our own. + // The format itself wouldn't pass on the notify as it does not get past the check. pDefinedIn->ModifyBroadcast( this, this ); } } @@ -119,12 +112,12 @@ void SwFmtDrop::Modify( const SfxPoolItem*, const SfxPoolItem * ) bool SwFmtDrop::GetInfo( SfxPoolItem& ) const { - return true; // weiter + return true; // Continue } int SwFmtDrop::operator==( const SfxPoolItem& rAttr ) const { - OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" ); + OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "No mathing attributes" ); return ( nLines == ((SwFmtDrop&)rAttr).GetLines() && nChars == ((SwFmtDrop&)rAttr).GetChars() && nDistance == ((SwFmtDrop&)rAttr).GetDistance() && @@ -222,22 +215,25 @@ bool SwFmtDrop::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) return true; } -// class SwRegisterItem ------------------------------------------------- - +/** + * SwRegisterItem + */ SfxPoolItem* SwRegisterItem::Clone( SfxItemPool * ) const { return new SwRegisterItem( *this ); } -// class SwNumRuleItem ------------------------------------------------- +/** + * SwNumRuleItem + */ SfxPoolItem* SwNumRuleItem::Clone( SfxItemPool * ) const { return new SwNumRuleItem( *this ); } int SwNumRuleItem::operator==( const SfxPoolItem& rAttr ) const { - OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "keine gleichen Attribute" ); + OSL_ENSURE( SfxPoolItem::operator==( rAttr ), "No matching attributes" ); return GetValue() == ((SwNumRuleItem&)rAttr).GetValue(); } @@ -262,6 +258,4 @@ SfxPoolItem* SwParaConnectBorderItem::Clone( SfxItemPool * ) const return new SwParaConnectBorderItem( *this ); } - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits