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(XText 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(XText 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(XText text,
XTextCursor cursor) |
static void |
insertTextAtCurrentLocation(XText text,
XTextCursor cursor,
java.lang.String string,
boolean bold,
boolean italic,
boolean monospace,
boolean smallCaps,
boolean superscript,
boolean subscript) |
static void |
insertTextAtCurrentLocation(XText text,
XTextCursor cursor,
java.lang.String string,
java.lang.String parStyle) |
static void |
listProperties(java.lang.Object o) |
static XTextDocument |
selectComponent(javax.swing.JFrame parent,
XDesktop xDesktop,
java.util.List<XTextDocument> list) |
public static void insertFullReferenceAtCurrentLocation(XText 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.Exception
UndefinedParagraphFormatException
public static void insertOOFormattedTextAtCurrentLocation(XText 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.Exception
UndefinedParagraphFormatException
public static void insertParagraphBreak(XText text, XTextCursor cursor) throws java.lang.Exception
java.lang.Exception
public static void insertTextAtCurrentLocation(XText 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.Exception
public static void insertTextAtCurrentLocation(XText text, XTextCursor cursor, java.lang.String string, java.lang.String parStyle) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object getProperty(java.lang.Object o, java.lang.String property) throws java.lang.Exception
java.lang.Exception
public static void listProperties(java.lang.Object o) throws java.lang.Exception
java.lang.Exception
public static XTextDocument selectComponent(javax.swing.JFrame parent, XDesktop xDesktop, java.util.List<XTextDocument> list) throws java.lang.Exception
java.lang.Exception
public static BibtexEntry createAdaptedEntry(BibtexEntry entry)
entry
- the original entry