fdo#39468: Translated German comments in vcl/{inc,win}

Change-Id: I1b11872dd56d93b116a65ac2e3905f751cfafeeb
Signed-off-by: Philipp Riemer <ruderphilipp@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/2447
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Tested-by: Michael Meeks <michael.meeks@suse.com>
This commit is contained in:
Christian M. Heller
2013-02-24 11:30:51 -05:00
committed by Michael Meeks
parent 4777e73564
commit 02a985013e
3 changed files with 57 additions and 70 deletions

View File

@@ -87,10 +87,7 @@ struct ConvertData;
#define EMF_SHORTNAME "EMF" #define EMF_SHORTNAME "EMF"
#define SVG_SHORTNAME "SVG" #define SVG_SHORTNAME "SVG"
// ------------------------------------ // Info class for all supported file formats
// - Info-Klasse fuer alle von uns
// unterstuetzten Grafik-Fileformate
// ------------------------------------
#define GFF_NOT ( (sal_uInt16)0x0000 ) #define GFF_NOT ( (sal_uInt16)0x0000 )
#define GFF_BMP ( (sal_uInt16)0x0001 ) #define GFF_BMP ( (sal_uInt16)0x0001 )
@@ -169,50 +166,48 @@ class VCL_DLLPUBLIC GraphicDescriptor
public: public:
// Ctor, um einen Filenamen zu setzen. Es muss ::Detect() gerufen werden, /** Ctor to set a filename
// um das File zu identifizieren;
// wenn das File keinen eindeutigen Header besitzt ( Mtf's ) wird das ::Detect() must be called to identify the file
// Format anhand der Extension bestimmt If the file has no unique header (Mtf's), the format
is determined from the extension */
GraphicDescriptor( const INetURLObject& rPath ); GraphicDescriptor( const INetURLObject& rPath );
// Ctor, um einen Stream zu setzen. Es muss ::Detect() gerufen werden, /** Ctor using a stream
// um das File zu identifizieren;
// da einige Formate ( Mtf's ) keinen eindeutigen Header besitzen, ::Detect() must be called to identify the file
// ist es sinnvoll den Filenamen (inkl. Ext. ) mitanzugeben, As some formats (Mtf's) do not have a unique header, it makes sense
// da so das Format ueber die Extension ermittelt werden kann to supply the file name (incl. ext.), so that the format can be
derived from the extension */
GraphicDescriptor( SvStream& rInStream, const String* pPath = NULL ); GraphicDescriptor( SvStream& rInStream, const String* pPath = NULL );
// Dtor
virtual ~GraphicDescriptor(); virtual ~GraphicDescriptor();
// Startet die Detektion; /** starts the detection
// bei bExtendedInfo == sal_True werden soweit wie moeglich
// Daten aus dem jeweiligen FileHeader ermittelt if bExtendedInfo == sal_True the file header is used to derive
// ( Groesse, Farbtiefe usw. ) as many properties as possible (size, color, etc.) */
virtual sal_Bool Detect( sal_Bool bExtendedInfo = sal_False ); virtual sal_Bool Detect( sal_Bool bExtendedInfo = sal_False );
// liefert das Fileformat nach erfolgreicher Detektion zurueck; /** @return the file format, GFF_NOT if no format was recognized */
// wenn kein Format erkannt wurde, ist das Formart GFF_NOT
sal_uInt16 GetFileFormat() const { return nFormat; } sal_uInt16 GetFileFormat() const { return nFormat; }
// liefert die Pixel-Bildgroesse oder 0-Size zurueck /** @return graphic size in pixels or 0 size */
const Size& GetSizePixel() const { return (Size&) aPixSize; } const Size& GetSizePixel() const { return (Size&) aPixSize; }
// liefert die logische Bildgroesse in 1/100mm oder 0-Size zurueck /** @return the logical graphic size in 1/100mm or 0 size */
const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; } const Size& GetSize_100TH_MM() const { return (Size&) aLogSize; }
// liefert die Bits/Pixel oder 0 zurueck /** @return bits/pixel or 0 **/
sal_uInt16 GetBitsPerPixel() const { return nBitsPerPixel; } sal_uInt16 GetBitsPerPixel() const { return nBitsPerPixel; }
// liefert die Anzahl der Planes oder 0 zurueck /** return number of planes or 0 */
sal_uInt16 GetPlanes() const { return nPlanes; } sal_uInt16 GetPlanes() const { return nPlanes; }
// zeigt an, ob das Bild evtl. komprimiert (wie auch immer) ist /** @return true if the graphic is compressed */
sal_Bool IsCompressed() const { return bCompressed; } sal_Bool IsCompressed() const { return bCompressed; }
// gibt die Filternummer des Filters zurueck, /** @return filter number that is needed by the GraphFilter to read this format */
// der im GraphicFilter zum Lesen dieses Formats
// benoetigt wird
static String GetImportFormatShortName( sal_uInt16 nFormat ); static String GetImportFormatShortName( sal_uInt16 nFormat );
}; };

View File

@@ -24,29 +24,26 @@
#include <vcl/window.hxx> #include <vcl/window.hxx>
/************************************************************************* /*************************************************************************
*
Beschreibung * class ProgressBar
============ *
* this class is used to display the ProgressBar
class ProgressBar *
* -----------------------------------------------------------------------
Diese Klasse dient zur Anzeige einer Progress-Anzeige. *
* WinBits
-------------------------------------------------------------------------- *
* WB_BORDER border around the window
WinBits * WB_3DLOOK 3D representation
*
WB_BORDER Border um das Fenster * -----------------------------------------------------------------------
WB_3DLOOK 3D-Darstellung *
* Methodes
-------------------------------------------------------------------------- *
* Use SetValue() to set a percentage between 0 and 100. A value larger
Methoden * than 100 will cause the last rectangle to start flashing
*
Mit SetValue() setzt man einen Prozent-Wert zwischen 0 und 100. Wenn Werte ************************************************************************/
groesser 100 gesetzt werden, faengt das letzte Rechteck an zu blinken.
*************************************************************************/
// ----------- // -----------
// - WinBits - // - WinBits -

View File

@@ -41,7 +41,7 @@ static sal_Bool ImplIsSysWindowOrChild( HWND hWndParent, HWND hWndChild )
HWND hTempWnd = ::GetParent( hWndChild ); HWND hTempWnd = ::GetParent( hWndChild );
while ( hTempWnd ) while ( hTempWnd )
{ {
// Ab nicht Child-Fenstern hoeren wir auf zu suchen // stop searching if not a child window
if ( !(GetWindowStyle( hTempWnd ) & WS_CHILD) ) if ( !(GetWindowStyle( hTempWnd ) & WS_CHILD) )
return FALSE; return FALSE;
if ( hTempWnd == hWndParent ) if ( hTempWnd == hWndParent )
@@ -129,8 +129,7 @@ LRESULT CALLBACK SalSysMsgProc( int nCode, WPARAM wParam, LPARAM lParam )
pObject = ImplFindSalObject( pData->hwnd ); pObject = ImplFindSalObject( pData->hwnd );
if ( pObject && !ImplFindSalObject( (HWND)pData->wParam ) ) if ( pObject && !ImplFindSalObject( (HWND)pData->wParam ) )
{ {
// LoseFocus nur rufen, wenn wirklich kein ChildFenster // only call LoseFocus, if truly no child window gets the focus
// den Focus bekommt
if ( !pData->wParam || !ImplFindSalObject( (HWND)pData->wParam ) ) if ( !pData->wParam || !ImplFindSalObject( (HWND)pData->wParam ) )
{ {
if ( ImplSalYieldMutexTryToAcquire() ) if ( ImplSalYieldMutexTryToAcquire() )
@@ -172,11 +171,9 @@ sal_Bool ImplSalPreDispatchMsg( MSG* pMsg )
if ( (pMsg->message == WM_KEYDOWN) || if ( (pMsg->message == WM_KEYDOWN) ||
(pMsg->message == WM_KEYUP) ) (pMsg->message == WM_KEYUP) )
{ {
// KeyEvents wollen wir nach Moeglichkeit auch abarbeiten, // process KeyEvents even if the control does not process them itself
// wenn das Control diese nicht selber auswertet // SysKeys are processed as WM_SYSCOMMAND
// SysKeys werden als WM_SYSCOMMAND verarbeitet // Char-Events are not processed, as they are not accelerator-relevant
// Char-Events verarbeiten wir nicht, da wir nur
// Accelerator relevante Keys verarbeiten wollen
sal_Bool bWantedKeyCode = FALSE; sal_Bool bWantedKeyCode = FALSE;
// A-Z, 0-9 nur in Verbindung mit Control-Taste // A-Z, 0-9 nur in Verbindung mit Control-Taste
if ( ((pMsg->wParam >= 65) && (pMsg->wParam <= 90)) || if ( ((pMsg->wParam >= 65) && (pMsg->wParam <= 90)) ||
@@ -200,7 +197,7 @@ sal_Bool ImplSalPreDispatchMsg( MSG* pMsg )
ImplSalYieldMutexRelease(); ImplSalYieldMutexRelease();
} }
} }
// Hier WM_SYSCHAR abfangen, um mit Alt+Taste evtl. Menu zu aktivieren // check WM_SYSCHAR, to activate menu with Alt key
else if ( pMsg->message == WM_SYSCHAR ) else if ( pMsg->message == WM_SYSCHAR )
{ {
pSalData->mnSalObjWantKeyEvt = 0; pSalData->mnSalObjWantKeyEvt = 0;
@@ -362,9 +359,8 @@ LRESULT CALLBACK SalSysObjWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM l
CREATESTRUCTA* pStruct = (CREATESTRUCTA*)lParam; CREATESTRUCTA* pStruct = (CREATESTRUCTA*)lParam;
pSysObj = (WinSalObject*)pStruct->lpCreateParams; pSysObj = (WinSalObject*)pStruct->lpCreateParams;
SetSalObjWindowPtr( hWnd, pSysObj ); SetSalObjWindowPtr( hWnd, pSysObj );
// HWND schon hier setzen, da schon auf den Instanzdaten // set HWND already here,
// gearbeitet werden kann, wenn Messages waehrend // as instance data might be used during CreateWindow() events
// CreateWindow() gesendet werden
pSysObj->mhWnd = hWnd; pSysObj->mhWnd = hWnd;
rDef = FALSE; rDef = FALSE;
} }
@@ -400,7 +396,7 @@ LRESULT CALLBACK SalSysObjChildWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPA
switch( nMsg ) switch( nMsg )
{ {
// Wegen PlugIn's loeschen wir erstmal den Hintergrund // clear background for plugins
case WM_ERASEBKGND: case WM_ERASEBKGND:
{ {
WinSalObject* pSysObj = GetSalObjWindowPtr( ::GetParent( hWnd ) ); WinSalObject* pSysObj = GetSalObjWindowPtr( ::GetParent( hWnd ) );
@@ -480,7 +476,7 @@ SalObject* ImplSalCreateObject( WinSalInstance* pInst, WinSalFrame* pParent )
{ {
SalData* pSalData = GetSalData(); SalData* pSalData = GetSalData();
// Hook installieren, wenn es das erste SalObject ist // install hook, if it is the first SalObject
if ( !pSalData->mpFirstObject ) if ( !pSalData->mpFirstObject )
{ {
pSalData->mhSalObjMsgHook = SetWindowsHookExW( WH_CALLWNDPROC, pSalData->mhSalObjMsgHook = SetWindowsHookExW( WH_CALLWNDPROC,
@@ -599,7 +595,7 @@ WinSalObject::~WinSalObject()
{ {
pSalData->mpFirstObject = mpNextObject; pSalData->mpFirstObject = mpNextObject;
// Wenn letztes SalObject, dann Hook wieder entfernen // remove hook, if it is the last SalObject
if ( !pSalData->mpFirstObject ) if ( !pSalData->mpFirstObject )
UnhookWindowsHookEx( pSalData->mhSalObjMsgHook ); UnhookWindowsHookEx( pSalData->mhSalObjMsgHook );
} }
@@ -622,9 +618,8 @@ WinSalObject::~WinSalObject()
if ( mhWnd ) if ( mhWnd )
DestroyWindow( mhWnd ); DestroyWindow( mhWnd );
// Palette wieder zuruecksetzen, wenn kein externes Child-Fenster // reset palette, if no external child window is left,
// mehr vorhanden ist, da diese unsere Palette ueberschrieben haben // as they might have overwritten our palette
// koennen
if ( hWndParent && if ( hWndParent &&
::GetActiveWindow() == hWndParent && ::GetActiveWindow() == hWndParent &&
!GetWindow( hWndParent, GW_CHILD ) ) !GetWindow( hWndParent, GW_CHILD ) )
@@ -712,7 +707,7 @@ void WinSalObject::EndSetClipRegion()
{ {
HRGN hRegion; HRGN hRegion;
// Aus den Region-Daten muessen wir jetzt eine ClipRegion erzeugen // create a ClipRegion from the Region data
if ( mpClipRgnData->rdh.nCount == 1 ) if ( mpClipRgnData->rdh.nCount == 1 )
{ {
RECT* pRect = &(mpClipRgnData->rdh.rcBound); RECT* pRect = &(mpClipRgnData->rdh.rcBound);