aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2004-02-03 22:11:15 +0000
committerJeremias Maerki <jeremias@apache.org>2004-02-03 22:11:15 +0000
commitdebec9e24b83c54abbfa9dbb0f4b68cd0ddf4ac0 (patch)
tree5bb3c67b2145e0e1c321d62d4dd70e129da96d37
parent3145d4abcb7e2b137b1f52c7b02bb05042f8e8a5 (diff)
downloadxmlgraphics-fop-debec9e24b83c54abbfa9dbb0f4b68cd0ddf4ac0.tar.gz
xmlgraphics-fop-debec9e24b83c54abbfa9dbb0f4b68cd0ddf4ac0.zip
Tab char and style fixes only.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197320 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/render/pdf/PDFRenderer.java53
1 files changed, 26 insertions, 27 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderer.java b/src/java/org/apache/fop/render/pdf/PDFRenderer.java
index de20910ed..e4979585c 100644
--- a/src/java/org/apache/fop/render/pdf/PDFRenderer.java
+++ b/src/java/org/apache/fop/render/pdf/PDFRenderer.java
@@ -229,13 +229,13 @@ public class PDFRenderer extends PrintRenderer {
* Offset for rendering text, taking into account borders and padding for
* both region and block.
*/
- protected int BPMarginOffset = 0;
+ protected int bpMarginOffset = 0;
/**
* Offset for rendering text, taking into account borders and padding for
* both the region and block.
*/
- protected int IPMarginOffset = 0;
+ protected int ipMarginOffset = 0;
/**
* create the PDF renderer
@@ -454,8 +454,8 @@ public class PDFRenderer extends PrintRenderer {
pageReferences.put(page.getKey(), currentPage.referencePDF());
pvReferences.put(page.getKey(), page);
}
- currentStream =
- this.pdfDoc.getFactory().makeStream(PDFFilterList.CONTENT_FILTER, false);
+ currentStream = this.pdfDoc.getFactory()
+ .makeStream(PDFFilterList.CONTENT_FILTER, false);
currentState = new PDFState();
currentState.setTransform(new AffineTransform(1, 0, 0, -1, 0,
@@ -507,35 +507,35 @@ public class PDFRenderer extends PrintRenderer {
* @see org.apache.fop.render.AbstractRenderer#renderBlocks(Block, List)
*/
protected void renderBlocks(Block block, List blocks) {
- int saveIPMargin = IPMarginOffset;
- int saveBPMargin = BPMarginOffset;
+ int saveIPMargin = ipMarginOffset;
+ int saveBPMargin = bpMarginOffset;
if (block != null) {
Integer spaceStart = (Integer) block.getTrait(Trait.SPACE_START);
if (spaceStart != null) {
- IPMarginOffset += spaceStart.intValue();
+ ipMarginOffset += spaceStart.intValue();
}
Integer paddingStart = (Integer) block.getTrait(Trait.PADDING_START);
if (paddingStart != null) {
- IPMarginOffset += paddingStart.intValue();
+ ipMarginOffset += paddingStart.intValue();
}
- Integer paddingBefore= (Integer) block.getTrait(Trait.PADDING_BEFORE);
+ Integer paddingBefore = (Integer) block.getTrait(Trait.PADDING_BEFORE);
if (paddingBefore != null) {
- BPMarginOffset += paddingBefore.intValue();
+ bpMarginOffset += paddingBefore.intValue();
}
BorderProps borderStartWidth = (BorderProps) block.getTrait(Trait.BORDER_START);
if (borderStartWidth != null) {
- IPMarginOffset += borderStartWidth.width;
+ ipMarginOffset += borderStartWidth.width;
}
BorderProps borderBeforeWidth = (BorderProps) block.getTrait(Trait.BORDER_BEFORE);
if (borderBeforeWidth != null) {
- BPMarginOffset += borderBeforeWidth.width;
+ bpMarginOffset += borderBeforeWidth.width;
}
}
super.renderBlocks(block, blocks);
- IPMarginOffset = saveIPMargin;
- BPMarginOffset = saveBPMargin;
+ ipMarginOffset = saveIPMargin;
+ bpMarginOffset = saveBPMargin;
}
/**
@@ -553,10 +553,9 @@ public class PDFRenderer extends PrintRenderer {
float height = (float)(viewArea.getHeight() / 1000f);
if (region.getRegion().getRegionClass()
- == org.apache.fop.fo.pagination.Region.BODY_CODE)
- {
- BPMarginOffset = region.getBorderAndPaddingWidthBefore();
- IPMarginOffset = region.getBorderAndPaddingWidthStart();
+ == org.apache.fop.fo.pagination.Region.BODY_CODE) {
+ bpMarginOffset = region.getBorderAndPaddingWidthBefore();
+ ipMarginOffset = region.getBorderAndPaddingWidthStart();
}
drawBackAndBorders(region, startx, starty, width, height);
@@ -571,12 +570,12 @@ public class PDFRenderer extends PrintRenderer {
* @param block the block to render the traits
*/
protected void handleBlockTraits(Block block) {
- /* IPMarginOffset for a particular block = region border +
+ /* ipMarginOffset for a particular block = region border +
* region padding + parent block padding + current block padding
*/
- float startx = (currentIPPosition + IPMarginOffset) / 1000f;
- float starty = (currentBPPosition + BPMarginOffset) / 1000f;
+ float startx = (currentIPPosition + ipMarginOffset) / 1000f;
+ float starty = (currentBPPosition + bpMarginOffset) / 1000f;
float width = block.getWidth() / 1000f;
Integer spaceStart = (Integer) block.getTrait(Trait.SPACE_START);
@@ -868,8 +867,8 @@ public class PDFRenderer extends PrintRenderer {
* @param ip the inline parent area
*/
public void renderInlineParent(InlineParent ip) {
- float start = (currentBlockIPPosition + IPMarginOffset) / 1000f;
- float top = (ip.getOffset() + currentBPPosition + BPMarginOffset) / 1000f;
+ float start = (currentBlockIPPosition + ipMarginOffset) / 1000f;
+ float top = (ip.getOffset() + currentBPPosition + bpMarginOffset) / 1000f;
float width = ip.getWidth() / 1000f;
float height = ip.getHeight() / 1000f;
drawBackAndBorders(ip, start, top, width, height);
@@ -942,8 +941,8 @@ public class PDFRenderer extends PrintRenderer {
// word.getOffset() = only height of text itself
// currentBlockIPPosition: 0 for beginning of line; nonzero
// where previous line area failed to take up entire allocated space
- int rx = currentBlockIPPosition + IPMarginOffset;
- int bl = currentBPPosition + BPMarginOffset + text.getOffset();
+ int rx = currentBlockIPPosition + ipMarginOffset;
+ int bl = currentBPPosition + bpMarginOffset + text.getOffset();
/*
System.out.println("\nBlockIP Position: " + currentBlockIPPosition +
"; currentBPPosition: " + currentBPPosition +
@@ -1207,8 +1206,8 @@ public class PDFRenderer extends PrintRenderer {
saveGraphicsState();
currentStream.add(((float) w) + " 0 0 "
+ ((float) -h) + " "
- + (((float) currentBlockIPPosition + IPMarginOffset) / 1000f + x) + " "
- + (((float)(currentBPPosition + BPMarginOffset + 1000 * h)) / 1000f
+ + (((float) currentBlockIPPosition + ipMarginOffset) / 1000f + x) + " "
+ + (((float)(currentBPPosition + bpMarginOffset + 1000 * h)) / 1000f
+ y) + " cm\n" + "/Im" + xobj + " Do\n");
restoreGraphicsState();
}
Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/l10n/sr.json
blob: 47959539160fc74b5868dd257491d5f1f8fbde64 (plain)
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261