.org.tinygroup.docgen.2.2.2.source-code.common.doctemplate Maven / Gradle / Ivy
#*
字体
fontInfo 包含以下内容
name 字体名字
size 字体大小
color 字体颜色
bold 是否加粗
incline 是否斜体
strike 删除线
u 下划线样式
highlight 高亮
*#
#macro font(fontInfo)
#if(fontInfo?.name) #end
#if(fontInfo?.size) #end
#if(fontInfo?.color) #end
#if(fontInfo?.bold) #end
#if(fontInfo?.incline) #end
#if(fontInfo?.strike) #end
#if(fontInfo?.u) #end
#if(fontInfo?.highlight) #end
##if(${style.rStyle}) #end
##if(${style.rFonts}) #end
##if($!{style.webHidden}=="on") #end
##if($!{style.noProof}=="on") #end
#end
#*
文字内容
content 段落的内容
font 字体
*#
#macro wr(content font)
#if(font)#font(font)#end
${content}
#end
#*
对齐方式
*#
#macro align(alignInfo)
#end
#*
缩进
left 左缩进
firstLine 首行缩进
*#
#macro indent(indentInfo)
#end
#*
标题
*#
#macro heading(size)
#end
#*
项目编号
listInfo
grade 等级
char 紧跟的字符样式
*#
#macro bullets(listInfo)
#end
#*
段落样式
style 段落格式
align 对齐方式
indent 缩进方式
headingSize 第几号标题
*#
#macro pPattern(style)
#if(style?.align)#align(style?.align)#end
#if(style?.indent)#indent(style?.indent)#end
#if(style?.headingSize)#heading(style?.headingSize)#end
#end
#*
段落
content 段落的内容
style 段落格式
align 对齐方式
indent 缩进方式
headingSize 第几号标题
bullets 项目编号
font 字体
*#
#macro p(content style)
#pPattern(style)
#if(style?.bullets)#bullets(style?.bullets)#end
#wr(content style?.font)
#end
#*
段落
style 段落格式
*#
#macro paragraph(style)
#pPattern(style)
#if(style?.bullets)#bullets(style?.bullets)#end
#bodyContent
#end
#*
段落
text 内容
style 格式
*#
#macro h(text style)
#p(text style)
#end
#*
链接
url 跳转的url地址
*#
#macro link(url)
#bodyContent
#end
#*
书签
name 书签名称
*#
#macro bookmark(name)
#bodyContent
#end
#*
图片
name:图片名称
data:图片内容的字符串表示
width: 图片宽度
height:图片高度
*#
#macro image(param)
#if(param?.name) #set(picName="wordml://"+param.name) #else #set(picName="wordml://02000001.jpg") #end
#set(data=#imageUtil('fileToBase64',param?.url))
${data}
#end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy