public abstract class OStyle extends OEnumPropObj implements java.lang.Comparable<OStyle>
| Modifier and Type | Class and Description |
|---|---|
static class |
OStyle.Cell
A cell style.
|
static class |
OStyle.Char
A character style.
|
static class |
OStyle.DrawCell
A drawing cell style.
|
static class |
OStyle.DrawTable
A drawing table style.
|
static class |
OStyle.Family
A style family.
|
static class |
OStyle.Frame
A graphics frame style.
|
static class |
OStyle.Graphics
A graphics style.
|
static class |
OStyle.Numbering
A numbering style.
|
static class |
OStyle.Page
A page style.
|
static class |
OStyle.Para
A paragraph style.
|
static class |
OStyle.Shape
A drawing shape style.
|
static class |
OStyle.Table
A table style.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(OStyle style)
Compares the style with another based on family and name.
|
ORootDoc |
doc()
Returns the style's document.
|
boolean |
equals(OStyle style)
Tests whether the style is equal to another based on compareTo.
|
OStyle.Family |
family()
Returns the style's family.
|
boolean |
isInUse()
Returns whether the style is in use.
|
boolean |
isUserDefined()
Returns whether the style is user defined.
|
java.lang.String |
name()
Returns the style's name.
|
ONumbering |
numbering()
Returns the style's numbering.
|
java.lang.String |
parentStyle()
Returns the name of the parent style.
|
void |
setFillColor(OColor color)
Sets the fill color for a style by setting the color and FillStyle.SOLID.
|
void |
setParentStyle(java.lang.String parentName)
Sets the name of the parent style.
|
java.lang.String |
toString()
Returns a string representation of the style.
|
com.sun.star.style.XStyle |
xGetXStyle()
Gets the XStyle object.
|
prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProplogProps, xGetPropSetpublic ORootDoc doc()
public OStyle.Family family()
public java.lang.String name()
public boolean isUserDefined()
public boolean isInUse()
public java.lang.String parentStyle()
public int compareTo(OStyle style)
compareTo in interface java.lang.Comparable<OStyle>style - the style to compare withpublic boolean equals(OStyle style)
style - the style to compare withpublic ONumbering numbering()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setParentStyle(java.lang.String parentName)
throws com.sun.star.uno.Exception
parentName - the parent style's namecom.sun.star.uno.Exceptionpublic void setFillColor(OColor color) throws com.sun.star.uno.Exception
color - the fill colorcom.sun.star.uno.Exceptionpublic com.sun.star.style.XStyle xGetXStyle()