1 19 20 package jxl.read.biff; 21 22 import common.Logger; 23 24 import jxl.biff.IntegerHelper; 25 import jxl.biff.RecordData; 26 27 30 class HorizontalPageBreaksRecord extends RecordData 31 { 32 35 private final Logger logger = Logger.getLogger 36 (HorizontalPageBreaksRecord.class); 37 38 41 private int[] rowBreaks; 42 43 46 private static class Biff7 {}; 47 public static Biff7 biff7 = new Biff7(); 48 49 54 public HorizontalPageBreaksRecord(Record t) 55 { 56 super(t); 57 58 byte[] data = t.getData(); 59 60 int numbreaks = IntegerHelper.getInt(data[0], data[1]); 61 int pos = 2; 62 rowBreaks = new int[numbreaks]; 63 64 for (int i = 0; i < numbreaks; i++) 65 { 66 rowBreaks[i] = IntegerHelper.getInt(data[pos], data[pos + 1]); 67 pos += 2; 68 } 69 } 70 71 77 public HorizontalPageBreaksRecord(Record t, Biff7 biff7) 78 { 79 super(t); 80 81 byte[] data = t.getData(); 82 int numbreaks = IntegerHelper.getInt(data[0], data[1]); 83 int pos = 2; 84 rowBreaks = new int[numbreaks]; 85 for (int i = 0; i < numbreaks; i++) 86 { 87 rowBreaks[i] = IntegerHelper.getInt(data[pos], data[pos + 1]); 88 pos += 2; 89 } 90 } 91 92 97 public int[] getRowBreaks() 98 { 99 return rowBreaks; 100 } 101 } 102 103 104 105 106 107 108 109 | Popular Tags |