diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-06-12 15:22:27 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-06-12 15:22:27 +0000 |
commit | 39624916389a6b18e8494927a00c9f4d5237f8f2 (patch) | |
tree | 916f142258c1d35ccfb4d0822489ccffcf801eb7 /basic/source/app | |
parent | 187d9b0f6476fca7244a673c74c4ddc568e8c1b3 (diff) |
#i92516# remove old StartPage/EndPage API
Diffstat (limited to 'basic/source/app')
-rw-r--r-- | basic/source/app/printer.cxx | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/basic/source/app/printer.cxx b/basic/source/app/printer.cxx index 6f173fd53ffa..94097f5b1f7a 100644 --- a/basic/source/app/printer.cxx +++ b/basic/source/app/printer.cxx @@ -76,16 +76,21 @@ BasicPrinter::BasicPrinter() : Printer() // Output: 6 Lines/Inch = 12 Point nLines = (short) s.Height() / 12; nYoff = 12; + // FIXME: new API + #if 0 SetStartPrintHdl( LINK( this, BasicPrinter, StartPrintHdl ) ); SetEndPrintHdl( LINK( this, BasicPrinter, EndPrintHdl ) ); SetPrintPageHdl( LINK( this, BasicPrinter, PrintPageHdl ) ); + #endif } void BasicPrinter::Header() { - if( nPage ) EndPage(); + // FIXME: new API + // if( nPage ) EndPage(); nPage++; - StartPage(); + // FIXME: new API + // StartPage(); String aHdr; String aPage( SttResId( IDS_PAGE ) ); aPage.Append( String::CreateFromInt32(nPage) ); @@ -116,8 +121,10 @@ void BasicPrinter::Print( const String& rFile, const String& rText, BasicFrame * pDlg->ChangeMessage( 1 ); pDlg->Show(); - StartJob( rFile ); - StartPage(); + + // FIXME: new API + // StartJob( rFile ); + // StartPage(); xub_StrLen nDone=0; while( nDone < rText.Len() ) { @@ -130,8 +137,9 @@ void BasicPrinter::Print( const String& rFile, const String& rText, BasicFrame * nLine++; Application::Reschedule(); } - EndPage(); - EndJob(); + // FIXME: new API + // EndPage(); + // EndJob(); nPage = 1; while( IsPrinting() ) Application::Reschedule(); delete pDlg; pDlg = NULL; |