DispRun.java
4 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.DispLine;
import com.adobe.xfa.text.DispMapItem;
import com.adobe.xfa.text.TextAttr;
import com.adobe.xfa.text.TextDisplay;
import com.adobe.xfa.text.TextFrame;
class DispRun
extends DispMapItem {
private TextFrame mpoFrame;
private TextDisplay mpoDisplay;
private TextAttr mpoAttr;
private int mnLanguageID;
private int meGlyphOrientation = 0;
private boolean mbIsComb;
private boolean mbAllowLigatures;
private boolean mbAllowKerning;
private boolean mbUsingUnicodeFont;
DispRun() {
}
DispRun(DispRun oSource) {
super(oSource);
this.copy(oSource, oSource.mpoAttr);
}
DispRun(DispRun oSource, int index, int length) {
super(index, length);
this.copy(oSource, oSource.mpoAttr);
}
DispRun(DispRun oSource, TextAttr poNewAttr) {
super(oSource);
this.copy(oSource, poNewAttr, true);
}
DispRun(TextFrame poFrame, TextAttr poAttr) {
this.mpoFrame = poFrame;
this.mpoDisplay = poFrame.display();
this.setAttr(poAttr);
}
DispRun(DispRun oSource, int eNewGlyphOrientation) {
super(oSource);
this.copy(oSource, oSource.mpoAttr);
this.meGlyphOrientation = eNewGlyphOrientation;
}
TextAttr getAttr() {
return this.mpoAttr;
}
void setAttr(TextAttr poAttr) {
TextAttr poFlatAttr;
if (poAttr == this.mpoAttr) {
return;
}
this.mpoAttr = poAttr == null ? null : ((poFlatAttr = poAttr.conditionalFlatten()) != null ? poFlatAttr : poAttr);
}
TextFrame getFrame() {
return this.mpoFrame;
}
TextDisplay getDisplay() {
return this.mpoDisplay;
}
int getLanguageID() {
return this.mnLanguageID;
}
void setLanguageID(int nLanguageID) {
this.mnLanguageID = nLanguageID;
}
boolean isRTL() {
return this.mpoFrame.isRTL(this.mpoAttr);
}
boolean isIdeographic() {
return this.mpoFrame.isIdeographic(this.mpoAttr);
}
boolean isComb() {
return this.mbIsComb;
}
void setComb(boolean bIsComb) {
this.mbIsComb = bIsComb;
}
boolean allowLigatures() {
return this.mbAllowLigatures;
}
void setAllowLigatures(boolean bAllowLigatures) {
this.mbAllowLigatures = bAllowLigatures;
}
boolean allowKerning() {
return this.mbAllowKerning;
}
void setAllowKerning(boolean bAllowKerning) {
this.mbAllowKerning = bAllowKerning;
}
int glyphOrientation() {
return this.meGlyphOrientation;
}
void setGlyphOrientation(int eGlyphOrientation) {
this.meGlyphOrientation = eGlyphOrientation;
}
void copyFrom(DispRun oSource) {
if (this != oSource) {
super.copyFrom(oSource);
this.copy(oSource, oSource.mpoAttr);
}
}
void copy(DispRun oSource, TextAttr poAttr, boolean bForceAttr) {
this.mpoFrame = oSource.mpoFrame;
this.mpoDisplay = oSource.mpoDisplay;
this.meGlyphOrientation = oSource.meGlyphOrientation;
this.mbIsComb = oSource.mbIsComb;
this.mbAllowLigatures = oSource.mbAllowLigatures;
this.mbAllowKerning = oSource.mbAllowKerning;
this.mbUsingUnicodeFont = oSource.mbUsingUnicodeFont;
this.setAttr(poAttr);
}
void copy(DispRun oSource, TextAttr poAttr) {
this.copy(oSource, poAttr, false);
}
@Override
DispRun r() {
return this;
}
@Override
void add(DispLine line, int start, int length) {
line.add(this, start, length);
}
@Override
DispMapItem cloneMapItem() {
return new DispRun(this);
}
@Override
DispMapItem cloneMapItem(int index, int length) {
return new DispRun(this, index, length);
}
@Override
void copyFrom(DispMapItem source) {
assert (source instanceof DispRun);
this.copyFrom((DispRun)source);
}
}