summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStefan Knorr <heinzlesspam@gmail.com>2013-06-26 16:36:20 +0200
committerStefan Knorr <heinzlesspam@gmail.com>2013-07-28 12:17:13 +0200
commit3a4a27c6ee882fae3d08a0e024731f55fbfe067f (patch)
tree40e9129fc04a9526829e9ae05b1aef81b3c2c3f5 /vcl
parent8e4f4fb541277e35aca7d8f210307635f7a81443 (diff)
Few comment translations, commented-out code removal, comment spellcheck
Change-Id: Icd27eb2d11bf6ddd9932a1d0c8c9aa3494962bc8
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/app/saltimer.cxx4
-rw-r--r--vcl/win/source/gdi/salbmp.cxx4
-rw-r--r--vcl/win/source/gdi/salgdi.cxx52
-rw-r--r--vcl/win/source/gdi/salgdi2.cxx4
-rw-r--r--vcl/win/source/gdi/salprn.cxx2
-rw-r--r--vcl/win/source/window/salframe.cxx6
6 files changed, 12 insertions, 60 deletions
diff --git a/vcl/win/source/app/saltimer.cxx b/vcl/win/source/app/saltimer.cxx
index 47d16371d0fe..95ab585e981d 100644
--- a/vcl/win/source/app/saltimer.cxx
+++ b/vcl/win/source/app/saltimer.cxx
@@ -29,7 +29,7 @@
// =======================================================================
-// Maximale Periode
+// maximum period
#define MAX_SYSPERIOD 65533
// =======================================================================
@@ -38,7 +38,7 @@ void ImplSalStartTimer( sal_uLong nMS, sal_Bool bMutex )
{
SalData* pSalData = GetSalData();
- // Remenber the time of the timer
+ // Remember the time of the timer
pSalData->mnTimerMS = nMS;
if ( !bMutex )
pSalData->mnTimerOrgMS = nMS;
diff --git a/vcl/win/source/gdi/salbmp.cxx b/vcl/win/source/gdi/salbmp.cxx
index 2094dc6c8dd0..5bec9899139e 100644
--- a/vcl/win/source/gdi/salbmp.cxx
+++ b/vcl/win/source/gdi/salbmp.cxx
@@ -840,10 +840,10 @@ HANDLE WinSalBitmap::ImplCopyDIBOrDDB( HANDLE hHdl, bool bDIB )
{
BITMAP aBmp;
- // Source-Bitmap nach Groesse befragen
+ // find out size of source bitmap
WIN_GetObject( hHdl, sizeof( BITMAP ), (LPSTR) &aBmp );
- // Destination-Bitmap erzeugen
+ // create destination bitmap
if ( (hCopy = CreateBitmapIndirect( &aBmp )) != 0 )
{
HDC hBmpDC = CreateCompatibleDC( 0 );
diff --git a/vcl/win/source/gdi/salgdi.cxx b/vcl/win/source/gdi/salgdi.cxx
index 86b99be0ea8d..8928d519cc18 100644
--- a/vcl/win/source/gdi/salgdi.cxx
+++ b/vcl/win/source/gdi/salgdi.cxx
@@ -175,7 +175,7 @@ void ImplInitSalGDI()
if ( (nBitCount > 8) && (nBitCount < 24) )
{
- // test, if we have to dither
+ // test if we have to dither
HDC hMemDC = ::CreateCompatibleDC( hDC );
HBITMAP hMemBmp = ::CreateCompatibleBitmap( hDC, 8, 8 );
HBITMAP hBmpOld = (HBITMAP) ::SelectObject( hMemDC, hMemBmp );
@@ -551,7 +551,7 @@ HDC ImplGetCachedDC( sal_uLong nID, HBITMAP hBmp )
{
HDC hDC = GetDC( 0 );
- // create new DC sith DefaultBitmap
+ // create new DC with DefaultBitmap
pC->mhDC = CreateCompatibleDC( hDC );
if( pSalData->mhDitherPal )
@@ -883,7 +883,6 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip )
RectangleVector aRectangles;
i_rClip.GetRegionRectangles(aRectangles);
- //sal_uLong nRectCount = i_rClip.GetRectCount();
sal_uLong nRectBufSize = sizeof(RECT)*aRectangles.size();
if ( aRectangles.size() < SAL_CLIPRECT_COUNT )
{
@@ -956,53 +955,6 @@ bool WinSalGraphics::setClipRegion( const Region& i_rClip )
}
}
- //ImplRegionInfo aInfo;
- //long nX, nY, nW, nH;
- //bool bRegionRect = i_rClip.ImplGetFirstRect(aInfo, nX, nY, nW, nH );
- //while( bRegionRect )
- //{
- // if ( nW && nH )
- // {
- // long nRight = nX + nW;
- // long nBottom = nY + nH;
- //
- // if ( bFirstClipRect )
- // {
- // pBoundRect->left = nX;
- // pBoundRect->top = nY;
- // pBoundRect->right = nRight;
- // pBoundRect->bottom = nBottom;
- // bFirstClipRect = false;
- // }
- // else
- // {
- // if ( nX < pBoundRect->left )
- // pBoundRect->left = (int)nX;
- //
- // if ( nY < pBoundRect->top )
- // pBoundRect->top = (int)nY;
- //
- // if ( nRight > pBoundRect->right )
- // pBoundRect->right = (int)nRight;
- //
- // if ( nBottom > pBoundRect->bottom )
- // pBoundRect->bottom = (int)nBottom;
- // }
- //
- // pNextClipRect->left = (int)nX;
- // pNextClipRect->top = (int)nY;
- // pNextClipRect->right = (int)nRight;
- // pNextClipRect->bottom = (int)nBottom;
- // pNextClipRect++;
- // }
- // else
- // {
- // mpClipRgnData->rdh.nCount--;
- // mpClipRgnData->rdh.nRgnSize -= sizeof( RECT );
- // }
- // bRegionRect = i_rClip.ImplGetNextRect( aInfo, nX, nY, nW, nH );
- //}
-
// create clip region from ClipRgnData
if ( mpClipRgnData->rdh.nCount == 1 )
{
diff --git a/vcl/win/source/gdi/salgdi2.cxx b/vcl/win/source/gdi/salgdi2.cxx
index 2585d136a790..1c8c43a50bcb 100644
--- a/vcl/win/source/gdi/salgdi2.cxx
+++ b/vcl/win/source/gdi/salgdi2.cxx
@@ -151,7 +151,7 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
int nOldClipRgnType = ERROR;
HRGN hInvalidateRgn = 0;
- // do we have to invalidate also the overlaping regions?
+ // do we have to invalidate also the overlapping regions?
if ( (nFlags & SAL_COPYAREA_WINDOWINVALIDATE) && mbWindow )
{
// compute and invalidate those parts that were either off-screen or covered by other windows
@@ -200,7 +200,7 @@ void WinSalGraphics::copyArea( long nDestX, long nDestY,
{
hWndTopWindow = ::GetParent( hWndTopWindow );
- // Test, if the Parent clips our window
+ // Test if the Parent clips our window
GetClientRect( hWndTopWindow, &aTempRect );
POINT aPt2;
aPt2.x = 0;
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index bc9074359a13..5db443aca550 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -261,7 +261,7 @@ OUString WinSalInstance::GetDefaultPrinter()
GetProfileStringA( aImplWindows, aImplDevice, "", szBuffer, sizeof( szBuffer ) );
if ( szBuffer[0] )
{
- // Printername suchen
+ // search for printer name
char* pBuf = szBuffer;
char* pTmp = pBuf;
while ( *pTmp && (*pTmp != ',') )
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index dca67c9704fa..63454c2e5fba 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -3231,7 +3231,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
pSalData->mpMouseLeaveTimer = new AutoTimer;
pSalData->mpMouseLeaveTimer->SetTimeout( SAL_MOUSELEAVE_TIMEOUT );
pSalData->mpMouseLeaveTimer->Start();
- // We dont need to set a timeout handler, because we test
+ // We don't need to set a timeout handler, because we test
// for mouseleave in the timeout callback
}
aMouseEvt.mnButton = 0;
@@ -3251,7 +3251,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
delete pSalData->mpMouseLeaveTimer;
pSalData->mpMouseLeaveTimer = NULL;
}
- // Mouse-Coordinaates are relativ to the screen
+ // Mouse-Coordinates are relative to the screen
POINT aPt;
aPt.x = (short)LOWORD( lParam );
aPt.y = (short)HIWORD( lParam );
@@ -3298,7 +3298,7 @@ static long ImplHandleMouseMsg( HWND hWnd, UINT nMsg,
}
// check if this window was destroyed - this might happen if we are the help window
- // and sent a mouse leave message to the application which killed the help window, ie ourself
+ // and sent a mouse leave message to the application which killed the help window, ie ourselves
if( !IsWindow( hWnd ) )
return 0;