Kaydet (Commit) 872de529 authored tarafından Caolán McNamara's avatar Caolán McNamara

IsQuickJob is never read and FAX# is never written

Change-Id: Id8f852df49b951fa6f5558e7e45018f07a9b104f
üst 8188aa06
......@@ -46,13 +46,6 @@ public:
OUString GetPrinterName() const;
OUString GetDriverName() const;
/* Get/SetValue are used to read/store additional
* Parameters in the job setup that may be used
* by the printer driver. One possible use are phone
* numbers for faxes (which disguise as printers)
*/
void SetValue( const OUString& rKey, const OUString& rValue );
JobSetup& operator=( const JobSetup& rJob );
bool operator==( const JobSetup& rJobSetup ) const;
......
......@@ -305,7 +305,6 @@ public:
bool SetJobSetup( const JobSetup& rSetup );
const JobSetup& GetJobSetup() const { return maJobSetup; }
void SetJobValue( const OUString& rKey, const OUString& rValue ) { maJobSetup.SetValue( rKey, rValue ); }
bool Setup( Window* pWindow = NULL );
bool SetPrinterProps( const Printer* pPrinter );
......
......@@ -579,7 +579,6 @@ void PADialog::PrintTestPage()
boost::shared_ptr<vcl::PrinterController> pController( new SpaPrinterController( pPrinter ) );
JobSetup aJobSetup( pPrinter->GetJobSetup() );
aJobSetup.SetValue( "IsQuickJob", "true" );
Printer::PrintJob( pController, aJobSetup );
}
......
......@@ -618,10 +618,6 @@ void SfxViewShell::ExecPrint( const uno::Sequence < beans::PropertyValue >& rPro
// FIXME: job setup
SfxPrinter* pDocPrt = GetPrinter(false);
JobSetup aJobSetup = pDocPrt ? pDocPrt->GetJobSetup() : GetJobSetup();
if( bIsDirect )
aJobSetup.SetValue( OUString( "IsQuickJob" ),
OUString( "true" ) );
Printer::PrintJob( pController, aJobSetup );
}
......
......@@ -921,11 +921,6 @@ bool PspSalPrinter::StartJob(
m_aTmpFile = getTmpName();
nMode = S_IRUSR | S_IWUSR;
::boost::unordered_map< OUString, OUString, OUStringHash >::const_iterator it;
it = pJobSetup->maValueMap.find( OUString("FAX#") );
if( it != pJobSetup->maValueMap.end() )
m_aFaxNr = it->second;
sal_Int32 nPos = 0;
m_bSwallowFaxNo = aToken.getToken( 1, '=', nPos ).startsWith( "swallow" ) ? true : false;
......
......@@ -162,14 +162,6 @@ OUString JobSetup::GetDriverName() const
return OUString();
}
void JobSetup::SetValue( const OUString& rKey, const OUString& rValue )
{
if( ! mpData )
mpData = new ImplJobSetup();
mpData->maValueMap[ rKey ] = rValue;
}
JobSetup& JobSetup::operator=( const JobSetup& rJobSetup )
{
DBG_ASSERT( !rJobSetup.mpData || (rJobSetup.mpData->mnRefCount) < 0xFFFE, "JobSetup: RefCount overflow" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment