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:
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 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

      public abstract String getDialogLibraryName()
      Return the name of the library containing the dialog
      Specified by:
      getDialogLibraryName in class DialogBase
    • getDialogName

      public abstract String getDialogName()
      Return the name of the dialog within the library
      Specified by:
      getDialogName in class DialogBase
    • getRegistryPath

      public abstract 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 class DialogBase
    • endDialog

      public void endDialog()
      Finalize the dialog after execution (eg. save settings to the registry)
      Specified by:
      endDialog in class DialogBase
    • getTypes

      public com.sun.star.uno.Type[] getTypes()
      Specified by:
      getTypes in interface com.sun.star.lang.XTypeProvider
      Overrides:
      getTypes in class DialogBase
    • getPropertyValues

      public com.sun.star.beans.PropertyValue[] getPropertyValues()
      Specified by:
      getPropertyValues in interface com.sun.star.beans.XPropertyAccess
    • setPropertyValues

      public void setPropertyValues(com.sun.star.beans.PropertyValue[] props)
      Specified by:
      setPropertyValues in interface com.sun.star.beans.XPropertyAccess
    • updateLockedOptions

      protected void updateLockedOptions()
    • isLocked

      protected boolean isLocked(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, String sName)
    • saveCheckBoxOption

      protected boolean saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveCheckBoxOption

      protected boolean saveCheckBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
    • loadListBoxOption

      protected short loadListBoxOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveListBoxOption

      protected short saveListBoxOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveListBoxOption

      protected short saveListBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName, String[] sValues)
    • loadComboBoxOption

      protected String loadComboBoxOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveComboBoxOption

      protected String saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveComboBoxOption

      protected String saveComboBoxOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
    • loadTextFieldOption

      protected String loadTextFieldOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveTextFieldOption

      protected String saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveTextFieldOption

      protected String saveTextFieldOption(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
    • loadNumericOption

      protected int loadNumericOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveNumericOption

      protected int saveNumericOption(com.sun.star.beans.XPropertySet xProps, String sName)
    • saveNumericOptionAsPercentage

      protected int saveNumericOptionAsPercentage(com.sun.star.beans.XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)