12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package epson.print.screen;
- import android.content.Context;
- import android.os.RemoteException;
- import com.epson.iprint.prtlogger.PrintLog;
- import epson.print.screen.PrintProgress;
- import epson.print.screen.PrintSetting;
- import epson.print.service.IEpsonService;
- public class LocalDocumentParams implements PrintProgress.ProgressParams {
- private int mEndPage;
- private boolean mIsPaperLandscape;
- private String mOriginalFilename;
- private String mPassword;
- private String mPdfFilename;
- private PrintLog mPrintLog;
- private int mStartPage;
- public boolean getApfMode() {
- return false;
- }
- public boolean getEpsonColorMode() {
- return false;
- }
- public LocalDocumentParams(String str, String str2, String str3, boolean z, int i, int i2, PrintLog printLog) {
- this.mPdfFilename = str;
- this.mOriginalFilename = str2;
- this.mPassword = str3;
- this.mIsPaperLandscape = z;
- this.mStartPage = i;
- this.mEndPage = i2;
- this.mPrintLog = printLog;
- }
- public int getOriginalSheetSize() {
- return (this.mEndPage - this.mStartPage) + 1;
- }
- public PrintSetting getPrintSetting(Context context) {
- return new PrintSetting(context, PrintSetting.Kind.document);
- }
- public boolean isPaperLandscape() {
- return this.mIsPaperLandscape;
- }
- public boolean print(IEpsonService iEpsonService, boolean z) throws RemoteException {
- iEpsonService.printLocalPdf(this.mPdfFilename, this.mOriginalFilename, this.mPassword, this.mIsPaperLandscape, this.mStartPage, this.mEndPage, z);
- return true;
- }
- public PrintLog getPrintLog() {
- return this.mPrintLog;
- }
- public PrintSetting.Kind getPrintSettingType() {
- return PrintSetting.Kind.document;
- }
- }
|