Class OptionsDialogBase
java.lang.Object
org.openoffice.da.comp.w2lcommon.helper.DialogAccess
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:
EpubOptionsDialog,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
FieldsFields inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogBase
__implementationName, __serviceName, xContextFields inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogAccess
CHECKBOX_CHECKED, CHECKBOX_DONT_KNOW, CHECKBOX_NOT_CHECKEDFields inherited from interface com.sun.star.awt.XDialogEventHandler
UNOTYPEINFOFields inherited from interface com.sun.star.ui.dialogs.XExecutableDialog
UNOTYPEINFOFields inherited from interface com.sun.star.beans.XPropertyAccess
UNOTYPEINFOFields inherited from interface com.sun.star.lang.XServiceInfo
UNOTYPEINFOFields inherited from interface com.sun.star.lang.XServiceName
UNOTYPEINFOFields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO -
Constructor Summary
ConstructorsConstructorDescriptionOptionsDialogBase(com.sun.star.uno.XComponentContext xContext) Create a new OptionsDialogBase -
Method Summary
Modifier and TypeMethodDescriptionvoidFinalize the dialog after execution (eg. save settings to the registry)abstract StringReturn the name of the library containing the dialogabstract StringReturn the name of the dialog within the librarycom.sun.star.beans.PropertyValue[]abstract StringReturn the path to the options in the registrycom.sun.star.uno.Type[]getTypes()voidInitialize the dialog (eg. with settings from the registry)protected booleanprotected booleanloadCheckBoxOption(com.sun.star.beans.XPropertySet xProps, String sName) protected StringloadComboBoxOption(com.sun.star.beans.XPropertySet xProps, String sName) protected voidloadConfig(com.sun.star.beans.XPropertySet xProps) protected shortloadListBoxOption(com.sun.star.beans.XPropertySet xProps, String sName) protected intloadNumericOption(com.sun.star.beans.XPropertySet xProps, String sName) protected abstract voidloadSettings(com.sun.star.beans.XPropertySet xRegistryProps) Load settings from the registry to the dialog The subclass must implement thisprotected StringloadTextFieldOption(com.sun.star.beans.XPropertySet xProps, String sName) protected booleansaveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, String sName) protected booleansaveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) protected StringsaveComboBoxOption(com.sun.star.beans.XPropertySet xProps, String sName) protected StringsaveComboBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) protected shortsaveConfig(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData) protected shortsaveListBoxOption(com.sun.star.beans.XPropertySet xProps, String sName) protected shortsaveListBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName, String[] sValues) protected intsaveNumericOption(com.sun.star.beans.XPropertySet xProps, String sName) protected intsaveNumericOptionAsPercentage(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) protected abstract voidsaveSettings(com.sun.star.beans.XPropertySet xRegistryProps, PropertyHelper filterData) Save settings from the dialog to the registry and create FilterData The subclass must implement thisprotected StringsaveTextFieldOption(com.sun.star.beans.XPropertySet xProps, String sName) protected StringsaveTextFieldOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) voidsetPropertyValues(com.sun.star.beans.PropertyValue[] props) protected voidMethods inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogBase
callHandlerMethod, execute, getImplementationId, getImplementationName, getServiceName, getSupportedMethodNames, getSupportedServiceNames, setTitle, supportsServiceMethods inherited from class org.openoffice.da.comp.w2lcommon.helper.DialogAccess
getCheckBoxState, getCheckBoxStateAsBoolean, getComboBoxText, getControlEnabled, getControlProperties, getDateFieldValue, getDialog, getFormattedFieldText, getLabelText, getListBoxLineCount, getListBoxSelectedItem, getListBoxStringItemList, getNumericFieldValue, getTextFieldText, setCheckBoxState, setCheckBoxStateAsBoolean, setComboBoxText, setControlEnabled, setDateFieldValue, setDialog, setFormattedFieldText, setLabelText, setListBoxLineCount, setListBoxSelectedItem, setListBoxStringItemList, setNumericFieldValue, setTextFieldText
-
Field Details
-
xMSF
protected com.sun.star.lang.XMultiServiceFactory xMSF
-
-
Constructor Details
-
OptionsDialogBase
public OptionsDialogBase(com.sun.star.uno.XComponentContext xContext) Create a new OptionsDialogBase
-
-
Method Details
-
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
Return the name of the library containing the dialog- Specified by:
getDialogLibraryNamein classDialogBase
-
getDialogName
Return the name of the dialog within the library- Specified by:
getDialogNamein classDialogBase
-
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:
initializein classDialogBase
-
endDialog
public void endDialog()Finalize the dialog after execution (eg. save settings to the registry)- Specified by:
endDialogin classDialogBase
-
getTypes
public com.sun.star.uno.Type[] getTypes()- Specified by:
getTypesin interfacecom.sun.star.lang.XTypeProvider- Overrides:
getTypesin classDialogBase
-
getPropertyValues
public com.sun.star.beans.PropertyValue[] getPropertyValues()- Specified by:
getPropertyValuesin interfacecom.sun.star.beans.XPropertyAccess
-
setPropertyValues
public void setPropertyValues(com.sun.star.beans.PropertyValue[] props) - Specified by:
setPropertyValuesin interfacecom.sun.star.beans.XPropertyAccess
-
updateLockedOptions
protected void updateLockedOptions() -
isLocked
-
loadConfig
protected void loadConfig(com.sun.star.beans.XPropertySet xProps) -
saveConfig
-
loadCheckBoxOption
-
saveCheckBoxOption
-
saveCheckBoxOption
protected boolean saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) -
loadListBoxOption
-
saveListBoxOption
-
saveListBoxOption
protected short saveListBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName, String[] sValues) -
loadComboBoxOption
-
saveComboBoxOption
-
saveComboBoxOption
protected String saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) -
loadTextFieldOption
-
saveTextFieldOption
-
saveTextFieldOption
protected String saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName) -
loadNumericOption
-
saveNumericOption
-
saveNumericOptionAsPercentage
protected int saveNumericOptionAsPercentage(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
-