public class OOUtil
extends java.lang.Object
| Constructor and Description |
|---|
OOUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BibtexEntry |
createAdaptedEntry(BibtexEntry entry)
Make a cloned BibtexEntry and do the necessary preprocessing for use by the plugin.
|
static java.lang.Object |
getProperty(java.lang.Object o,
java.lang.String property) |
static void |
insertFullReferenceAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
Layout layout,
java.lang.String parStyle,
BibtexEntry entry,
BibtexDatabase database,
java.lang.String uniquefier)
Insert a reference, formatted using a Layout, at the position of a given cursor.
|
static void |
insertOOFormattedTextAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
java.lang.String lText,
java.lang.String parStyle)
Insert a text with formatting indicated by HTML-like tags, into a text at
the position given by a cursor.
|
static void |
insertParagraphBreak(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor) |
static void |
insertTextAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
java.lang.String string,
boolean bold,
boolean italic,
boolean monospace,
boolean smallCaps,
boolean superscript,
boolean subscript) |
static void |
insertTextAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
java.lang.String string,
java.lang.String parStyle) |
static void |
listProperties(java.lang.Object o) |
static com.sun.star.text.XTextDocument |
selectComponent(javax.swing.JFrame parent,
com.sun.star.frame.XDesktop xDesktop,
java.util.List<com.sun.star.text.XTextDocument> list) |
public static void insertFullReferenceAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
Layout layout,
java.lang.String parStyle,
BibtexEntry entry,
BibtexDatabase database,
java.lang.String uniquefier)
throws UndefinedParagraphFormatException,
java.lang.Exception
text - The text to insert in.cursor - The cursor giving the insert location.layout - The Layout to format the reference with.parStyle - The name of the paragraph style to use.entry - The entry to insert.database - The database the entry belongs to.uniquefier - Uniqiefier letter, if any, to append to the entry's year.java.lang.ExceptionUndefinedParagraphFormatExceptionpublic static void insertOOFormattedTextAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
java.lang.String lText,
java.lang.String parStyle)
throws UndefinedParagraphFormatException,
java.lang.Exception
text - The text to insert in.cursor - The cursor giving the insert location.lText - The marked-up text to insert.parStyle - The name of the paragraph style to use.java.lang.ExceptionUndefinedParagraphFormatExceptionpublic static void insertParagraphBreak(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor)
throws java.lang.Exception
java.lang.Exceptionpublic static void insertTextAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
java.lang.String string,
boolean bold,
boolean italic,
boolean monospace,
boolean smallCaps,
boolean superscript,
boolean subscript)
throws java.lang.Exception
java.lang.Exceptionpublic static void insertTextAtCurrentLocation(com.sun.star.text.XText text,
com.sun.star.text.XTextCursor cursor,
java.lang.String string,
java.lang.String parStyle)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object getProperty(java.lang.Object o,
java.lang.String property)
throws java.lang.Exception
java.lang.Exceptionpublic static void listProperties(java.lang.Object o)
throws java.lang.Exception
java.lang.Exceptionpublic static com.sun.star.text.XTextDocument selectComponent(javax.swing.JFrame parent,
com.sun.star.frame.XDesktop xDesktop,
java.util.List<com.sun.star.text.XTextDocument> list)
throws java.lang.Exception
java.lang.Exceptionpublic static BibtexEntry createAdaptedEntry(BibtexEntry entry)
entry - the original entry