Kaydet (Commit) 8a8fa926 authored tarafından Philipp Weissenbacher's avatar Philipp Weissenbacher Kaydeden (comit) Samuel Mehrbrodt

fdo#39468 Translate German comments - sw/source/core/

Change-Id: I64743b4f6b7bfd44b410d63ab13298a000a47221
Reviewed-on: https://gerrit.libreoffice.org/11821Reviewed-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
Tested-by: 's avatarSamuel Mehrbrodt <s.mehrbrodt@gmail.com>
üst 68da0456
...@@ -714,9 +714,9 @@ void SwToCntntAnchoredObjectPosition::CalcPosition() ...@@ -714,9 +714,9 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
} // end of else <nRelPosY <= 0> } // end of else <nRelPosY <= 0>
} // end of <aVert.GetVertOrient() == text::VertOrientation::NONE> } // end of <aVert.GetVertOrient() == text::VertOrientation::NONE>
//Damit das Teil ggf. auf die richtige Seite gestellt und in die // We need to calculate the part's absolute position, in order for
//PrtArea des LayLeaf gezogen werden kann, muss hier seine // it to be put onto the right page and to be pulled into the
//absolute Position berechnet werden. // LayLeaf's PrtArea
const SwTwips nTopOfAnch = _GetTopForObjPos( *pAnchorFrmForVertPos, fnRect, bVert ); const SwTwips nTopOfAnch = _GetTopForObjPos( *pAnchorFrmForVertPos, fnRect, bVert );
if( bVert ) if( bVert )
{ {
...@@ -884,7 +884,7 @@ void SwToCntntAnchoredObjectPosition::CalcPosition() ...@@ -884,7 +884,7 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
if ( !bInSct && if ( !bInSct &&
(GetAnchoredObj().GetObjRect().*fnRect->fnGetTop)() == (GetAnchoredObj().GetObjRect().*fnRect->fnGetTop)() ==
(pUpperOfOrientFrm->*fnRect->fnGetPrtTop)() ) (pUpperOfOrientFrm->*fnRect->fnGetPrtTop)() )
//Das teil passt nimmer, da hilft auch kein moven. // It doesn't fit, moving it would not help either anymore
break; break;
const SwLayoutFrm* pNextLay = pUpperOfOrientFrm->GetLeaf( const SwLayoutFrm* pNextLay = pUpperOfOrientFrm->GetLeaf(
...@@ -951,8 +951,8 @@ void SwToCntntAnchoredObjectPosition::CalcPosition() ...@@ -951,8 +951,8 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
} }
else if ( bInSct ) else if ( bInSct )
{ {
// Wenn wir innerhalb des Bereich nicht genug Platz haben, gucken // If we don't have enough room within the Area, we take a look at
// wir uns mal die Seite an. // the Page
const SwLayoutFrm* pTmp = pUpperOfOrientFrm->FindSctFrm()->GetUpper(); const SwLayoutFrm* pTmp = pUpperOfOrientFrm->FindSctFrm()->GetUpper();
nDist = (GetAnchoredObj().GetObjRect().*fnRect->fnBottomDist)( nDist = (GetAnchoredObj().GetObjRect().*fnRect->fnBottomDist)(
(pTmp->*fnRect->fnGetPrtBottom)() ); (pTmp->*fnRect->fnGetPrtBottom)() );
...@@ -1066,7 +1066,9 @@ void SwToCntntAnchoredObjectPosition::CalcPosition() ...@@ -1066,7 +1066,9 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
GetAnchoredObj().SetCurrRelPos( aRelPos ); GetAnchoredObj().SetCurrRelPos( aRelPos );
} }
/** determine frame for horizontal position */ /**
* Determine frame for horizontal position
*/
const SwFrm& SwToCntntAnchoredObjectPosition::_GetHoriVirtualAnchor( const SwFrm& SwToCntntAnchoredObjectPosition::_GetHoriVirtualAnchor(
const SwLayoutFrm& _rProposedFrm ) const const SwLayoutFrm& _rProposedFrm ) const
{ {
......
...@@ -247,25 +247,26 @@ const Graphic* SwOLENode::GetGraphic() ...@@ -247,25 +247,26 @@ const Graphic* SwOLENode::GetGraphic()
SwCntntNode *SwOLENode::SplitCntntNode( const SwPosition & ) SwCntntNode *SwOLENode::SplitCntntNode( const SwPosition & )
{ {
// OLE-Objecte vervielfaeltigen ?? // Multiply OLE objects?
OSL_FAIL( "OleNode: can't split." ); OSL_FAIL( "OleNode: can't split." );
return this; return this;
} }
// Laden eines in den Undo-Bereich verschobenen OLE-Objekts /**
* Loading a OLE object that has been moved to the Undo Area
*/
bool SwOLENode::RestorePersistentData() bool SwOLENode::RestorePersistentData()
{ {
OSL_ENSURE( aOLEObj.GetOleRef().is(), "No object to restore!" ); OSL_ENSURE( aOLEObj.GetOleRef().is(), "No object to restore!" );
if ( aOLEObj.xOLERef.is() ) if ( aOLEObj.xOLERef.is() )
{ {
// Falls bereits eine SvPersist-Instanz existiert, nehmen wir diese // If a SvPersist instance already exists, we use it
SfxObjectShell* p = GetDoc()->GetPersist(); SfxObjectShell* p = GetDoc()->GetPersist();
if( !p ) if( !p )
{ {
// TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit // TODO/LATER: Isn't a EmbeddedObjectContainer sufficient here?
// diesem Dokument? // What happens to this document?
OSL_ENSURE( false, "warum wird hier eine DocShell angelegt?" ); OSL_ENSURE( false, "Why are we creating a DocShell here?" );
p = new SwDocShell( GetDoc(), SFX_CREATE_MODE_INTERNAL ); p = new SwDocShell( GetDoc(), SFX_CREATE_MODE_INTERNAL );
p->DoInitNew( NULL ); p->DoInitNew( NULL );
} }
...@@ -293,7 +294,9 @@ bool SwOLENode::RestorePersistentData() ...@@ -293,7 +294,9 @@ bool SwOLENode::RestorePersistentData()
return true; return true;
} }
// OLE object is transported into UNDO area /**
* OLE object is transported into UNDO area
*/
bool SwOLENode::SavePersistentData() bool SwOLENode::SavePersistentData()
{ {
if( aOLEObj.xOLERef.is() ) if( aOLEObj.xOLERef.is() )
...@@ -370,7 +373,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere, ...@@ -370,7 +373,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
SwGrfFmtColl* pGrfColl, SwGrfFmtColl* pGrfColl,
SwAttrSet* pAutoAttr ) SwAttrSet* pAutoAttr )
{ {
OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." ); OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer is 0." );
SwOLENode *pNode = SwOLENode *pNode =
new SwOLENode( rWhere, xObj, pGrfColl, pAutoAttr ); new SwOLENode( rWhere, xObj, pGrfColl, pAutoAttr );
...@@ -391,7 +394,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere, ...@@ -391,7 +394,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere, SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
const OUString &rName, sal_Int64 nAspect, SwGrfFmtColl* pGrfColl, SwAttrSet* pAutoAttr ) const OUString &rName, sal_Int64 nAspect, SwGrfFmtColl* pGrfColl, SwAttrSet* pAutoAttr )
{ {
OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." ); OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer is 0." );
SwOLENode *pNode = SwOLENode *pNode =
new SwOLENode( rWhere, rName, nAspect, pGrfColl, pAutoAttr ); new SwOLENode( rWhere, rName, nAspect, pGrfColl, pAutoAttr );
...@@ -417,7 +420,7 @@ Size SwOLENode::GetTwipSize() const ...@@ -417,7 +420,7 @@ Size SwOLENode::GetTwipSize() const
SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
{ {
// Falls bereits eine SvPersist-Instanz existiert, nehmen wir diese // If there's already a SvPersist instance, we use it
SfxObjectShell* pPersistShell = pDoc->GetPersist(); SfxObjectShell* pPersistShell = pDoc->GetPersist();
if( !pPersistShell ) if( !pPersistShell )
{ {
...@@ -428,7 +431,7 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const ...@@ -428,7 +431,7 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
pPersistShell->DoInitNew( NULL ); pPersistShell->DoInitNew( NULL );
} }
// Wir hauen das Ding auf SvPersist-Ebene rein // We insert it at SvPersist level
// TODO/LATER: check if using the same naming scheme for all apps works here // TODO/LATER: check if using the same naming scheme for all apps works here
OUString aNewName/*( Sw3Io::UniqueName( p->GetStorage(), "Obj" ) )*/; OUString aNewName/*( Sw3Io::UniqueName( p->GetStorage(), "Obj" ) )*/;
SfxObjectShell* pSrc = GetDoc()->GetPersist(); SfxObjectShell* pSrc = GetDoc()->GetPersist();
...@@ -458,7 +461,7 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const ...@@ -458,7 +461,7 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
bool SwOLENode::IsInGlobalDocSection() const bool SwOLENode::IsInGlobalDocSection() const
{ {
// suche den "Body Anchor" // Find the "Body Anchor"
sal_uLong nEndExtraIdx = GetNodes().GetEndOfExtras().GetIndex(); sal_uLong nEndExtraIdx = GetNodes().GetEndOfExtras().GetIndex();
const SwNode* pAnchorNd = this; const SwNode* pAnchorNd = this;
do { do {
...@@ -483,8 +486,8 @@ bool SwOLENode::IsInGlobalDocSection() const ...@@ -483,8 +486,8 @@ bool SwOLENode::IsInGlobalDocSection() const
pSectNd = pAnchorNd->StartOfSectionNode()->FindSectionNode(); pSectNd = pAnchorNd->StartOfSectionNode()->FindSectionNode();
} }
// in pAnchorNd steht der zuletzt gefundene Section Node. Der muss // pAnchorNd contains the most recently found Section Node, which
// jetzt die Bedingung fuers GlobalDoc erfuellen. // now must fullfill the prerequesites for the GlobalDoc
pSectNd = (SwSectionNode*)pAnchorNd; pSectNd = (SwSectionNode*)pAnchorNd;
return FILE_LINK_SECTION == pSectNd->GetSection().GetType() && return FILE_LINK_SECTION == pSectNd->GetSection().GetType() &&
pSectNd->GetIndex() > nEndExtraIdx; pSectNd->GetIndex() > nEndExtraIdx;
...@@ -496,7 +499,7 @@ bool SwOLENode::IsOLEObjectDeleted() const ...@@ -496,7 +499,7 @@ bool SwOLENode::IsOLEObjectDeleted() const
if( aOLEObj.xOLERef.is() ) if( aOLEObj.xOLERef.is() )
{ {
SfxObjectShell* p = GetDoc()->GetPersist(); SfxObjectShell* p = GetDoc()->GetPersist();
if( p ) // muss da sein if( p ) // Must be there
{ {
return !p->GetEmbeddedObjectContainer().HasEmbeddedObject( aOLEObj.aName ); return !p->GetEmbeddedObjectContainer().HasEmbeddedObject( aOLEObj.aName );
} }
...@@ -720,13 +723,13 @@ void SwOLEObj::SetNode( SwOLENode* pNode ) ...@@ -720,13 +723,13 @@ void SwOLEObj::SetNode( SwOLENode* pNode )
{ {
SwDoc* pDoc = pNode->GetDoc(); SwDoc* pDoc = pNode->GetDoc();
// Falls bereits eine SvPersist-Instanz existiert, nehmen wir diese // If there's already a SvPersist instance, we use it
SfxObjectShell* p = pDoc->GetPersist(); SfxObjectShell* p = pDoc->GetPersist();
if( !p ) if( !p )
{ {
// TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit // TODO/LATER: Isn't a EmbeddedObjectContainer sufficient here?
// diesem Dokument? // What happens to the document?
OSL_ENSURE( false, "warum wird hier eine DocShell angelegt?" ); OSL_ENSURE( false, "Why are we creating a DocShell here??" );
p = new SwDocShell( pDoc, SFX_CREATE_MODE_INTERNAL ); p = new SwDocShell( pDoc, SFX_CREATE_MODE_INTERNAL );
p->DoInitNew( NULL ); p->DoInitNew( NULL );
} }
...@@ -769,14 +772,14 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef() ...@@ -769,14 +772,14 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef()
if( !xOLERef.is() ) if( !xOLERef.is() )
{ {
SfxObjectShell* p = pOLENd->GetDoc()->GetPersist(); SfxObjectShell* p = pOLENd->GetDoc()->GetPersist();
OSL_ENSURE( p, "kein SvPersist vorhanden" ); OSL_ENSURE( p, "No SvPersist present" );
uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject( aName ); uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject( aName );
OSL_ENSURE( !xOLERef.is(), "rekursiver Aufruf von GetOleRef() ist nicht erlaubt" ); OSL_ENSURE( !xOLERef.is(), "Calling GetOleRef() recursively is not permitted" );
if ( !xObj.is() ) if ( !xObj.is() )
{ {
//Das Teil konnte nicht geladen werden (wahrsch. Kaputt). // We could not load this part (probably broken)
Rectangle aArea; Rectangle aArea;
SwFrm *pFrm = pOLENd->getLayoutFrm(0); SwFrm *pFrm = pOLENd->getLayoutFrm(0);
if ( pFrm ) if ( pFrm )
......
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