1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 import org.apache.cocoon.components.elementprocessor.types.NumericResult; 20 21 import java.io.IOException ; 22 23 35 public class EP_Orientation extends BaseElementProcessor { 36 private NumericResult _print_orientation; 37 38 41 public EP_Orientation() { 42 super(null); 43 _print_orientation = null; 44 } 45 46 52 int getPrintOrientation() throws IOException { 53 if (_print_orientation == null) { 54 _print_orientation = 55 PrintOrientation.extractPrintOrientation(this.getData()); 56 } 57 return _print_orientation.intValue(); 58 } 59 60 64 public void endProcessing() throws IOException { 65 this.getSheet().setOrientation(getPrintOrientation() == 1 ? false : true); 66 } 67 68 } | Popular Tags |