[Libreoffice-commits] core.git: 4 commits - sd/source svx/source

Laurent Balland-Poirier laurent.balland-poirier at laposte.net
Thu Aug 29 00:35:09 PDT 2013


 sd/source/ui/inc/sdpreslt.hxx    |    2 -
 svx/source/tbxctrls/fillctrl.cxx |   64 ++++++++++++++++-----------------------
 svx/source/tbxctrls/linectrl.cxx |   54 ++++++++++++++++----------------
 3 files changed, 55 insertions(+), 65 deletions(-)

New commits:
commit 65ec892aaa533932f2a2aad2be6d402c4940e686
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date:   Mon Aug 26 20:56:45 2013 +0200

    fdo#39468 Translate German comments
    
    patch for svx/source/tbxctrls/fillctrl.cxx
    
    Change-Id: Ie3fcfa21d19037b001775886fbb187c2773556be

diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx
index 8de3238..aef36ce 100644
--- a/svx/source/tbxctrls/fillctrl.cxx
+++ b/svx/source/tbxctrls/fillctrl.cxx
@@ -191,7 +191,7 @@ void SvxFillToolBoxControl::StateChanged(
         }
         else
         {
-            // leerer oder uneindeutiger Status
+            // empty or ambiguous status
             if( nSID == SID_ATTR_FILL_STYLE )
             {
                 pFillTypeLB->SetNoSelection();
@@ -235,7 +235,7 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
 
         XFillStyle eXFS = (XFillStyle)pStyleItem->GetValue();
 
-        // Pruefen, ob Fuellstil schon vorher aktiv war
+        // Check if the fill style was already active
         //if( eTmpXFS != eXFS )
         if( (XFillStyle) eLastXFS != eXFS )
             pFillControl->SelectFillTypeHdl( NULL );
@@ -259,8 +259,7 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                          pFillAttrLB->GetSelectEntryColor() != aColor )
                         pFillAttrLB->SelectEntry( aColor );
 
-                    // NEU
-                    // Pruefen, ob Eintrag nicht in der Liste ist
+                    // Check if the entry is not in the list
                     if( pFillAttrLB->GetSelectEntryPos() ==
                         LISTBOX_ENTRY_NOTFOUND ||
                         pFillAttrLB->GetSelectEntryColor() != aColor )
@@ -269,7 +268,7 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                         String aTmpStr;
                         if( nCount > 0 )
                         {
-                            //Letzter Eintrag wird auf temporaere Farbe geprueft
+                            // Last entry gets tested against temporary color
                             aTmpStr = pFillAttrLB->GetEntry( nCount - 1 );
                             if(  aTmpStr.GetChar(0) == TMP_STR_BEGIN &&
                                  aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
@@ -286,7 +285,6 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                         //pFillAttrLB->SetUpdateMode( sal_True );
                         pFillAttrLB->SelectEntryPos( nPos );
                     }
-                    // NEU
                 }
                 else
                     pFillAttrLB->SetNoSelection();
@@ -299,15 +297,14 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                 {
                     String aString( pGradientItem->GetName() );
                     pFillAttrLB->SelectEntry( aString );
-                    // NEU
-                    // Pruefen, ob Eintrag nicht in der Liste ist
+                    // Check if the entry is not in the list
                     if( pFillAttrLB->GetSelectEntry() != aString )
                     {
                         sal_uInt16 nCount = pFillAttrLB->GetEntryCount();
                         String aTmpStr;
                         if( nCount > 0 )
                         {
-                            //Letzter Eintrag wird auf temporaeren Eintrag geprueft
+                            // Last entry gets tested against temporary entry
                             aTmpStr = pFillAttrLB->GetEntry( nCount - 1 );
                             if(  aTmpStr.GetChar(0) == TMP_STR_BEGIN &&
                                  aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
@@ -336,7 +333,6 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                         aGradientList.Remove( 0 );
                         delete pEntry;
                     }
-                    // NEU
                 }
                 else
                     pFillAttrLB->SetNoSelection();
@@ -349,15 +345,14 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                 {
                     String aString( pHatchItem->GetName() );
                     pFillAttrLB->SelectEntry( aString );
-                    // NEU
-                    // Pruefen, ob Eintrag nicht in der Liste ist
+                    // Check if the entry is not in the list
                     if( pFillAttrLB->GetSelectEntry() != aString )
                     {
                         sal_uInt16 nCount = pFillAttrLB->GetEntryCount();
                         String aTmpStr;
                         if( nCount > 0 )
                         {
-                            //Letzter Eintrag wird auf temporaeren Eintrag geprueft
+                            // Last entry gets tested against temporary entry
                             aTmpStr = pFillAttrLB->GetEntry( nCount - 1 );
                             if(  aTmpStr.GetChar(0) == TMP_STR_BEGIN &&
                                  aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
@@ -386,7 +381,6 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                         aHatchList.Remove( 0 );
                         delete pEntry;
                     }
-                    // NEU
                 }
                 else
                     pFillAttrLB->SetNoSelection();
@@ -406,15 +400,14 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                     // SvxBitmapListItem aItem( *(const SvxBitmapListItem*)(
                     //  SfxObjectShell::Current()->GetItem( SID_BITMAP_LIST ) ) );
                     pFillAttrLB->SelectEntry( aString );
-                    // NEU
-                    // Pruefen, ob Eintrag nicht in der Liste ist
+                    // Check if the entry is not in the list
                     if( pFillAttrLB->GetSelectEntry() != aString )
                     {
                         sal_uInt16 nCount = pFillAttrLB->GetEntryCount();
                         String aTmpStr;
                         if( nCount > 0 )
                         {
-                            //Letzter Eintrag wird auf temporaeren Eintrag geprueft
+                            // Last entry gets tested against temporary entry
                             aTmpStr = pFillAttrLB->GetEntry( nCount - 1 );
                             if(  aTmpStr.GetChar(0) == TMP_STR_BEGIN &&
                                  aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
@@ -437,7 +430,6 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
                         xBitmapList->Remove( 0 );
                         delete pEntry;
                     }
-                    // NEU
                 }
                 else
                     pFillAttrLB->SetNoSelection();
@@ -445,7 +437,7 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
             break;
 
             default:
-                OSL_FAIL( "Nicht unterstuetzter Flaechentyp" );
+                OSL_FAIL( "Unsupported fill type" );
             break;
         }
     }
@@ -454,7 +446,7 @@ void SvxFillToolBoxControl::Update( const SfxPoolItem* pState )
     {
         XFillStyle eXFS = (XFillStyle) pStyleItem->GetValue();
 
-        // Die Listen haben sich geaendert ?
+        // Does the lists have changed?
         if( pState->ISA( SvxColorListItem ) &&
             eXFS == XFILL_SOLID )
         {
@@ -497,8 +489,8 @@ Window* SvxFillToolBoxControl::CreateItemWindow( Window *pParent )
     if ( GetSlotId() == SID_ATTR_FILL_STYLE )
     {
         pFillControl = new FillControl( pParent );
-        // Damit dem FillControl das SvxFillToolBoxControl bekannt ist
-        // (und um kompatibel zu bleiben)
+        // Thus the FillControl is known by SvxFillToolBoxControl
+        // (and in order to remain compatible)
         pFillControl->SetData( this );
 
         pFillAttrLB = (SvxFillAttrBox*)pFillControl->pLbFillAttr;
@@ -570,16 +562,15 @@ IMPL_LINK( FillControl, SelectFillTypeHdl, ListBox *, pBox )
 {
     XFillStyle  eXFS = (XFillStyle)pLbFillType->GetSelectEntryPos();
 
-    // Spaeter sollte eine Optimierung derart erfolgen, dass die
-    // Listen, bzw. Tables nur dann geloescht und wieder aufgebaut
-    // werden, wenn sich die Listen, bzw. Tables tatsaechlich geaendert
-    // haben (in den LBs natuerlich).
+    // Later, an optimization should be accomplished,
+    // that the lists or tables can only be deleted and rebuilt
+    // when the lists, or tables have actually changed (in the LBs of course).
 
     if ( ( pBox && !pBox->IsTravelSelect() ) || !pBox )
     {
-        // Damit wir in folgendem Fall einen Status anzeigen koennen:
-        // Ein Typ wurde ausgewaehlt aber kein Attribut.
-        // Die Selektion hat genau die gleichen Attribute wie die vorherige.
+        // So that we can show a status in the following case:
+        // One type was selected but no attribute.
+        // The selection has exactly the same attributes as the previous one.
 //      SvxFillToolBoxControl* pControlerItem = (SvxFillToolBoxControl*)GetData();
 //      if( pControlerItem )
 //          pControlerItem->ClearCache();
@@ -654,7 +645,7 @@ IMPL_LINK( FillControl, SelectFillTypeHdl, ListBox *, pBox )
             break;
         }
 
-        if( eXFS != XFILL_NONE ) // Wurde schon erledigt
+        if( eXFS != XFILL_NONE ) // Has already been done
         {
             if ( pBox )
                 pLbFillType->Selected();
@@ -703,8 +694,7 @@ IMPL_LINK( FillControl, SelectFillAttrHdl, ListBox *, pBox )
 
             case XFILL_SOLID:
             {
-                // NEU
-                //Eintrag wird auf temporaere Farbe geprueft
+                // Entry gets tested against temporary color
                 String aTmpStr = pLbFillAttr->GetSelectEntry();
                 if( aTmpStr.GetChar(0) == TMP_STR_BEGIN && aTmpStr.GetChar(aTmpStr.Len()-1) == TMP_STR_END )
                 {
@@ -730,7 +720,7 @@ IMPL_LINK( FillControl, SelectFillAttrHdl, ListBox *, pBox )
                     SvxGradientListItem aItem(
                         *(const SvxGradientListItem*)( pSh->GetItem( SID_GRADIENT_LIST ) ) );
 
-                    if ( nPos < aItem.GetGradientList()->Count() )  // kein temp. Eintrag ?
+                    if ( nPos < aItem.GetGradientList()->Count() )  // no temporary entry?
                     {
                         XGradient aGradient = aItem.GetGradientList()->GetGradient( nPos )->GetGradient();
                         XFillGradientItem aXFillGradientItem( pLbFillAttr->GetSelectEntry(), aGradient );
@@ -753,7 +743,7 @@ IMPL_LINK( FillControl, SelectFillAttrHdl, ListBox *, pBox )
                 {
                     SvxHatchListItem aItem( *(const SvxHatchListItem*)( pSh->GetItem( SID_HATCH_LIST ) ) );
 
-                    if ( nPos < aItem.GetHatchList()->Count() )  // kein temp. Eintrag ?
+                    if ( nPos < aItem.GetHatchList()->Count() )  // no temporary entry?
                     {
                         XHatch aHatch = aItem.GetHatchList()->GetHatch( nPos )->GetHatch();
                         XFillHatchItem aXFillHatchItem( pLbFillAttr->GetSelectEntry(), aHatch );
@@ -777,7 +767,7 @@ IMPL_LINK( FillControl, SelectFillAttrHdl, ListBox *, pBox )
                     SvxBitmapListItem aItem(
                         *(const SvxBitmapListItem*)( pSh->GetItem( SID_BITMAP_LIST ) ) );
 
-                    if ( nPos < aItem.GetBitmapList()->Count() )  // kein temp. Eintrag ?
+                    if ( nPos < aItem.GetBitmapList()->Count() )  // no temporary entry?
                     {
                         const XBitmapEntry* pXBitmapEntry = aItem.GetBitmapList()->GetBitmap(nPos);
                         const XFillBitmapItem aXFillBitmapItem(pLbFillAttr->GetSelectEntry(), pXBitmapEntry->GetGraphicObject());
@@ -810,10 +800,10 @@ IMPL_LINK( FillControl, SelectFillAttrHdl, ListBox *, pBox )
 
 void FillControl::Resize()
 {
-    // Breite der beiden ListBoxen nicht 1/2 : 1/2, sondern 2/5 : 3/5
+    // Width of the two list boxes not 1/2 : 1/2, but 2/5 : 3/5
     long nW = GetOutputSizePixel().Width() / 5;
     long nH = 180;
-    long nSep = 0; // war vorher 4
+    long nSep = 0; // was previously 4
 
     pLbFillType->SetSizePixel( Size( nW * 2 - nSep, nH ) );
     pLbFillAttr->SetPosSizePixel( Point( nW * 2 + nSep, 0 ), Size( nW * 3 - nSep, nH ) );
commit 80b74ef0ce0843f4b114bc33d60f25e459db68d7
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Thu Aug 29 11:26:14 2013 +0400

    fix indentation
    
    Change-Id: Ifc093acc67c8ee15a68dac8bb6a73c5dd21580d1

diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index e250b55..0bc8087 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -114,7 +114,7 @@ void SvxLineStyleToolBoxControl::StateChanged (
         }
         else if ( nSID != SID_DASH_LIST )
         {
-        // no or ambiguous status
+            // no or ambiguous status
             pBox->SetNoSelection();
         }
     }
@@ -131,9 +131,9 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
         SvxLineBox* pBox = (SvxLineBox*)GetToolBox().GetItemWindow( GetId() );
         DBG_ASSERT( pBox, "Window not found!" );
 
-    // Since the timer can strike unexpectedly, it may happen that
-    // the LB is not yet filled. A ClearCache() on the control
-    // in DelayHdl () was unsuccessful.
+        // Since the timer can strike unexpectedly, it may happen that
+        // the LB is not yet filled. A ClearCache() on the control
+        // in DelayHdl () was unsuccessful.
         if( pBox->GetEntryCount() == 0 )
             pBox->FillControl();
 
@@ -175,7 +175,7 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
 
     if ( pState && ( pState->ISA( SvxDashListItem ) ) )
     {
-    // The list of line styles has changed
+        // The list of line styles has changed
         SvxLineBox* pBox = (SvxLineBox*)GetToolBox().GetItemWindow( GetId() );
         DBG_ASSERT( pBox, "Window not found!" );
 
@@ -242,8 +242,8 @@ void SvxLineWidthToolBoxControl::StateChanged(
             {
                 DBG_ASSERT( pState->ISA(XLineWidthItem), "wrong ItemType" );
 
-        // Core-Unit handed over to MetricField
-        // Should not happen in CreateItemWin ()!
+                // Core-Unit handed over to MetricField
+                // Should not happen in CreateItemWin ()!
                 SfxMapUnit eUnit = SFX_MAPUNIT_100TH_MM; // CD!!! GetCoreMetric();
                 pFld->SetCoreUnit( eUnit );
 
@@ -325,7 +325,7 @@ void SvxLineColorToolBoxControl::Update( const SfxPoolItem* pState )
 
         DBG_ASSERT( pBox, "Window not found" );
 
-    // The list of colors (ColorTable) has changed:
+        // The list of colors (ColorTable) has changed:
         ::Color aTmpColor( pBox->GetSelectEntryColor() );
         pBox->Clear();
         pBox->Fill( ( (SvxColorListItem*)pState )->GetColorList() );
@@ -501,8 +501,8 @@ void SvxLineEndWindow::FillValueSet()
 
         long nCount = pLineEndList->Count();
 
-    // First entry: no line end.
-    // An entry is temporarly added to get the UI bitmap
+        // First entry: no line end.
+        // An entry is temporarly added to get the UI bitmap
         basegfx::B2DPolyPolygon aNothing;
         pLineEndList->Insert( new XLineEndEntry( aNothing, SVX_RESSTR( RID_SVXSTR_NONE ) ) );
         pEntry = pLineEndList->GetLineEnd( nCount );
@@ -633,7 +633,7 @@ void SvxLineEndWindow::StateChanged(
 {
     if ( nSID == SID_LINEEND_LIST )
     {
-    // The list of line ends (LineEndList) has changed
+        // The list of line ends (LineEndList) has changed
         if ( pState && pState->ISA( SvxLineEndListItem ))
         {
             pLineEndList = ((SvxLineEndListItem*)pState)->GetLineEndList();
commit db979f70434f3ac01329de425ebf125546bf7e2c
Author: Laurent Balland-Poirier <laurent.balland-poirier at laposte.net>
Date:   Sun Aug 25 20:50:15 2013 +0200

    fdo#39468 translate German comments
    
    patch for svx/source/tbxctrls/linectrl.cxx
    
    Change-Id: If09d98114d7d742731eb2755cfa690b7745f3cd4

diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx
index 6d90f5c..e250b55 100644
--- a/svx/source/tbxctrls/linectrl.cxx
+++ b/svx/source/tbxctrls/linectrl.cxx
@@ -41,7 +41,7 @@ using namespace ::com::sun::star::util;
 using namespace ::com::sun::star::frame;
 using namespace ::com::sun::star::lang;
 
-// Fuer Linienenden-Controller
+// For End Line Controlleer
 #define MAX_LINES 12
 
 // STATIC DATA -----------------------------------------------------------
@@ -114,7 +114,7 @@ void SvxLineStyleToolBoxControl::StateChanged (
         }
         else if ( nSID != SID_DASH_LIST )
         {
-            // kein oder uneindeutiger Status
+        // no or ambiguous status
             pBox->SetNoSelection();
         }
     }
@@ -131,9 +131,9 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
         SvxLineBox* pBox = (SvxLineBox*)GetToolBox().GetItemWindow( GetId() );
         DBG_ASSERT( pBox, "Window not found!" );
 
-        // Da der Timer unerwartet zuschlagen kann, kann es vorkommen, dass
-        // die LB noch nicht gefuellt ist. Ein ClearCache() am Control im
-        // DelayHdl() blieb ohne Erfolg.
+    // Since the timer can strike unexpectedly, it may happen that
+    // the LB is not yet filled. A ClearCache() on the control
+    // in DelayHdl () was unsuccessful.
         if( pBox->GetEntryCount() == 0 )
             pBox->FillControl();
 
@@ -168,14 +168,14 @@ void SvxLineStyleToolBoxControl::Update( const SfxPoolItem* pState )
             break;
 
             default:
-                OSL_FAIL( "Nicht unterstuetzter Linientyp" );
+                OSL_FAIL( "Unsupported type of line" );
                 break;
         }
     }
 
     if ( pState && ( pState->ISA( SvxDashListItem ) ) )
     {
-        // Die Liste der Linienstile hat sich geaendert
+    // The list of line styles has changed
         SvxLineBox* pBox = (SvxLineBox*)GetToolBox().GetItemWindow( GetId() );
         DBG_ASSERT( pBox, "Window not found!" );
 
@@ -240,10 +240,10 @@ void SvxLineWidthToolBoxControl::StateChanged(
 
             if ( eState == SFX_ITEM_AVAILABLE )
             {
-                DBG_ASSERT( pState->ISA(XLineWidthItem), "falscher ItemType" );
+                DBG_ASSERT( pState->ISA(XLineWidthItem), "wrong ItemType" );
 
-                // Core-Unit an MetricField uebergeben
-                // Darf nicht in CreateItemWin() geschehen!
+        // Core-Unit handed over to MetricField
+        // Should not happen in CreateItemWin ()!
                 SfxMapUnit eUnit = SFX_MAPUNIT_100TH_MM; // CD!!! GetCoreMetric();
                 pFld->SetCoreUnit( eUnit );
 
@@ -304,7 +304,7 @@ void SvxLineColorToolBoxControl::StateChanged(
 
             if ( eState == SFX_ITEM_AVAILABLE )
             {
-                DBG_ASSERT( pState->ISA(XLineColorItem), "falscher ItemTyoe" );
+                DBG_ASSERT( pState->ISA(XLineColorItem), "wrong ItemType" );
                 pBox->Update( (const XLineColorItem*) pState );
             }
             else
@@ -325,7 +325,7 @@ void SvxLineColorToolBoxControl::Update( const SfxPoolItem* pState )
 
         DBG_ASSERT( pBox, "Window not found" );
 
-        // Die Liste der Farben (ColorTable) hat sich geaendert:
+    // The list of colors (ColorTable) has changed:
         ::Color aTmpColor( pBox->GetSelectEntryColor() );
         pBox->Clear();
         pBox->Fill( ( (SvxColorListItem*)pState )->GetColorList() );
@@ -404,12 +404,12 @@ void SvxLineEndWindow::implInit()
         if( pItem )
             nLineEndWidth = ( (SfxUInt16Item*) pItem )->GetValue();
     }
-    DBG_ASSERT( pLineEndList.is(), "LineEndList wurde nicht gefunden" );
+    DBG_ASSERT( pLineEndList.is(), "LineEndList not found" );
 
     aLineEndSet.SetSelectHdl( LINK( this, SvxLineEndWindow, SelectHdl ) );
     aLineEndSet.SetColCount( nCols );
 
-    // ValueSet mit Eintraegen der LineEndList fuellen
+    // ValueSet fill with entries of LineEndList
     FillValueSet();
 
     AddStatusListener( OUString( ".uno:LineEndListState" ));
@@ -445,12 +445,12 @@ IMPL_LINK_NOARG(SvxLineEndWindow, SelectHdl)
     {
         pLineEndItem    = new XLineEndItem();
     }
-    else if( nId % 2 ) // LinienAnfang
+    else if( nId % 2 ) // beginning of line
     {
         XLineEndEntry* pEntry = pLineEndList->GetLineEnd( ( nId - 1 ) / 2 - 1 );
         pLineStartItem  = new XLineStartItem( pEntry->GetName(), pEntry->GetLineEnd() );
     }
-    else // LinienEnde
+    else // end of line
     {
         XLineEndEntry* pEntry = pLineEndList->GetLineEnd( nId / 2 - 2 );
         pLineEndItem    = new XLineEndItem( pEntry->GetName(), pEntry->GetLineEnd() );
@@ -501,13 +501,13 @@ void SvxLineEndWindow::FillValueSet()
 
         long nCount = pLineEndList->Count();
 
-        // Erster Eintrag: kein LinienEnde
-        // Temporaer wird ein Eintrag hinzugefuegt, um die UI-Bitmap zu erhalten
+    // First entry: no line end.
+    // An entry is temporarly added to get the UI bitmap
         basegfx::B2DPolyPolygon aNothing;
         pLineEndList->Insert( new XLineEndEntry( aNothing, SVX_RESSTR( RID_SVXSTR_NONE ) ) );
         pEntry = pLineEndList->GetLineEnd( nCount );
         Bitmap aBmp = pLineEndList->GetUiBitmap( nCount );
-        OSL_ENSURE( !aBmp.IsEmpty(), "UI-Bitmap wurde nicht erzeugt" );
+        OSL_ENSURE( !aBmp.IsEmpty(), "UI bitmap was not created" );
 
         aBmpSize = aBmp.GetSizePixel();
         aVD.SetOutputSizePixel( aBmpSize, sal_False );
@@ -524,9 +524,9 @@ void SvxLineEndWindow::FillValueSet()
         for( long i = 0; i < nCount; i++ )
         {
             pEntry = pLineEndList->GetLineEnd( i );
-            DBG_ASSERT( pEntry, "Konnte auf LineEndEntry nicht zugreifen" );
+            DBG_ASSERT( pEntry, "Could not access LineEndEntry" );
             aBmp = pLineEndList->GetUiBitmap( i );
-            OSL_ENSURE( !aBmp.IsEmpty(), "UI-Bitmap wurde nicht erzeugt" );
+            OSL_ENSURE( !aBmp.IsEmpty(), "UI bitmap was not created" );
 
             aVD.DrawBitmap( aPt0, aBmp );
             aLineEndSet.InsertItem( (sal_uInt16)((i+1L)*2L+1L), aVD.GetBitmap( aPt0, aBmpSize ), pEntry->GetName() );
@@ -574,18 +574,18 @@ void SvxLineEndWindow::Resizing( Size& rNewSize )
     aBitmapSize.Height() += 6; //
 
     Size aItemSize = aLineEndSet.CalcItemSizePixel( aBitmapSize );  // -> Member
-    //Size aOldSize = GetOutputSizePixel(); // fuer Breite
+    //Size aOldSize = GetOutputSizePixel(); // for width
 
     sal_uInt16 nItemCount = aLineEndSet.GetItemCount(); // -> Member
 
-    // Spalten ermitteln
+    // identify columns
     long nItemW = aItemSize.Width();
     long nW = rNewSize.Width();
     nCols = (sal_uInt16) std::max( ( (sal_uIntPtr)(( nW + nItemW ) / ( nItemW * 2 ) )),
                                             (sal_uIntPtr) 1L );
     nCols *= 2;
 
-    // Reihen ermitteln
+    // identify lines
     long nItemH = aItemSize.Height();
     long nH = rNewSize.Height();
     nLines = (sal_uInt16) std::max( ( ( nH + nItemH / 2 ) / nItemH ), 1L );
@@ -597,7 +597,7 @@ void SvxLineEndWindow::Resizing( Size& rNewSize )
         nCols = nMaxCols;
     nW = nItemW * nCols;
 
-    // Keine ungerade Anzahl von Spalten
+    // No odd number of columns
     if( nCols % 2 )
         nCols--;
     nCols = std::max( nCols, (sal_uInt16) 2 );
@@ -633,11 +633,11 @@ void SvxLineEndWindow::StateChanged(
 {
     if ( nSID == SID_LINEEND_LIST )
     {
-        // Die Liste der LinienEnden (LineEndList) hat sich geaendert:
+    // The list of line ends (LineEndList) has changed
         if ( pState && pState->ISA( SvxLineEndListItem ))
         {
             pLineEndList = ((SvxLineEndListItem*)pState)->GetLineEndList();
-            DBG_ASSERT( pLineEndList.is(), "LineEndList nicht gefunden" );
+            DBG_ASSERT( pLineEndList.is(), "LineEndList not found" );
 
             aLineEndSet.Clear();
             FillValueSet();
commit cc46a21730b7716df37b247dc621602d6bf8c99f
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Sat Aug 24 23:29:36 2013 +0400

    unused include
    
    Change-Id: I67e58335815cdbff2887a40737302a328623edf2

diff --git a/sd/source/ui/inc/sdpreslt.hxx b/sd/source/ui/inc/sdpreslt.hxx
index 9bf09dd..3eda9f6 100644
--- a/sd/source/ui/inc/sdpreslt.hxx
+++ b/sd/source/ui/inc/sdpreslt.hxx
@@ -20,7 +20,7 @@
 #ifndef SD_PRES_LAYOUT_DLG_HXX
 #define SD_PRES_LAYOUT_DLG_HXX
 
-#include <boost/ptr_container/ptr_vector.hpp>
+#include <vector>
 
 #include <vcl/dialog.hxx>
 #include <vcl/button.hxx>


More information about the Libreoffice-commits mailing list