printDecorationSegment(segment, i, page, header);
printDecorationSegment(segment, i, page, header, layout);
	void printDecoration(int page, boolean header) {		String text = header ? printOptions.header : printOptions.footer;		if (text == null) return;		int lastSegmentIndex = 0;		int segmentCount = 3;		for (int i = 0; i < segmentCount; i++) {			int segmentIndex = text.indexOf(StyledTextPrintOptions.SEPARATOR, lastSegmentIndex);			String segment;			if (segmentIndex == -1) {				segment = text.substring(lastSegmentIndex);				printDecorationSegment(segment, i, page, header);				break;			} else {				segment = text.substring(lastSegmentIndex, segmentIndex);				printDecorationSegment(segment, i, page, header);				lastSegmentIndex = segmentIndex + StyledTextPrintOptions.SEPARATOR.length();			}		}	}