Lines Matching refs:pSalData
145 SalData* pSalData = GetSalData(); in ImplInitSalGDI() local
148 pSalData->maStockPenColorAry[0] = PALETTERGB( 0, 0, 0 ); in ImplInitSalGDI()
149 pSalData->maStockPenColorAry[1] = PALETTERGB( 0xFF, 0xFF, 0xFF ); in ImplInitSalGDI()
150 pSalData->maStockPenColorAry[2] = PALETTERGB( 0xC0, 0xC0, 0xC0 ); in ImplInitSalGDI()
151 pSalData->maStockPenColorAry[3] = PALETTERGB( 0x80, 0x80, 0x80 ); in ImplInitSalGDI()
152 …pSalData->mhStockPenAry[0] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[0]… in ImplInitSalGDI()
153 …pSalData->mhStockPenAry[1] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[1]… in ImplInitSalGDI()
154 …pSalData->mhStockPenAry[2] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[2]… in ImplInitSalGDI()
155 …pSalData->mhStockPenAry[3] = CreatePen( PS_SOLID, GSL_PEN_WIDTH, pSalData->maStockPenColorAry[3]… in ImplInitSalGDI()
156 pSalData->mnStockPenCount = 4; in ImplInitSalGDI()
158 pSalData->maStockBrushColorAry[0] = PALETTERGB( 0, 0, 0 ); in ImplInitSalGDI()
159 pSalData->maStockBrushColorAry[1] = PALETTERGB( 0xFF, 0xFF, 0xFF ); in ImplInitSalGDI()
160 pSalData->maStockBrushColorAry[2] = PALETTERGB( 0xC0, 0xC0, 0xC0 ); in ImplInitSalGDI()
161 pSalData->maStockBrushColorAry[3] = PALETTERGB( 0x80, 0x80, 0x80 ); in ImplInitSalGDI()
162 pSalData->mhStockBrushAry[0] = CreateSolidBrush( pSalData->maStockBrushColorAry[0] ); in ImplInitSalGDI()
163 pSalData->mhStockBrushAry[1] = CreateSolidBrush( pSalData->maStockBrushColorAry[1] ); in ImplInitSalGDI()
164 pSalData->mhStockBrushAry[2] = CreateSolidBrush( pSalData->maStockBrushColorAry[2] ); in ImplInitSalGDI()
165 pSalData->mhStockBrushAry[3] = CreateSolidBrush( pSalData->maStockBrushColorAry[3] ); in ImplInitSalGDI()
166 pSalData->mnStockBrushCount = 4; in ImplInitSalGDI()
169 pSalData->mpHDCCache = new HDCCache[ CACHESIZE_HDC ]; in ImplInitSalGDI()
170 memset( pSalData->mpHDCCache, 0, CACHESIZE_HDC * sizeof( HDCCache ) ); in ImplInitSalGDI()
173 pSalData->mpTempFontItem = NULL; in ImplInitSalGDI()
209 pSalData->mhDitherDIB = GlobalAlloc( GMEM_FIXED, sizeof( BITMAPINFOHEADER ) + 192 ); in ImplInitSalGDI()
210 pSalData->mpDitherDIB = (BYTE*) GlobalLock( pSalData->mhDitherDIB ); in ImplInitSalGDI()
211 pSalData->mpDitherDiff = new long[ 256 ]; in ImplInitSalGDI()
212 pSalData->mpDitherLow = new BYTE[ 256 ]; in ImplInitSalGDI()
213 pSalData->mpDitherHigh = new BYTE[ 256 ]; in ImplInitSalGDI()
214 pSalData->mpDitherDIBData = pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ); in ImplInitSalGDI()
215 memset( pSalData->mpDitherDIB, 0, sizeof( BITMAPINFOHEADER ) ); in ImplInitSalGDI()
217 BITMAPINFOHEADER* pBIH = (BITMAPINFOHEADER*) pSalData->mpDitherDIB; in ImplInitSalGDI()
226 pSalData->mpDitherDiff[ n ] = n - ( n & 248L ); in ImplInitSalGDI()
229 pSalData->mpDitherLow[ n ] = (BYTE) ( n & 248 ); in ImplInitSalGDI()
232 pSalData->mpDitherHigh[ n ] = (BYTE) Min( pSalData->mpDitherLow[ n ] + 8L, 255L ); in ImplInitSalGDI()
274 pSalData->mhDitherPal = CreatePalette( pLogPal ); in ImplInitSalGDI()
277 if( pSalData->mhDitherPal ) in ImplInitSalGDI()
283 pSalData->mhDitherDIB = GlobalAlloc( GMEM_FIXED, nSize ); in ImplInitSalGDI()
284 pSalData->mpDitherDIB = (BYTE*) GlobalLock( pSalData->mhDitherDIB ); in ImplInitSalGDI()
285 pSalData->mpDitherDiff = new long[ 256 ]; in ImplInitSalGDI()
286 pSalData->mpDitherLow = new BYTE[ 256 ]; in ImplInitSalGDI()
287 pSalData->mpDitherHigh = new BYTE[ 256 ]; in ImplInitSalGDI()
288 …pSalData->mpDitherDIBData = pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ) + ( 256 * sizeof( s… in ImplInitSalGDI()
289 memset( pSalData->mpDitherDIB, 0, sizeof( BITMAPINFOHEADER ) ); in ImplInitSalGDI()
291 BITMAPINFOHEADER* pBIH = (BITMAPINFOHEADER*) pSalData->mpDitherDIB; in ImplInitSalGDI()
292 short* pColors = (short*) ( pSalData->mpDitherDIB + sizeof( BITMAPINFOHEADER ) ); in ImplInitSalGDI()
304 pSalData->mpDitherDiff[ n ] = n % 51L; in ImplInitSalGDI()
307 pSalData->mpDitherLow[ n ] = (BYTE) ( n / 51L ); in ImplInitSalGDI()
310 pSalData->mpDitherHigh[ n ] = (BYTE)Min( pSalData->mpDitherLow[ n ] + 1, 5 ); in ImplInitSalGDI()
324 SalData* pSalData = GetSalData(); in ImplFreeSalGDI() local
328 for ( i = 0; i < pSalData->mnStockPenCount; i++ ) in ImplFreeSalGDI()
329 DeletePen( pSalData->mhStockPenAry[i] ); in ImplFreeSalGDI()
330 for ( i = 0; i < pSalData->mnStockBrushCount; i++ ) in ImplFreeSalGDI()
331 DeleteBrush( pSalData->mhStockBrushAry[i] ); in ImplFreeSalGDI()
334 if ( pSalData->mh50Brush ) in ImplFreeSalGDI()
336 DeleteBrush( pSalData->mh50Brush ); in ImplFreeSalGDI()
337 pSalData->mh50Brush = 0; in ImplFreeSalGDI()
341 if ( pSalData->mh50Bmp ) in ImplFreeSalGDI()
343 DeleteBitmap( pSalData->mh50Bmp ); in ImplFreeSalGDI()
344 pSalData->mh50Bmp = 0; in ImplFreeSalGDI()
347 ImplClearHDCCache( pSalData ); in ImplFreeSalGDI()
348 delete[] pSalData->mpHDCCache; in ImplFreeSalGDI()
351 if ( pSalData->mhDitherPal ) in ImplFreeSalGDI()
353 DeleteObject( pSalData->mhDitherPal ); in ImplFreeSalGDI()
354 pSalData->mhDitherPal = 0; in ImplFreeSalGDI()
358 if ( pSalData->mhDitherDIB ) in ImplFreeSalGDI()
360 GlobalUnlock( pSalData->mhDitherDIB ); in ImplFreeSalGDI()
361 GlobalFree( pSalData->mhDitherDIB ); in ImplFreeSalGDI()
362 pSalData->mhDitherDIB = 0; in ImplFreeSalGDI()
363 delete[] pSalData->mpDitherDiff; in ImplFreeSalGDI()
364 delete[] pSalData->mpDitherLow; in ImplFreeSalGDI()
365 delete[] pSalData->mpDitherHigh; in ImplFreeSalGDI()
379 SalIcon* pIcon = pSalData->mpFirstIcon; in ImplFreeSalGDI()
380 pSalData->mpFirstIcon = NULL; in ImplFreeSalGDI()
391 ImplReleaseTempFonts( *pSalData ); in ImplFreeSalGDI()
556 SalData* pSalData = GetSalData(); in ImplGetCachedDC() local
557 HDCCache* pC = &pSalData->mpHDCCache[ nID ]; in ImplGetCachedDC()
566 if( pSalData->mhDitherPal ) in ImplGetCachedDC()
568 pC->mhDefPal = SelectPalette( pC->mhDC, pSalData->mhDitherPal, TRUE ); in ImplGetCachedDC()
590 SalData* pSalData = GetSalData(); in ImplReleaseCachedDC() local
591 HDCCache* pC = &pSalData->mpHDCCache[ nID ]; in ImplReleaseCachedDC()
1120 SalData* pSalData = GetSalData(); in SetLineColor() local
1121 for ( sal_uInt16 i = 0; i < pSalData->mnStockPenCount; i++ ) in SetLineColor()
1123 if ( nPenColor == pSalData->maStockPenColorAry[i] ) in SetLineColor()
1125 hNewPen = pSalData->mhStockPenAry[i]; in SetLineColor()
1192 SalData* pSalData = GetSalData(); in SetFillColor() local
1204 for ( sal_uInt16 i = 0; i < pSalData->mnStockBrushCount; i++ ) in SetFillColor()
1206 if ( nBrushColor == pSalData->maStockBrushColorAry[ i ] ) in SetFillColor()
1208 hNewBrush = pSalData->mhStockBrushAry[i]; in SetFillColor()
1218 if ( mbPrinter || !pSalData->mhDitherDIB ) in SetFillColor()
1222 if ( 24 == ((BITMAPINFOHEADER*)pSalData->mpDitherDIB)->biBitCount ) in SetFillColor()
1224 BYTE* pTmp = pSalData->mpDitherDIBData; in SetFillColor()
1225 long* pDitherDiff = pSalData->mpDitherDiff; in SetFillColor()
1226 BYTE* pDitherLow = pSalData->mpDitherLow; in SetFillColor()
1227 BYTE* pDitherHigh = pSalData->mpDitherHigh; in SetFillColor()
1240 hNewBrush = CreateDIBPatternBrush( pSalData->mhDitherDIB, DIB_RGB_COLORS ); in SetFillColor()
1251 BYTE* pTmp = pSalData->mpDitherDIBData; in SetFillColor()
1252 long* pDitherDiff = pSalData->mpDitherDiff; in SetFillColor()
1253 BYTE* pDitherLow = pSalData->mpDitherLow; in SetFillColor()
1254 BYTE* pDitherHigh = pSalData->mpDitherHigh; in SetFillColor()
1266 hNewBrush = CreateDIBPatternBrush( pSalData->mhDitherDIB, DIB_PAL_COLORS ); in SetFillColor()