diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-04 16:28:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-08-05 09:39:22 +0000 |
commit | 403c13487c36f4200adf0986c5d11398f719cd7a (patch) | |
tree | 21a4acf87dce1e6c8772f5cbcff3c2a3de21f4ba /vcl/win/source/gdi/salprn.cxx | |
parent | 10560949f90e08fe4a04dd91c7d388c4998100e8 (diff) |
loplugin:unusedmethods
Change-Id: I6801618efb5a66d24156fa429e026acb6ca03aba
Reviewed-on: https://gerrit.libreoffice.org/17506
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/win/source/gdi/salprn.cxx')
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx index c6d7623af238..7179e8cbefcc 100644 --- a/vcl/win/source/gdi/salprn.cxx +++ b/vcl/win/source/gdi/salprn.cxx @@ -1607,59 +1607,6 @@ bool WinSalPrinter::EndJob() return TRUE; } -bool WinSalPrinter::AbortJob() -{ - mbAbort = TRUE; - - // trigger Abort asynchronously - HDC hDC = mhDC; - if ( hDC ) - { - SalData* pSalData = GetSalData(); - PostMessageW( pSalData->mpFirstInstance->mhComWnd, - SAL_MSG_PRINTABORTJOB, (WPARAM)hDC, 0 ); - } - - return TRUE; -} - -void ImplSalPrinterAbortJobAsync( HDC hPrnDC ) -{ - SalData* pSalData = GetSalData(); - WinSalPrinter* pPrinter = pSalData->mpFirstPrinter; - - // check if printer still exists - while ( pPrinter ) - { - if ( pPrinter->mhDC == hPrnDC ) - break; - - pPrinter = pPrinter->mpNextPrinter; - } - - // if printer still exists, cancel the job - if ( pPrinter ) - { - HDC hDC = pPrinter->mhDC; - if ( hDC ) - { - if ( pPrinter->mpGraphics ) - { - pPrinter->mpGraphics->DeInitGraphics(); - delete pPrinter->mpGraphics; - pPrinter->mpGraphics = NULL; - } - - CATCH_DRIVER_EX_BEGIN; - ::AbortDoc( hDC ); - CATCH_DRIVER_EX_END( "exception in AbortDoc", pPrinter ); - - DeleteDC( hDC ); - pPrinter->mhDC = 0; - } - } -} - SalGraphics* WinSalPrinter::StartPage( ImplJobSetup* pSetupData, bool bNewJobData ) { if( ! isValid() || mhDC == 0 ) |