Kaydet (Commit) 26bb4592 authored tarafından Philipp Weissenbacher's avatar Philipp Weissenbacher Kaydeden (comit) Fridrich Strba

Translate German comments

Change-Id: I0b386fd0c7cb0382fa3a5187389369966365b1fb
Reviewed-on: https://gerrit.libreoffice.org/2691Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 634baa87
......@@ -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: */
......@@ -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: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment