RawBuilder.java
1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.DispLineRaw;
import com.adobe.xfa.text.DispRaw;
import com.adobe.xfa.text.FormatInfo;
import com.adobe.xfa.text.PosnStack;
import com.adobe.xfa.text.RawProcessor;
import com.adobe.xfa.text.TextAttr;
import com.adobe.xfa.text.TextEmbed;
import com.adobe.xfa.text.TextPosnBase;
class RawBuilder
extends DispRaw {
private final RawProcessor moProcessor;
RawBuilder(FormatInfo oFormatInfo, DispLineRaw poLine) {
super(oFormatInfo, oFormatInfo.posnStack());
this.moProcessor = new RawProcessor(oFormatInfo, poLine, this.getPosition(), oFormatInfo.resolveAttr(oFormatInfo.getAttr()));
}
void finish() {
this.moProcessor.finish(this.isLastParaLine(), this.isLastLineInStream());
}
@Override
protected boolean onAttr() {
this.moProcessor.processAttr(this.getPosition().nextAttr());
return true;
}
@Override
protected boolean onChar(int c, int eBreak) {
this.moProcessor.processChar(c, eBreak, this.getPosition());
return false;
}
@Override
protected boolean onObject() {
this.moProcessor.processObject(this.getPosition().nextEmbed(), this.getPosition());
return true;
}
@Override
protected boolean onPara() {
this.moProcessor.processPara(this.getPosition());
return false;
}
@Override
protected void onStreamStart() {
this.moProcessor.processStreamStart(this.getPosition());
}
@Override
protected void onStreamEnd() {
this.moProcessor.processStreamEnd(this.getPosition());
}
}