Top Description Fields Constructors Methods
org.jabref.model.openoffice.uno

public Class UnoStyle

extends Object
Class Inheritance
Imports
java.util.Optional, com.sun.star.container.NoSuchElementException, com.sun.star.container.XNameAccess, com.sun.star.container.XNameContainer, com.sun.star.lang.WrappedTargetException, com.sun.star.style.XStyle, com.sun.star.style.XStyleFamiliesSupplier, com.sun.star.text.XTextDocument

Styles in the document.

Field Summary

Modifier and TypeField and Description
public static final String
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Optional<com.sun.star.style.XStyle>
getCharacterStyle(com.sun.star.text.XTextDocument doc, String styleName)

public static Optional<String>
getInternalNameOfCharacterStyle(com.sun.star.text.XTextDocument doc, String name)

public static Optional<String>
getInternalNameOfParagraphStyle(com.sun.star.text.XTextDocument doc, String name)

public static Optional<String>
getInternalNameOfStyle(com.sun.star.text.XTextDocument doc, String familyName, String name)

public static Optional<com.sun.star.style.XStyle>
getParagraphStyle(com.sun.star.text.XTextDocument doc, String styleName)

private static Optional<com.sun.star.style.XStyle>
getStyleFromFamily(com.sun.star.text.XTextDocument doc, String familyName, String styleName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CHARACTER_STYLESback to summary
public static final String CHARACTER_STYLES
PARAGRAPH_STYLESback to summary
public static final String PARAGRAPH_STYLES

Constructor Detail

UnoStyleback to summary
private UnoStyle()

Method Detail

getCharacterStyleback to summary
public static Optional<com.sun.star.style.XStyle> getCharacterStyle(com.sun.star.text.XTextDocument doc, String styleName) throws com.sun.star.lang.WrappedTargetException
getInternalNameOfCharacterStyleback to summary
public static Optional<String> getInternalNameOfCharacterStyle(com.sun.star.text.XTextDocument doc, String name) throws com.sun.star.lang.WrappedTargetException
getInternalNameOfParagraphStyleback to summary
public static Optional<String> getInternalNameOfParagraphStyle(com.sun.star.text.XTextDocument doc, String name) throws com.sun.star.lang.WrappedTargetException
getInternalNameOfStyleback to summary
public static Optional<String> getInternalNameOfStyle(com.sun.star.text.XTextDocument doc, String familyName, String name) throws com.sun.star.lang.WrappedTargetException
getParagraphStyleback to summary
public static Optional<com.sun.star.style.XStyle> getParagraphStyle(com.sun.star.text.XTextDocument doc, String styleName) throws com.sun.star.lang.WrappedTargetException
getStyleFromFamilyback to summary
private static Optional<com.sun.star.style.XStyle> getStyleFromFamily(com.sun.star.text.XTextDocument doc, String familyName, String styleName) throws com.sun.star.lang.WrappedTargetException