1 2 3 4 5 6 7 8 9 10 11 |
#@wordDocument() #@body() #@image({"name":"111.jpg","width":"249pt","height":"119.25pt","data":"$picData"}) #end #end #end |
1 2 3 4 5 6 7 8 9 10 11 |
#@wordDocument() #@body() #@imageFromFile({"name":"111.jpg","width":"249pt","height":"119.25pt","file":"c:\pic.jpg"}) #end #end #end |
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 |
#@wordDocument() #@body() #@bookmark("我的书签") #set($content="这里是书签") #h($content, {"font":{"name":"方正姚体","size":"48","color":"FF0000","bold":"","highlight":"cyan"}} ) #end #set($url=" http://my.oschina.net/tinyframework") #set($text="点击这里可以跳转到悠然首页") #@link($url) #h($text, {"font":{"name":"方正姚体","size":"48","color":"FF0000","bold":"","highlight":"green"}} ) #end #end #end |
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 |
#@wordDocument() #@body() #@outline({"grade":"1","bookmarkNO":"_Toc372801234","name":"第 1 章 对象入门","font":{"name":"方正姚体","size":"48","color":"FF0000","bold":"","highlight":"cyan"}}) ## 定义了一级大纲,名称为:第 1 章 对象入门,该大纲的ID: _Toc372801234 #@outline({"grade":"2","bookmarkNO":"_Toc2ny301234","name":"1.1 抽象的进步"}) #@outline({"grade":"3","bookmarkNO":"_Toc37ahy2234","name":"1.1.1 注释文档"}) #end #end #@outline({"grade":"2","bookmarkNO":"_Toc3728mi734","name":"1.2 对象的接口"}) #@outline({"grade":"3","bookmarkNO":"_Toc37280me84","name":"1.2.1 集合与继承器"}) #end #end #@outline({"grade":"2","bookmarkNO":"_Toc3plk23234","name":"1.3 方案的重复使用"}) #end #end #@outline({"grade":"1","bookmarkNO":"_Toc37281nju4","name":"第2 章一切都是对象"}) #end #end #end |
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 |
#@wordDocument() #@body() #cataHeader("目录",{"font":"宋体","color":"00B050","size":"30","bold":"on"}) #catalogue({"begin":"","grade":"10","bookmarkNo":"_Toc374566201","pageNo":"1","content":"1. 对象入门"}) #catalogue({"grade":"20","bookmarkNo":"_Toc374566202","pageNo":"1","content":"1.1 抽象的进步"}) #catalogue({"grade":"30","bookmarkNo":"_Toc374566203","pageNo":"1","content":"1.1.1 注释文档"}) #catalogue({"grade":"20","bookmarkNo":"_Toc374566204","pageNo":"1","content":"1.2 对象的接口"}) #catalogue({"grade":"30","bookmarkNo":"_Toc374566205","pageNo":"1","content":"1.2.1 集合与继承器"}) #catalogue({"grade":"20","bookmarkNo":"_Toc374566206","pageNo":"1","content":"1.3 方案的重复使用"}) #cataEnd() #@outline({"grade":"1","bookmarkNO":"_Toc374566201","name":"对象入门","multilevel":{"level":"0","ilfo":"41","char":"1"}})#end #@outline({"grade":"2","bookmarkNO":"_Toc374566202","name":"抽象的进步","multilevel":{"level":"1","ilfo":"41","char":"1.1"}})#end #@outline({"grade":"3","bookmarkNO":"_Toc374566203","name":"注释文档","multilevel":{"level":"2","ilfo":"41","char":"1.1.1"}})#end #@outline({"grade":"2","bookmarkNO":"_Toc374566204","name":"对象的接口","multilevel":{"level":"1","ilfo":"41","char":"1.2"}})#end #@outline({"grade":"3","bookmarkNO":"_Toc374566205","name":"集合与继承器","multilevel":{"level":"2","ilfo":"41","char":"1.2.1"}})#end #@outline({"grade":"2","bookmarkNO":"_Toc374566206","name":"方案的重复使用","multilevel":{"level":"1","ilfo":"41","char":"1.3"}})#end #end #end |
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 |
#@wordDocument() #@body() #p("普通段落测试") #p("左对齐",{"align":"left"}) #p("居中",{"align":"center"}) #p("右对齐",{"align":"right"}) #p("两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐两端对齐") #p("分散对齐",{"align":"distribute"}) #p("方正姚体",{"font":{"name":"方正姚体"}}) #p("48号字体",{"font":{"size":"48"}}) #p("红色字体",{"font":{"color":"FF0000"}}) #p("加粗",{"font":{"bold":""}}) #p("斜体",{"font":{"incline":""}}) #p("删除线",{"font":{"strike":""}}) #p("双下划线",{"font":{"u":"double"}}) #p("黄色高亮",{"font":{"highlight":"yellow"}}) #p("首字缩进",{"indent":{"firstLine":"300"}}) #end #end |
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 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
#@wordDocument() #@body() #p("表格测试1,两行两列,单元格高度和宽度自动",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table() #@tableRow() #@tableCell() #p("单元格11单元格11单元格11单元格11单元格11") #end #@tableCell() #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22单元格22") #end #end #end #p("表格测试2,两行两列,高度自动",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table() #@tableRow() #@tableCell({"span":{"width":"4000"}}) ##单元格宽度 4000 #p("单元格11") #end #@tableCell({"span":{"width":"3000"}}) ##单元格宽度 3000 #p("单元格12") #end #end #@tableRow() #@tableCell({"span":{"width":"4000"}}) ##单元格宽度 4000 #p("单元格21") #end #@tableCell({"span":{"width":"3000"}}) ##单元格宽度 3000 #p("单元格22") #end #end #end #p("表格测试3,两行两列,宽度自动",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table() #@tableRow() #@tableCell() #p("单元格11") #end #@tableCell() #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22") #end #end #end #p("表格测试4,边框类型为单线,颜色为绿色,宽度为30",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table({"borders":{"wval":"single","color":"92D050","size":"30"}}) #@tableRow() #@tableCell() #p("单元格11") #end #@tableCell() #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22") #end #end #end #p("表格测试5,边框类型为双划线,颜色为紫色,宽度为20",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table({"borders":{"wval":"double","color":"7030A0","size":"20"}}) #@tableRow() #@tableCell() #p("单元格11") #end #@tableCell() #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22") #end #end #end #p("表格测试6,",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table({"shading":{"wval":"solid","color":"92D050","fill":"auto"}}) #@tableRow() #@tableCell({"shading":{"wval":"solid","color":"FFFF00","fill":"auto"}, "span":{"width":"6000","type":"dxa"}}) #p("单元格11") #end #@tableCell() #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22") #end #end #end #p("表格测试7,",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table({"shading":{"wval":"solid","color":"92D050","fill":"auto"}}) #@tableRow() #@tableCell() #p("单元格11") #end #@tableCell({"borders":{"wval":"thin-thick-medium-gap","width":"120","color":"00B050"}, "shading":{"wval":"solid","color":"FF0000","fill":"FF0000"}}) #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22") #end #end #end #p("表格测试8,",{"font":{"size":"24","color":"FF0000","bold":""}}) #@table({"shading":{"wval":"solid","color":"92D050","fill":"auto"}}) #@tableRow() #@tableCell({"borders":{"wval":"dash-dot-stroked","width":"120","color":"E36C0A"}, "shading":{"wval":"solid","color":"FFFF00","fill":"auto"}}) #p("单元格11") #end #@tableCell() #p("单元格12") #end #end #@tableRow() #@tableCell() #p("单元格21") #end #@tableCell() #p("单元格22") #end #end #end #end #end |
1 2 3 4 5 |
<dependency> <groupId>org.tinygroup</groupId> <artifactId>docgen</artifactId> <version>0.0.12</version> < /dependency> |