summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2014-10-06 10:12:46 +0200
committerSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2014-10-06 09:37:33 +0000
commit8a8fa926c1fe843c5c79f7b300b7365855460e62 (patch)
tree1eda0a4ee1fa3bbfce69951e84e97c86f19f5c03
parent68da0456a783afe65d9ff114477a36487450ca46 (diff)
fdo#39468 Translate German comments - sw/source/core/
Change-Id: I64743b4f6b7bfd44b410d63ab13298a000a47221 Reviewed-on: https://gerrit.libreoffice.org/11821 Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com> Tested-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
-rw-r--r--sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx16
-rw-r--r--sw/source/core/ole/ndole.cxx49
2 files changed, 35 insertions, 30 deletions
diff --git a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
index be59ead0a1f2..6e73a79d1d69 100644
--- a/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
+++ b/sw/source/core/objectpositioning/tocntntanchoredobjectposition.cxx
@@ -714,9 +714,9 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
} // end of else <nRelPosY <= 0>
} // end of <aVert.GetVertOrient() == text::VertOrientation::NONE>
- //Damit das Teil ggf. auf die richtige Seite gestellt und in die
- //PrtArea des LayLeaf gezogen werden kann, muss hier seine
- //absolute Position berechnet werden.
+ // We need to calculate the part's absolute position, in order for
+ // it to be put onto the right page and to be pulled into the
+ // LayLeaf's PrtArea
const SwTwips nTopOfAnch = _GetTopForObjPos( *pAnchorFrmForVertPos, fnRect, bVert );
if( bVert )
{
@@ -884,7 +884,7 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
if ( !bInSct &&
(GetAnchoredObj().GetObjRect().*fnRect->fnGetTop)() ==
(pUpperOfOrientFrm->*fnRect->fnGetPrtTop)() )
- //Das teil passt nimmer, da hilft auch kein moven.
+ // It doesn't fit, moving it would not help either anymore
break;
const SwLayoutFrm* pNextLay = pUpperOfOrientFrm->GetLeaf(
@@ -951,8 +951,8 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
}
else if ( bInSct )
{
- // Wenn wir innerhalb des Bereich nicht genug Platz haben, gucken
- // wir uns mal die Seite an.
+ // If we don't have enough room within the Area, we take a look at
+ // the Page
const SwLayoutFrm* pTmp = pUpperOfOrientFrm->FindSctFrm()->GetUpper();
nDist = (GetAnchoredObj().GetObjRect().*fnRect->fnBottomDist)(
(pTmp->*fnRect->fnGetPrtBottom)() );
@@ -1066,7 +1066,9 @@ void SwToCntntAnchoredObjectPosition::CalcPosition()
GetAnchoredObj().SetCurrRelPos( aRelPos );
}
-/** determine frame for horizontal position */
+/**
+ * Determine frame for horizontal position
+ */
const SwFrm& SwToCntntAnchoredObjectPosition::_GetHoriVirtualAnchor(
const SwLayoutFrm& _rProposedFrm ) const
{
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index 8b2fc0f61283..35df868ac038 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -247,25 +247,26 @@ const Graphic* SwOLENode::GetGraphic()
SwCntntNode *SwOLENode::SplitCntntNode( const SwPosition & )
{
- // OLE-Objecte vervielfaeltigen ??
+ // Multiply OLE objects?
OSL_FAIL( "OleNode: can't split." );
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()
{
OSL_ENSURE( aOLEObj.GetOleRef().is(), "No object to restore!" );
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();
if( !p )
{
- // TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit
- // diesem Dokument?
- OSL_ENSURE( false, "warum wird hier eine DocShell angelegt?" );
+ // TODO/LATER: Isn't a EmbeddedObjectContainer sufficient here?
+ // What happens to this document?
+ OSL_ENSURE( false, "Why are we creating a DocShell here?" );
p = new SwDocShell( GetDoc(), SFX_CREATE_MODE_INTERNAL );
p->DoInitNew( NULL );
}
@@ -293,7 +294,9 @@ bool SwOLENode::RestorePersistentData()
return true;
}
-// OLE object is transported into UNDO area
+/**
+ * OLE object is transported into UNDO area
+ */
bool SwOLENode::SavePersistentData()
{
if( aOLEObj.xOLERef.is() )
@@ -370,7 +373,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
SwGrfFmtColl* pGrfColl,
SwAttrSet* pAutoAttr )
{
- OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer ist 0." );
+ OSL_ENSURE( pGrfColl,"SwNodes::MakeOLENode: Formatpointer is 0." );
SwOLENode *pNode =
new SwOLENode( rWhere, xObj, pGrfColl, pAutoAttr );
@@ -391,7 +394,7 @@ SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
SwOLENode * SwNodes::MakeOLENode( const SwNodeIndex & rWhere,
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 =
new SwOLENode( rWhere, rName, nAspect, pGrfColl, pAutoAttr );
@@ -417,7 +420,7 @@ Size SwOLENode::GetTwipSize() 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();
if( !pPersistShell )
{
@@ -428,7 +431,7 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
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
OUString aNewName/*( Sw3Io::UniqueName( p->GetStorage(), "Obj" ) )*/;
SfxObjectShell* pSrc = GetDoc()->GetPersist();
@@ -458,7 +461,7 @@ SwCntntNode* SwOLENode::MakeCopy( SwDoc* pDoc, const SwNodeIndex& rIdx ) const
bool SwOLENode::IsInGlobalDocSection() const
{
- // suche den "Body Anchor"
+ // Find the "Body Anchor"
sal_uLong nEndExtraIdx = GetNodes().GetEndOfExtras().GetIndex();
const SwNode* pAnchorNd = this;
do {
@@ -483,8 +486,8 @@ bool SwOLENode::IsInGlobalDocSection() const
pSectNd = pAnchorNd->StartOfSectionNode()->FindSectionNode();
}
- // in pAnchorNd steht der zuletzt gefundene Section Node. Der muss
- // jetzt die Bedingung fuers GlobalDoc erfuellen.
+ // pAnchorNd contains the most recently found Section Node, which
+ // now must fullfill the prerequesites for the GlobalDoc
pSectNd = (SwSectionNode*)pAnchorNd;
return FILE_LINK_SECTION == pSectNd->GetSection().GetType() &&
pSectNd->GetIndex() > nEndExtraIdx;
@@ -496,7 +499,7 @@ bool SwOLENode::IsOLEObjectDeleted() const
if( aOLEObj.xOLERef.is() )
{
SfxObjectShell* p = GetDoc()->GetPersist();
- if( p ) // muss da sein
+ if( p ) // Must be there
{
return !p->GetEmbeddedObjectContainer().HasEmbeddedObject( aOLEObj.aName );
}
@@ -720,13 +723,13 @@ void SwOLEObj::SetNode( SwOLENode* pNode )
{
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();
if( !p )
{
- // TODO/LATER: reicht hier nicht ein EmbeddedObjectContainer? Was passiert mit
- // diesem Dokument?
- OSL_ENSURE( false, "warum wird hier eine DocShell angelegt?" );
+ // TODO/LATER: Isn't a EmbeddedObjectContainer sufficient here?
+ // What happens to the document?
+ OSL_ENSURE( false, "Why are we creating a DocShell here??" );
p = new SwDocShell( pDoc, SFX_CREATE_MODE_INTERNAL );
p->DoInitNew( NULL );
}
@@ -769,14 +772,14 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef()
if( !xOLERef.is() )
{
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 );
- OSL_ENSURE( !xOLERef.is(), "rekursiver Aufruf von GetOleRef() ist nicht erlaubt" );
+ OSL_ENSURE( !xOLERef.is(), "Calling GetOleRef() recursively is not permitted" );
if ( !xObj.is() )
{
- //Das Teil konnte nicht geladen werden (wahrsch. Kaputt).
+ // We could not load this part (probably broken)
Rectangle aArea;
SwFrm *pFrm = pOLENd->getLayoutFrm(0);
if ( pFrm )