summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2013-03-12 21:42:13 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-12 21:23:05 +0000
commit26bb45921a2eac1da79ed7f53f5f39575b998f61 (patch)
treeee293b70ed01b35f2fd8671d85496521e268dde9 /sw
parentcoverity#704143: Resource leak in object (diff)
downloadcore-26bb45921a2eac1da79ed7f53f5f39575b998f61.tar.gz
core-26bb45921a2eac1da79ed7f53f5f39575b998f61.zip
Translate German comments
Change-Id: I0b386fd0c7cb0382fa3a5187389369966365b1fb Reviewed-on: https://gerrit.libreoffice.org/2691 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/draw/dobjfac.cxx11
-rw-r--r--sw/source/core/para/paratr.cxx30
2 files changed, 14 insertions, 27 deletions
diff --git a/sw/source/core/draw/dobjfac.cxx b/sw/source/core/draw/dobjfac.cxx
index 6ad9d25b85bd..891856b8417c 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 6810db20b4e4..1db5303764c6 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: */