public abstract class AbstractTextContentInserterFilter extends Object implements Filter
| Constructor and Description |
|---|
AbstractTextContentInserterFilter(@NonNull Dimension size,
int horizontalPosition,
int verticalPosition)
Creates a new filter that will insert a text content (shape) of the specified size at the
specified location while converting a document.
|
AbstractTextContentInserterFilter(@NonNull Dimension size,
@NonNull Map<String,Object> shapeProperties)
Creates a new filter that will insert a text content (shape) of the specified size using the
specified shape properties while converting a document.
|
AbstractTextContentInserterFilter(int horizontalPosition,
int verticalPosition)
Creates a new filter that will insert a text content (shape) at the specified location while
converting a document.
|
AbstractTextContentInserterFilter(@NonNull Map<String,Object> shapeProperties)
Creates a new filter that will insert a text content (shape) using the specified shape
properties while converting a document.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyAnchorPageNoFix(@NonNull com.sun.star.text.XTextDocument docText,
@NonNull com.sun.star.text.XTextCursor textCursor)
Jumps to the page specified by the "AnchorPageNo" if present in the shape properties if this
filter.
|
static @NonNull Map<String,Object> |
createDefaultShapeProperties(int horizontalPosition,
int verticalPosition)
Creates the default shape properties that would insert text content at the specified position
on the first page of a document.
|
@NonNull Dimension |
getRectSize()
Gets the rectangle's size of the shape that will be inserted.
|
@NonNull Map<String,Object> |
getShapeProperties()
Gets the shape's properties to apply when inserting the shape to the document.
|
protected void |
setRectSize(@NonNull Dimension size)
Sets the rectangle's size of the shape that will be inserted.
|
static com.sun.star.awt.Size |
toOfficeSize(@NonNull Dimension size)
Converts the specified size where units are millimeters to an office size where unit are 1/100
millimeters.
|
public AbstractTextContentInserterFilter(int horizontalPosition,
int verticalPosition)
horizontalPosition - The horizontal position where to insert the text content on the
document (millimeters).verticalPosition - The vertical position where to insert the text content on the document
(millimeters).public AbstractTextContentInserterFilter(@NonNull Map<String,Object> shapeProperties)
shapeProperties - The properties to apply to the created shape.public AbstractTextContentInserterFilter(@NonNull Dimension size, int horizontalPosition, int verticalPosition)
size - The dimension of the shape that will be inserted (millimeters).horizontalPosition - The horizontal position where to insert the text content on the
document (millimeters).verticalPosition - The vertical position where to insert the text content on the document
(millimeters).public AbstractTextContentInserterFilter(@NonNull Dimension size, @NonNull Map<String,Object> shapeProperties)
size - The dimension of the shape that will be inserted (millimeters).shapeProperties - The properties to apply to the created shape.public static @NonNull Map<String,Object> createDefaultShapeProperties(int horizontalPosition, int verticalPosition)
horizontalPosition - The horizontal position where to insert the text content on the
document (millimeters).verticalPosition - The vertical position where to insert the text content on the document
(millimeters).public static com.sun.star.awt.Size toOfficeSize(@NonNull Dimension size)
size - The size to convert, in millimeters.protected void applyAnchorPageNoFix(@NonNull com.sun.star.text.XTextDocument docText,
@NonNull com.sun.star.text.XTextCursor textCursor)
docText - The text interface for the document.textCursor - The text cursor of the document.public @NonNull Dimension getRectSize()
protected void setRectSize(@NonNull Dimension size)
size - A Rectangle that represents the size of the shape. Units are millimeters.Copyright © 2016 - present; JODConverter.org. All rights reserved.