1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.rendering.macro.office; |
21 |
|
|
22 |
|
import org.xwiki.properties.annotation.PropertyDescription; |
23 |
|
import org.xwiki.rendering.listener.reference.ResourceReference; |
24 |
|
|
25 |
|
|
26 |
|
@link |
27 |
|
|
28 |
|
@version |
29 |
|
@since |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 12 (12) |
Complexity: 6 |
Complexity Density: 1 |
|
31 |
|
public class OfficeMacroParameters |
32 |
|
{ |
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
private String attachment; |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
private ResourceReference reference; |
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
private boolean filterStyles = true; |
52 |
|
|
53 |
|
|
54 |
|
@return |
55 |
|
@deprecated@link |
56 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
57 |
0 |
@Deprecated... |
58 |
|
public String getAttachment() |
59 |
|
{ |
60 |
0 |
return attachment; |
61 |
|
} |
62 |
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
|
@param |
67 |
|
@deprecated |
68 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
69 |
0 |
@PropertyDescription("The office attachment to be viewed. Use an attachment string reference to specify which "... |
70 |
|
+ "office file should be viewed: file.ppt, Page@file.doc, Space.Page@file.xls or wiki:Space.Page@file.odt.") |
71 |
|
@Deprecated |
72 |
|
public void setAttachment(String attachment) |
73 |
|
{ |
74 |
0 |
this.attachment = attachment; |
75 |
|
} |
76 |
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
@return |
81 |
|
@since |
82 |
|
@since |
83 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
84 |
0 |
public ResourceReference getReference()... |
85 |
|
{ |
86 |
0 |
return this.reference; |
87 |
|
} |
88 |
|
|
89 |
|
|
90 |
|
@param |
91 |
|
@since |
92 |
|
@since |
93 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
94 |
0 |
@PropertyDescription("The office file to be viewed. Use an resource string reference to specify which"... |
95 |
|
+ " office file should be viewed:" |
96 |
|
+ " attach:file.ppt, attach:Page@file.doc, attach:Space.Page@file.xls, attach:wiki:Space.Page@file.odt," |
97 |
|
+ " url:http://some/remote/file.ppt.") |
98 |
|
public void setReference(ResourceReference reference) |
99 |
|
{ |
100 |
0 |
this.reference = reference; |
101 |
|
} |
102 |
|
|
103 |
|
|
104 |
|
@return |
105 |
|
|
106 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
0 |
public boolean isFilterStyles()... |
108 |
|
{ |
109 |
0 |
return filterStyles; |
110 |
|
} |
111 |
|
|
112 |
|
|
113 |
|
|
114 |
|
|
115 |
|
@param |
116 |
|
|
117 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
118 |
0 |
@PropertyDescription("Whether to filter in-line CSS styles present in the HTML content produced by the OpenOffice "... |
119 |
|
+ "server. Office content is usually better integrated in the host wiki page when styles are filtered.") |
120 |
|
public void setFilterStyles(boolean filterStyles) |
121 |
|
{ |
122 |
0 |
this.filterStyles = filterStyles; |
123 |
|
} |
124 |
|
} |