PrinterData data = printer.getPrinterData();
	Printing(StyledText2 parent, Printer printer, StyledTextPrintOptions printOptions) {		PrinterData data = printer.getPrinterData();		this.parent = parent;		this.printer = printer;		this.printOptions = printOptions;		this.mirrored = (parent.getStyle() & SWT.MIRRORED) != 0;		singleLine = parent.isSingleLine();		startPage = 1;		endPage = Integer.MAX_VALUE;		if (data.scope == PrinterData.PAGE_RANGE) {			startPage = data.startPage;			endPage = data.endPage;			if (endPage < startPage) {				int temp = endPage;				endPage = startPage;				startPage = temp;			}					} 		else 		if (data.scope == PrinterData.SELECTION) {			selection = parent.getSelectionRange();		}		displayFontData = parent.getFont().getFontData()[0];		copyContent(parent.getContent());		cacheLineData(printerContent);	}