48 |
} else if(qName.equals("fts")) { |
} else if(qName.equals("fts")) { |
49 |
String t = attributes.getValue("t"); |
String t = attributes.getValue("t"); |
50 |
spans.add(new org.nongnu.alph.impl.FakeTextSpan(t)); |
spans.add(new org.nongnu.alph.impl.FakeTextSpan(t)); |
51 |
|
} else if(qName.equals("ps")) { |
52 |
|
String b = attributes.getValue("b"); |
53 |
|
int s = Integer.parseInt(attributes.getValue("s")); |
54 |
|
int e = Integer.parseInt(attributes.getValue("e")); |
55 |
|
spans.add(((PageScrollBlock)(scrollBlockFactory.getScrollBlock(b))) |
56 |
|
.getSpan(s, e)); |
57 |
|
} else if(qName.equals("pis")) { |
58 |
|
String b = attributes.getValue("b"); |
59 |
|
int p = Integer.parseInt(attributes.getValue("p")); |
60 |
|
int x = Integer.parseInt(attributes.getValue("x")); |
61 |
|
int y = Integer.parseInt(attributes.getValue("y")); |
62 |
|
int w = Integer.parseInt(attributes.getValue("w")); |
63 |
|
int h = Integer.parseInt(attributes.getValue("h")); |
64 |
|
spans.add(((PageScrollBlock)(scrollBlockFactory.getScrollBlock(b))) |
65 |
|
.getPage(p).subArea(x,y,w,h)); |
66 |
} else { |
} else { |
67 |
throw new Error("Unknown element '"+localName+"'"); |
throw new Error("Unknown element '"+localName+"'"); |
68 |
} |
} |