Lines Matching refs:pJobSetup
73 static void copyJobDataToJobSetup( ImplJobSetup* pJobSetup, JobData& rData ) in copyJobDataToJobSetup() argument
75 …pJobSetup->meOrientation = (Orientation)(rData.m_eOrientation == orientation::Landscape ? ORIENTAT… in copyJobDataToJobSetup()
82 …pJobSetup->mePaperFormat = PaperInfo::fromPSName(OUStringToOString( aPaper, RTL_TEXTENCODING_ISO_8… in copyJobDataToJobSetup()
83 pJobSetup->mnPaperWidth = 0; in copyJobDataToJobSetup()
84 pJobSetup->mnPaperHeight = 0; in copyJobDataToJobSetup()
85 if( pJobSetup->mePaperFormat == PAPER_USER ) in copyJobDataToJobSetup()
93 pJobSetup->mnPaperWidth = width; in copyJobDataToJobSetup()
94 pJobSetup->mnPaperHeight= height; in copyJobDataToJobSetup()
98 pJobSetup->mnPaperWidth = height; in copyJobDataToJobSetup()
99 pJobSetup->mnPaperHeight= width; in copyJobDataToJobSetup()
107 pJobSetup->mnPaperBin = 0xffff; in copyJobDataToJobSetup()
114 for( pJobSetup->mnPaperBin = 0; in copyJobDataToJobSetup()
115 pValue != pKey->getValue( pJobSetup->mnPaperBin ) && in copyJobDataToJobSetup()
116 pJobSetup->mnPaperBin < pKey->countValues(); in copyJobDataToJobSetup()
117 pJobSetup->mnPaperBin++ ) in copyJobDataToJobSetup()
119 if( pJobSetup->mnPaperBin >= pKey->countValues() || pValue == pKey->getDefaultValue() ) in copyJobDataToJobSetup()
120 pJobSetup->mnPaperBin = 0xffff; in copyJobDataToJobSetup()
127 pJobSetup->meDuplexMode = DUPLEX_UNKNOWN; in copyJobDataToJobSetup()
138 pJobSetup->meDuplexMode = DUPLEX_OFF; in copyJobDataToJobSetup()
142 pJobSetup->meDuplexMode = DUPLEX_LONGEDGE; in copyJobDataToJobSetup()
146 pJobSetup->meDuplexMode = DUPLEX_SHORTEDGE; in copyJobDataToJobSetup()
151 if( pJobSetup->mpDriverData ) in copyJobDataToJobSetup()
152 rtl_freeMemory( pJobSetup->mpDriverData ); in copyJobDataToJobSetup()
158 pJobSetup->mnDriverDataLen = nBytes; in copyJobDataToJobSetup()
159 pJobSetup->mpDriverData = (sal_uInt8*)pBuffer; in copyJobDataToJobSetup()
163 pJobSetup->mnDriverDataLen = 0; in copyJobDataToJobSetup()
164 pJobSetup->mpDriverData = NULL; in copyJobDataToJobSetup()
313 ImplJobSetup* pJobSetup ) in CreateInfoPrinter() argument
318 if( pJobSetup ) in CreateInfoPrinter()
325 if( pJobSetup->mpDriverData ) in CreateInfoPrinter()
326 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aInfo ); in CreateInfoPrinter()
328 pJobSetup->mnSystem = JOBSETUP_SYSTEM_UNIX; in CreateInfoPrinter()
329 pJobSetup->maPrinterName = pQueueInfo->maPrinterName; in CreateInfoPrinter()
330 pJobSetup->maDriver = aInfo.m_aDriverName; in CreateInfoPrinter()
331 copyJobDataToJobSetup( pJobSetup, aInfo ); in CreateInfoPrinter()
336 …pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" … in CreateInfoPrinter()
337 if( compat_it != pJobSetup->maValueMap.end() ) in CreateInfoPrinter()
530 sal_Bool PspSalInfoPrinter::SetPrinterData( ImplJobSetup* pJobSetup ) in SetPrinterData() argument
532 if( pJobSetup->mpDriverData ) in SetPrinterData()
533 return SetData( ~0, pJobSetup ); in SetPrinterData()
535 copyJobDataToJobSetup( pJobSetup, m_aJobData ); in SetPrinterData()
540 …pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" … in SetPrinterData()
541 if( compat_it != pJobSetup->maValueMap.end() ) in SetPrinterData()
559 ImplJobSetup* pJobSetup ) in SetData() argument
562 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in SetData()
573 if( pJobSetup->meOrientation == ORIENTATION_PORTRAIT ) in SetData()
575 nWidth = pJobSetup->mnPaperWidth; in SetData()
576 nHeight = pJobSetup->mnPaperHeight; in SetData()
580 nWidth = pJobSetup->mnPaperHeight; in SetData()
581 nHeight = pJobSetup->mnPaperWidth; in SetData()
585 if( pJobSetup->mePaperFormat == PAPER_USER ) in SetData()
587 TenMuToPt( pJobSetup->mnPaperWidth ), in SetData()
588 TenMuToPt( pJobSetup->mnPaperHeight ) ); in SetData()
590 …aPaper = rtl::OStringToOUString(PaperInfo::toPSName(pJobSetup->mePaperFormat), RTL_TEXTENCODING_IS… in SetData()
604 int nPaperBin = pJobSetup->mnPaperBin; in SetData()
608 pValue = pKey->getValue( pJobSetup->mnPaperBin ); in SetData()
620 …aData.m_eOrientation = pJobSetup->meOrientation == ORIENTATION_LANDSCAPE ? orientation::Landscape … in SetData()
629 switch( pJobSetup->meDuplexMode ) in SetData()
654 copyJobDataToJobSetup( pJobSetup, aData ); in SetData()
664 const ImplJobSetup* pJobSetup, in GetPageInfo() argument
669 if( ! pJobSetup ) in GetPageInfo()
673 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetPageInfo()
707 sal_uLong PspSalInfoPrinter::GetPaperBinCount( const ImplJobSetup* pJobSetup ) in GetPaperBinCount() argument
709 if( ! pJobSetup ) in GetPaperBinCount()
713 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetPaperBinCount()
721 String PspSalInfoPrinter::GetPaperBinName( const ImplJobSetup* pJobSetup, sal_uLong nPaperBin ) in GetPaperBinName() argument
724 JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetPaperBinName()
745 sal_uLong PspSalInfoPrinter::GetCapabilities( const ImplJobSetup* pJobSetup, sal_uInt16 nType ) in GetCapabilities() argument
757 … JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, aData ); in GetCapabilities()
779 PrinterInfo aInfo( rManager.getPrinterInfo( pJobSetup->maPrinterName ) ); in GetCapabilities()
792 PrinterInfo aInfo( rManager.getPrinterInfo( pJobSetup->maPrinterName ) ); in GetCapabilities()
848 ImplJobSetup* pJobSetup ) in StartJob() argument
859 …JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobDat… in StartJob()
882 it = pJobSetup->maValueMap.find( ::rtl::OUString::createFromAscii( "FAX#" ) ); in StartJob()
883 if( it != pJobSetup->maValueMap.end() ) in StartJob()
912 …pJobSetup->maValueMap.find( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "StrictSO52Compatibility" … in StartJob()
913 if( compat_it != pJobSetup->maValueMap.end() ) in StartJob()
960 SalGraphics* PspSalPrinter::StartPage( ImplJobSetup* pJobSetup, sal_Bool ) in StartPage() argument
962 …JobData::constructFromStreamBuffer( pJobSetup->mpDriverData, pJobSetup->mnDriverDataLen, m_aJobDat… in StartPage()