Lines Matching refs:pPrinter
267 const Printer *pPrinter = NULL; in getPrinter() local
270 while ( pViewFrm && !pPrinter ) in getPrinter()
272 pPrinter = pViewFrm->GetViewShell()->GetActivePrinter(); in getPrinter()
277 if ( !pPrinter && pFirst ) in getPrinter()
278 pPrinter = pFirst->GetViewShell()->GetPrinter(sal_True); in getPrinter()
280 if ( !pPrinter ) in getPrinter()
286 aPrinter.getArray()[7].Value <<= ( pPrinter->HasSupport( SUPPORT_SET_PAPERSIZE ) ); in getPrinter()
289 aPrinter.getArray()[6].Value <<= ( pPrinter->HasSupport( SUPPORT_SET_PAPER ) ); in getPrinter()
292 aPrinter.getArray()[5].Value <<= ( pPrinter->HasSupport( SUPPORT_SET_ORIENTATION ) ); in getPrinter()
295 aPrinter.getArray()[4].Value <<= ( pPrinter->IsPrinting() ); in getPrinter()
298 awt::Size aSize = impl_Size_Object2Struct(pPrinter->GetPaperSize() ); in getPrinter()
302 view::PaperFormat eFormat = convertToPaperFormat(pPrinter->GetPaper()); in getPrinter()
306 view::PaperOrientation eOrient = (view::PaperOrientation)pPrinter->GetOrientation(); in getPrinter()
310 String sStringTemp = pPrinter->GetName() ; in getPrinter()
320 …nter(const uno::Sequence< beans::PropertyValue >& rPrinter,SfxPrinter*& pPrinter,sal_uInt16& nChan… in impl_setPrinter() argument
330 pPrinter = pViewSh->GetPrinter(sal_True); in impl_setPrinter()
331 if ( !pPrinter ) in impl_setPrinter()
350 if ( aPrinterName != pPrinter->GetName() ) in impl_setPrinter()
352 pPrinter = new SfxPrinter( pPrinter->GetOptions().Clone(), aPrinterName ); in impl_setPrinter()
379 if ( (Orientation) eOrient != pPrinter->GetOrientation() ) in impl_setPrinter()
381 pPrinter->SetOrientation( (Orientation) eOrient ); in impl_setPrinter()
396 if ( convertToPaper(nPaperFormat) != pPrinter->GetPaper() ) in impl_setPrinter()
398 pPrinter->SetPaper( convertToPaper(nPaperFormat) ); in impl_setPrinter()
423 sal_uInt16 nCount = pPrinter->GetPaperBinCount(); in impl_setPrinter()
426 ::rtl::OUString aName( pPrinter->GetPaperBinName(nBin) ); in impl_setPrinter()
429 pPrinter->SetPaperBin(nBin); in impl_setPrinter()
443 aSetPaperSize = pPrinter->LogicToPixel( aSetPaperSize, MAP_100TH_MM ); in impl_setPrinter()
444 if( aSetPaperSize != pPrinter->GetPaperSizePixel() ) in impl_setPrinter()
446 pPrinter->SetPaperSizeUser( pPrinter->PixelToLogic( aSetPaperSize ) ); in impl_setPrinter()
464 SfxPrinter* pPrinter = NULL; in setPrinter() local
466 impl_setPrinter(rPrinter,pPrinter,nChangeFlags,pViewSh); in setPrinter()
468 if ( pViewSh && pPrinter ) in setPrinter()
469 pViewSh->SetPrinter( pPrinter, nChangeFlags, false ); in setPrinter()
492 … ImplUCBPrintWatcher( SfxPrinter* pPrinter, ::utl::TempFile* pTempFile, const String& sTargetURL ) in ImplUCBPrintWatcher() argument
493 : m_pPrinter ( pPrinter ) in ImplUCBPrintWatcher()
774 SfxPrinter* pPrinter = pView->GetPrinter(); in print() local
775 if ( ! pPrinter->IsPrinting() ) in print()
782 … ImplUCBPrintWatcher* pWatcher = new ImplUCBPrintWatcher( pPrinter, pUCBPrintTempFile, sUcbUrl ); in print()