From 19854e653be1dc01f5b655fca851a6e3a651a940 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 6 Dec 2012 14:15:55 +0200 Subject: fdo#46808, Adapt sdb::ErrorMessageDialog UNO service to new style Change-Id: Iaf12324e6aa64b268555b0f4c82f04f4c0f6f123 --- offapi/UnoApi_offapi.mk | 2 +- offapi/com/sun/star/sdb/ErrorMessageDialog.idl | 54 +++---------------------- offapi/type_reference/types.rdb | Bin 7440384 -> 7440384 bytes 3 files changed, 7 insertions(+), 49 deletions(-) (limited to 'offapi') diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index 5692dc9e8c51..c4b467dd8761 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -242,6 +242,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdb,\ DataAccessDescriptorFactory \ DatabaseContext \ DatabaseInteractionHandler \ + ErrorMessageDialog \ InteractionHandler \ )) $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/sdb/application,\ @@ -982,7 +983,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/sdb,\ DocumentContainer \ DocumentDataSource \ DocumentDefinition \ - ErrorMessageDialog \ Forms \ OfficeDatabaseDocument \ OrderColumn \ diff --git a/offapi/com/sun/star/sdb/ErrorMessageDialog.idl b/offapi/com/sun/star/sdb/ErrorMessageDialog.idl index c7e925ffcda6..bd36735b988d 100644 --- a/offapi/com/sun/star/sdb/ErrorMessageDialog.idl +++ b/offapi/com/sun/star/sdb/ErrorMessageDialog.idl @@ -20,15 +20,12 @@ #ifndef __com_sun_star_sdb_ErrorMessageDialog_idl__ #define __com_sun_star_sdb_ErrorMessageDialog_idl__ -#include #include -#include #include - +#include module com { module sun { module star { module sdb { - /** provides a dialog for displaying database related exceptions.

If applications use any of the functionality provided in the modules @@ -60,47 +57,8 @@ module com { module sun { module star { module sdb { @see com.sun.star.sdb.InteractionHandler

*/ -published service ErrorMessageDialog +published service ErrorMessageDialog : com::sun::star::ui::dialogs::XExecutableDialog { - /** the title of the (dialog) window - */ - [property] string Title; - - /** parent window to use for the dialog -

- This property can't be set while the dialog is being displayed. -

- */ - [property] com::sun::star::awt::XWindow ParentWindow; - - /** is the exception displayed by the dialog -

- This should contain a - SQLException - instance, or an instance - of any class derived from this exception. -

-

- This property can't be set while the dialog is being displayed. -

- */ - [property] any SQLException; - - /** specifies the URL to the help topic to associate with the dialog. - -

If This URL is not empty, then the dialog will get a "Help" button, which - directs the user to the given help topic.

- */ - [optional, property] string HelpURL; - - /** allows access to the properties of the object - */ - interface com::sun::star::beans::XPropertySet; - - /** allows starting execution of the dialog - */ - interface com::sun::star::ui::dialogs::XExecutableDialog; - /** allows initializing the dialog

You do not need to call the initialize method directly, instead you may use the createInstanceWithArguments @@ -123,14 +81,14 @@ published service ErrorMessageDialog
allowed parameters are

    -
  • Title
    +
  • title
    String describing the initial title of the dialog. If not specified, a default title is used.
  • -
  • ParentWindow
    +
  • parentWindow
    XWindow describing the parent window to use for the dialog.
  • -
  • SQLException
    +
  • sqlException
    SQLException describing the error which is being displayed.
    When initializing this value, you may use any derivative of @@ -140,7 +98,7 @@ published service ErrorMessageDialog

*/ - interface com::sun::star::lang::XInitialization; + create([in] string initialTitle, [in] com::sun::star::awt::XWindow parentWindow, [in] any sqlException); }; diff --git a/offapi/type_reference/types.rdb b/offapi/type_reference/types.rdb index c178bb1f0daf..1797e21ef754 100644 Binary files a/offapi/type_reference/types.rdb and b/offapi/type_reference/types.rdb differ -- cgit