org.openoffice.da.comp.w2lcommon.filter

Class OptionsDialogBase

Implemented Interfaces:
XDialogEventHandler, XExecutableDialog, XPropertyAccess, XServiceInfo, XServiceName, XTypeProvider
Known Direct Subclasses:
LaTeXOptionsDialog, XhtmlOptionsDialog, XhtmlOptionsDialogCalc

public abstract class OptionsDialogBase
extends DialogBase
implements XPropertyAccess

This class provides an abstract uno component which implements a filter ui

Field Summary

protected XMultiServiceFactory
xMSF

Fields inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogBase

CHECKBOX_CHECKED, CHECKBOX_DONT_KNOW, CHECKBOX_NOT_CHECKED, __implementationName, __serviceName, xContext

Constructor Summary

OptionsDialogBase(XComponentContext xContext)
Create a new OptionsDialogBase

Method Summary

void
finalize()
Finalize the dialog after execution (eg. save settings to the registry)
abstract String
getDialogLibraryName()
Return the name of the library containing the dialog
abstract String
getDialogName()
Return the name of the dialog within the library
PropertyValue[]
getPropertyValues()
abstract String
getRegistryPath()
Return the path to the options in the registry
Type[]
getTypes()
void
initialize()
Initialize the dialog (eg. with settings from the registry)
protected boolean
isLocked(String sOptionName)
protected boolean
loadCheckBoxOption(XPropertySet xProps, String sName)
protected String
loadComboBoxOption(XPropertySet xProps, String sName)
protected void
loadConfig(XPropertySet xProps)
protected short
loadListBoxOption(XPropertySet xProps, String sName)
protected int
loadNumericOption(XPropertySet xProps, String sName)
protected abstract void
loadSettings(XPropertySet xRegistryProps)
Load settings from the registry to the dialog The subclass must implement this
protected String
loadTextFieldOption(XPropertySet xProps, String sName)
protected boolean
saveCheckBoxOption(XPropertySet xProps, String sName)
protected boolean
saveCheckBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
protected String
saveComboBoxOption(XPropertySet xProps, String sName)
protected String
saveComboBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
protected short
saveConfig(XPropertySet xProps, PropertyHelper filterData)
protected short
saveListBoxOption(XPropertySet xProps, String sName)
protected short
saveListBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName, String[] sValues)
protected int
saveNumericOption(XPropertySet xProps, String sName)
protected int
saveNumericOptionAsPercentage(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
protected abstract void
saveSettings(XPropertySet xRegistryProps, PropertyHelper filterData)
Save settings from the dialog to the registry and create FilterData The subclass must implement this
protected String
saveTextFieldOption(XPropertySet xProps, String sName)
protected String
saveTextFieldOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
void
setPropertyValues(PropertyValue[] props)
protected void
updateLockedOptions()

Methods inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogBase

callHandlerMethod, execute, finalize, getCheckBoxState, getCheckBoxStateAsBoolean, getComboBoxText, getDialogLibraryName, getDialogName, getFormattedFieldText, getImplementationId, getImplementationName, getListBoxLineCount, getListBoxSelectedItem, getListBoxStringItemList, getNumericFieldValue, getPropertyValue, getPropertyValueAsBoolean, getPropertyValueAsInteger, getPropertyValueAsShort, getPropertyValueAsString, getServiceName, getSupportedMethodNames, getSupportedServiceNames, getTextFieldText, getTypes, initialize, setCheckBoxState, setCheckBoxStateAsBoolean, setComboBoxText, setControlEnabled, setFormattedFieldText, setListBoxLineCount, setListBoxSelectedItem, setListBoxStringItemList, setNumericFieldValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setTextFieldText, setTitle, supportsService

Field Details

xMSF

protected XMultiServiceFactory xMSF

Constructor Details

OptionsDialogBase

public OptionsDialogBase(XComponentContext xContext)
Create a new OptionsDialogBase

Method Details

finalize

public void finalize()
Finalize the dialog after execution (eg. save settings to the registry)
Overrides:
finalize in interface DialogBase

getDialogLibraryName

public abstract String getDialogLibraryName()
Return the name of the library containing the dialog
Overrides:
getDialogLibraryName in interface DialogBase

getDialogName

public abstract String getDialogName()
Return the name of the dialog within the library
Overrides:
getDialogName in interface DialogBase

getPropertyValues

public PropertyValue[] getPropertyValues()

getRegistryPath

public abstract String getRegistryPath()
Return the path to the options in the registry

getTypes

public Type[] getTypes()
Overrides:
getTypes in interface DialogBase

initialize

public void initialize()
Initialize the dialog (eg. with settings from the registry)
Overrides:
initialize in interface DialogBase

isLocked

protected boolean isLocked(String sOptionName)

loadCheckBoxOption

protected boolean loadCheckBoxOption(XPropertySet xProps,
                                     String sName)

loadComboBoxOption

protected String loadComboBoxOption(XPropertySet xProps,
                                    String sName)

loadConfig

protected void loadConfig(XPropertySet xProps)

loadListBoxOption

protected short loadListBoxOption(XPropertySet xProps,
                                  String sName)

loadNumericOption

protected int loadNumericOption(XPropertySet xProps,
                                String sName)

loadSettings

protected abstract void loadSettings(XPropertySet xRegistryProps)
Load settings from the registry to the dialog The subclass must implement this

loadTextFieldOption

protected String loadTextFieldOption(XPropertySet xProps,
                                     String sName)

saveCheckBoxOption

protected boolean saveCheckBoxOption(XPropertySet xProps,
                                     String sName)

saveCheckBoxOption

protected boolean saveCheckBoxOption(XPropertySet xProps,
                                     PropertyHelper filterData,
                                     String sName,
                                     String sOptionName)

saveComboBoxOption

protected String saveComboBoxOption(XPropertySet xProps,
                                    String sName)

saveComboBoxOption

protected String saveComboBoxOption(XPropertySet xProps,
                                    PropertyHelper filterData,
                                    String sName,
                                    String sOptionName)

saveConfig

protected short saveConfig(XPropertySet xProps,
                           PropertyHelper filterData)

saveListBoxOption

protected short saveListBoxOption(XPropertySet xProps,
                                  String sName)

saveListBoxOption

protected short saveListBoxOption(XPropertySet xProps,
                                  PropertyHelper filterData,
                                  String sName,
                                  String sOptionName,
                                  String[] sValues)

saveNumericOption

protected int saveNumericOption(XPropertySet xProps,
                                String sName)

saveNumericOptionAsPercentage

protected int saveNumericOptionAsPercentage(XPropertySet xProps,
                                            PropertyHelper filterData,
                                            String sName,
                                            String sOptionName)

saveSettings

protected abstract void saveSettings(XPropertySet xRegistryProps,
                                     PropertyHelper filterData)
Save settings from the dialog to the registry and create FilterData The subclass must implement this

saveTextFieldOption

protected String saveTextFieldOption(XPropertySet xProps,
                                     String sName)

saveTextFieldOption

protected String saveTextFieldOption(XPropertySet xProps,
                                     PropertyHelper filterData,
                                     String sName,
                                     String sOptionName)

setPropertyValues

public void setPropertyValues(PropertyValue[] props)

updateLockedOptions

protected void updateLockedOptions()