Class StyleNameProvider
java.lang.Object
org.openoffice.da.comp.w2lcommon.helper.StyleNameProvider
This class provides access to the style names and localized style names of the current document
-
Constructor Summary
ConstructorsConstructorDescriptionStyleNameProvider
(com.sun.star.uno.XComponentContext xContext) Construct a newStyleNameProvider
-
Method Summary
Modifier and TypeMethodDescriptiongetDisplayNames
(String sFamily) Get the mapping of internal names to display names for a style familygetInternalNames
(String sFamily) Get the mapping of display names to internal names for a style family
-
Constructor Details
-
StyleNameProvider
public StyleNameProvider(com.sun.star.uno.XComponentContext xContext) Construct a newStyleNameProvider
- Parameters:
xContext
- the componemt context to get the desktop from
-
-
Method Details
-
getDisplayNames
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
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
-