[Libreoffice-commits] core.git: 6 commits - sd/source
Urs Fässler
urs at bitzgi.ch
Fri Mar 1 04:20:17 PST 2013
sd/source/filter/grf/sdgrffilter.cxx | 4
sd/source/filter/html/htmlex.cxx | 232 +++++++++++++++++------------------
sd/source/filter/html/pubdlg.cxx | 4
sd/source/filter/ppt/pptin.cxx | 175 +++++++++++++-------------
sd/source/filter/ppt/propread.cxx | 6
5 files changed, 209 insertions(+), 212 deletions(-)
New commits:
commit e5a0f81805b63ef720c55d19ac2d792d8df8a7b3
Author: Urs Fässler <urs at bitzgi.ch>
Date: Fri Mar 1 11:08:16 2013 +0100
translation of German comments in file sd/source/filter/ppt/propread.cxx
Change-Id: I11ae4cd91984745a8c18a50575c7195a5316a211
diff --git a/sd/source/filter/ppt/propread.cxx b/sd/source/filter/ppt/propread.cxx
index 3b053f4..38e2d7a 100644
--- a/sd/source/filter/ppt/propread.cxx
+++ b/sd/source/filter/ppt/propread.cxx
@@ -235,14 +235,14 @@ sal_Bool Section::GetProperty( sal_uInt32 nId, PropItem& rPropItem )
void Section::AddProperty( sal_uInt32 nId, const sal_uInt8* pBuf, sal_uInt32 nBufSize )
{
- // kleiner id check
+ // just a simple id check
if ( !nId )
return;
if ( nId == 0xffffffff )
nId = 0;
- // keine doppelten PropId's zulassen, sortieren
+ // do not allow same PropId's, sort
boost::ptr_vector<PropEntry>::iterator iter;
for ( iter = maEntries.begin(); iter != maEntries.end(); ++iter )
{
@@ -333,7 +333,7 @@ void Section::Read( SvStorageStream *pStrm )
*pStrm >> nPropId >> nPropOfs;
nCurrent = pStrm->Tell();
pStrm->Seek( nPropOfs + nSecOfs );
- if ( nPropId ) // dictionary wird nicht eingelesen
+ if ( nPropId ) // do not read dictionary
{
*pStrm >> nPropType;
commit 7599237f5940b645182cec4ca8817a8e544963d4
Author: Urs Fässler <urs at bitzgi.ch>
Date: Fri Mar 1 11:07:56 2013 +0100
translation of German debug message in file sd/source/filter/ppt/pptin.cxx
Change-Id: I47aae4db5d5aa880d0476f16d982cdc1a2da5862
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 05f6d76..ee4144f 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -650,7 +650,7 @@ sal_Bool ImplSdPPTImport::Import()
aName += " ";
aName += OUString::number( nLevel + 1 );
SfxStyleSheet* pOutlineSheet = (SfxStyleSheet*)mpDoc->GetStyleSheetPool()->Find( aName, SD_STYLE_FAMILY_MASTERPAGE );
- DBG_ASSERT( pOutlineSheet, "Vorlage fuer Gliederungsobjekt nicht gefunden" );
+ DBG_ASSERT( pOutlineSheet, "Template for outline object not found" );
if ( pOutlineSheet )
{
pParagraphs[ nLevel ] = new PPTParagraphObj( *pPPTStyleSheet, nOutlinerInstance, nLevel );
commit ef1572377e5e136c2de4ec1ffe74c90ba26ec942
Author: Urs Fässler <urs at bitzgi.ch>
Date: Fri Mar 1 11:07:37 2013 +0100
translation of German comments in file sd/source/filter/ppt/pptin.cxx
Change-Id: I3849f4078930c88dda19d569d9544851a395a0ea
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 0925969..05f6d76 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -505,7 +505,7 @@ sal_Bool ImplSdPPTImport::Import()
if ( mbDocumentFound )
{
rStCtrl.Seek( maDocHd.GetRecBegFilePos() + 8 );
- // HyperList lesen / Indexe der einzelnen Eintraege setzen
+ // read hyperlist / set indices of the entries
DffRecordHeader aHyperHd;
if ( SeekToRec( rStCtrl, PPT_PST_ExObjList, maDocHd.GetRecEndFilePos(), &aHyperHd ) )
{
@@ -597,18 +597,18 @@ sal_Bool ImplSdPPTImport::Import()
///////////////////////////////////////////////////////////
// create layoutstylesheets, set layoutname and stylesheet
- // (nur auf Standard- und Notizseiten)
+ // (only on standard and not pages)
///////////////////////////////////////////////////////////
String aLayoutName( SdResId( STR_LAYOUT_DEFAULT_NAME ) );
if ( nMasterNum > 2 )
{
if ( ePgKind == PK_STANDARD )
- { // Standardseite: Neues Praesentationslayout erzeugen
+ { // standard page: create new presentation layout
aLayoutName = String( SdResId( STR_LAYOUT_DEFAULT_TITLE_NAME ) );
aLayoutName += OUString::number( (sal_Int32)( ( nMasterNum + 1 ) / 2 - 1 ) );
( (SdStyleSheetPool*)mpDoc->GetStyleSheetPool() )->CreateLayoutStyleSheets( aLayoutName );
}
- else // Notizseite: Praesentationslayout von der Standardseite verwenden
+ else // note page: use presentation layout of standard page
aLayoutName = ( (SdPage*)mpDoc->GetMasterPage( nMasterNum - 1 ) )->GetName();
}
pPage->SetName( aLayoutName );
@@ -994,7 +994,7 @@ sal_Bool ImplSdPPTImport::Import()
}
else
{
- // Das kann bei Dokumentvorlagen vorkommen
+ // that can happen by document templates
eAktPageKind = PPT_SLIDEPAGE;
SdrPage* pPage = MakeBlancPage( sal_False );
pSdrModel->InsertPage( pPage );
@@ -1031,7 +1031,7 @@ sal_Bool ImplSdPPTImport::Import()
rStCtrl.Seek( nFPosMerk );
}
///////////////////////////////////////////////////////////////////
- // Handzettel und Notiz-Seiten erzeugen //
+ // create handout and note pages //
///////////////////////////////////////////////////////////////////
bOk = mpDoc->CreateMissingNotesAndHandoutPages();
if ( bOk )
@@ -1047,7 +1047,7 @@ sal_Bool ImplSdPPTImport::Import()
const PptSlideLayoutAtom* pSlideLayout = GetSlideLayoutAtom();
if ( pSlideLayout )
{
- switch ( pSlideLayout->eLayout ) // Praesentationslayouts fuer Standard-Seiten
+ switch ( pSlideLayout->eLayout ) // presentation layout for standard pages
{
case PPT_LAYOUT_TITLEANDBODYSLIDE :
{
@@ -1145,11 +1145,11 @@ sal_Bool ImplSdPPTImport::Import()
case PPT_LAYOUT_BOTTOMROW2COLUMNS :
case PPT_LAYOUT_BLANCSLIDE :
- case PPT_LAYOUT_MASTERSLIDE : // Layout der Standard- und Titel-MasterPage
+ case PPT_LAYOUT_MASTERSLIDE : // layout of the standard and title master page
case PPT_LAYOUT_TITLEMASTERSLIDE :
- case PPT_LAYOUT_MASTERNOTES : // Layout der Notizen-MasterPage
- case PPT_LAYOUT_NOTESTITLEBODY : // Praesentationslayout fuer Notiz-Seiten
- case PPT_LAYOUT_HANDOUTLAYOUT : // Praesentationslayout fuer Handzettelseiten
+ case PPT_LAYOUT_MASTERNOTES : // layout of the note master page
+ case PPT_LAYOUT_NOTESTITLEBODY : // presentation layout for note pages
+ case PPT_LAYOUT_HANDOUTLAYOUT : // presentation layout for handout
eAutoLayout = AUTOLAYOUT_NONE;
break;
}
@@ -1158,7 +1158,7 @@ sal_Bool ImplSdPPTImport::Import()
}
}
//////////////////////////////////////////////////////////////
- // Handzettel-MasterPage: Autolayout setzen //
+ // handout master page: auto layout //
//////////////////////////////////////////////////////////////
SdPage* pHandoutMPage = mpDoc->GetMasterSdPage( 0, PK_HANDOUT );
pHandoutMPage->SetAutoLayout( AUTOLAYOUT_HANDOUT6, sal_True, sal_True );
@@ -1237,7 +1237,7 @@ sal_Bool ImplSdPPTImport::Import()
}
}
DffRecordHeader aCustomShowHeader;
- // custom show einlesen und setzen
+ // read and set custom show
rStCtrl.Seek( maDocHd.GetRecBegFilePos() + 8 );
if ( SeekToRec( rStCtrl, PPT_PST_NamedShows, maDocHd.GetRecEndFilePos(), &aCustomShowHeader ) )
{
@@ -1447,7 +1447,7 @@ void ImplSdPPTImport::SetHeaderFooterPageSettings( SdPage* pPage, const PptSlide
//////////////////////////////////////////////////////////////////////////
//
-// Import von Seiten
+// Import of pages
//
//////////////////////////////////////////////////////////////////////////
@@ -1473,7 +1473,7 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
{
sal_uLong nFilePosMerk = rStCtrl.Tell();
- // PageKind an der Seite setzen (bisher nur PK_STANDARD oder PK_NOTES)
+ // set PageKind at page (up to now only PK_STANDARD or PK_NOTES)
if ( pPage->GetPageKind() == PK_STANDARD )
{
PptSlidePersistList* pPersistList = GetPageList( eAktPageKind );
@@ -1520,12 +1520,12 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
sal_Int8 nDirection, nTransitionType, nByteDummy, nSpeed;
sal_Int16 nBuildFlags;
sal_Int32 nSlideTime, nSoundRef;
- rStCtrl >> nSlideTime // Standzeit (in Ticks)
- >> nSoundRef // Index in SoundCollection
- >> nDirection // Richtung des Ueberblendeffekts
- >> nTransitionType // Ueberblendeffekt
+ rStCtrl >> nSlideTime // time to show (in Ticks)
+ >> nSoundRef // Index of SoundCollection
+ >> nDirection // direction of fade effect
+ >> nTransitionType // fade effect
>> nBuildFlags // Buildflags (s.u.)
- >> nSpeed // Geschwindigkeit (langsam, mittel, schnell)
+ >> nSpeed // speed (slow, medium, fast)
>> nByteDummy >> nByteDummy >> nByteDummy;
switch ( nTransitionType )
@@ -1533,37 +1533,37 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
case PPT_TRANSITION_TYPE_BLINDS :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_VERTICAL_STRIPES );// Vertikal blenden
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_VERTICAL_STRIPES ); // fade vertical
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_HORIZONTAL_STRIPES );// Horizontal blenden
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_HORIZONTAL_STRIPES ); // fade horizontal
}
break;
case PPT_TRANSITION_TYPE_CHECKER :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_HORIZONTAL_CHECKERBOARD );// Vertikal versetzt einblenden ??
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_HORIZONTAL_CHECKERBOARD ); // fade vertical with offset ??
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_VERTICAL_CHECKERBOARD );// Horizontal versetzt einblenden ??
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_VERTICAL_CHECKERBOARD ); // fade horizontal with offset ??
}
break;
case PPT_TRANSITION_TYPE_COVER :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_RIGHT ); // Von rechts ueberdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_RIGHT ); // overlay from right
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_BOTTOM ); // Von unten ueberdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_BOTTOM ); // overlay from bottom
else if ( nDirection == 2 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_LEFT ); // Von links ueberdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_LEFT ); // overlay from left
else if ( nDirection == 3 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_TOP ); // Von oben ueberdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_TOP ); // overlay from top
else if ( nDirection == 4 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_LOWERRIGHT );// Von rechts unten ueberdecken ??
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_LOWERRIGHT ); // overlay from bottom right ??
else if ( nDirection == 5 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_LOWERLEFT ); // Von links unten ueberdecken ??
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_LOWERLEFT ); // overlay from bottom left ??
else if ( nDirection == 6 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_UPPERRIGHT );// Von rechts oben ueberdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_UPPERRIGHT ); // overlay from top right
else if ( nDirection == 7 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_UPPERLEFT ); // Von links oben ueberdecken ??
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_MOVE_FROM_UPPERLEFT ); // overlay from top left ??
}
break;
case PPT_TRANSITION_TYPE_NONE :
@@ -1571,7 +1571,7 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
if ( nBuildFlags )
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_NONE ); // Direkt
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_NONE ); // direct
else if ( nDirection == 1 )
{
pPage->setTransitionType( animations::TransitionType::BARWIPE );
@@ -1584,74 +1584,74 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
}
break;
case PPT_TRANSITION_TYPE_DISSOLVE :
- pPage->SetFadeEffect(::com::sun::star::presentation::FadeEffect_DISSOLVE); // Aufloesen
+ pPage->SetFadeEffect(::com::sun::star::presentation::FadeEffect_DISSOLVE); // dissolve
break;
case PPT_TRANSITION_TYPE_RANDOM_BARS :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_HORIZONTAL_LINES ); // Horizontale Linien
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_HORIZONTAL_LINES ); // horizontal lines
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_VERTICAL_LINES ); // Vertikale Linien
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_VERTICAL_LINES ); // vertical lines
}
break;
case PPT_TRANSITION_TYPE_SPLIT :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_OPEN_VERTICAL ); // Horizontal oeffnen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_OPEN_VERTICAL ); // open horizontal ??
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_CLOSE_VERTICAL ); // Horizontal schliessen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_CLOSE_VERTICAL ); // close horizontal ??
else if ( nDirection == 2 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_OPEN_HORIZONTAL ); // Vertikal oeffnen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_OPEN_HORIZONTAL ); // open vertical ??
else if ( nDirection == 3 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_CLOSE_HORIZONTAL );// Vertikal schliessen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_CLOSE_HORIZONTAL ); // close vertical ??
}
break;
case PPT_TRANSITION_TYPE_STRIPS :
{
if ( nDirection == 4 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_LOWERRIGHT );// Diagonal nach links oben
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_LOWERRIGHT ); // diagonal to top left
else if ( nDirection == 5 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_LOWERLEFT ); // Diagonal nach rechts oben
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_LOWERLEFT ); // diagonal to top right
else if ( nDirection == 6 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_UPPERRIGHT );// Diagonal nach links unten
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_UPPERRIGHT ); // diagonal to bottom left
else if ( nDirection == 7 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_UPPERLEFT ); // Diagonal nach rechts unten
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_UPPERLEFT ); // diagonal to bottom right
}
break;
case PPT_TRANSITION_TYPE_PULL :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_LEFT ); // Nach links aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_LEFT ); // uncover to left
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_TOP ); // Nach oben aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_TOP ); // uncover to top
else if ( nDirection == 2 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_RIGHT ); // Nach rechts aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_RIGHT ); // uncover to right
else if ( nDirection == 3 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_BOTTOM ); // Nach unten aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_BOTTOM ); // uncover to bottom
else if ( nDirection == 4 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_UPPERLEFT );// Nach links oben aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_UPPERLEFT ); // uncover to top left
else if ( nDirection == 5 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_UPPERRIGHT );// Nach rechts oben aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_UPPERRIGHT ); // uncover to top right
else if ( nDirection == 6 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_LOWERLEFT );// Nach links unten aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_LOWERLEFT ); // uncover to bottom left
else if ( nDirection == 7 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_LOWERRIGHT );// Nach rechts unten aufdecken
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_UNCOVER_TO_LOWERRIGHT ); // uncover to bottom right
}
break;
case PPT_TRANSITION_TYPE_WIPE :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_RIGHT ); // Von rechts rollen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_RIGHT ); // roll from right
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_BOTTOM );// Von unten rollen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_BOTTOM ); // roll from bottom
else if ( nDirection == 2 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_LEFT ); // Von links rollen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_LEFT ); // roll from left
else if ( nDirection == 3 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_TOP ); // Von oben rollen
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_TOP ); // roll from top
}
break;
case PPT_TRANSITION_TYPE_RANDOM :
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_RANDOM ); // Automatisch
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_RANDOM ); // automatic
break;
case PPT_TRANSITION_TYPE_FADE :
{
@@ -1663,9 +1663,9 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
case PPT_TRANSITION_TYPE_ZOOM :
{
if ( nDirection == 0 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_CENTER );// Von innen einblenden
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_FROM_CENTER ); // fade from center
else if ( nDirection == 1 )
- pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_TO_CENTER ); // Von aussen einblenden
+ pPage->SetFadeEffect( ::com::sun::star::presentation::FadeEffect_FADE_TO_CENTER ); // fade from the outside
}
break;
case PPT_TRANSITION_TYPE_DIAMOND :
@@ -1744,14 +1744,14 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
}
if ( nSpeed == 0 )
- pPage->setTransitionDuration( 3.0 ); // langsam
+ pPage->setTransitionDuration( 3.0 ); // slow
else if ( nSpeed == 1 )
- pPage->setTransitionDuration( 2.0 ); // mittel
+ pPage->setTransitionDuration( 2.0 ); // medium
else if ( nSpeed == 2 )
- pPage->setTransitionDuration( 1.0 ); // schnell
+ pPage->setTransitionDuration( 1.0 ); // fast
if ( nBuildFlags & 0x400 ) // slidechange by time
- { // Standzeit (in Ticks)
+ { // time to show (in Ticks)
pPage->SetPresChange( PRESCHANGE_AUTO );
pPage->SetTime( nSlideTime / 1000 );
}
@@ -1759,9 +1759,9 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
pPage->SetPresChange( mePresChange );
if ( nBuildFlags & 4 )
- pPage->SetExcluded( sal_True ); // Dia nicht anzeigen
+ pPage->SetExcluded( sal_True ); // don't show slide
if ( nBuildFlags & 16 )
- { // Dia mit Soundeffekt
+ { // slide with sound effect
pPage->SetSound( sal_True );
String aSoundFile( ReadSound( nSoundRef ) );
pPage->SetSoundFile( aSoundFile );
@@ -1840,10 +1840,10 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
//////////////////////////////////////////////////////////////////////////
//
-// Import von Sounds
+// import of sounds
//
-// Die Sounds werden nicht nur als String importiert sondern auch
-// in die Gallery einefuegt, falls dort noch nicht vorhanden.
+// Not only the sounds are imported as string, they are also inserted to
+// the gallery if they are not already there.
//
///////////////////////////////////////////////////////////////////////////
@@ -1887,9 +1887,8 @@ String ImplSdPPTImport::ReadSound(sal_uInt32 nSoundRef) const
}
if ( bDone )
{
- // ueberpruefen, ob diese Sound-Datei schon
- // existiert. Wenn nicht, exportiere diese
- // in unser lokales Sound-Verzeichnis.
+ // Check if this sound file already exists.
+ // If not, it is exported to our local sound directory.
sal_Bool bSoundExists = sal_False;
::std::vector< String > aSoundList;
@@ -2021,16 +2020,16 @@ String ImplSdPPTImport::ReadMedia( sal_uInt32 nMediaRef ) const
//////////////////////////////////////////////////////////////////////////
//
-// Import von Objekten
+// import of objects
//
//////////////////////////////////////////////////////////////////////////
void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiveInfoAtom* pIAtom, String aMacroName )
{
- // Lokale Informationen in pInfo eintragen
+ // set local information into pInfo
if( pIAtom->nSoundRef )
{
- pInfo->SetBookmark( ReadSound( pIAtom->nSoundRef ) ); // Pfad zum Soundfile in MSDOS-Notation
+ pInfo->SetBookmark( ReadSound( pIAtom->nSoundRef ) ); // path to sound file in MS DOS notation
pInfo->meClickAction = ::com::sun::star::presentation::ClickAction_SOUND; // RunProgramAction
}
@@ -2040,7 +2039,7 @@ void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiv
case 0x02 : // RunProgramAction
{
pInfo->meClickAction = ::com::sun::star::presentation::ClickAction_PROGRAM;
- pInfo->SetBookmark( aMacroName ); // Programmname in aBookmark
+ pInfo->SetBookmark( aMacroName ); // program name in aBookmark
}
break;
case 0x03 : // JumpAction
@@ -2109,7 +2108,7 @@ void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiv
case 10:
break;
- case 7: // hyperlink auf eine Seite
+ case 7: // hyperlink to a page
{
if ( !pPtr->aConvSubString.isEmpty() )
{
@@ -2411,7 +2410,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
switch ( pSlideLayout->aPlacementId[ i ] )
{
- case 0 : // Lage im Titelbereich
+ case 0 : // position in title area
{
if ( aLogicRect != aTitleRect )
pPresObj->SetUserCall( NULL );
@@ -2421,12 +2420,12 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
case 1:
{
if ( pSlideLayout->eLayout == PPT_LAYOUT_TITLEANDBODYSLIDE )
- { // Lage im Outlinebereich
+ { // position in outline area
if ( aLogicRect != aOutlineRect )
pPresObj->SetUserCall( NULL );
}
else if ( pSlideLayout->eLayout == PPT_LAYOUT_2COLUMNSANDTITLE )
- { // Lage im Outlinebereich links
+ { // position in outline area left
if (Abs(aLogicRect.Left() - aOutlineRect.Left()) > MAX_USER_MOVE ||
Abs(aLogicRect.Top() - aOutlineRect.Top()) > MAX_USER_MOVE ||
Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE ||
@@ -2437,7 +2436,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
}
}
else if ( pSlideLayout->eLayout == PPT_LAYOUT_2ROWSANDTITLE )
- { // Lage im Outlinebereich oben
+ { // position in outline area top
if (Abs(aLogicRect.Left() - aOutlineRect.Left()) > MAX_USER_MOVE ||
Abs(aLogicRect.Top() - aOutlineRect.Top()) > MAX_USER_MOVE ||
Abs(aLogicRect.Right() - aOutlineRect.Right()) > MAX_USER_MOVE)
@@ -2447,7 +2446,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
}
else if (Abs(aLogicRect.Left() - aOutlineRect.Left()) > MAX_USER_MOVE ||
Abs(aLogicRect.Top() - aOutlineRect.Top()) > MAX_USER_MOVE)
- { // Lage im Outlinebereich links oben
+ { // position in outline area top left
pPresObj->SetUserCall( NULL );
}
}
@@ -2456,7 +2455,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
case 2:
{
if ( pSlideLayout->eLayout == PPT_LAYOUT_2COLUMNSANDTITLE )
- { // Lage im Outlinebereich rechts
+ { // position in outline area right
if (Abs(aLogicRect.Right() - aOutlineRect.Right()) > MAX_USER_MOVE ||
Abs(aLogicRect.Top() - aOutlineRect.Top()) > MAX_USER_MOVE ||
Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE ||
@@ -2467,7 +2466,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
}
}
else if ( pSlideLayout->eLayout == PPT_LAYOUT_2ROWSANDTITLE )
- { // Lage im Outlinebereich unten
+ { // position in outline area bottom
if (Abs(aLogicRect.Left() - aOutlineRect.Left()) > MAX_USER_MOVE ||
Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE ||
Abs(aLogicRect.Right() - aOutlineRect.Right()) > MAX_USER_MOVE)
@@ -2477,14 +2476,14 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
}
else if (Abs(aLogicRect.Right() - aOutlineRect.Right()) > MAX_USER_MOVE ||
Abs(aLogicRect.Top() - aOutlineRect.Top()) > MAX_USER_MOVE)
- { // Lage im Outlinebereich rechts oben
+ { // position in outline area top right
pPresObj->SetUserCall(NULL);
}
}
break;
case 3:
- { // Lage im Outlinebereich links unten
+ { // position in outline area bottom left
if (Abs(aLogicRect.Left() - aOutlineRect.Left()) > MAX_USER_MOVE ||
Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE)
{
@@ -2494,7 +2493,7 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
break;
case 4:
- { // Lage im Outlinebereich rechts unten
+ { // position in outline area bottom right
if (Abs(aLogicRect.Right() - aOutlineRect.Right()) > MAX_USER_MOVE ||
Abs(aLogicRect.Bottom() - aOutlineRect.Bottom()) > MAX_USER_MOVE)
{
@@ -2525,7 +2524,7 @@ SdrObject* ImplSdPPTImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
{
SdrObject* pObj = SdrPowerPointImport::ProcessObj( rSt, rObjData, pData, rTextRect, pRet );
- // Animationseffekte des Objektes lesen
+ // read animation effect of object
if ( pObj )
{
// further setup placeholder objects
commit fea303a3d7422d26b7d4ea26126b0769e66dda40
Author: Urs Fässler <urs at bitzgi.ch>
Date: Fri Mar 1 11:05:30 2013 +0100
translation of German comments in file sd/source/filter/html/pubdlg.cxx
Change-Id: I7c4963560bab186721ec5ef95461a4dcb6994351
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx
index 0560040..c540ec4 100644
--- a/sd/source/filter/html/pubdlg.cxx
+++ b/sd/source/filter/html/pubdlg.cxx
@@ -385,11 +385,11 @@ SdPublishingDlg::SdPublishingDlg(Window* pWindow, DocumentType eDocType)
CreatePages();
Load();
- //setzt die Ausgangsseite
+ // sets the output page
aAssistentFunc.GotoPage(1);
aLastPageButton.Disable();
- //Buttonbelegung
+ // button assignment
aFinishButton.SetClickHdl(LINK(this,SdPublishingDlg,FinishHdl));
aLastPageButton.SetClickHdl(LINK(this,SdPublishingDlg,LastPageHdl));
aNextPageButton.SetClickHdl(LINK(this,SdPublishingDlg,NextPageHdl));
commit 3cf8785377e78040b302cf904119991991c97283
Author: Urs Fässler <urs at bitzgi.ch>
Date: Fri Mar 1 11:05:05 2013 +0100
translation of German comments in file sd/source/filter/html/htmlex.cxx
Change-Id: I8e432ce2f7a68c51da809b3f68c1924fda6b63c8
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index 943645d..9988797 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -93,12 +93,12 @@ using namespace ::com::sun::star::document;
#define KEY_QUALITY "JPG-EXPORT-QUALITY"
-// Parameter aus Itemset abfragen
+// get parameter from Itemset
#define RESTOHTML( res ) StringToHTMLString(String(SdResId(res)))
#define S2H( str ) StringToHTMLString( str )
-// bei Aenderungen auch NUM_BUTTONS in pubdlg.hxx aendern!!
+// when changing, also change NUM_BUTTONS in pubdlg.hxx!!
const char *pButtonNames[NUM_BUTTONS] =
{
"first-inactive.png",
@@ -129,7 +129,7 @@ const char *pButtonNames[NUM_BUTTONS] =
#define BTN_LESS 11
// *********************************************************************
-// Hilfsklasse fuer das simple erzeugen von Dateien lokal/remote
+// Helper class for the simple creation of files local/remote
// *********************************************************************
class EasyFile
{
@@ -149,7 +149,7 @@ public:
};
// *********************************************************************
-// Hilfsklasse fuer das einbinden von Textattributen in die Html-Ausgabe
+// Helper class for the embedding of text attributes into the html output
// *********************************************************************
class HtmlState
{
@@ -178,7 +178,7 @@ public:
};
// =====================================================================
-// alle noch offennen Tags schliessen
+// close all still open tags
// =====================================================================
String HtmlState::Flush()
{
@@ -195,7 +195,7 @@ String HtmlState::Flush()
}
// =====================================================================
-// c'tor mit Defaultfarbe fuer die Seite
+// c'tor with default color for the page
// =====================================================================
HtmlState::HtmlState( Color aDefColor )
{
@@ -209,7 +209,7 @@ HtmlState::HtmlState( Color aDefColor )
}
// =====================================================================
-// aktiviert/deaktiviert Fettdruck
+// enables/disables bold print
// =====================================================================
String HtmlState::SetWeight( bool bWeight )
{
@@ -225,7 +225,7 @@ String HtmlState::SetWeight( bool bWeight )
}
// =====================================================================
-// aktiviert/deaktiviert Italic
+// enables/disables italic
// =====================================================================
String HtmlState::SetItalic( bool bItalic )
{
@@ -241,7 +241,7 @@ String HtmlState::SetItalic( bool bItalic )
}
// =====================================================================
-// aktiviert/deaktiviert Unterstrichen
+// enables/disables underlines
// =====================================================================
String HtmlState::SetUnderline( bool bUnderline )
{
@@ -257,7 +257,7 @@ String HtmlState::SetUnderline( bool bUnderline )
}
// =====================================================================
-// aktiviert/deaktiviert Durchstreichen
+// enables/disables strike through
// =====================================================================
String HtmlState::SetStrikeout( bool bStrike )
{
@@ -273,7 +273,7 @@ String HtmlState::SetStrikeout( bool bStrike )
}
// =====================================================================
-// Setzt die angegebenne Textfarbe
+// Sets the specified text color
// =====================================================================
String HtmlState::SetColor( Color aColor )
{
@@ -303,7 +303,7 @@ String HtmlState::SetColor( Color aColor )
}
// =====================================================================
-// aktiviert/deaktiviert einen Hyperlink
+// enables/disables a hyperlink
// =====================================================================
String HtmlState::SetLink( const String& aLink, const String& aTarget )
{
@@ -337,7 +337,7 @@ String HtmlState::SetLink( const String& aLink, const String& aTarget )
}
// *********************************************************************
-// class HtmlExport Methoden
+// methods of the class HtmlExport
// *********************************************************************
static String getParagraphStyle( SdrOutliner* pOutliner, sal_uInt16 nPara )
@@ -357,7 +357,7 @@ static String getParagraphStyle( SdrOutliner* pOutliner, sal_uInt16 nPara )
}
// =====================================================================
-// Konstruktor fuer die Html Export Hilfsklasse
+// constructor for the html export helper classes
// =====================================================================
HtmlExport::HtmlExport(
OUString aPath,
@@ -420,7 +420,7 @@ HtmlExport::HtmlExport(
HtmlExport::~HtmlExport()
{
// ------------------------------------------------------------------
- // Listen loeschen
+ // delete lists
// ------------------------------------------------------------------
if(mpImageFiles && mpHTMLFiles && mpThumbnailFiles && mpPageNames && mpTextFiles )
{
@@ -644,7 +644,7 @@ void HtmlExport::InitExportParameters( const Sequence< PropertyValue >& rParams
mnHeightPixel = (sal_uInt16)(mnWidthPixel/dRatio);
//------------------------------------------------------------------
- // Ziel ausklamuestern...
+ // we come up with a destination...
INetURLObject aINetURLObj( maPath );
DBG_ASSERT( aINetURLObj.GetProtocol() != INET_PROT_NOT_VALID, "invalid URL" );
@@ -671,7 +671,7 @@ void HtmlExport::InitExportParameters( const Sequence< PropertyValue >& rParams
}
///////////////////////////////////////////////////////////////////////
-// Exportiert das im Konstruktor angegebenne Impress Dokument nach HTML
+// exports the (in the c'tor specified impress document) to html
///////////////////////////////////////////////////////////////////////
void HtmlExport::ExportHtml()
{
@@ -685,7 +685,7 @@ void HtmlExport::ExportHtml()
}
else if( mbDocColors )
{
- // Standard Farben fuer das Farbschema 'Aus Dokument'
+ // default colors for the color schema 'From Document'
SetDocColors();
maFirstPageColor = maBackColor;
}
@@ -693,7 +693,7 @@ void HtmlExport::ExportHtml()
// get name for downloadable presentation if needed
if( mbDownload )
{
- // Separator such und Extension ausblenden
+ // fade out separator search and extension
sal_uInt16 nSepPos = maDocFileName.Search( sal_Unicode('.') );
if(nSepPos != STRING_NOTFOUND)
@@ -714,7 +714,7 @@ void HtmlExport::ExportHtml()
mpDocSh->SetWaitCursor( true );
//------------------------------------------------------------------
- // Exceptions sind doch was schoennes...
+ // Exceptions are cool...
CreateFileNames();
@@ -795,7 +795,7 @@ void HtmlExport::SetDocColors( SdPage* pPage )
if( mpDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS )
{
- // Standard Textfarbe aus Outline-Vorlage der ersten Seite
+ // default text color from the outline template of the first page
pSheet = pPage->GetStyleSheetForPresObj(PRESOBJ_OUTLINE);
if(pSheet == NULL)
pSheet = pPage->GetStyleSheetForPresObj(PRESOBJ_TEXT);
@@ -813,7 +813,7 @@ void HtmlExport::SetDocColors( SdPage* pPage )
maTextColor = ((SvxColorItem*)rSet.GetItem(EE_CHAR_COLOR,sal_True))->GetValue();
}
- // Standard Hintergrundfarbe aus Background der MasterPage der ersten Seite
+ // default background from the background of the master page of the first page
maBackColor = pPage->GetPageBackgroundColor();
if( maTextColor == COL_AUTO )
@@ -961,7 +961,7 @@ bool HtmlExport::SavePresentation()
}
// =====================================================================
-// Image-Dateien anlegen
+// create image files
// =====================================================================
bool HtmlExport::CreateImagesForPresPages( bool bThumbnail)
{
@@ -1034,7 +1034,7 @@ bool HtmlExport::CreateImagesForPresPages( bool bThumbnail)
}
// =====================================================================
-// Ermittelt das SdrTextObject mit dem Layout Text dieser Seite
+// get SdrTextObject with layout text of this page
// =====================================================================
SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage* pPage)
{
@@ -1056,7 +1056,7 @@ SdrTextObj* HtmlExport::GetLayoutTextObject(SdrPage* pPage)
}
// =====================================================================
-// HTML-Text Versionen fuer Impress Seiten erzeugen
+// create HTML text version of impress pages
// =====================================================================
String HtmlExport::WriteMetaCharset() const
@@ -1087,7 +1087,7 @@ bool HtmlExport::CreateHtmlTextForPresPages()
SetDocColors( pPage );
}
-// HTML Kopf
+// HTML head
String aStr(maHTMLHeader);
aStr += WriteMetaCharset();
aStr.AppendAscii( " <title>" );
@@ -1096,10 +1096,10 @@ bool HtmlExport::CreateHtmlTextForPresPages()
aStr.AppendAscii( "</head>\r\n" );
aStr += CreateBodyTag();
-// Navigationsleiste
+// navigation bar
aStr += CreateNavBar(nSdPage, true);
-// Seitentitel
+// page title
String sTitleText( CreateTextForTitle(pOutliner,pPage, pPage->GetPageBackgroundColor()) );
aStr.AppendAscii( "<h1 style=\"");
aStr.Append( getParagraphStyle( pOutliner, 0 ) );
@@ -1107,10 +1107,10 @@ bool HtmlExport::CreateHtmlTextForPresPages()
aStr += sTitleText;
aStr.AppendAscii( "</h1>\r\n" );
-// Gliederungstext schreiben
+// write outline text
aStr += CreateTextForPage( pOutliner, pPage, true, pPage->GetPageBackgroundColor() );
-// Notizen
+// notes
if(mbNotes)
{
SdPage* pNotesPage = maNotesPages[ nSdPage ];
@@ -1126,7 +1126,7 @@ bool HtmlExport::CreateHtmlTextForPresPages()
}
}
-// Seite beenden
+// clsoe page
aStr.AppendAscii( "</body>\r\n</html>" );
bOk = WriteHtml( *mpTextFiles[nSdPage], false, aStr );
@@ -1173,7 +1173,7 @@ bool HtmlExport::WriteHtml( const String& rFileName, bool bAddExtension, const S
// =====================================================================
-/** Erzeugt den Outliner Text fuer das Titelobjekt einer Seite
+/** creates a outliner text for the title objects of a page
*/
String HtmlExport::CreateTextForTitle( SdrOutliner* pOutliner, SdPage* pPage, const Color& rBackgroundColor )
{
@@ -1196,7 +1196,7 @@ String HtmlExport::CreateTextForTitle( SdrOutliner* pOutliner, SdPage* pPage, co
}
// =====================================================================
-// Erzeugt den Outliner Text fuer eine Seite
+// creates a outliner text for a page
// =====================================================================
String HtmlExport::CreateTextForPage( SdrOutliner* pOutliner,
SdPage* pPage,
@@ -1294,7 +1294,7 @@ String HtmlExport::CreateTextForPage( SdrOutliner* pOutliner,
}
// =====================================================================
-// Erzeugt den Outliner Text fuer eine Notizseite
+// creates a outliner text for a note page
// =====================================================================
String HtmlExport::CreateTextForNotesPage( SdrOutliner* pOutliner,
SdPage* pPage,
@@ -1329,7 +1329,7 @@ String HtmlExport::CreateTextForNotesPage( SdrOutliner* pOutliner,
}
// =====================================================================
-// Wandelt einen Paragraphen des Outliners in Html
+// converts a paragraph of the outliner to html
// =====================================================================
String HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_uLong nPara, const Color& rBackgroundColor )
{
@@ -1374,8 +1374,9 @@ String HtmlExport::ParagraphToHTMLString( SdrOutliner* pOutliner, sal_uLong nPar
}
// =====================================================================
-// Erzeugt anhand der Attribute im angegebennen Set und dem gegebennen
-// HtmlState die noetigen Html-Tags um die Attribute zu uebernehmen
+// Depending on the attributes of the specified set and the specified
+// HtmlState, it creates the needed html tags in order to get the
+// attributes.
// =====================================================================
String HtmlExport::TextAttribToHTMLString( SfxItemSet* pSet, HtmlState* pState, const Color& rBackgroundColor )
{
@@ -1465,7 +1466,7 @@ String HtmlExport::TextAttribToHTMLString( SfxItemSet* pSet, HtmlState* pState,
}
// =====================================================================
-// HTML-Wrapper fuer Bild-Dateien erzeugen
+// create HTML wrapper for picture files
// =====================================================================
bool HtmlExport::CreateHtmlForPresPages()
{
@@ -1475,10 +1476,9 @@ bool HtmlExport::CreateHtmlForPresPages()
for(sal_uInt16 nSdPage = 0; nSdPage < mnSdPageCount && bOk; nSdPage++)
{
- // Klickbare Objekte finden (auch auf der Masterpage) und
- // in Liste stellen. In umgekehrter Zeichenreihenfolge in
- // die Liste stellen, da in HTML bei Ueberlappungen die
- // _erstgenannte_ Area wirkt.
+ // find clickable objects (also on the master page) and put it in the
+ // list. This in reverse order character order since in html the first
+ // area is taken in the case they overlap.
SdPage* pPage = maPages[ nSdPage ];
@@ -1491,7 +1491,7 @@ bool HtmlExport::CreateHtmlForPresPages()
while (!bMasterDone)
{
- // sal_True = rueckwaerts
+ // sal_True = backwards
SdrObjListIter aIter(*pPage, IM_DEEPWITHGROUPS, sal_True);
SdrObject* pObject = aIter.Next();
@@ -1514,7 +1514,7 @@ bool HtmlExport::CreateHtmlForPresPages()
pObject = aIter.Next();
}
- // jetzt zur Masterpage oder beenden
+ // now to the master page or finishing
if (!pPage->IsMasterPage())
pPage = (SdPage*)(&(pPage->TRG_GetMasterPage()));
else
@@ -1575,7 +1575,7 @@ bool HtmlExport::CreateHtmlForPresPages()
if( mbSlideSound && pPage->IsSoundOn() )
aStr += InsertSound( pPage->GetSoundFile() );
-// Navigationsleiste
+// navigation bar
if(!mbFrames )
aStr += CreateNavBar( nSdPage, false );
// Image
@@ -1589,7 +1589,7 @@ bool HtmlExport::CreateHtmlForPresPages()
aStr.AppendAscii( "></center>\r\n" );
-// Notizen
+// notes
if(mbNotes && !mbFrames)
{
SdrOutliner* pOutliner = mpDoc->GetInternalOutliner();
@@ -1608,7 +1608,7 @@ bool HtmlExport::CreateHtmlForPresPages()
}
}
-// ggfs. Imagemap erzeugen
+// create Imagemap if necessary
if (!aClickableObjects.empty())
{
aStr.AppendAscii( "<map name=\"map0\">\r\n" );
@@ -1626,8 +1626,8 @@ bool HtmlExport::CreateHtmlForPresPages()
sal_uLong nPageWidth = pPage->GetSize().Width() - pPage->GetLftBorder() -
pPage->GetRgtBorder();
- // das BoundRect bezieht sich auf den physikalischen
- // Seitenursprung, nicht auf den Koordinatenursprung
+ // BoundRect is relative to the physical page origin, not the
+ // origin of ordinates
aRect.Move(-pPage->GetLftBorder(), -pPage->GetUppBorder());
double fLogicToPixel = ((double)mnWidthPixel) / nPageWidth;
@@ -1639,8 +1639,8 @@ bool HtmlExport::CreateHtmlForPresPages()
/*************************************************************
- |* wenn das Objekt eine eigene Imagemap enthaelt, werden ihre
- |* Areas in diese Imagemap eingefuegt
+ |* insert areas into Imagemap of the object, if the object has
+ |* such a Imagemap
\************************************************************/
if (pIMapInfo)
{
@@ -1652,15 +1652,15 @@ bool HtmlExport::CreateHtmlForPresPages()
sal_uInt16 nType = pArea->GetType();
String aURL( pArea->GetURL() );
- // ggfs. Seiten- oder Objektnamen umwandeln in den
- // Namen der entsprechenden HTML-Datei
+ // if necessary, convert page and object names into the
+ // corresponding names of the html file
sal_Bool bIsMasterPage;
sal_uInt16 nPgNum = mpDoc->GetPageByName( aURL, bIsMasterPage );
SdrObject* pObj = NULL;
if (nPgNum == SDRPAGE_NOTFOUND)
{
- // Ist das Bookmark ein Objekt?
+ // is the bookmark a object?
pObj = mpDoc->GetObj( aURL );
if (pObj)
nPgNum = pObj->GetPage()->GetPageNum();
@@ -1678,7 +1678,7 @@ bool HtmlExport::CreateHtmlForPresPages()
Rectangle aArea(((IMapRectangleObject*)pArea)->
GetRectangle(false));
- // Umrechnung in Pixelkoordinaten
+ // conversion into pixel coordinates
aArea.Move(aLogPos.X() - pPage->GetLftBorder(),
aLogPos.Y() - pPage->GetUppBorder());
aArea.Left() = (long)(aArea.Left() * fLogicToPixel);
@@ -1717,7 +1717,7 @@ bool HtmlExport::CreateHtmlForPresPages()
default:
{
- DBG_WARNING("unbekannter IMAP_OBJ_Typ");
+ DBG_WARNING("unknown IMAP_OBJ_type");
}
break;
}
@@ -1727,8 +1727,8 @@ bool HtmlExport::CreateHtmlForPresPages()
/*************************************************************
- |* wenn es eine presentation::ClickAction gibt, Bookmark bestimmen und eine
- |* Area fuer das ganze Objekt erzeugen
+ |* if there is a presentation::ClickAction, determine bookmark
+ |* and create area for the whole object
\************************************************************/
if( pInfo )
{
@@ -1745,7 +1745,7 @@ bool HtmlExport::CreateHtmlForPresPages()
if( nPgNum == SDRPAGE_NOTFOUND )
{
- // Ist das Bookmark ein Objekt?
+ // is the bookmark a object?
pObj = mpDoc->GetObj(pInfo->GetBookmark());
if (pObj)
nPgNum = pObj->GetPage()->GetPageNum();
@@ -1796,10 +1796,10 @@ bool HtmlExport::CreateHtmlForPresPages()
break;
}
- // jetzt die Areas
+ // and now the areas
if( aHRef.Len() )
{
- // ein Kreis?
+ // a circle?
if (pObject->GetObjInventor() == SdrInventor &&
pObject->GetObjIdentifier() == OBJ_CIRC &&
bIsSquare )
@@ -1809,7 +1809,7 @@ bool HtmlExport::CreateHtmlForPresPages()
aRect.Top() + nRadius,
aHRef);
}
- // ein Polygon?
+ // a polygon?
else if (pObject->GetObjInventor() == SdrInventor &&
(pObject->GetObjIdentifier() == OBJ_PATHLINE ||
pObject->GetObjIdentifier() == OBJ_PLIN ||
@@ -1817,7 +1817,7 @@ bool HtmlExport::CreateHtmlForPresPages()
{
aStr += CreateHTMLPolygonArea(((SdrPathObj*)pObject)->GetPathPoly(), Size(-pPage->GetLftBorder(), -pPage->GetUppBorder()), fLogicToPixel, aHRef);
}
- // was anderes: das BoundRect nehmen
+ // something completely different: use the BoundRect
else
{
aStr += CreateHTMLRectArea(aRect, aHRef);
@@ -1843,14 +1843,14 @@ bool HtmlExport::CreateHtmlForPresPages()
}
// =====================================================================
-// Uebersichtsseite erzeugen
+// create overview pages
// =====================================================================
bool HtmlExport::CreateContentPage()
{
if( mbDocColors )
SetDocColors();
- // Html Kopf
+ // html head
String aStr(maHTMLHeader);
aStr += WriteMetaCharset();
aStr.AppendAscii( " <title>" );
@@ -1858,7 +1858,7 @@ bool HtmlExport::CreateContentPage()
aStr.AppendAscii( "</title>\r\n</head>\r\n" );
aStr += CreateBodyTag();
- // Seitenkopf
+ // page head
aStr.AppendAscii( "<center>\r\n" );
if(mbHeader)
@@ -1882,7 +1882,7 @@ bool HtmlExport::CreateContentPage()
aStr.AppendAscii( "<center><table width=\"90%\"><tr>\r\n" );
- // Inhaltsverzeichnis
+ // table of content
aStr.AppendAscii( "<td valign=\"top\" align=\"left\" width=\"25%\">\r\n" );
aStr.AppendAscii( "<h3>" );
aStr += RESTOHTML(STR_HTMLEXP_CONTENTS);
@@ -1900,7 +1900,7 @@ bool HtmlExport::CreateContentPage()
}
aStr.AppendAscii( "</td>\r\n" );
- // Dokument Infos
+ // document information
aStr.AppendAscii( "<td valign=\"top\" align=\"left\" width=\"75%\">\r\n" );
if(maAuthor.Len())
@@ -1980,7 +1980,7 @@ bool HtmlExport::CreateContentPage()
}
// =====================================================================
-// Notiz Seiten erzeugen (fuer Frames)
+// create note pages (for frames)
// =====================================================================
bool HtmlExport::CreateNotesPages()
{
@@ -1993,7 +1993,7 @@ bool HtmlExport::CreateNotesPages()
if( mbDocColors )
SetDocColors( pPage );
- // Html Kopf
+ // Html head
String aStr(maHTMLHeader);
aStr += WriteMetaCharset();
aStr.AppendAscii( " <title>" );
@@ -2022,7 +2022,7 @@ bool HtmlExport::CreateNotesPages()
}
// =====================================================================
-// Outline Seiten erzeugen (fuer Frames)
+// create outline pages (for frames)
// =====================================================================
bool HtmlExport::CreateOutlinePages()
{
@@ -2033,10 +2033,10 @@ bool HtmlExport::CreateOutlinePages()
SetDocColors();
}
- // Seite 0 wird der zugeklappte Outline, Seite 1 der aufgeklappte
+ // page 0 will be the closed outline, page 1 the opened
for (sal_Int32 nPage = 0; nPage < (mbImpress?2:1) && bOk; ++nPage)
{
- // Html Kopf
+ // Html head
String aStr(maHTMLHeader);
aStr += WriteMetaCharset();
aStr.AppendAscii( " <title>" );
@@ -2086,18 +2086,18 @@ bool HtmlExport::CreateOutlinePages()
}
// =====================================================================
-// Dateinamen festlegen
+// set file name
// =====================================================================
void HtmlExport::CreateFileNames()
{
- // Listen mit neuen Dateinamen anlegen
+ // create lists with new file names
mpHTMLFiles = new String*[mnSdPageCount];
mpImageFiles = new String*[mnSdPageCount];
mpThumbnailFiles = new String*[mnSdPageCount];
mpPageNames = new String*[mnSdPageCount];
mpTextFiles = new String*[mnSdPageCount];
- mbHeader = false; // Ueberschrift auf Uebersichtsseite?
+ mbHeader = false; // headline on overview page?
for (sal_uInt16 nSdPage = 0; nSdPage < mnSdPageCount; nSdPage++)
{
@@ -2164,8 +2164,8 @@ String HtmlExport::getDocumentTitle()
{
if(mbImpress)
{
- // falls es ein nicht-leeres Titelobjekt gibt, dessen ersten Absatz
- // als Seitentitel benutzen
+ // if there is a non-empty title object, use their first passage
+ // as page title
SdPage* pSdPage = mpDoc->GetSdPage(0, PK_STANDARD);
SdrObject* pTitleObj = pSdPage->GetPresObj(PRESOBJ_TITLE);
if (pTitleObj && !pTitleObj->IsEmptyPresObj())
@@ -2247,7 +2247,7 @@ static const char * JS_CollapseOutline =
"}\r\n\r\n";
// ====================================================================
-// Seite mit den Frames erzeugen
+// create page with the frames
// ====================================================================
bool HtmlExport::CreateFrames()
{
@@ -2355,13 +2355,13 @@ bool HtmlExport::CreateFrames()
}
// ====================================================================
-// Buttonleiste fuer Standard ausgeben
-// Es werden 4 html files erstellt
-// navbar0.htm Navigationsleiste Grafik fuer erste Seite
-// navbar1.htm Navigationsleiste Grafik fuer zweite bis vorletzte Seite
-// navbar2.htm Navigationsleiste Grafik fuer letzte Seite
-// navbar3.htm Navigationsleiste Outline zugeklappt
-// navbar4.htm Navigationsleiste Outline aufgeklappt
+// create button bar for standard
+// we create the following html files
+// navbar0.htm navigation bar graphic for the first page
+// navbar1.htm navigation bar graphic for the second until second last page
+// navbar2.htm navigation bar graphic for the last page
+// navbar3.htm navigation outline closed
+// navbar4.htm navigation outline open
// ====================================================================
bool HtmlExport::CreateNavBarFrames()
{
@@ -2384,7 +2384,7 @@ bool HtmlExport::CreateNavBarFrames()
aStr += CreateBodyTag();
aStr.AppendAscii( "<center>\r\n" );
- // erste Seite
+ // first page
aButton = String(SdResId(STR_HTMLEXP_FIRSTPAGE));
if(mnButtonThema != -1)
aButton = CreateImage(GetButtonName((nFile == 0 || mnSdPageCount == 1?
@@ -2396,7 +2396,7 @@ bool HtmlExport::CreateNavBarFrames()
aStr += aButton;
aStr.AppendAscii( "\r\n" );
- // zur vorherigen Seite
+ // to the previous page
aButton = String(SdResId(STR_PUBLISH_BACK));
if(mnButtonThema != -1)
aButton = CreateImage(GetButtonName((nFile == 0 || mnSdPageCount == 1?
@@ -2408,7 +2408,7 @@ bool HtmlExport::CreateNavBarFrames()
aStr += aButton;
aStr.AppendAscii( "\r\n" );
- // zur naechsten Seite
+ // to the next page
aButton = String(SdResId(STR_PUBLISH_NEXT));
if(mnButtonThema != -1)
aButton = CreateImage(GetButtonName((nFile ==2 || mnSdPageCount == 1?
@@ -2420,7 +2420,7 @@ bool HtmlExport::CreateNavBarFrames()
aStr += aButton;
aStr.AppendAscii( "\r\n" );
- // zur letzten Seite
+ // to the last page
aButton = String(SdResId(STR_HTMLEXP_LASTPAGE));
if(mnButtonThema != -1)
aButton = CreateImage(GetButtonName((nFile ==2 || mnSdPageCount == 1?
@@ -2437,19 +2437,19 @@ bool HtmlExport::CreateNavBarFrames()
aStr += aButton;
aStr.AppendAscii( "\r\n" );
- // Inhalt
+ // content
if (mbContentsPage)
{
aButton = String(SdResId(STR_PUBLISH_OUTLINE));
if(mnButtonThema != -1)
aButton = CreateImage(GetButtonName(BTN_INDEX), aButton);
- // zur Uebersicht
+ // to the overview
aStr += CreateLink(maIndex, aButton, String(RTL_CONSTASCII_USTRINGPARAM("_top")));
aStr.AppendAscii( "\r\n" );
}
- // Textmodus
+ // text mode
if(mbImpress)
{
aButton = String(SdResId(STR_HTMLEXP_SETTEXT));
@@ -2462,7 +2462,7 @@ bool HtmlExport::CreateNavBarFrames()
aStr.AppendAscii( "\r\n" );
}
- // Und fertich...
+ // and finished...
aStr.AppendAscii( "</center>\r\n" );
aStr.AppendAscii( "</body>\r\n</html>" );
@@ -2475,7 +2475,7 @@ bool HtmlExport::CreateNavBarFrames()
mpProgress->SetState(++mnPagesWritten);
}
- // Jetzt kommt die Navigatonsleiste Outliner zugeklappt...
+ // the navigation bar outliner closed...
if(bOk)
{
String aStr(maHTMLHeader);
@@ -2500,7 +2500,7 @@ bool HtmlExport::CreateNavBarFrames()
mpProgress->SetState(++mnPagesWritten);
}
- // ... und jetzt Outliner aufgeklappt
+ // ... and the outliner open
if( bOk )
{
String aStr(maHTMLHeader);
@@ -2529,11 +2529,11 @@ bool HtmlExport::CreateNavBarFrames()
}
// ====================================================================
-// Buttonleiste fuer Standard ausgeben
+// create button bar for standard
// ====================================================================
String HtmlExport::CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const
{
- // Navigationsleiste vorbereiten
+ // prepare button bar
String aStrNavFirst( SdResId(STR_HTMLEXP_FIRSTPAGE) );
String aStrNavPrev( SdResId(STR_PUBLISH_BACK) );
String aStrNavNext( SdResId(STR_PUBLISH_NEXT) );
@@ -2579,7 +2579,7 @@ String HtmlExport::CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const
String aStr( RTL_CONSTASCII_USTRINGPARAM("<center>\r\n")); //<table><tr>\r\n");
- // erste Seite
+ // first page
if(nSdPage > 0)
aStr += CreateLink(bIsText?*mpTextFiles[0]:*mpHTMLFiles[0],aStrNavFirst);
else
@@ -2653,7 +2653,7 @@ bool HtmlExport::CreateBitmaps()
}
// =====================================================================
-// Erzeugt den <body> Tag, inkl. der eingestellten Farbattribute
+// creates the <body> tag, including the specified color attributes
// =====================================================================
String HtmlExport::CreateBodyTag() const
{
@@ -2684,7 +2684,7 @@ String HtmlExport::CreateBodyTag() const
}
// =====================================================================
-// Erzeugt einen Hyperlink
+// creates a hyperlink
// =====================================================================
String HtmlExport::CreateLink( const String& aLink,
const String& aText,
@@ -2705,7 +2705,7 @@ String HtmlExport::CreateLink( const String& aLink,
}
// =====================================================================
-// Erzeugt ein Image-tag
+// creates a image tag
// =====================================================================
String HtmlExport::CreateImage( const String& aImage, const String& aAltText,
sal_Int16 nWidth,
@@ -2745,7 +2745,7 @@ String HtmlExport::CreateImage( const String& aImage, const String& aAltText,
}
// =====================================================================
-// Area fuer Kreis erzeugen; es werden Pixelkoordinaten erwartet
+// create area for a circle; we expect pixel coordinates
// =====================================================================
String HtmlExport::ColorToHTMLString( Color aColor )
{
@@ -2762,7 +2762,7 @@ String HtmlExport::ColorToHTMLString( Color aColor )
}
// =====================================================================
-// Area fuer Kreis erzeugen; es werden Pixelkoordinaten erwartet
+// create area for a circle; we expect pixel coordinates
// =====================================================================
String HtmlExport::CreateHTMLCircleArea( sal_uLong nRadius,
sal_uLong nCenterX,
@@ -2785,7 +2785,7 @@ String HtmlExport::CreateHTMLCircleArea( sal_uLong nRadius,
// =====================================================================
-// Area fuer Polygon erzeugen; es werden Pixelkoordinaten erwartet
+// create area for a polygon; we expect pixel coordinates
// =====================================================================
String HtmlExport::CreateHTMLPolygonArea( const ::basegfx::B2DPolyPolygon& rPolyPolygon,
Size aShift, double fFactor, const String& rHRef ) const
@@ -2804,9 +2804,8 @@ String HtmlExport::CreateHTMLPolygonArea( const ::basegfx::B2DPolyPolygon& rPoly
{
const ::basegfx::B2DPoint aB2DPoint(aPolygon.getB2DPoint(nPoint));
Point aPnt(FRound(aB2DPoint.getX()), FRound(aB2DPoint.getY()));
- // das Koordinaten beziehen sich auf den
- // physikalischen Seitenursprung, nicht auf den
- // Koordinatenursprung
+ // coordinates are relative to the physical page origin, not the
+ // origin of ordinates
aPnt.Move(aShift.Width(), aShift.Height());
aPnt.X() = (long)(aPnt.X() * fFactor);
@@ -2827,7 +2826,7 @@ String HtmlExport::CreateHTMLPolygonArea( const ::basegfx::B2DPolyPolygon& rPoly
}
// =====================================================================
-// Area fuer Rechteck erzeugen; es werden Pixelkoordinaten erwartet
+// create area for a rectangle; we expect pixel coordinates
// =====================================================================
String HtmlExport::CreateHTMLRectArea( const Rectangle& rRect,
const String& rHRef ) const
@@ -2849,8 +2848,7 @@ String HtmlExport::CreateHTMLRectArea( const Rectangle& rRect,
}
// =====================================================================
-// StringToHTMLString, konvertiert einen String in
-// seine HTML-Repraesentation (Umlaute etc.)
+// escapes a string for html
// =====================================================================
String HtmlExport::StringToHTMLString( const String& rString )
{
@@ -2861,7 +2859,7 @@ String HtmlExport::StringToHTMLString( const String& rString )
}
// =====================================================================
-// Erzeugt die URL einer bestimmten Seite
+// creates a url for a specific page
// =====================================================================
String HtmlExport::CreatePageURL( sal_uInt16 nPgNum )
{
@@ -2958,7 +2956,7 @@ bool HtmlExport::CopyScript( const String& rPath, const String& rSource, const S
static const char * ASP_Scripts[] = { "common.inc", "webcast.asp", "show.asp", "savepic.asp", "poll.asp", "editpic.asp" };
-/** erzeugt und speichert die f�r WebShow ben�tigte ASP Scripte */
+/** creates and saves the ASP scripts for WebShow */
bool HtmlExport::CreateASPScripts()
{
for( sal_uInt16 n = 0; n < (sizeof( ASP_Scripts ) / sizeof(char *)); n++ )
@@ -2979,7 +2977,7 @@ bool HtmlExport::CreateASPScripts()
static const char *PERL_Scripts[] = { "webcast.pl", "common.pl", "editpic.pl", "poll.pl", "savepic.pl", "show.pl" };
-/** erzeugt und speichert die f�r WebShow ben�tigte PERL Scripte */
+/** creates and saves the PERL scripts for WebShow */
bool HtmlExport::CreatePERLScripts()
{
for( sal_uInt16 n = 0; n < (sizeof( PERL_Scripts ) / sizeof(char *)); n++ )
@@ -2999,7 +2997,7 @@ bool HtmlExport::CreatePERLScripts()
return true;
}
-/** Erzeugt eine Liste mit den Namen der gespeicherten Images */
+/** creates a list with names of the saved images */
bool HtmlExport::CreateImageFileList()
{
String aStr;
@@ -3021,7 +3019,7 @@ bool HtmlExport::CreateImageFileList()
return bOk;
}
-/** Erzeugt das File mit der aktuellen Seitennumer */
+/** creates a file with the actual page number */
bool HtmlExport::CreateImageNumberFile()
{
String aFull( maExportPath );
@@ -3276,7 +3274,7 @@ sal_uLong EasyFile::close()
if( pMedium )
{
- // uebertragen
+ // transmitted
pMedium->Close();
pMedium->Commit();
commit d97e6d1de52f5b3f1018e63aa78871aea1588b02
Author: Urs Fässler <urs at bitzgi.ch>
Date: Fri Mar 1 11:01:54 2013 +0100
translation of German comments in file sd/source/filter/grf/sdgrffilter.cxx
Change-Id: Ibab526eae24decc208c74173555e75bb00ac50f9
diff --git a/sd/source/filter/grf/sdgrffilter.cxx b/sd/source/filter/grf/sdgrffilter.cxx
index 31f3b57..8a4ac2f 100644
--- a/sd/source/filter/grf/sdgrffilter.cxx
+++ b/sd/source/filter/grf/sdgrffilter.cxx
@@ -224,7 +224,7 @@ sal_Bool SdGRFFilter::Import()
double fGrfWH = (double) aGrfSize.Width() / aGrfSize.Height();
double fWinWH = (double) aPagSize.Width() / aPagSize.Height();
- // Grafik an Pagesize anpassen (skaliert)
+ // adjust graphic to page size (scales)
if( fGrfWH < fWinWH )
{
aGrfSize.Width() = (long) ( aPagSize.Height() * fGrfWH );
@@ -237,7 +237,7 @@ sal_Bool SdGRFFilter::Import()
}
}
- // Ausgaberechteck fuer Grafik setzen
+ // set output rectangle for graphic
aPos.X() = ( ( aPagSize.Width() - aGrfSize.Width() ) >> 1 ) + pPage->GetLftBorder();
aPos.Y() = ( ( aPagSize.Height() - aGrfSize.Height() ) >> 1 ) + pPage->GetUppBorder();
More information about the Libreoffice-commits
mailing list