Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Translation of German comments of the files in sd/source/filter/eppt/

Regards
Urs

From 8b21434d884bfaf3e11e566dd1dee3c14fadc53b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Urs=20F=C3=A4ssler?= <urs@bitzgi.ch>
Date: Fri, 1 Mar 2013 10:58:56 +0100
Subject: [PATCH 15/24] translation of German comments in files
 sd/source/filter/eppt/eppt.*

Change-Id: Ied95b179972106402fde3f9d82f6c4844571fa3a
---
 sd/source/filter/eppt/eppt.cxx |   50 ++++++++++++++++++++--------------------
 sd/source/filter/eppt/eppt.hxx |   16 ++++++-------
 2 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index 5d8959a..d98cdda 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -90,7 +90,7 @@ void PPTWriter::exportPPTPre( const std::vector< com::sun::star::beans::Property
     if ( !mrStg.Is() )
         return;
 
-    // MasterPages + Slides und Notizen + NotesMasterPage
+    // master pages + slides and notes + notes master page
     mnDrawings = mnMasterPages + ( mnPages << 1 ) + 1;
 
     if ( mXStatusIndicator.is() )
@@ -169,9 +169,9 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, sal_
     mpPptEscherEx->OpenContainer( EPP_Slide );
     mpPptEscherEx->AddAtom( 24, EPP_SlideAtom, 2 );
     *mpStrm << rLayout.nLayout;
-    mpStrm->Write( rLayout.nPlaceHolder, 8 );       // placeholderIDs ( 8Stueck )
-    *mpStrm << (sal_uInt32)(nMasterNum | 0x80000000)// master ID ( ist gleich 0x80000000 bei einer 
masterpage   )
-            << (sal_uInt32)nPageNum + 0x100         // notes ID ( ist gleich null wenn keine 
notizen vorhanden )
+    mpStrm->Write( rLayout.nPlaceHolder, 8 );       // placeholderIDs (8 parts)
+    *mpStrm << (sal_uInt32)(nMasterNum | 0x80000000)// master ID (equals 0x80000000 on a master 
page)
+            << (sal_uInt32)nPageNum + 0x100         // notes ID (equals null if no notes are 
present)
             << nMode
             << (sal_uInt16)0;                       // padword
 
@@ -185,12 +185,12 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, 
sal_
     {
         switch ( *(sal_Int32*)aAny.getValue() )
         {
-            case 1 :        // automatisch
+            case 1 :        // automatic
                 mnDiaMode++;
-            case 2 :        // halbautomatisch
+            case 2 :        // semi-automatic
                 mnDiaMode++;
             default :
-            case 0 :        // manuell
+            case 0 :        // manual
             break;
         }
     }
@@ -226,7 +226,7 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, sal_
         sal_uInt8   nDirection = 0;
         sal_uInt8   nTransitionType = 0;
         sal_uInt16  nBuildFlags = 1;        // advange by mouseclick
-        sal_Int32       nSlideTime = 0;         // muss noch !!!
+        sal_Int32       nSlideTime = 0;         // still has to !!!
         sal_uInt8   nSpeed = 1;
 
         if ( GetPropertyValue( aAny, mXPagePropSet, rtl::OUString( "Speed" ) ) )
@@ -277,7 +277,7 @@ void PPTWriter::ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterNum, sal_
     mpPptEscherEx->OpenContainer( EPP_PPDrawing );
     mpPptEscherEx->OpenContainer( ESCHER_DgContainer );
     mpPptEscherEx->EnterGroup(0,0);
-    ImplWritePage( rLayout, aSolverContainer, NORMAL, sal_False, nPageNum );    // Die Shapes der 
Seite werden im PPT Dok. erzeugt
+    ImplWritePage( rLayout, aSolverContainer, NORMAL, sal_False, nPageNum );    // the shapes of 
the pages are created in the PPT document
     mpPptEscherEx->LeaveGroup();
 
     if ( bHasBackground )
@@ -358,8 +358,8 @@ void PPTWriter::ImplWriteSlideMaster( sal_uInt32 nPageNum, Reference< XPropertyS
     mpPptEscherEx->AddAtom( 24, EPP_SlideAtom, 2 );
     *mpStrm << (sal_Int32)EPP_LAYOUT_TITLEANDBODYSLIDE  // slide layout -> title and body slide
             << (sal_uInt8)1 << (sal_uInt8)2 << (sal_uInt8)0 << (sal_uInt8)0 << (sal_uInt8)0 << 
(sal_uInt8)0 << (sal_uInt8)0 << (sal_uInt8)0     // placeholderID
-            << (sal_uInt32)0        // master ID ( ist gleich null bei einer masterpage )
-            << (sal_uInt32)0        // notes ID ( ist gleich null wenn keine notizen vorhanden )
+            << (sal_uInt32)0        // master ID (equals null at a master page)
+            << (sal_uInt32)0        // notes ID (equals null if no notes are present)
             << (sal_uInt16)0        // Bit 1: Follow master objects, Bit 2: Follow master scheme, 
Bit 3: Follow master background
             << (sal_uInt16)0;       // padword
 
@@ -418,7 +418,7 @@ void PPTWriter::ImplWriteSlideMaster( sal_uInt32 nPageNum, Reference< XPropertyS
     mpPptEscherEx->OpenContainer( ESCHER_DgContainer );
 
     mpPptEscherEx->EnterGroup(0,0);
-    ImplWritePage( GetLayout( 0 ), aSolverContainer, MASTER, sal_True );    // Die Shapes der 
Seite werden im PPT Dok. erzeugt
+    ImplWritePage( GetLayout( 0 ), aSolverContainer, MASTER, sal_True );    // the shapes of the 
pages are created in the PPT document
     mpPptEscherEx->LeaveGroup();
 
     ImplWriteBackground( aXBackgroundPropSet );
@@ -720,7 +720,7 @@ sal_Bool PPTWriter::ImplCreateDocument()
         ImplCreateHeaderFooterStrings( *mpStrm, mXPagePropSet );
     mpPptEscherEx->CloseContainer();
 
-    mpPptEscherEx->OpenContainer( EPP_SlideListWithText );      // Animation info fuer die Slides
+    mpPptEscherEx->OpenContainer( EPP_SlideListWithText );      // animation information for the 
slides
 
     for ( i = 0; i < mnPages; i++ )
     {
@@ -732,7 +732,7 @@ sal_Bool PPTWriter::ImplCreateDocument()
                 << (sal_Int32)i + 0x100                             // slideId - Unique slide 
identifier, used for OLE link monikers for example
                 << (sal_uInt32)0;                               // reserved, usualy 0
 
-        if ( !GetPageByIndex( i, NORMAL ) )                     // sehr aufregend: noch einmal 
ueber alle seiten
+        if ( !GetPageByIndex( i, NORMAL ) )                     // very exciting: once again 
through all pages
             return sal_False;
         SetCurrentStyleSheet( GetMasterIndex( NORMAL ) );
 
@@ -746,7 +746,7 @@ sal_Bool PPTWriter::ImplCreateDocument()
     }
     mpPptEscherEx->CloseContainer();    // EPP_SlideListWithText
 
-    mpPptEscherEx->OpenContainer( EPP_SlideListWithText, 2 );   // Animation info fuer die notes
+    mpPptEscherEx->OpenContainer( EPP_SlideListWithText, 2 );   // animation information for the 
notes
     for( i = 0; i < mnPages; i++ )
     {
         mpPptEscherEx->AddAtom( 20, EPP_SlidePersistAtom );
@@ -820,7 +820,7 @@ sal_Bool PPTWriter::ImplCreateDocument()
                         nFlags |= 1;
                 }
 
-                if ( ImplGetPropertyValue( rtl::OUString( "IsEndless" ) ) ) // muesste eigendlich 
heissen IsNotEndless !=)"�()&
+                if ( ImplGetPropertyValue( rtl::OUString( "IsEndless" ) ) ) // the correct name 
would be IsNotEndless: WTF?
                 {
                     sal_Bool bBool = sal_False;
                     mAny >>= bBool;
@@ -867,7 +867,7 @@ sal_Bool PPTWriter::ImplCreateDocument()
                         {
                             mpPptEscherEx->OpenContainer( EPP_NamedShows );
                             sal_uInt32 nCustomShowIndex = 0;
-                            for( i = 0; i < nCount; i++ )        // Anzahl der Custom Shows
+                            for( i = 0; i < nCount; i++ )        // number of custom shows
                             {
                                 if ( !pUString[ i ].isEmpty() )
                                 {
@@ -889,7 +889,7 @@ sal_Bool PPTWriter::ImplCreateDocument()
                                             mpPptEscherEx->BeginAtom();
 
                                             sal_Int32 nSlideCount = aXIC->getCount();
-                                            for ( sal_Int32 j = 0; j < nSlideCount; j++ )   // 
Anzahl der Slides
+                                            for ( sal_Int32 j = 0; j < nSlideCount; j++ )   // 
number of slides
                                             {
                                                 mAny = aXIC->getByIndex( j );
                                                 if ( mAny.getValue() )
@@ -1165,7 +1165,7 @@ void PPTWriter::ImplWriteNotes( sal_uInt32 nPageNum )
     mpPptEscherEx->OpenContainer( ESCHER_DgContainer );
     mpPptEscherEx->EnterGroup(0,0);
 
-    ImplWritePage( GetLayout( 20 ), aSolverContainer, NOTICE, sal_False );  // Die Shapes der 
Seite werden im PPT Dok. erzeugt
+    ImplWritePage( GetLayout( 20 ), aSolverContainer, NOTICE, sal_False );  // the shapes of the 
pages are created in the PPT document
 
     mpPptEscherEx->LeaveGroup();
     mpPptEscherEx->OpenContainer( ESCHER_SpContainer );
@@ -1362,12 +1362,12 @@ sal_Bool PPTWriter::ImplWriteAtomEnding()
 
     sal_uInt32  i, nPos, nOfs, nPersistOfs = mpStrm->Tell();
     sal_uInt32  nPersistEntrys = 0;
-    *mpStrm << (sal_uInt32)0 << (sal_uInt32)0 << (sal_uInt32)0;         // Record Header und 
ersten Eintrag ueberspringen
+    *mpStrm << (sal_uInt32)0 << (sal_uInt32)0 << (sal_uInt32)0;         // skip record header and 
first entry
 
     // Document pesist schreiben
         nPersistEntrys++;
         *mpStrm << (sal_uInt32)0;
-    // MasterPages persists schreiben
+    // write MasterPages persists
     for ( i = 0; i < mnMasterPages; i++ )
     {
         nOfs = mpPptEscherEx->PtGetOffsetByID( EPP_Persist_MainMaster | i );
@@ -1377,14 +1377,14 @@ sal_Bool PPTWriter::ImplWriteAtomEnding()
             mpPptEscherEx->InsertAtPersistOffset( EPP_MAINMASTER_PERSIST_KEY | i, ++nPersistEntrys 
);
         }
     }
-    // MainNotesMaster persist schreiben
+    // write MainNotesMaster persist
     nOfs = mpPptEscherEx->PtGetOffsetByID( EPP_Persist_MainNotes );
     if ( nOfs )
     {
         *mpStrm << nOfs;
         mpPptEscherEx->InsertAtPersistOffset( EPP_MAINNOTESMASTER_PERSIST_KEY, ++nPersistEntrys );
     }
-    // Slide persists schreiben -> es gilt hier auch den EPP_SlidePersistAtome mit einem gueltigen 
wert zu beschreiben
+    // write slide persists -> we have to write a valid value into EPP_SlidePersistAtome too
     for ( i = 0; i < mnPages; i++ )
     {
         nOfs = mpPptEscherEx->PtGetOffsetByID( EPP_Persist_Slide | i );
@@ -1394,7 +1394,7 @@ sal_Bool PPTWriter::ImplWriteAtomEnding()
             mpPptEscherEx->InsertAtPersistOffset( EPP_MAINSLIDE_PERSIST_KEY | i, ++nPersistEntrys 
);
         }
     }
-    // Notes persists schreiben
+    // write Notes persists
     for ( i = 0; i < mnPages; i++ )
     {
         nOfs = mpPptEscherEx->PtGetOffsetByID( EPP_Persist_Notes | i );
@@ -1445,7 +1445,7 @@ sal_Bool PPTWriter::ImplWriteAtomEnding()
     }
     nPos = mpStrm->Tell();
     mpStrm->Seek( nPersistOfs );
-    mpPptEscherEx->AddAtom( ( nPersistEntrys + 1 ) << 2, EPP_PersistPtrIncrementalBlock );      // 
Record Header eintragen
+    mpPptEscherEx->AddAtom( ( nPersistEntrys + 1 ) << 2, EPP_PersistPtrIncrementalBlock );      // 
insert Record Header
     *mpStrm << (sal_uInt32)( ( nPersistEntrys << 20 ) | 1 );
     mpStrm->Seek( nPos );
 
diff --git a/sd/source/filter/eppt/eppt.hxx b/sd/source/filter/eppt/eppt.hxx
index 1513763..2765660 100644
--- a/sd/source/filter/eppt/eppt.hxx
+++ b/sd/source/filter/eppt/eppt.hxx
@@ -171,10 +171,10 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
         std::vector<rtl::OUString>      maSlideNameList;
         rtl::OUString                   maBaseURI;
 
-        ::com::sun::star::uno::Reference< ::com::sun::star::text::XSimpleText >             
mXText;             // TextRef des globalen Text
+        ::com::sun::star::uno::Reference< ::com::sun::star::text::XSimpleText >             
mXText;             // TextRef of the global text
         ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextCursor >             
mXCursor;
-        ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >              
mXCursorText;       // TextRef des Teilstuecks des Cursors
-        ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >           
mXCursorPropSet;    // die Properties des Teilstueckes
+        ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextRange >              
mXCursorText;       // TextRef of part of the cursor
+        ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >           
mXCursorPropSet;    // properties of the part
         ::com::sun::star::uno::Reference< ::com::sun::star::text::XTextField >              
mXTextField;
         sal_uInt32          mnTextStyle;
 
@@ -193,13 +193,13 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
         sal_uInt32          mnExEmbed;
         SvMemoryStream*     mpExEmbed;
 
-        sal_uInt32          mnDrawings;         // anzahl Slides +  masterpages + notes +  handout
+        sal_uInt32          mnDrawings;         // number of Slides +  masterpages + notes +  
handout
         sal_uInt32          mnPagesWritten;
         sal_uInt32          mnUniqueSlideIdentifier;
         sal_uInt32          mnTxId;             // Identifier determined by the HOST (PP) ????
-        sal_uInt32          mnDiaMode;          // 0 -> manuell
-                                                // 1 -> halbautomatisch
-                                                // 2 -> automatisch
+        sal_uInt32          mnDiaMode;          // 0 -> manual
+                                                // 1 -> semi-automatic
+                                                // 2 -> automatic
 
         sal_uInt32          mnShapeMasterTitle;
         sal_uInt32          mnShapeMasterBody;
@@ -270,7 +270,7 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider
         void                ImplCreateTable( com::sun::star::uno::Reference< 
com::sun::star::drawing::XShape >& rXShape, EscherSolverContainer& aSolverContainer,
                                 EscherPropertyContainer& aPropOpt );
 
-        sal_Bool                            ImplCloseDocument();        // die font-, hyper-, 
Soundliste wird geschrieben ..
+        sal_Bool                            ImplCloseDocument();        // we write the font, 
hyper and sound list
 
         virtual void        ImplWriteSlide( sal_uInt32 nPageNum, sal_uInt32 nMasterID, sal_uInt16 
nMode,
                                             sal_Bool bHasBackground, 
::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > aXBackgroundPropSet );
-- 
1.7.10.4

From 31ba3b40fdf84b8d0033e3bae811653bc429aae3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Urs=20F=C3=A4ssler?= <urs@bitzgi.ch>
Date: Fri, 1 Mar 2013 10:59:29 +0100
Subject: [PATCH 16/24] translation of German comments in file
 sd/source/filter/eppt/epptso.cxx

Change-Id: Iacd49459f7976f9ff6676c79532fd44c3e11056d
---
 sd/source/filter/eppt/epptso.cxx |   43 +++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 22 deletions(-)

diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index 21c664f..ff20478 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -480,10 +480,10 @@ sal_Bool PPTWriter::ImplCloseDocument()
         mpExEmbed->Seek( STREAM_SEEK_TO_END );
         sal_uInt32 nExEmbedSize = mpExEmbed->Tell();
 
-        // nEnviroment : Gesamtgroesse des Environment Containers
-        sal_uInt32 nEnvironment = maFontCollection.GetCount() * 76      // 68 bytes pro 
Fontenityatom und je 8 Bytes fuer die Header
-                                + 8                                     // 1 FontCollection 
Container
-                                + 20                                    // SrKinsoku Container
+        // nEnviroment : whole size of the environment container
+        sal_uInt32 nEnvironment = maFontCollection.GetCount() * 76      // 68 bytes per 
Fontenityatom and 8 Bytes per header
+                                + 8                                     // 1 FontCollection 
container
+                                + 20                                    // SrKinsoku container
                                 + 18                                    // 1 TxSiStyleAtom
                                 + aTxMasterStyleAtomStrm.Tell()         // 1 TxMasterStyleAtom;
                                 + mpStyleSheet->SizeOfTxCFStyleAtom();
@@ -498,7 +498,7 @@ sal_Bool PPTWriter::ImplCloseDocument()
         nBytesToInsert += ImplMasterSlideListContainer( NULL );
         nBytesToInsert += ImplDocumentListContainer( NULL );
 
-        // nBytes im Stream einfuegen, und abhaengige Container anpassen
+        // insert nBytes into stream and adjust depending container
         mpPptEscherEx->InsertAtCurrentPos( nBytesToInsert, false );
 
         // CREATE HYPERLINK CONTAINER
@@ -1085,9 +1085,8 @@ void PPTWriter::ImplFlipBoundingBox( EscherPropertyContainer& rPropOpt )
     if ( ( mnAngle >= ( 45 << 16 ) && mnAngle < ( 135 << 16 ) ) ||
             ( mnAngle >= ( 225 << 16 ) && mnAngle < ( 315 << 16 ) ) )
     {
-        // In diesen beiden Bereichen steht in PPT gemeinerweise die
-        // BoundingBox bereits senkrecht. Daher muss diese VOR
-        // DER ROTATION flachgelegt werden.
+        // Maddeningly, in those two areas of PPT is the BoundingBox already
+        // vertical. Therefore, we need to put down it BEFORE THE ROTATION.
         ::com::sun::star::awt::Point
             aTopLeft( (sal_Int32)( maRect.Left() + fWidthHalf - fHeightHalf ), (sal_Int32)( 
maRect.Top() + fHeightHalf - fWidthHalf ) );
         Size    aNewSize( maRect.GetHeight(), maRect.GetWidth() );
@@ -1180,7 +1179,7 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, 
sal_u
                         case 2 :
                         {
                             rOut << (sal_uInt32)( EPP_DateTimeMCAtom << 16 ) << (sal_uInt32)8
-                                 << (sal_uInt32)( pFieldEntry->nFieldStartPos )         // 
TxtOffset auf TxtField;
+                                 << (sal_uInt32)( pFieldEntry->nFieldStartPos )         // 
TxtOffset to TxtField;
                                  << (sal_uInt8)( pFieldEntry->nFieldType & 0xff )       // Type
                                  << (sal_uInt8)0 << (sal_uInt16)0;                      // PadBytes
                         }
@@ -1275,7 +1274,7 @@ void PPTWriter::ImplWriteTextStyleAtom( SvStream& rOut, int nTextInstance, 
sal_u
 
         aTextObj.WriteTextSpecInfo( &rOut );
 
-        // Star Office Default TabSizes schreiben ( wenn noetig )
+        // write Star Office Default TabSizes (if necessary)
         if ( aTextObj.ParagraphCount() )
         {
             pPara = aTextObj.GetParagraph(0);
@@ -2051,7 +2050,7 @@ void PPTWriter::ImplWriteClickAction( SvStream& rSt, 
::com::sun::star::presentat
                 {
                     if ( *pIter == aBookmark )
                     {
-                        // Bookmark ist ein link zu einer Dokumentseite
+                        // Bookmark is a link to a document page
                         nAction = 4;
                         nHyperLinkType = 7;
 
@@ -2236,10 +2235,10 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
 
     nIndices = nInstance = nLastPer = nShapeCount = nEffectCount = 0;
 
-    sal_Bool bIsTitlePossible = sal_True;           // bei mehr als einem title geht powerpoint in 
die knie
+    sal_Bool bIsTitlePossible = sal_True;           // powerpoint is not able to handle more than 
one title
 
-    sal_uInt32  nOutlinerCount = 0;             // die gliederungsobjekte muessen dem layout 
entsprechen,
-    sal_uInt32  nPrevTextStyle = 0;                // es darf nicht mehr als zwei geben
+    sal_uInt32  nOutlinerCount = 0;                 // the outline objects have to conform to the 
layout,
+    sal_uInt32  nPrevTextStyle = 0;                 // there are no more than two allowed
 
     nOlePictureId = 0;
 
@@ -2770,7 +2769,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
             {
                 mpPptEscherEx->OpenContainer( ESCHER_SpContainer );
 
-                // ein GraphicObject kann auch ein ClickMe Element sein
+                // a GraphicObject can also be a ClickMe element
                 if ( mbEmptyPresObj && ( ePageType == NORMAL ) )
                 {
                     nPlaceHolderAtom = rLayout.nUsedObjectPlaceHolder;
@@ -2789,7 +2788,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
                     if ( mXText.is() )
                         mnTextSize = mXText->getString().getLength();
 
-                    if ( mnTextSize )                                       // graphic object oder 
Flachenfuellung
+                    if ( mnTextSize )                                       // graphic object or 
area fill
                     {
                         /* SJ #i34951#: because M. documents are not allowing GraphicObjects 
containing text, we
                         have to create a simpe Rectangle with fill bitmap instead (while not 
allowing BitmapMode_Repeat).
@@ -2869,7 +2868,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
                                 ImplAdjustFirstLineLineSpacing( aTextObj, aPropOpt );
                                 aPropertyOptions.Commit( *mpStrm );
                                 mpPptEscherEx->AddAtom( 8, ESCHER_ClientAnchor );
-                                *mpStrm << (sal_Int16)maRect.Top() << (sal_Int16)maRect.Left() << 
(sal_Int16)maRect.Right() << (sal_Int16)maRect.Bottom();      // oben, links, rechts, unten ????
+                                *mpStrm << (sal_Int16)maRect.Top() << (sal_Int16)maRect.Left() << 
(sal_Int16)maRect.Right() << (sal_Int16)maRect.Bottom();      // top, left, right, bottom ????
                                 mpPptEscherEx->OpenContainer( ESCHER_ClientData );
                                 mpPptEscherEx->AddAtom( 8, EPP_OEPlaceholderAtom );
                                 *mpStrm << (sal_uInt32)0                                           
             // PlacementID
@@ -2884,9 +2883,9 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
                                 const sal_Unicode* pString = aUString.getStr();
                                 for ( sal_uInt32 i = 0; i < mnTextSize; i++ )
                                 {
-                                    nChar = pString[ i ];       // 0xa -> 0xb weicher Zeilenumbruch
+                                    nChar = pString[ i ];       // 0xa -> 0xb soft newline
                                     if ( nChar == 0xa )
-                                        nChar++;                // 0xd -> 0xd harter Zeilenumbruch
+                                        nChar++;                // 0xd -> 0xd hard newline
                                     *mpStrm << nChar;
                                 }
                                 mpPptEscherEx->AddAtom( 6, EPP_BaseTextPropAtom );
@@ -2961,7 +2960,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
                                 ImplAdjustFirstLineLineSpacing( aTextObj, aPropOpt2 );
                                 aPropOpt2.Commit( *mpStrm );
                                 mpPptEscherEx->AddAtom( 8, ESCHER_ClientAnchor );
-                                *mpStrm << (sal_Int16)maRect.Top() << (sal_Int16)maRect.Left() << 
(sal_Int16)maRect.Right() << (sal_Int16)maRect.Bottom();  // oben, links, rechts, unten ????
+                                *mpStrm << (sal_Int16)maRect.Top() << (sal_Int16)maRect.Left() << 
(sal_Int16)maRect.Right() << (sal_Int16)maRect.Bottom();  // top, left, right, bottom ????
                                 mpPptEscherEx->OpenContainer( ESCHER_ClientData );
                                 mpPptEscherEx->AddAtom( 8, EPP_OEPlaceholderAtom );
                                 *mpStrm << (sal_uInt32)1                                           
             // PlacementID
@@ -3502,7 +3501,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, 
EscherSolverContainer& a
             mpPptEscherEx->LeaveGroup();
         }
     }
-    ClearGroupTable();                              // gruppierungen wegschreiben, sofern noch 
irgendwelche offen sind, was eigendlich nicht sein sollte
+    ClearGroupTable();                              // storing groups if any are still open, which 
should not be the case
     nGroups = GetGroupsClosed();
     for ( sal_uInt32 i = 0; i < nGroups; i++, mpPptEscherEx->LeaveGroup() ) ;
     mnPagesWritten++;
@@ -3569,7 +3568,7 @@ void PPTWriter::ImplCreateTable( uno::Reference< drawing::XShape >& rXShape, 
Esc
     mpPptEscherEx->OpenContainer( ESCHER_SpgrContainer );
     mpPptEscherEx->OpenContainer( ESCHER_SpContainer );
     mpPptEscherEx->AddAtom( 16, ESCHER_Spgr, 1 );
-    *mpStrm     << (sal_Int32)maRect.Left() // Bounding box fuer die Gruppierten shapes an die sie 
attached werden
+    *mpStrm     << (sal_Int32)maRect.Left() // Bounding box for the grouped shapes to which they 
are attached
                 << (sal_Int32)maRect.Top()
                 << (sal_Int32)maRect.Right()
                 << (sal_Int32)maRect.Bottom();
-- 
1.7.10.4

From bf41100ad2f56663fe93cee7b6eedb2a630915b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Urs=20F=C3=A4ssler?= <urs@bitzgi.ch>
Date: Fri, 1 Mar 2013 11:00:45 +0100
Subject: [PATCH 17/24] small translation of German comments in some files in
 sd/source/filter/eppt/

Change-Id: If1bfcef7acd3a71ac4c36666d5386f88def62591
---
 sd/source/filter/eppt/escherex.cxx        |    2 +-
 sd/source/filter/eppt/pptx-epptbase.cxx   |    6 +++---
 sd/source/filter/eppt/pptx-stylesheet.cxx |    4 ++--
 sd/source/filter/eppt/text.hxx            |   12 ++++++------
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/sd/source/filter/eppt/escherex.cxx b/sd/source/filter/eppt/escherex.cxx
index b1b7132..fa1347b 100644
--- a/sd/source/filter/eppt/escherex.cxx
+++ b/sd/source/filter/eppt/escherex.cxx
@@ -241,7 +241,7 @@ sal_uInt32 PptEscherEx::EnterGroup( Rectangle* pBoundRect, SvMemoryStream* pClie
         OpenContainer( ESCHER_SpContainer );
         AddAtom( 16, ESCHER_Spgr, 1 );
         PtReplaceOrInsert( ESCHER_Persist_Grouping_Snap | mnGroupLevel, mpOutStrm->Tell() );
-        *mpOutStrm  << (sal_Int32)aRect.Left()  // Bounding box fuer die Gruppierten shapes an die 
sie attached werden
+        *mpOutStrm  << (sal_Int32)aRect.Left()  // bounding box for the grouped shapes to which 
they are attached
                     << (sal_Int32)aRect.Top()
                     << (sal_Int32)aRect.Right()
                     << (sal_Int32)aRect.Bottom();
diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx
index de815dc..eebf32b 100644
--- a/sd/source/filter/eppt/pptx-epptbase.cxx
+++ b/sd/source/filter/eppt/pptx-epptbase.cxx
@@ -424,7 +424,7 @@ sal_Bool PPTWriterBase::CreateSlideMaster( sal_uInt32 nPageNum )
         return sal_False;
     SetCurrentStyleSheet( nPageNum );
 
-    if ( !ImplGetPropertyValue( mXPagePropSet, rtl::OUString( "Background" ) ) )                // 
Backgroundshape laden
+    if ( !ImplGetPropertyValue( mXPagePropSet, rtl::OUString( "Background" ) ) )                // 
load background shape
         return sal_False;
     ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > aXBackgroundPropSet;
     if ( !( mAny >>= aXBackgroundPropSet ) )
@@ -501,7 +501,7 @@ sal_uInt32 PPTWriterBase::GetMasterIndex( PageType ePageType )
             {
                 if ( ImplGetPropertyValue( aXPropertySet, rtl::OUString( "Number" ) ) )
                     nRetValue |= *(sal_Int16*)mAny.getValue();
-                if ( nRetValue & 0xffff )           // ueberlauf vermeiden
+                if ( nRetValue & 0xffff )           // avoid overflow
                     nRetValue--;
             }
         }
@@ -756,7 +756,7 @@ sal_Bool PPTWriterBase::GetShapeByIndex( sal_uInt32 nIndex, sal_Bool bGroup )
 
         rtl::OStringBuffer aTypeBuffer(rtl::OUStringToOString(
             mXShape->getShapeType(), RTL_TEXTENCODING_UTF8));
-        // "com.sun.star." entfernen
+        // remove "com.sun.star."
         aTypeBuffer.remove(0, RTL_CONSTASCII_LENGTH("com.sun.star."));
 
         sal_Int32 nPos = aTypeBuffer.toString().indexOf("Shape");
diff --git a/sd/source/filter/eppt/pptx-stylesheet.cxx b/sd/source/filter/eppt/pptx-stylesheet.cxx
index 83b53d6..a4697fb 100644
--- a/sd/source/filter/eppt/pptx-stylesheet.cxx
+++ b/sd/source/filter/eppt/pptx-stylesheet.cxx
@@ -122,8 +122,8 @@ void PPTExCharSheet::Write( SvStream& rSt, PptEscherEx*, sal_uInt16 nLev, sal_Bo
     else
     {
         rSt << rLev.mnAsianOrComplexFont
-            << (sal_uInt16)0xffff       // unbekannt
-            << (sal_uInt16)0xffff       // unbekannt
+            << (sal_uInt16)0xffff       // unknown
+            << (sal_uInt16)0xffff       // unknown
             << rLev.mnFontHeight
             << nFontColor
             << rLev.mnEscapement;
diff --git a/sd/source/filter/eppt/text.hxx b/sd/source/filter/eppt/text.hxx
index 48e0980..06bc4e0 100644
--- a/sd/source/filter/eppt/text.hxx
+++ b/sd/source/filter/eppt/text.hxx
@@ -43,17 +43,17 @@ struct SOParagraph
     sal_Int16               nBulletFlags;
     String                  sPrefix;
     String                  sSuffix;
-    String                  sGraphicUrl;            // String auf eine Graphic
+    String                  sGraphicUrl;            // String to a graphic
     Size                    aBuGraSize;
-    sal_uInt32              nNumberingType;         // in wirlichkeit ist dies ein SvxEnum
+    sal_uInt32              nNumberingType;         // this is actually a SvxEnum
     sal_uInt32              nHorzAdjust;
     sal_uInt32              nBulletColor;
     sal_Int32               nBulletOfs;
-    sal_Int16               nStartWith;             // Start der nummerierung
+    sal_Int16               nStartWith;             // start of numbering
     sal_Int16               nTextOfs;
-    sal_Int16               nBulletRealSize;        // GroessenVerhaeltnis in Proz
-    sal_Int16               nDepth;                 // aktuelle tiefe
-    sal_Unicode             cBulletId;              // wenn Numbering Type == CharSpecial
+    sal_Int16               nBulletRealSize;        // scale in percent
+    sal_Int16               nDepth;                 // actual depth
+    sal_Unicode             cBulletId;              // if Numbering Type == CharSpecial
     ::com::sun::star::awt::FontDescriptor       aFontDesc;
 
     sal_Bool                bExtendedBulletsUsed;
-- 
1.7.10.4

From ff3111ccb3524411f5b81f5d769898a915bc0b5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Urs=20F=C3=A4ssler?= <urs@bitzgi.ch>
Date: Fri, 1 Mar 2013 11:01:10 +0100
Subject: [PATCH 18/24] translation of German comments in file
 sd/source/filter/eppt/pptx-text.cxx

Change-Id: Ibf2ef88a200699bea456b916fd5e59392d1f19e1
---
 sd/source/filter/eppt/pptx-text.cxx |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index ff5532c..b344101 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -460,7 +460,7 @@ sal_uInt32 PortionObj::ImplCalculateTextPositions( sal_uInt32 nCurrentTextPositi
 }
 
 //  -----------------------------------------------------------------------
-// Rueckgabe:                           0 = kein TextField
+// Return:                              0 = no TextField
 //  bit28->31   text field type :
 //                                      1 = Date
 //                                      2 = Time
@@ -501,7 +501,7 @@ sal_uInt32 PortionObj::ImplGetTextField( ::com::sun::star::uno::Reference< ::com
                                 {
                                     sal_Bool bBool = sal_False;
                                     aAny >>= bBool;
-                                    if ( !bBool )  // Fixed DateFields gibt es in PPT nicht
+                                    if ( !bBool )  // Fixed DateFields does not exist in PPT
                                     {
                                         if ( GetPropertyValue( aAny, xFieldPropSet, rtl::OUString( 
"Format" ) ), sal_True )
                                         {
@@ -893,17 +893,17 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider& rBuProv, 
sal_Int1
 
                         if ( !aFontDesc.Name.isEmpty() )
                         {
-                            nParaFlags |= 0x90; // wir geben den Font und den Charset vor
+                            nParaFlags |= 0x90; // we define the font and charset
                         }
                     }
-                    case SVX_NUM_CHARS_UPPER_LETTER :       // zaehlt von a-z, aa - az, ba - bz, 
...
+                    case SVX_NUM_CHARS_UPPER_LETTER :       // count from a-z, aa - az, ba - bz, 
...
                     case SVX_NUM_CHARS_LOWER_LETTER :
                     case SVX_NUM_ROMAN_UPPER :
                     case SVX_NUM_ROMAN_LOWER :
                     case SVX_NUM_ARABIC :
-                    case SVX_NUM_PAGEDESC :                 // Numerierung aus der Seitenvorlage
+                    case SVX_NUM_PAGEDESC :                 // numbering from the page template
                     case SVX_NUM_BITMAP :
-                    case SVX_NUM_CHARS_UPPER_LETTER_N :     // zaehlt von  a-z, aa-zz, aaa-zzz
+                    case SVX_NUM_CHARS_UPPER_LETTER_N :     // count from a-z, aa-zz, aaa-zzz
                     case SVX_NUM_CHARS_LOWER_LETTER_N :
                     {
                         if ( nNumberingType != SVX_NUM_CHAR_SPECIAL )
@@ -1145,17 +1145,17 @@ void ParagraphObj::ImplConstruct( const ParagraphObj& rParagraphObj )
     nBulletFlags = rParagraphObj.nBulletFlags;
     sPrefix = rParagraphObj.sPrefix;
     sSuffix = rParagraphObj.sSuffix;
-    sGraphicUrl = rParagraphObj.sGraphicUrl;            // String auf eine Graphic
+    sGraphicUrl = rParagraphObj.sGraphicUrl;            // String to a graphic
     aBuGraSize = rParagraphObj.aBuGraSize;
-    nNumberingType = rParagraphObj.nNumberingType;      // in wirlichkeit ist dies ein SvxEnum
+    nNumberingType = rParagraphObj.nNumberingType;      // this is actually a SvxEnum
     nHorzAdjust = rParagraphObj.nHorzAdjust;
     nBulletColor = rParagraphObj.nBulletColor;
     nBulletOfs = rParagraphObj.nBulletOfs;
-    nStartWith = rParagraphObj.nStartWith;              // Start der nummerierung
+    nStartWith = rParagraphObj.nStartWith;              // start of numbering
     nTextOfs = rParagraphObj.nTextOfs;
-    nBulletRealSize = rParagraphObj.nBulletRealSize;    // GroessenVerhaeltnis in Proz
-    nDepth = rParagraphObj.nDepth;                      // aktuelle tiefe
-    cBulletId = rParagraphObj.cBulletId;                // wenn Numbering Type == CharSpecial
+    nBulletRealSize = rParagraphObj.nBulletRealSize;    // scale in percent
+    nDepth = rParagraphObj.nDepth;                      // actual depth
+    cBulletId = rParagraphObj.cBulletId;                // if Numbering Type == CharSpecial
     aFontDesc = rParagraphObj.aFontDesc;
 
     bExtendedBulletsUsed = rParagraphObj.bExtendedBulletsUsed;
-- 
1.7.10.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.