Class StyleNameProvider
- java.lang.Object
-
- org.openoffice.da.comp.w2lcommon.helper.StyleNameProvider
-
public class StyleNameProvider extends java.lang.Object
This class provides access to the style names and localized style names of the current document
-
-
Constructor Summary
Constructors Constructor Description StyleNameProvider(com.sun.star.uno.XComponentContext xContext)
Construct a newStyleNameProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getDisplayNames(java.lang.String sFamily)
Get the mapping of internal names to display names for a style familyjava.util.Map<java.lang.String,java.lang.String>
getInternalNames(java.lang.String sFamily)
Get the mapping of display names to internal names for a style family
-
-
-
Method Detail
-
getDisplayNames
public java.util.Map<java.lang.String,java.lang.String> getDisplayNames(java.lang.String sFamily)
Get the mapping of internal names to display names for a style family- Parameters:
sFamily
- the style family (for text documents this should be CharacterStyles, ParagraphStyles, FrameStyles, PageStyles or NumberingStyles)- Returns:
- a read only map from internal names to display names, or null if the family is not known to the provider
-
getInternalNames
public java.util.Map<java.lang.String,java.lang.String> getInternalNames(java.lang.String sFamily)
Get the mapping of display names to internal names for a style family- Parameters:
sFamily
- the style family (for text documents this should be CharacterStyles, ParagraphStyles, FrameStyles, PageStyles or NumberingStyles)- Returns:
- a read only map from display names to internal names, or null if the family is not known to the provider
-
-