Lines Matching refs:pJobSetup
124 static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData ) in copyJobDataToJobSetup() argument
126 …pJobSetup->meOrientation = (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTAT… in copyJobDataToJobSetup()
133 …pJobSetup->mePaperFormat = PaperInfo::fromPSName(OUStringToOString( aPaper, RTL_TEXTENCODING_ISO_8… in copyJobDataToJobSetup()
135 pJobSetup->mnPaperWidth = 0; in copyJobDataToJobSetup()
136 pJobSetup->mnPaperHeight = 0; in copyJobDataToJobSetup()
137 if( pJobSetup->mePaperFormat == PAPER_USER ) in copyJobDataToJobSetup()
145 pJobSetup->mnPaperWidth = width; in copyJobDataToJobSetup()
146 pJobSetup->mnPaperHeight= height; in copyJobDataToJobSetup()
150 pJobSetup->mnPaperWidth = height; in copyJobDataToJobSetup()
151 pJobSetup->mnPaperHeight= width; in copyJobDataToJobSetup()
159 pJobSetup->mnPaperBin = 0; in copyJobDataToJobSetup()
166 for( pJobSetup->mnPaperBin = 0; in copyJobDataToJobSetup()
167 pValue != pKey->getValue( pJobSetup->mnPaperBin ) && in copyJobDataToJobSetup()
168 pJobSetup->mnPaperBin < pKey->countValues(); in copyJobDataToJobSetup()
169 pJobSetup->mnPaperBin++ ) in copyJobDataToJobSetup()
171 if( pJobSetup->mnPaperBin >= pKey->countValues() ) in copyJobDataToJobSetup()
172 pJobSetup->mnPaperBin = 0; in copyJobDataToJobSetup()
179 pJobSetup->meDuplexMode = DUPLEX_UNKNOWN; in copyJobDataToJobSetup()
190 pJobSetup->meDuplexMode = DUPLEX_OFF; in copyJobDataToJobSetup()
194 pJobSetup->meDuplexMode = DUPLEX_LONGEDGE; in copyJobDataToJobSetup()
198 pJobSetup->meDuplexMode = DUPLEX_SHORTEDGE; in copyJobDataToJobSetup()
203 if( pJobSetup->mpDriverData ) in copyJobDataToJobSetup()
204 rtl_freeMemory( pJobSetup->mpDriverData ); in copyJobDataToJobSetup()
210 pJobSetup->mnDriverDataLen = nBytes; in copyJobDataToJobSetup()
211 pJobSetup->mpDriverData = (sal_uInt8*)pBuffer; in copyJobDataToJobSetup()
215 pJobSetup->mnDriverDataLen = 0; in copyJobDataToJobSetup()
216 pJobSetup->mpDriverData = NULL; in copyJobDataToJobSetup()
375 ImplJobSetup* pJobSetup ) in CreateInfoPrinter() argument
381 if( pJobSetup ) in CreateInfoPrinter()
388 if( pJobSetup->mpDriverData ) in CreateInfoPrinter()
389 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo ); in CreateInfoPrinter()
391 pJobSetup->mnSystem = JOBSETUP_SYSTEM_UNIX; in CreateInfoPrinter()
392 pJobSetup->maPrinterName = pQueueInfo->maPrinterName; in CreateInfoPrinter()
393 pJobSetup->maDriver = aInfo.m_aDriverName; in CreateInfoPrinter()
394 copyJobDataToJobSetup( pJobSetup, aInfo ); in CreateInfoPrinter()
399 …pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" … in CreateInfoPrinter()
401 if( compat_it != pJobSetup->maValueMap.end() ) in CreateInfoPrinter()
586 sal_Bool PspSalInfoPrinter::Setup( SalFrame* pFrame, ImplJobSetup* pJobSetup ) in Setup() argument
588 if( ! pFrame || ! pJobSetup ) in Setup()
598 PrinterInfo aInfo( rManager.getPrinterInfo( pJobSetup->maPrinterName ) ); in Setup()
599 if ( pJobSetup->mpDriverData ) in Setup()
601 SetData( ~0, pJobSetup ); in Setup()
602 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo ); in Setup()
607 rtl_freeMemory( pJobSetup->mpDriverData ); in Setup()
608 pJobSetup->mpDriverData = NULL; in Setup()
613 pJobSetup->mnDriverDataLen = nBytes; in Setup()
614 pJobSetup->mpDriverData = (sal_uInt8*)pBuffer; in Setup()
617 copyJobDataToJobSetup( pJobSetup, aInfo ); in Setup()
618 …JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobDat… in Setup()
631 sal_Bool PspSalInfoPrinter::SetPrinterData( ImplJobSetup* pJobSetup ) in SetPrinterData() argument
636 …pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" … in SetPrinterData()
638 if( compat_it != pJobSetup->maValueMap.end() ) in SetPrinterData()
645 if( pJobSetup->mpDriverData ) in SetPrinterData()
646 return SetData( ~0, pJobSetup ); in SetPrinterData()
648 copyJobDataToJobSetup( pJobSetup, m_aJobData ); in SetPrinterData()
661 ImplJobSetup* pJobSetup ) in SetData() argument
664 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in SetData()
675 if( pJobSetup->meOrientation == ORIENTATION_PORTRAIT ) in SetData()
677 nWidth = pJobSetup->mnPaperWidth; in SetData()
678 nHeight = pJobSetup->mnPaperHeight; in SetData()
682 nWidth = pJobSetup->mnPaperHeight; in SetData()
683 nHeight = pJobSetup->mnPaperWidth; in SetData()
687 if( pJobSetup->mePaperFormat == PAPER_USER ) in SetData()
689 TenMuToPt( pJobSetup->mnPaperWidth ), in SetData()
690 TenMuToPt( pJobSetup->mnPaperHeight ) ); in SetData()
692 …aPaper = rtl::OStringToOUString(PaperInfo::toPSName(pJobSetup->mePaperFormat), RTL_TEXTENCODING_IS… in SetData()
699 if( pKey && ! pValue && pJobSetup->mePaperFormat != PAPER_USER ) in SetData()
701 PaperInfo aInfo( pJobSetup->mePaperFormat ); in SetData()
718 int nPaperBin = pJobSetup->mnPaperBin; in SetData()
722 pValue = pKey->getValue( pJobSetup->mnPaperBin ); in SetData()
734 …aData.m_eOrientation = pJobSetup->meOrientation == ORIENTATION_LANDSCAPE ? orientation::Landscape … in SetData()
743 switch( pJobSetup->meDuplexMode ) in SetData()
768 copyJobDataToJobSetup( pJobSetup, aData ); in SetData()
778 const ImplJobSetup* pJobSetup, in GetPageInfo() argument
783 if( ! pJobSetup ) in GetPageInfo()
787 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetPageInfo()
821 sal_uLong PspSalInfoPrinter::GetPaperBinCount( const ImplJobSetup* pJobSetup ) in GetPaperBinCount() argument
823 if( ! pJobSetup ) in GetPaperBinCount()
827 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetPaperBinCount()
835 String PspSalInfoPrinter::GetPaperBinName( const ImplJobSetup* pJobSetup, sal_uLong nPaperBin ) in GetPaperBinName() argument
838 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetPaperBinName()
859 sal_uLong PspSalInfoPrinter::GetCapabilities( const ImplJobSetup* pJobSetup, sal_uInt16 nType ) in GetCapabilities() argument
871 … JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetCapabilities()
891 … return PrinterInfoManager::get().checkFeatureToken( pJobSetup->maPrinterName, "fax" ) ? 1 : 0; in GetCapabilities()
893 if( PrinterInfoManager::get().checkFeatureToken( pJobSetup->maPrinterName, "pdf" ) ) in GetCapabilities()
898 … JobData aData = PrinterInfoManager::get().getPrinterInfo( pJobSetup->maPrinterName ); in GetCapabilities()
899 if( pJobSetup->mpDriverData ) in GetCapabilities()
900 … JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetCapabilities()
904 …return PrinterInfoManager::get().checkFeatureToken( pJobSetup->maPrinterName, "external_dialog" ) … in GetCapabilities()
908 JobData aData = PrinterInfoManager::get().getPrinterInfo( pJobSetup->maPrinterName ); in GetCapabilities()
909 if( pJobSetup->mpDriverData ) in GetCapabilities()
910 … JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetCapabilities()
960 ImplJobSetup* pJobSetup ) in StartJob() argument
971 …JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobDat… in StartJob()
994 it = pJobSetup->maValueMap.find( ::rtl::OUString::createFromAscii( "FAX#" ) ); in StartJob()
995 if( it != pJobSetup->maValueMap.end() ) in StartJob()
1024 …pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" … in StartJob()
1026 if( compat_it != pJobSetup->maValueMap.end() ) in StartJob()
1079 SalGraphics* PspSalPrinter::StartPage( ImplJobSetup* pJobSetup, sal_Bool ) in StartPage() argument
1081 …JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobDat… in StartPage()