Lines Matching refs:pPrinter
498 static DWORD ImplDeviceCaps( WinSalInfoPrinter* pPrinter, WORD nCaps, in ImplDeviceCaps() argument
509 return DeviceCapabilitiesW( reinterpret_cast<LPCWSTR>(pPrinter->maDeviceName.GetBuffer()), in ImplDeviceCaps()
510 reinterpret_cast<LPCWSTR>(pPrinter->maPortName.GetBuffer()), in ImplDeviceCaps()
521 … return DeviceCapabilitiesA( ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ).GetBuffer(), in ImplDeviceCaps()
522 ImplSalGetWinAnsiString( pPrinter->maPortName, TRUE ).GetBuffer(), in ImplDeviceCaps()
529 static sal_Bool ImplTestSalJobSetup( WinSalInfoPrinter* pPrinter, in ImplTestSalJobSetup() argument
557 if( pPrinter && ( pDevModeA || pDevModeW ) ) in ImplTestSalJobSetup()
563 ByteString aPrinterNameA= ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ); in ImplTestSalJobSetup()
565 …LPWSTR pPrinterNameW = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pPrinter->maDeviceName.Ge… in ImplTestSalJobSetup()
627 (pPrinter->maDriverName == pSetupData->maDriver) && in ImplTestSalJobSetup()
654 static sal_Bool ImplUpdateSalJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetupData, in ImplUpdateSalJobSetup() argument
657 ByteString aPrinterNameA = ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ); in ImplUpdateSalJobSetup()
659 …LPWSTR pPrinterNameW = reinterpret_cast<LPWSTR>(const_cast<sal_Unicode*>(pPrinter->maDeviceName.Ge… in ImplUpdateSalJobSetup()
690 … (LPSTR)ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ).GetBuffer(), in ImplUpdateSalJobSetup()
709 if ( bIn && ImplTestSalJobSetup( pPrinter, pSetupData, FALSE ) ) in ImplUpdateSalJobSetup()
737 … (LPSTR)ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ).GetBuffer(), in ImplUpdateSalJobSetup()
803 static void ImplDevModeToJobSetup( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetupData, sal_uLong… in ImplDevModeToJobSetup() argument
822 sal_uLong nCount = ImplDeviceCaps( pPrinter, DC_BINS, NULL, pSetupData ); in ImplDevModeToJobSetup()
827 ImplDeviceCaps( pPrinter, DC_BINS, (BYTE*)pBins, pSetupData ); in ImplDevModeToJobSetup()
854 sal_uLong nPaperCount = ImplDeviceCaps( pPrinter, DC_PAPERS, NULL, pSetupData ); in ImplDevModeToJobSetup()
856 sal_uLong nPaperSizeCount = ImplDeviceCaps( pPrinter, DC_PAPERSIZE, NULL, pSetupData ); in ImplDevModeToJobSetup()
861 ImplDeviceCaps( pPrinter, DC_PAPERS, (BYTE*)pPapers, pSetupData ); in ImplDevModeToJobSetup()
866 ImplDeviceCaps( pPrinter, DC_PAPERSIZE, (BYTE*)pPaperSizes, pSetupData ); in ImplDevModeToJobSetup()
1071 static void ImplJobSetupToDevMode( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetupData, sal_uLong… in ImplJobSetupToDevMode() argument
1091 sal_uLong nCount = ImplDeviceCaps( pPrinter, DC_BINS, NULL, pSetupData ); in ImplJobSetupToDevMode()
1096 ImplDeviceCaps( pPrinter, DC_BINS, (BYTE*)pBins, pSetupData ); in ImplJobSetupToDevMode()
1269 sal_uLong nPaperCount = ImplDeviceCaps( pPrinter, DC_PAPERS, NULL, pSetupData ); in ImplJobSetupToDevMode()
1271 sal_uLong nPaperSizeCount = ImplDeviceCaps( pPrinter, DC_PAPERSIZE, NULL, pSetupData ); in ImplJobSetupToDevMode()
1273 DWORD nLandscapeAngle = ImplDeviceCaps( pPrinter, DC_ORIENTATION, NULL, pSetupData ); in ImplJobSetupToDevMode()
1277 ImplDeviceCaps( pPrinter, DC_PAPERS, (BYTE*)pPapers, pSetupData ); in ImplJobSetupToDevMode()
1282 ImplDeviceCaps( pPrinter, DC_PAPERSIZE, (BYTE*)pPaperSizes, pSetupData ); in ImplJobSetupToDevMode()
1381 static HDC ImplCreateSalPrnIC( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetupData ) in ImplCreateSalPrnIC() argument
1393 if( pPrinter->maDriverName.Len() > 2048 || pPrinter->maDeviceName.Len() > 2048 ) in ImplCreateSalPrnIC()
1397 …rtl_copyMemory( pDriverName, pPrinter->maDriverName.GetBuffer(), pPrinter->maDriverName.Len()*size… in ImplCreateSalPrnIC()
1398 memset( pDriverName+pPrinter->maDriverName.Len(), 0, 32 ); in ImplCreateSalPrnIC()
1399 …rtl_copyMemory( pDeviceName, pPrinter->maDeviceName.GetBuffer(), pPrinter->maDeviceName.Len()*size… in ImplCreateSalPrnIC()
1400 memset( pDeviceName+pPrinter->maDeviceName.Len(), 0, 32 ); in ImplCreateSalPrnIC()
1413 ByteString aDriver ( ImplSalGetWinAnsiString( pPrinter->maDriverName, TRUE ) ); in ImplCreateSalPrnIC()
1414 ByteString aDevice ( ImplSalGetWinAnsiString( pPrinter->maDeviceName, TRUE ) ); in ImplCreateSalPrnIC()
1459 static sal_Bool ImplUpdateSalPrnIC( WinSalInfoPrinter* pPrinter, ImplJobSetup* pSetupData ) in ImplUpdateSalPrnIC() argument
1461 HDC hNewDC = ImplCreateSalPrnIC( pPrinter, pSetupData ); in ImplUpdateSalPrnIC()
1465 if ( pPrinter->mpGraphics ) in ImplUpdateSalPrnIC()
1467 ImplSalDeInitGraphics( pPrinter->mpGraphics ); in ImplUpdateSalPrnIC()
1468 DeleteDC( pPrinter->mpGraphics->getHDC() ); in ImplUpdateSalPrnIC()
1469 delete pPrinter->mpGraphics; in ImplUpdateSalPrnIC()
1472 pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hNewDC ); in ImplUpdateSalPrnIC()
1473 pPrinter->mhDC = hNewDC; in ImplUpdateSalPrnIC()
1483 WinSalInfoPrinter* pPrinter = new WinSalInfoPrinter; in CreateInfoPrinter() local
1486 pPrinter->maDriverName = pQueueInfo->maDriver; in CreateInfoPrinter()
1487 pPrinter->maDeviceName = pQueueInfo->maPrinterName; in CreateInfoPrinter()
1488 pPrinter->maPortName = pQueueInfo->mpSysData ? in CreateInfoPrinter()
1493 ImplTestSalJobSetup( pPrinter, pSetupData, TRUE ); in CreateInfoPrinter()
1495 HDC hDC = ImplCreateSalPrnIC( pPrinter, pSetupData ); in CreateInfoPrinter()
1498 delete pPrinter; in CreateInfoPrinter()
1502 pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hDC ); in CreateInfoPrinter()
1503 pPrinter->mhDC = hDC; in CreateInfoPrinter()
1505 ImplUpdateSalJobSetup( pPrinter, pSetupData, FALSE, NULL ); in CreateInfoPrinter()
1506 ImplDevModeToJobSetup( pPrinter, pSetupData, SAL_JOBSET_ALL ); in CreateInfoPrinter()
1509 return pPrinter; in CreateInfoPrinter()
1514 void WinSalInstance::DestroyInfoPrinter( SalInfoPrinter* pPrinter ) in DestroyInfoPrinter() argument
1516 delete pPrinter; in DestroyInfoPrinter()
1767 WinSalPrinter* pPrinter = new WinSalPrinter; in CreatePrinter() local
1768 pPrinter->mpInfoPrinter = static_cast<WinSalInfoPrinter*>(pInfoPrinter); in CreatePrinter()
1769 return pPrinter; in CreatePrinter()
1774 void WinSalInstance::DestroyPrinter( SalPrinter* pPrinter ) in DestroyPrinter() argument
1776 delete pPrinter; in DestroyPrinter()
1784 WinSalPrinter* pPrinter; in SalPrintAbortProc() local
1806 pPrinter = pSalData->mpFirstPrinter; in SalPrintAbortProc()
1807 while ( pPrinter ) in SalPrintAbortProc()
1809 if( pPrinter->mhDC == hPrnDC ) in SalPrintAbortProc()
1812 pPrinter = pPrinter->mpNextPrinter; in SalPrintAbortProc()
1815 if ( !pPrinter || pPrinter->mbAbort ) in SalPrintAbortProc()
2240 WinSalPrinter* pPrinter = pSalData->mpFirstPrinter; in ImplSalPrinterAbortJobAsync() local
2243 while ( pPrinter ) in ImplSalPrinterAbortJobAsync()
2245 if ( pPrinter->mhDC == hPrnDC ) in ImplSalPrinterAbortJobAsync()
2248 pPrinter = pPrinter->mpNextPrinter; in ImplSalPrinterAbortJobAsync()
2252 if ( pPrinter ) in ImplSalPrinterAbortJobAsync()
2254 HDC hDC = pPrinter->mhDC; in ImplSalPrinterAbortJobAsync()
2257 if ( pPrinter->mpGraphics ) in ImplSalPrinterAbortJobAsync()
2259 ImplSalDeInitGraphics( pPrinter->mpGraphics ); in ImplSalPrinterAbortJobAsync()
2260 delete pPrinter->mpGraphics; in ImplSalPrinterAbortJobAsync()
2261 pPrinter->mpGraphics = NULL; in ImplSalPrinterAbortJobAsync()
2266 CATCH_DRIVER_EX_END( "exception in AbortDoc", pPrinter ); in ImplSalPrinterAbortJobAsync()
2269 pPrinter->mhDC = 0; in ImplSalPrinterAbortJobAsync()