Kaydet (Commit) 455b403a authored tarafından Luc Castermans's avatar Luc Castermans Kaydeden (comit) Miklos Vajna

translated German comments

Change-Id: I75c7611c36c15fb36e00de239f5b322adb182e73
Reviewed-on: https://gerrit.libreoffice.org/7273Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst ed6b4dc7
......@@ -109,28 +109,28 @@ public:
sal_Bool* pDtorNotify;
AutoTimer aMouseTimer; // recalls MouseMove on dragging out
MouseEvent aRepeatEvt; // a MouseEvent to repeat
Point aLastMousePos; // verhindert pseudo-MouseMoves
Point aLastMousePos; // prevents pseudo-MouseMoves
OUString aRealRowCount; // zur Anzeige im VScrollBar
OUString aRealRowCount; // to show in VScrollBar
RectangleList aInvalidRegion; // invalidated Rectangles during !UpdateMode
bool bInPaint; // TRUE while in Paint
bool bInCommand; // TRUE while in Command
bool bNoScrollBack; // nur vorwaerts scrollen
bool bNoHScroll; // kein horizontaler Scrollbar
bool bNoScrollBack; // only scroll forward
bool bNoHScroll; // no horizontal scrollbar
bool bNoVScroll; // no vertical scrollbar
bool bAutoHScroll; // autohide horizontaler Scrollbar
bool bAutoVScroll; // autohide horizontaler Scrollbar
bool bUpdateMode; // nicht SV-UpdateMode wegen Invalidate()
bool bUpdateMode; // not SV-UpdateMode because of Invalidate()
bool bAutoSizeLastCol; // last column always fills up window
bool bResizeOnPaint; // outstanding resize-event
bool bUpdateOnUnlock; // Update() while locked
bool bInUpdateScrollbars; // Rekursionsschutz
bool bHadRecursion; // Rekursion war aufgetreten
bool bInUpdateScrollbars; // prevents recursions
bool bHadRecursion; // a recursion occured
bool bOwnDataChangedHdl; // dont change colors in DataChanged
bool bCallingDropCallback; // we're in a callback to AcceptDrop or ExecuteDrop curently
sal_uInt16 nUpdateLock; // lock count, dont call Control::Update()!
short nCursorHidden; // new conuter for DoHide/ShowCursor
short nCursorHidden; // new counter for DoHide/ShowCursor
long m_nDragRowDividerLimit;
long m_nDragRowDividerOffset;
......
......@@ -730,7 +730,7 @@ void LineListBox::ImpGetLine( long nLine1, long nLine2, long nDistance,
long nVirHeight = n1+nDist+n2;
if ( nVirHeight > aSize.Height() )
aSize.Height() = nVirHeight;
// negative Breiten muss und darf man nicht painten
// negative width should not be drawn
if ( aSize.Width() > 0 )
{
Size aVirSize = aVirDev.LogicToPixel( aSize );
......@@ -1644,7 +1644,7 @@ void FontStyleBox::Fill( const OUString& rName, const FontList* pList )
}
else
{
// Wenn Font nicht, dann Standard-Styles einfuegen
// insert standard styles if no font
InsertEntry( pList->GetNormalStr() );
InsertEntry( pList->GetItalicStr() );
InsertEntry( pList->GetBoldStr() );
......
......@@ -167,11 +167,10 @@ static OUString ImplMakeSearchStringFromName(const OUString& rStr)
ImplFontListNameInfo* FontList::ImplFind(const OUString& rSearchName, sal_uLong* pIndex) const
{
// Wenn kein Eintrag in der Liste oder der Eintrag groesser ist als
// der Letzte, dann hinten dranhaengen. Wir vergleichen erst mit dem
// letzten Eintrag, da die Liste von VCL auch sortiert zurueckkommt
// und somit die Wahrscheinlichkeit das hinten angehaengt werden muss
// sehr gross ist.
// Append if there is no enty in the list or if the entry is larger
// then the last one. We only compare to the last entry as the list of VCL
// is returned sorted, which increases the probability that appending
// is more likely
sal_uLong nCnt = maEntries.size();
if ( !nCnt )
{
......@@ -193,7 +192,7 @@ ImplFontListNameInfo* FontList::ImplFind(const OUString& rSearchName, sal_uLong*
return const_cast<ImplFontListNameInfo*>(pCmpData);
}
// Fonts in der Liste suchen
// search fonts in the list
const ImplFontListNameInfo* pCompareData;
const ImplFontListNameInfo* pFoundData = NULL;
sal_uLong nLow = 0;
......@@ -253,15 +252,14 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, sal_Bool bAll,
else
nType = FONTLIST_FONTNAMETYPE_PRINTER;
// Alle Fonts vom Device abfragen
// inquire all fonts from the device
int n = pDevice->GetDevFontCount();
sal_uInt16 i;
for( i = 0; i < n; i++ )
{
FontInfo aFontInfo = pDevice->GetDevFont( i );
// Wenn keine Raster-Schriften angezeigt werden sollen,
// dann diese ignorieren
// ignore raster-fonts if they are not to be displayed
if ( !bAll && (aFontInfo.GetType() == TYPE_RASTER) )
continue;
......@@ -341,12 +339,12 @@ void FontList::ImplInsertFonts( OutputDevice* pDevice, sal_Bool bAll,
FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, sal_Bool bAll )
{
// Variablen initialisieren
// initialise variables
mpDev = pDevice;
mpDev2 = pDevice2;
mpSizeAry = NULL;
// Stylenamen festlegen
// store style names
maLight = SVT_RESSTR(STR_SVT_STYLE_LIGHT);
maLightItalic = SVT_RESSTR(STR_SVT_STYLE_LIGHT_ITALIC);
maNormal = SVT_RESSTR(STR_SVT_STYLE_NORMAL);
......@@ -358,8 +356,8 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, sal_Bool bAll
ImplInsertFonts( pDevice, bAll, sal_True );
// Gegebenenfalls muessen wir mit den Bildschirmfonts vergleichen,
// damit dort die eigentlich doppelten auf Equal mappen koennen
// if required compare to the screen fonts
// in order to map the duplicates to Equal
sal_Bool bCompareWindow = sal_False;
if ( !pDevice2 && (pDevice->GetOutDevType() == OUTDEV_PRINTER) )
{
......@@ -376,10 +374,10 @@ FontList::FontList( OutputDevice* pDevice, OutputDevice* pDevice2, sal_Bool bAll
FontList::~FontList()
{
// Gegebenenfalls SizeArray loeschen
// delete SizeArray if required
delete[] mpSizeAry;
// FontInfos loeschen
// delete FontInfos
ImplFontListFontInfo *pTemp, *pInfo;
boost::ptr_vector<ImplFontListNameInfo>::iterator it;
for (it = maEntries.begin(); it != maEntries.end(); ++it)
......@@ -450,8 +448,7 @@ OUString FontList::GetStyleName(const FontInfo& rInfo) const
FontWeight eWeight = rInfo.GetWeight();
FontItalic eItalic = rInfo.GetItalic();
// Nur wenn kein StyleName gesetzt ist, geben wir einen syntetischen
// Namen zurueck
// return synthetic Name if no StyleName was set
if (aStyleName.isEmpty())
aStyleName = GetStyleName(eWeight, eItalic);
else
......@@ -577,7 +574,7 @@ namespace
FontWeight eWeight, FontItalic eItalic)
{
FontInfo aInfo;
// Falls der Fontname stimmt, uebernehmen wir soviel wie moeglich
// if the fontname matches, we copy as much as possible
if (pFontNameInfo)
{
aInfo = *pFontNameInfo;
......@@ -618,8 +615,7 @@ FontInfo FontList::Get(const OUString& rName, const OUString& rStyleName) const
}
}
// Konnten die Daten nicht gefunden werden, dann muessen bestimmte
// Attribute nachgebildet werden
// reproduce attributes if data could not be found
FontInfo aInfo;
if ( !pFontInfo )
{
......@@ -703,8 +699,7 @@ FontInfo FontList::Get(const OUString& rName,
}
}
// Konnten die Daten nicht gefunden werden, dann muessen bestimmte
// Attribute nachgebildet werden
// reproduce attributes if data could not be found
FontInfo aInfo;
if ( !pFontInfo )
aInfo = makeMissing(pFontNameInfo, rName, eWeight, eItalic);
......@@ -764,19 +759,18 @@ const FontInfo& FontList::GetFontInfo( sal_Handle hFontInfo ) const
const sal_IntPtr* FontList::GetSizeAry( const FontInfo& rInfo ) const
{
// Size-Array vorher loeschen
// first delete Size-Array
if ( mpSizeAry )
{
delete[] ((FontList*)this)->mpSizeAry;
((FontList*)this)->mpSizeAry = NULL;
}
// Falls kein Name, dann Standardgroessen
// use standarad sizes if no name
if ( rInfo.GetName().isEmpty() )
return aStdSizeAry;
// Zuerst nach dem Fontnamen suchen um das Device dann von dem
// entsprechenden Font zu nehmen
// first search fontname in order to use device from the matching font
OutputDevice* pDevice = mpDev;
ImplFontListNameInfo* pData = ImplFindByName( rInfo.GetName() );
if ( pData )
......
......@@ -125,8 +125,8 @@ void FileControl::StateChanged( StateChangedType nType )
else if ( nType == STATE_CHANGE_CONTROLFONT )
{
GetEdit().SetControlFont( GetControlFont() );
// Fuer den Button nur die Hoehe uebernehmen, weil in
// HTML immer Courier eingestellt wird.
// Only use height of the button, as in HTML
// always Courier is used
Font aFont = GetButton().GetControlFont();
aFont.SetSize( GetControlFont().GetSize() );
GetButton().SetControlFont( aFont );
......
......@@ -183,7 +183,7 @@ Rectangle HeaderBar::ImplGetItemRect( sal_uInt16 nPos ) const
{
Rectangle aRect( ImplGetItemPos( nPos ), 0, 0, mnDY-1 );
aRect.Right() = aRect.Left() + (*mpItemList)[ nPos ]->mnSize - 1;
// Gegen Ueberlauf auf einigen Systemen testen
// check for overflow on various systems
if ( aRect.Right() > 16000 )
aRect.Right() = 16000;
return aRect;
......@@ -317,11 +317,11 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
Rectangle aRect = rItemRect;
// Wenn kein Platz, dann brauchen wir auch nichts ausgeben
// do not display if there is no space
if ( aRect.GetWidth() <= 1 )
return;
// Feststellen, ob Rectangle ueberhaupt sichtbar
// check of rectangle is visible
if ( pRect )
{
if ( aRect.Right() < pRect->Left() )
......@@ -351,11 +351,11 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
}
else
{
// Border muss nicht gemalt werden
// do not draw border
aRect.Top() += mnBorderOff1;
aRect.Bottom() -= mnBorderOff2;
// Hintergrund loeschen
// delete background
if ( !pRect || bDrag )
{
if ( bDrag )
......@@ -384,12 +384,12 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
}
else
{
// Trennlinie malen
// draw separation line
pDev->SetLineColor( rStyleSettings.GetDarkShadowColor() );
pDev->DrawLine( Point( aRect.Right(), aRect.Top() ),
Point( aRect.Right(), aRect.Bottom() ) );
// ButtonStyle malen
// draw ButtonStyle
// avoid 3D borders
if( bHigh )
DrawSelectionBackground( aRect, 1, sal_True, sal_False, sal_False, &aSelectionTextColor );
......@@ -397,11 +397,11 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
DrawSelectionBackground( aRect, 0, sal_True, sal_False, sal_False, &aSelectionTextColor );
}
// Wenn kein Platz, dann brauchen wir auch nichts ausgeben
// do not draw if there is no space
if ( aRect.GetWidth() < 1 )
return;
// Positionen und Groessen berechnen und Inhalt ausgeben
// calculate size and position and draw content
pItem->maOutText = pItem->maText;
Size aImageSize = pItem->maImage.GetSizePixel();
Size aTxtSize( pDev->GetTextWidth( pItem->maOutText ), 0 );
......@@ -411,7 +411,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
if ( nBits & (HIB_UPARROW | HIB_DOWNARROW) )
nArrowWidth = HEAD_ARROWSIZE2+HEADERBAR_ARROWOFF;
// Wenn kein Platz fuer Image, dann nicht ausgeben
// do not draw if there is not enough space for the image
long nTestHeight = aImageSize.Height();
if ( !(nBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE)) )
nTestHeight += aTxtSize.Height();
......@@ -421,7 +421,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
aImageSize.Height() = 0;
}
// Text auf entsprechende Laenge kuerzen
// cut text to correct length
sal_Bool bLeftText = sal_False;
long nMaxTxtWidth = aRect.GetWidth()-(HEADERBAR_TEXTOFF*2)-nArrowWidth;
if ( nBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE) )
......@@ -446,7 +446,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
}
}
// Text/Imageposition berechnen
// calculate text/imageposition
long nTxtPos;
if ( !bLeftText && (nBits & HIB_RIGHT) )
{
......@@ -481,7 +481,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
nTxtPos += nArrowWidth;
}
// TextPosition berechnen
// calculate text/imageposition
long nTxtPosY = 0;
if ( !pItem->maOutText.isEmpty() || (nArrowWidth && aTxtSize.Height()) )
{
......@@ -504,7 +504,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
}
}
// Text ausgebeben
// display text
if (!pItem->maOutText.isEmpty())
{
if( aSelectionTextColor != Color( COL_TRANSPARENT ) )
......@@ -520,7 +520,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
pDev->Pop();
}
// Wenn Image vorhanden, Position berechnen und ausgeben
// calculate the position and draw image if it is available
long nImagePosY = 0;
if ( aImageSize.Width() && aImageSize.Height() )
{
......@@ -586,7 +586,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
nArrowX += aImageSize.Width();
}
// Feststellen, ob Platz genug ist, das Item zu malen
// is there enough space to draw the item?
sal_Bool bDraw = sal_True;
if ( nArrowX < aRect.Left()+HEADERBAR_TEXTOFF )
bDraw = sal_False;
......@@ -650,7 +650,7 @@ void HeaderBar::ImplDrawItem( OutputDevice* pDev,
}
}
// Gegebenenfalls auch UserDraw aufrufen
// all UserDraw if required
if ( nBits & HIB_USERDRAW )
{
Region aRegion( aRect );
......@@ -795,7 +795,7 @@ void HeaderBar::ImplDrag( const Point& rMousePos )
else
bNewOutDrag = sal_True;
// Evt. ItemDrag anschalten
// if needed switch on ItemDrag
if ( bNewOutDrag && mbDragable && !mbItemDrag &&
!((*mpItemList)[ nPos ]->mnBits & HIB_FIXEDPOS) )
{
......@@ -829,7 +829,7 @@ void HeaderBar::ImplDrag( const Point& rMousePos )
mnItemDragPos = GetItemCount()-1;
}
// Nicht verschiebbare Items aussparen
// do not use non-movable items
if ( mnItemDragPos < nPos )
{
while ( ((*mpItemList)[ mnItemDragPos ]->mnBits & HIB_FIXEDPOS) &&
......@@ -1076,7 +1076,7 @@ void HeaderBar::Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize,
{
aItemRect.Left() = aRect.Left()+ImplGetItemPos( i );
aItemRect.Right() = aItemRect.Left() + (*mpItemList)[ i ]->mnSize - 1;
// Gegen Ueberlauf auf einigen Systemen testen
// check for overflow on some systems
if ( aItemRect.Right() > 16000 )
aItemRect.Right() = 16000;
Region aRegion( aRect );
......@@ -1133,9 +1133,8 @@ void HeaderBar::RequestHelp( const HelpEvent& rHEvt )
if ( aStr.isEmpty() || !(rHEvt.GetMode() & HELPMODE_BALLOON) )
{
ImplHeadItem* pItem = (*mpItemList)[ GetItemPos( nItemId ) ];
// Wir zeigen die Quick-Hilfe nur an, wenn Text nicht
// vollstaendig sichtbar, ansonsten zeigen wir den Hilfetext
// an, wenn das Item keinen Text besitzt
// Quick-help is only displayed if the text is not fully visible.
// Otherwise we display Helptext only if the items do not contain text
if ( pItem->maOutText != pItem->maText )
aStr = pItem->maText;
else if (!pItem->maText.isEmpty())
......@@ -1156,7 +1155,7 @@ void HeaderBar::RequestHelp( const HelpEvent& rHEvt )
OUString aHelpId( OStringToOUString( GetHelpId( nItemId ), RTL_TEXTENCODING_UTF8 ) );
if ( !aHelpId.isEmpty() )
{
// Wenn eine Hilfe existiert, dann ausloesen
// display it if help is available
Help* pHelp = Application::GetHelp();
if ( pHelp )
pHelp->Start( aHelpId, this );
......@@ -1260,7 +1259,7 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, const OUString& rText,
DBG_ASSERT( GetItemPos( nItemId ) == HEADERBAR_ITEM_NOTFOUND,
"HeaderBar::InsertItem(): ItemId already exists" );
// Item anlegen und in die Liste einfuegen
// create item and insert in the list
ImplHeadItem* pItem = new ImplHeadItem;
pItem->mnId = nItemId;
pItem->mnBits = nBits;
......@@ -1274,7 +1273,7 @@ void HeaderBar::InsertItem( sal_uInt16 nItemId, const OUString& rText,
mpItemList->push_back( pItem );
}
// Ausgabe updaten
// update display
ImplUpdate( nPos, sal_True );
}
......@@ -1320,7 +1319,7 @@ void HeaderBar::MoveItem( sal_uInt16 nItemId, sal_uInt16 nNewPos )
void HeaderBar::Clear()
{
// Alle Items loeschen
// delete all items
for ( size_t i = 0, n = mpItemList->size(); i < n; ++i ) {
delete (*mpItemList)[ i ];
}
......@@ -1333,7 +1332,7 @@ void HeaderBar::Clear()
void HeaderBar::SetOffset( long nNewOffset )
{
// Bereich verschieben
// move area
Rectangle aRect( 0, mnBorderOff1, mnDX-1, mnDY-mnBorderOff1-mnBorderOff2-1 );
long nDelta = mnOffset-nNewOffset;
mnOffset = nNewOffset;
......@@ -1511,21 +1510,21 @@ Size HeaderBar::CalcWindowSizePixel() const
for ( size_t i = 0, n = mpItemList->size(); i < n; ++i )
{
ImplHeadItem* pItem = (*mpItemList)[ i ];
// Image-Groessen beruecksichtigen
// take image size into account
long nImageHeight = pItem->maImage.GetSizePixel().Height();
if ( !(pItem->mnBits & (HIB_LEFTIMAGE | HIB_RIGHTIMAGE)) && !pItem->maText.isEmpty() )
nImageHeight += aSize.Height();
if ( nImageHeight > nMaxImageSize )
nMaxImageSize = nImageHeight;
// Breite aufaddieren
// add width
aSize.Width() += pItem->mnSize;
}
if ( nMaxImageSize > aSize.Height() )
aSize.Height() = nMaxImageSize;
// Border aufaddieren
// add border
if ( mbButtonStyle )
aSize.Height() += 4;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment