Class OptionsDialogBase
- java.lang.Object
-
- org.openoffice.da.comp.w2lcommon.helper.DialogBase
-
- org.openoffice.da.comp.w2lcommon.filter.OptionsDialogBase
-
- All Implemented Interfaces:
com.sun.star.awt.XDialogEventHandler
,com.sun.star.beans.XPropertyAccess
,com.sun.star.lang.XServiceInfo
,com.sun.star.lang.XServiceName
,com.sun.star.lang.XTypeProvider
,com.sun.star.ui.dialogs.XExecutableDialog
,com.sun.star.uno.XInterface
- Direct Known Subclasses:
LaTeXOptionsDialog
,XhtmlOptionsDialog
,XhtmlOptionsDialogCalc
public abstract class OptionsDialogBase extends DialogBase implements com.sun.star.beans.XPropertyAccess
This class provides an abstract uno component which implements a filter ui
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.star.lang.XMultiServiceFactory
xMSF
-
Fields inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogBase
__implementationName, __serviceName, CHECKBOX_CHECKED, CHECKBOX_DONT_KNOW, CHECKBOX_NOT_CHECKED, xContext
-
-
Constructor Summary
Constructors Constructor Description OptionsDialogBase(com.sun.star.uno.XComponentContext xContext)
Create a new OptionsDialogBase
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
finalize()
Finalize the dialog after execution (eg. save settings to the registry)abstract java.lang.String
getDialogLibraryName()
Return the name of the library containing the dialogabstract java.lang.String
getDialogName()
Return the name of the dialog within the librarycom.sun.star.beans.PropertyValue[]
getPropertyValues()
abstract java.lang.String
getRegistryPath()
Return the path to the options in the registrycom.sun.star.uno.Type[]
getTypes()
void
initialize()
Initialize the dialog (eg. with settings from the registry)protected boolean
isLocked(java.lang.String sOptionName)
protected boolean
loadCheckBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected java.lang.String
loadComboBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected void
loadConfig(com.sun.star.beans.XPropertySet xProps)
protected short
loadListBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected int
loadNumericOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected abstract void
loadSettings(com.sun.star.beans.XPropertySet xRegistryProps)
Load settings from the registry to the dialog The subclass must implement thisprotected java.lang.String
loadTextFieldOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected boolean
saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected boolean
saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
protected java.lang.String
saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected java.lang.String
saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
protected short
saveConfig(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData)
protected short
saveListBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected short
saveListBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName, java.lang.String[] sValues)
protected int
saveNumericOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected int
saveNumericOptionAsPercentage(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
protected abstract void
saveSettings(com.sun.star.beans.XPropertySet xRegistryProps, PropertyHelper filterData)
Save settings from the dialog to the registry and create FilterData The subclass must implement thisprotected java.lang.String
saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected java.lang.String
saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
void
setPropertyValues(com.sun.star.beans.PropertyValue[] props)
protected void
updateLockedOptions()
-
Methods inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogBase
callHandlerMethod, execute, getCheckBoxState, getCheckBoxStateAsBoolean, getComboBoxText, getFormattedFieldText, getImplementationId, getImplementationName, getListBoxLineCount, getListBoxSelectedItem, getListBoxStringItemList, getNumericFieldValue, getPropertyValue, getPropertyValueAsBoolean, getPropertyValueAsInteger, getPropertyValueAsShort, getPropertyValueAsString, getServiceName, getSupportedMethodNames, getSupportedServiceNames, getTextFieldText, setCheckBoxState, setCheckBoxStateAsBoolean, setComboBoxText, setControlEnabled, setFormattedFieldText, setListBoxLineCount, setListBoxSelectedItem, setListBoxStringItemList, setNumericFieldValue, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue, setTextFieldText, setTitle, supportsService
-
-
-
-
Method Detail
-
loadSettings
protected abstract void loadSettings(com.sun.star.beans.XPropertySet xRegistryProps)
Load settings from the registry to the dialog The subclass must implement this
-
saveSettings
protected abstract void saveSettings(com.sun.star.beans.XPropertySet xRegistryProps, PropertyHelper filterData)
Save settings from the dialog to the registry and create FilterData The subclass must implement this
-
getDialogLibraryName
public abstract java.lang.String getDialogLibraryName()
Return the name of the library containing the dialog- Specified by:
getDialogLibraryName
in classDialogBase
-
getDialogName
public abstract java.lang.String getDialogName()
Return the name of the dialog within the library- Specified by:
getDialogName
in classDialogBase
-
getRegistryPath
public abstract java.lang.String getRegistryPath()
Return the path to the options in the registry
-
initialize
public void initialize()
Initialize the dialog (eg. with settings from the registry)- Specified by:
initialize
in classDialogBase
-
finalize
public void finalize()
Finalize the dialog after execution (eg. save settings to the registry)- Specified by:
finalize
in classDialogBase
-
getTypes
public com.sun.star.uno.Type[] getTypes()
- Specified by:
getTypes
in interfacecom.sun.star.lang.XTypeProvider
- Overrides:
getTypes
in classDialogBase
-
getPropertyValues
public com.sun.star.beans.PropertyValue[] getPropertyValues()
- Specified by:
getPropertyValues
in interfacecom.sun.star.beans.XPropertyAccess
-
setPropertyValues
public void setPropertyValues(com.sun.star.beans.PropertyValue[] props)
- Specified by:
setPropertyValues
in interfacecom.sun.star.beans.XPropertyAccess
-
updateLockedOptions
protected void updateLockedOptions()
-
isLocked
protected boolean isLocked(java.lang.String sOptionName)
-
loadConfig
protected void loadConfig(com.sun.star.beans.XPropertySet xProps)
-
saveConfig
protected short saveConfig(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData)
-
loadCheckBoxOption
protected boolean loadCheckBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveCheckBoxOption
protected boolean saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveCheckBoxOption
protected boolean saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
-
loadListBoxOption
protected short loadListBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveListBoxOption
protected short saveListBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveListBoxOption
protected short saveListBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName, java.lang.String[] sValues)
-
loadComboBoxOption
protected java.lang.String loadComboBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveComboBoxOption
protected java.lang.String saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveComboBoxOption
protected java.lang.String saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
-
loadTextFieldOption
protected java.lang.String loadTextFieldOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveTextFieldOption
protected java.lang.String saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveTextFieldOption
protected java.lang.String saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
-
loadNumericOption
protected int loadNumericOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveNumericOption
protected int saveNumericOption(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
-
saveNumericOptionAsPercentage
protected int saveNumericOptionAsPercentage(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, java.lang.String sName, java.lang.String sOptionName)
-
-