summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/print.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/print.cxx')
-rw-r--r--vcl/source/gdi/print.cxx56
1 files changed, 0 insertions, 56 deletions
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index f6ebc67f3bc0..7adfcdef8bce 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <list>
#include <tools/debug.hxx>
@@ -78,7 +77,6 @@ namespace
}
}
-
void ImplUpdateJobSetupPaper( JobSetup& rJobSetup )
{
const ImplJobSetup* pConstData = rJobSetup.ImplGetConstData();
@@ -117,7 +115,6 @@ PrinterOptions::PrinterOptions() :
{
}
-
PrinterOptions::~PrinterOptions()
{
}
@@ -250,7 +247,6 @@ void Printer::DrawDeviceBitmap( const Point& rDestPt, const Size& rDestSize,
}
}
-
void Printer::EmulateDrawTransparent ( const PolyPolygon& rPolyPoly,
sal_uInt16 nTransparencePercent )
{
@@ -328,7 +324,6 @@ void Printer::EmulateDrawTransparent ( const PolyPolygon& rPolyPoly,
mpAlphaVDev = pOldAlphaVDev;
}
-
void Printer::DrawOutDev( const Point& /*rDestPt*/, const Size& /*rDestSize*/,
const Point& /*rSrcPt*/, const Size& /*rSrcSize*/ )
{
@@ -367,7 +362,6 @@ QueueInfo::QueueInfo()
mnJobs = 0;
}
-
QueueInfo::QueueInfo( const QueueInfo& rInfo ) :
maPrinterName( rInfo.maPrinterName ),
maDriver( rInfo.maDriver ),
@@ -378,12 +372,10 @@ QueueInfo::QueueInfo( const QueueInfo& rInfo ) :
{
}
-
QueueInfo::~QueueInfo()
{
}
-
bool QueueInfo::operator==( const QueueInfo& rInfo ) const
{
return
@@ -395,7 +387,6 @@ bool QueueInfo::operator==( const QueueInfo& rInfo ) const
mnJobs == rInfo.mnJobs;
}
-
SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
{
VersionCompat aCompat( rOStream, STREAM_WRITE, 1 );
@@ -410,7 +401,6 @@ SvStream& WriteQueueInfo( SvStream& rOStream, const QueueInfo& rInfo )
return rOStream;
}
-
SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
{
VersionCompat aCompat( rIStream, STREAM_READ );
@@ -425,7 +415,6 @@ SvStream& ReadQueueInfo( SvStream& rIStream, QueueInfo& rInfo )
return rIStream;
}
-
SalPrinterQueueInfo::SalPrinterQueueInfo()
{
mnStatus = 0;
@@ -433,12 +422,10 @@ SalPrinterQueueInfo::SalPrinterQueueInfo()
mpSysData = NULL;
}
-
SalPrinterQueueInfo::~SalPrinterQueueInfo()
{
}
-
ImplPrnQueueList::~ImplPrnQueueList()
{
ImplSVData* pSVData = ImplGetSVData();
@@ -449,7 +436,6 @@ ImplPrnQueueList::~ImplPrnQueueList()
}
}
-
void ImplPrnQueueList::Add( SalPrinterQueueInfo* pData )
{
boost::unordered_map< OUString, sal_Int32, OUStringHash >::iterator it =
@@ -472,7 +458,6 @@ void ImplPrnQueueList::Add( SalPrinterQueueInfo* pData )
}
}
-
ImplPrnQueueData* ImplPrnQueueList::Get( const OUString& rPrinter )
{
ImplPrnQueueData* pData = NULL;
@@ -483,7 +468,6 @@ ImplPrnQueueData* ImplPrnQueueList::Get( const OUString& rPrinter )
return pData;
}
-
static void ImplInitPrnQueueList()
{
ImplSVData* pSVData = ImplGetSVData();
@@ -495,7 +479,6 @@ static void ImplInitPrnQueueList()
pSVData->mpDefInst->GetPrinterQueueInfo( pSVData->maGDIData.mpPrinterQueueList );
}
-
void ImplDeletePrnQueueList()
{
ImplSVData* pSVData = ImplGetSVData();
@@ -508,7 +491,6 @@ void ImplDeletePrnQueueList()
}
}
-
const std::vector<OUString>& Printer::GetPrinterQueues()
{
ImplSVData* pSVData = ImplGetSVData();
@@ -547,7 +529,6 @@ const QueueInfo* Printer::GetQueueInfo( const OUString& rPrinterName, bool bStat
return NULL;
}
-
OUString Printer::GetDefaultPrinterName()
{
static const char* pEnv = getenv( "SAL_DISABLE_DEFAULTPRINTER" );
@@ -560,7 +541,6 @@ OUString Printer::GetDefaultPrinterName()
return OUString();
}
-
void Printer::ImplInitData()
{
mbDevOutput = false;
@@ -803,7 +783,6 @@ void Printer::ImplInit( SalPrinterQueueInfo* pInfo )
mpGraphics->GetDevFontList( mpFontCollection );
}
-
void Printer::ImplInitDisplay( const Window* pWindow )
{
ImplSVData* pSVData = ImplGetSVData();
@@ -955,7 +934,6 @@ SalPrinterQueueInfo* Printer::ImplGetQueueInfo( const OUString& rPrinterName,
return NULL;
}
-
void Printer::ImplUpdatePageData()
{
// we need a graphics
@@ -969,7 +947,6 @@ void Printer::ImplUpdatePageData()
maPaperSize.Width(), maPaperSize.Height() );
}
-
void Printer::ImplUpdateFontList()
{
ImplUpdateFontData( true );
@@ -997,7 +974,6 @@ Printer::Printer()
ImplInitDisplay( NULL );
}
-
Printer::Printer( const JobSetup& rJobSetup ) :
maJobSetup( rJobSetup )
{
@@ -1016,7 +992,6 @@ Printer::Printer( const JobSetup& rJobSetup ) :
}
}
-
Printer::Printer( const QueueInfo& rQueueInfo )
{
ImplInitData();
@@ -1028,7 +1003,6 @@ Printer::Printer( const QueueInfo& rQueueInfo )
ImplInitDisplay( NULL );
}
-
Printer::Printer( const OUString& rPrinterName )
{
ImplInitData();
@@ -1039,7 +1013,6 @@ Printer::Printer( const OUString& rPrinterName )
ImplInitDisplay( NULL );
}
-
Printer::~Printer()
{
DBG_ASSERT( !IsPrinting(), "Printer::~Printer() - Job is printing" );
@@ -1100,7 +1073,6 @@ sal_uLong Printer::GetCapabilities( sal_uInt16 nType ) const
return 0;
}
-
bool Printer::HasSupport( PrinterSupport eFeature ) const
{
switch ( eFeature )
@@ -1128,7 +1100,6 @@ bool Printer::HasSupport( PrinterSupport eFeature ) const
return true;
}
-
bool Printer::SetJobSetup( const JobSetup& rSetup )
{
if ( IsDisplayPrinter() || mbInPrintPage )
@@ -1150,8 +1121,6 @@ bool Printer::SetJobSetup( const JobSetup& rSetup )
return false;
}
-
-
bool Printer::Setup( Window* pWindow )
{
if ( IsDisplayPrinter() )
@@ -1187,7 +1156,6 @@ bool Printer::Setup( Window* pWindow )
return false;
}
-
bool Printer::SetPrinterProps( const Printer* pPrinter )
{
if ( IsJobActive() || IsPrinting() )
@@ -1295,7 +1263,6 @@ bool Printer::SetPrinterProps( const Printer* pPrinter )
return false;
}
-
bool Printer::SetOrientation( Orientation eOrientation )
{
if ( mbInPrintPage )
@@ -1331,13 +1298,11 @@ bool Printer::SetOrientation( Orientation eOrientation )
return true;
}
-
Orientation Printer::GetOrientation() const
{
return maJobSetup.ImplGetConstData()->meOrientation;
}
-
bool Printer::SetPaperBin( sal_uInt16 nPaperBin )
{
if ( mbInPrintPage )
@@ -1374,13 +1339,11 @@ bool Printer::SetPaperBin( sal_uInt16 nPaperBin )
return true;
}
-
sal_uInt16 Printer::GetPaperBin() const
{
return maJobSetup.ImplGetConstData()->mnPaperBin;
}
-
// Map user paper format to a available printer paper formats
void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNearest )
{
@@ -1470,7 +1433,6 @@ void Printer::ImplFindPaperFormatForUserSize( JobSetup& aJobSetup, bool bMatchNe
}
}
-
bool Printer::SetPaper( Paper ePaper )
{
if ( mbInPrintPage )
@@ -1514,7 +1476,6 @@ bool Printer::SetPaper( Paper ePaper )
return true;
}
-
bool Printer::SetPaperSizeUser( const Size& rSize )
{
return SetPaperSizeUser( rSize, false );
@@ -1578,7 +1539,6 @@ bool Printer::SetPaperSizeUser( const Size& rSize, bool bMatchNearest )
return true;
}
-
int Printer::GetPaperInfoCount() const
{
if( ! mpInfoPrinter )
@@ -1588,7 +1548,6 @@ int Printer::GetPaperInfoCount() const
return mpInfoPrinter->m_aPaperFormats.size();
}
-
OUString Printer::GetPaperName( Paper ePaper )
{
ImplSVData* pSVData = ImplGetSVData();
@@ -1619,7 +1578,6 @@ OUString Printer::GetPaperName( Paper ePaper )
return (it != pSVData->mpPaperNames->end()) ? it->second : OUString();
}
-
OUString Printer::GetPaperName( bool i_bPaperUser ) const
{
Size aPageSize = PixelToLogic( GetPaperSizePixel(), MAP_100TH_MM );
@@ -1629,7 +1587,6 @@ OUString Printer::GetPaperName( bool i_bPaperUser ) const
return (ePaper != PAPER_USER || i_bPaperUser ) ? GetPaperName( ePaper ) : OUString();
}
-
const PaperInfo& Printer::GetPaperInfo( int nPaper ) const
{
if( ! mpInfoPrinter )
@@ -1641,7 +1598,6 @@ const PaperInfo& Printer::GetPaperInfo( int nPaper ) const
return mpInfoPrinter->m_aPaperFormats[nPaper];
}
-
bool Printer::SetDuplexMode( DuplexMode eDuplex )
{
if ( mbInPrintPage )
@@ -1677,19 +1633,16 @@ bool Printer::SetDuplexMode( DuplexMode eDuplex )
return true;
}
-
int Printer::GetLandscapeAngle() const
{
return mpInfoPrinter ? mpInfoPrinter->GetLandscapeAngle( maJobSetup.ImplGetConstData() ) : 900;
}
-
Paper Printer::GetPaper() const
{
return maJobSetup.ImplGetConstData()->mePaperFormat;
}
-
sal_uInt16 Printer::GetPaperBinCount() const
{
if ( IsDisplayPrinter() )
@@ -1698,7 +1651,6 @@ sal_uInt16 Printer::GetPaperBinCount() const
return (sal_uInt16)mpInfoPrinter->GetPaperBinCount( maJobSetup.ImplGetConstData() );
}
-
OUString Printer::GetPaperBinName( sal_uInt16 nPaperBin ) const
{
if ( IsDisplayPrinter() )
@@ -1710,7 +1662,6 @@ OUString Printer::GetPaperBinName( sal_uInt16 nPaperBin ) const
return OUString();
}
-
bool Printer::SetCopyCount( sal_uInt16 nCopy, bool bCollate )
{
mnCopyCount = nCopy;
@@ -1718,14 +1669,11 @@ bool Printer::SetCopyCount( sal_uInt16 nCopy, bool bCollate )
return true;
}
-
void Printer::Error()
{
maErrorHdl.Call( this );
}
-
-
sal_uLong Printer::ImplSalPrinterErrorCodeToVCL( sal_uLong nError )
{
sal_uLong nVCLError;
@@ -1745,7 +1693,6 @@ sal_uLong Printer::ImplSalPrinterErrorCodeToVCL( sal_uLong nError )
return nVCLError;
}
-
bool Printer::EndJob()
{
bool bRet = false;
@@ -1778,7 +1725,6 @@ bool Printer::EndJob()
return bRet;
}
-
void Printer::ImplStartPage()
{
if ( !IsJobActive() )
@@ -1804,7 +1750,6 @@ void Printer::ImplStartPage()
}
}
-
void Printer::ImplEndPage()
{
if ( !IsJobActive() )
@@ -1823,7 +1768,6 @@ void Printer::ImplEndPage()
}
}
-
void Printer::updatePrinters()
{
ImplSVData* pSVData = ImplGetSVData();