salprn.cxx (aa150a94) | salprn.cxx (5f27b83c) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1430 unchanged lines hidden (view full) --- 1439} 1440 1441// ----------------------------------------------------------------------- 1442 1443static WinSalGraphics* ImplCreateSalPrnGraphics( HDC hDC ) 1444{ 1445 WinSalGraphics* pGraphics = new WinSalGraphics; 1446 pGraphics->SetLayout( 0 ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1430 unchanged lines hidden (view full) --- 1439} 1440 1441// ----------------------------------------------------------------------- 1442 1443static WinSalGraphics* ImplCreateSalPrnGraphics( HDC hDC ) 1444{ 1445 WinSalGraphics* pGraphics = new WinSalGraphics; 1446 pGraphics->SetLayout( 0 ); |
1447 pGraphics->mhDC = hDC; | 1447 pGraphics->setHDC(hDC); |
1448 pGraphics->mhWnd = 0; 1449 pGraphics->mbPrinter = TRUE; 1450 pGraphics->mbVirDev = FALSE; 1451 pGraphics->mbWindow = FALSE; 1452 pGraphics->mbScreen = FALSE; 1453 ImplSalInitGraphics( pGraphics ); 1454 return pGraphics; 1455} --- 4 unchanged lines hidden (view full) --- 1460{ 1461 HDC hNewDC = ImplCreateSalPrnIC( pPrinter, pSetupData ); 1462 if ( !hNewDC ) 1463 return FALSE; 1464 1465 if ( pPrinter->mpGraphics ) 1466 { 1467 ImplSalDeInitGraphics( pPrinter->mpGraphics ); | 1448 pGraphics->mhWnd = 0; 1449 pGraphics->mbPrinter = TRUE; 1450 pGraphics->mbVirDev = FALSE; 1451 pGraphics->mbWindow = FALSE; 1452 pGraphics->mbScreen = FALSE; 1453 ImplSalInitGraphics( pGraphics ); 1454 return pGraphics; 1455} --- 4 unchanged lines hidden (view full) --- 1460{ 1461 HDC hNewDC = ImplCreateSalPrnIC( pPrinter, pSetupData ); 1462 if ( !hNewDC ) 1463 return FALSE; 1464 1465 if ( pPrinter->mpGraphics ) 1466 { 1467 ImplSalDeInitGraphics( pPrinter->mpGraphics ); |
1468 DeleteDC( pPrinter->mpGraphics->mhDC ); | 1468 DeleteDC( pPrinter->mpGraphics->getHDC() ); |
1469 delete pPrinter->mpGraphics; 1470 } 1471 1472 pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hNewDC ); 1473 pPrinter->mhDC = hNewDC; 1474 1475 return TRUE; 1476} --- 51 unchanged lines hidden (view full) --- 1528 1529// ----------------------------------------------------------------------- 1530 1531WinSalInfoPrinter::~WinSalInfoPrinter() 1532{ 1533 if ( mpGraphics ) 1534 { 1535 ImplSalDeInitGraphics( mpGraphics ); | 1469 delete pPrinter->mpGraphics; 1470 } 1471 1472 pPrinter->mpGraphics = ImplCreateSalPrnGraphics( hNewDC ); 1473 pPrinter->mhDC = hNewDC; 1474 1475 return TRUE; 1476} --- 51 unchanged lines hidden (view full) --- 1528 1529// ----------------------------------------------------------------------- 1530 1531WinSalInfoPrinter::~WinSalInfoPrinter() 1532{ 1533 if ( mpGraphics ) 1534 { 1535 ImplSalDeInitGraphics( mpGraphics ); |
1536 DeleteDC( mpGraphics->mhDC ); | 1536 DeleteDC( mpGraphics->getHDC() ); |
1537 delete mpGraphics; 1538 } 1539} 1540 1541// ----------------------------------------------------------------------- 1542 1543void WinSalInfoPrinter::InitPaperFormats( const ImplJobSetup* pSetupData ) 1544{ --- 820 unchanged lines hidden --- | 1537 delete mpGraphics; 1538 } 1539} 1540 1541// ----------------------------------------------------------------------- 1542 1543void WinSalInfoPrinter::InitPaperFormats( const ImplJobSetup* pSetupData ) 1544{ --- 820 unchanged lines hidden --- |