| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Pattern | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final byte | |
| private static final short | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Pattern | |
| private static final Logger | |
| private static final String | PARA_STYLE_NAME
"ParaStyleName" is an OpenOffice Property name. |
| private static final byte | |
| private static final short | |
| private static final byte | |
| private static final short | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static boolean | isPropertyDefault(com.
We rely on property values being either DIRECT_VALUE or DEFAULT_VALUE (not AMBIGUOUS_VALUE). |
| private static List | |
| public static void | removeDirectFormatting(com.
Purpose: in some cases we do not want to inherit direct formatting from the context. |
| public static void | removeEscapementFormatting(@NonNull com.
Reset only direct superscript/subscript formatting before rewriting marked-up citation text. |
| private static List | |
| private static List | setCharEscapement(Optional<Short> value, Optional<Byte> height, boolean relative, OOTextIntoOO.
|
| private static List | |
| private static List | setCharLocale(String value)
Locale from string encoding: language, language-country or language-country-variant |
| private static List | |
| private static List | |
| private static List | |
| private static List | |
| private static List | |
| public static boolean | setParagraphStyle(com.
Returns: true on failure |
| private static List | |
| private static List | |
| public static void | write(@NonNull com.
The cursor giving the insert location. Not modified. position,The marked-up text to insert. ootext)Insert a text with formatting indicated by HTML-like tags, into a text at the position given by a cursor. |
| ATTRIBUTE_NAME_REGEXP | back to summary |
|---|---|
| private static final String ATTRIBUTE_NAME_REGEXP | |
| ATTRIBUTE_PATTERN | back to summary |
|---|---|
| private static final Pattern ATTRIBUTE_PATTERN | |
| ATTRIBUTE_VALUE_REGEXP | back to summary |
|---|---|
| private static final String ATTRIBUTE_VALUE_REGEXP | |
| CHAR_AUTO_ESCAPEMENT | back to summary |
|---|---|
| private static final String CHAR_AUTO_ESCAPEMENT | |
| CHAR_ESCAPEMENT | back to summary |
|---|---|
| private static final String CHAR_ESCAPEMENT | |
| CHAR_ESCAPEMENT_HEIGHT | back to summary |
|---|---|
| private static final String CHAR_ESCAPEMENT_HEIGHT | |
| CHAR_ESCAPEMENT_HEIGHT_DEFAULT | back to summary |
|---|---|
| private static final byte CHAR_ESCAPEMENT_HEIGHT_DEFAULT | |
| CHAR_ESCAPEMENT_VALUE_DEFAULT | back to summary |
|---|---|
| private static final short CHAR_ESCAPEMENT_VALUE_DEFAULT | |
| CHAR_STRIKEOUT | back to summary |
|---|---|
| private static final String CHAR_STRIKEOUT | |
| CHAR_STYLE_NAME | back to summary |
|---|---|
| private static final String CHAR_STYLE_NAME | |
| CHAR_UNDERLINE | back to summary |
|---|---|
| private static final String CHAR_UNDERLINE | |
| HTML_TAG | back to summary |
|---|---|
| private static final Pattern HTML_TAG | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| PARA_STYLE_NAME | back to summary |
|---|---|
| private static final String PARA_STYLE_NAME "ParaStyleName" is an OpenOffice Property name. | |
| SUBSCRIPT_HEIGHT | back to summary |
|---|---|
| private static final byte SUBSCRIPT_HEIGHT | |
| SUBSCRIPT_VALUE | back to summary |
|---|---|
| private static final short SUBSCRIPT_VALUE | |
| SUPERSCRIPT_HEIGHT | back to summary |
|---|---|
| private static final byte SUPERSCRIPT_HEIGHT | |
| SUPERSCRIPT_VALUE | back to summary |
|---|---|
| private static final short SUPERSCRIPT_VALUE | |
| TAG_NAME_REGEXP | back to summary |
|---|---|
| private static final String TAG_NAME_REGEXP | |
| OOTextIntoOO | back to summary |
|---|---|
| private OOTextIntoOO() | |
| insertParagraphBreak | back to summary |
|---|---|
| private static void insertParagraphBreak(com. | |
| isPropertyDefault | back to summary |
|---|---|
| private static boolean isPropertyDefault(com. We rely on property values being either DIRECT_VALUE or DEFAULT_VALUE (not AMBIGUOUS_VALUE). If the cursor covers a homogeneous region, or is collapsed, then this is true. | |
| parseAttributes | back to summary |
|---|---|
| private static List Parse HTML-like attributes to a list of (name,value) pairs. | |
| removeDirectFormatting | back to summary |
|---|---|
| public static void removeDirectFormatting(com. Purpose: in some cases we do not want to inherit direct formatting from the context. In particular, when filling the bibliography title and body. | |
| removeEscapementFormatting | back to summary |
|---|---|
| public static void removeEscapementFormatting(@NonNull com. Reset only direct superscript/subscript formatting before rewriting marked-up citation text. | |
| setCharCaseMap | back to summary |
|---|---|
| private static List | |
| setCharEscapement | back to summary |
|---|---|
| private static List | |
| setCharLocale | back to summary |
|---|---|
| private static List | |
| setCharLocale | back to summary |
|---|---|
| private static List Locale from string encoding: language, language-country or language-country-variant | |
| setCharPosture | back to summary |
|---|---|
| private static List | |
| setCharStrikeout | back to summary |
|---|---|
| private static List | |
| setCharStyleName | back to summary |
|---|---|
| private static List | |
| setCharUnderline | back to summary |
|---|---|
| private static List | |
| setCharWeight | back to summary |
|---|---|
| private static List | |
| setParagraphStyle | back to summary |
|---|---|
public static boolean setParagraphStyle(com.
| |
| setSubScript | back to summary |
|---|---|
| private static List | |
| setSuperScript | back to summary |
|---|---|
| private static List | |
| write | back to summary |
|---|---|
| public static void write(@NonNull com. Insert a text with formatting indicated by HTML-like tags, into a text at the position given by a cursor. Limitation: understands no entities. It does not receive any either, unless the user provides it. To limit the damage Notable changes w.r.t insertOOFormattedTextAtCurrentLocation:
An example: a style with
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final Set | |
| pack-priv final String[] | goodNames
From index to property name. |
| pack-priv final Map | goodNameToIndex
From property name to index in goodNames. |
| pack-priv final int | goodSize
The number of properties actually controlled. |
| pack-priv final Deque | layers
Maintain a stack of layers, each containing a description of the desired state of properties. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv Optional | |
| pack-priv void | |
| pack-priv void |
| CONTROLLED_PROPERTIES | back to summary |
|---|---|
| pack-priv static final Set<String> CONTROLLED_PROPERTIES | |
| goodNames | back to summary |
|---|---|
| pack-priv final String[] goodNames From index to property name. | |
| goodNameToIndex | back to summary |
|---|---|
| pack-priv final Map<String, Integer> goodNameToIndex From property name to index in goodNames. | |
| goodSize | back to summary |
|---|---|
| pack-priv final int goodSize The number of properties actually controlled. | |
| layers | back to summary |
|---|---|
| pack-priv final Deque<ArrayList<Optional<Object>>> layers Maintain a stack of layers, each containing a description of the desired state of properties. Each description is an ArrayList of property values, Optional.empty() encoding "not directly set". | |
| MyPropertyStack | back to summary |
|---|---|
| pack-priv MyPropertyStack(com. | |
| apply | back to summary |
|---|---|
| pack-priv void apply(com. Apply the current desired formatting state to a cursor. The idea is to minimize the number of calls to OpenOffice. | |
| getPropertyValue | back to summary |
|---|---|
| pack-priv Optional | |
| popLayer | back to summary |
|---|---|
| pack-priv void popLayer() Closing tags just pop a layer. | |
| pushLayer | back to summary |
|---|---|
| pack-priv void pushLayer(List<OOPair<String, Object>> settings) Given a list of property name, property value pairs, construct and push a new layer describing the intended state after these have been applied. Opening tags usually call this. | |