summaryrefslogtreecommitdiff
path: root/padmin/source
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2009-07-06 12:02:13 +0000
committerPhilipp Lohmann <pl@openoffice.org>2009-07-06 12:02:13 +0000
commitde669ed51a29363beeb6b73e777004718b988861 (patch)
tree8f280251fe249be7e627440f630549f9a56fcf22 /padmin/source
parent6587abd0796af81128602a7e43927fb3eaead419 (diff)
#i92516# rename PrinterListener
Diffstat (limited to 'padmin/source')
-rw-r--r--padmin/source/padialog.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
index 7c8ed6d39fe3..0417c784590a 100644
--- a/padmin/source/padialog.cxx
+++ b/padmin/source/padialog.cxx
@@ -361,13 +361,13 @@ static Color approachColor( const Color& rFrom, const Color& rTo )
return aColor;
}
-class SpaPrinterListener : public vcl::PrinterListener
+class SpaPrinterController : public vcl::PrinterController
{
public:
- SpaPrinterListener( const boost::shared_ptr<Printer>& i_pPrinter )
- : vcl::PrinterListener( i_pPrinter )
+ SpaPrinterController( const boost::shared_ptr<Printer>& i_pPrinter )
+ : vcl::PrinterController( i_pPrinter )
{}
- virtual ~SpaPrinterListener()
+ virtual ~SpaPrinterController()
{}
virtual int getPageCount() const { return 1; }
@@ -376,7 +376,7 @@ public:
virtual void jobFinished();
};
-Sequence< PropertyValue > SpaPrinterListener::getPageParameters( int ) const
+Sequence< PropertyValue > SpaPrinterController::getPageParameters( int ) const
{
Sequence< PropertyValue > aRet( 1 );
@@ -391,7 +391,7 @@ Sequence< PropertyValue > SpaPrinterListener::getPageParameters( int ) const
return aRet;
}
-void SpaPrinterListener::printPage( int ) const
+void SpaPrinterController::printPage( int ) const
{
const double DELTA = 5.0;
@@ -574,7 +574,7 @@ void SpaPrinterListener::printPage( int ) const
#endif
}
-void SpaPrinterListener::jobFinished()
+void SpaPrinterController::jobFinished()
{
String aInfoString( PaResId( RID_PA_TXT_TESTPAGE_PRINTED ) );
InfoBox aInfoBox( NULL, aInfoString );
@@ -599,11 +599,11 @@ void PADialog::PrintTestPage()
return;
}
- boost::shared_ptr<vcl::PrinterListener> pListener( new SpaPrinterListener( pPrinter ) );
+ boost::shared_ptr<vcl::PrinterController> pController( new SpaPrinterController( pPrinter ) );
JobSetup aJobSetup( pPrinter->GetJobSetup() );
aJobSetup.SetValue( String( RTL_CONSTASCII_USTRINGPARAM( "IsQuickJob" ) ),
String( RTL_CONSTASCII_USTRINGPARAM( "true" ) ) );
- Printer::PrintJob( pListener, aJobSetup );
+ Printer::PrintJob( pController, aJobSetup );
}
void PADialog::AddDevice()