public class TextInserterFilter extends AbstractTextContentInserterFilter
| Constructor and Description |
|---|
TextInserterFilter(String text,
int width,
int height,
int horizontalPosition,
int verticalPosition)
创建一个新筛选器,在转换文档时将在指定位置插入指定的文本.
|
TextInserterFilter(String text,
int width,
int height,
Map<String,Object> shapeProperties)
创建一个新筛选器,在转换文档时将在指定位置插入指定的文本.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(Context context,
com.sun.star.lang.XComponent document,
FilterChain chain)
由于转换请求,每次通过链传递文档时,都会调用过滤器的doFilter方法。
传入此方法的筛选器链允许筛选器将文档传递给链中的下一个实体.
|
applyAnchorPageNoFix, createDefaultShapeProperties, getRectSize, getShapeProperties, toOfficeSizepublic TextInserterFilter(String text, int width, int height, int horizontalPosition, int verticalPosition)
text - 要插入的文本.width - 要插入的矩形的宽度(毫米).height - 要插入的矩形的高度(毫米).horizontalPosition - 在文档上插入文本的水平位置(毫米).verticalPosition - 在文档上插入文本的垂直位置(毫米).public void doFilter(Context context, com.sun.star.lang.XComponent document, FilterChain chain) throws Exception
Filtercontext - 用于沿链传递的Office Context.document - 被转换为沿链传递的XComponent.chain - 链Exception - 如果处理过滤器时发生错误.Copyright © 2019. All rights reserved.