diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2012-12-24 08:07:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-11 13:16:58 +0100 |
commit | 805c6101b3427cc98b53f1c48f22f705206c384d (patch) | |
tree | 6319897b3ee481a664bd0ce3e38b55ad333f56e7 /desktop | |
parent | 5dd1b3da57862a6577717544dde56482add89170 (diff) |
Resolves: #i121544# - Clean-up MessageBox API
(cherry picked from commit 27cfcb1e9d103b3e49c1263b1fa59fee8b187b21)
Conflicts:
desktop/test/deployment/active/active_native.cxx
desktop/test/deployment/passive/Dispatch.java
desktop/test/deployment/passive/passive_native.cxx
odk/examples/DevelopersGuide/Charts/SelectionChangeListener.java
odk/examples/DevelopersGuide/GUI/MessageBox.java
odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx
odk/examples/java/Inspector/Inspector.java
offapi/com/sun/star/awt/MessageBoxButtons.idl
offapi/com/sun/star/awt/MessageBoxResults.idl
offapi/com/sun/star/awt/XMessageBox.idl
offapi/com/sun/star/awt/XMessageBoxFactory.idl
offapi/com/sun/star/awt/makefile.mk
offapi/type_reference/types.rdb
sdext/source/minimizer/unodialog.cxx
toolkit/inc/toolkit/awt/vclxtoolkit.hxx
toolkit/source/awt/vclxtoolkit.cxx
toolkit/source/layout/core/root.cxx
Change-Id: I170b494fb96362bb25ba8d0f2518d4e46934dd67
Related: #i121544# - Clean-up MessageBox API (post fix)
(cherry picked from commit c9f7a06e7798bcd5253844c49d210ea9345bd4b8)
Conflicts:
sw/inc/pch/precompiled_sw.hxx
Change-Id: Ib8b1e7aaac769feff5206fcdd238c487a6130dd1
Related: #i121544# - Fix header guards
Found by: Tsutomu Uchino
(cherry picked from commit 82194a19ff4f29c8451c8e6ab6fe4f1b9d08df27)
Conflicts:
offapi/com/sun/star/awt/MessageBoxType.idl
Change-Id: Ide8ba697fbc80395d2f30a068a0820a6afa3332f
Diffstat (limited to 'desktop')
6 files changed, 10 insertions, 6 deletions
diff --git a/desktop/test/deployment/active/Dispatch.java b/desktop/test/deployment/active/Dispatch.java index 08a7933fa75f..f50cdeac59a5 100644 --- a/desktop/test/deployment/active/Dispatch.java +++ b/desktop/test/deployment/active/Dispatch.java @@ -19,6 +19,7 @@ package com.sun.star.comp.test.deployment.active_java; import com.sun.star.awt.MessageBoxButtons; +import com.sun.star.awt.MessageBoxType; import com.sun.star.awt.Rectangle; import com.sun.star.awt.XMessageBox; import com.sun.star.awt.XMessageBoxFactory; @@ -69,7 +70,7 @@ public final class Dispatch extends WeakBase implements XServiceInfo, XDispatch smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", context)). getCurrentFrame().getComponentWindow())), - new Rectangle(), "infobox", MessageBoxButtons.BUTTONS_OK, + MessageBoxType.INFOBOX, MessageBoxButtons.BUTTONS_OK, "active", "java"); box.execute(); UnoRuntime.queryInterface(XComponent.class, box).dispose(); diff --git a/desktop/test/deployment/active/active_native.cxx b/desktop/test/deployment/active/active_native.cxx index 3afc099dd156..2242c6bb4d6a 100644 --- a/desktop/test/deployment/active/active_native.cxx +++ b/desktop/test/deployment/active/active_native.cxx @@ -223,7 +223,7 @@ void Dispatch::dispatch( css::uno::Reference< css::awt::XMessageBox > box( xToolkit->createMessageBox( xWindowPeer, - css::awt::Rectangle(), "infobox", + css::awt::MessageBoxType_INFOBOX, css::awt::MessageBoxButtons::BUTTONS_OK, "active", "native"), css::uno::UNO_SET_THROW); diff --git a/desktop/test/deployment/active/active_python.py b/desktop/test/deployment/active/active_python.py index f52962e294b7..7f6e5bbd44c4 100644 --- a/desktop/test/deployment/active/active_python.py +++ b/desktop/test/deployment/active/active_python.py @@ -21,6 +21,7 @@ import unohelper from com.sun.star.awt import Rectangle from com.sun.star.awt.MessageBoxButtons import BUTTONS_OK +from com.sun.star.awt.MessageBoxType import INFOBOX from com.sun.star.frame import XDispatch, XDispatchProvider from com.sun.star.lang import XServiceInfo from com.sun.star.registry import InvalidRegistryException @@ -76,7 +77,7 @@ class Dispatch(unohelper.Base, XServiceInfo, XDispatch): smgr.createInstanceWithContext( \ "com.sun.star.frame.Desktop", self.context). \ getCurrentFrame().getComponentWindow(), \ - Rectangle(), "infobox", BUTTONS_OK, "active", "python") + INFOBOX, BUTTONS_OK, "active", "python") box.execute(); box.dispose(); diff --git a/desktop/test/deployment/passive/com/sun/star/comp/test/deployment/Dispatch.java b/desktop/test/deployment/passive/com/sun/star/comp/test/deployment/Dispatch.java index 762a09cbc4de..701fb3172e8a 100644 --- a/desktop/test/deployment/passive/com/sun/star/comp/test/deployment/Dispatch.java +++ b/desktop/test/deployment/passive/com/sun/star/comp/test/deployment/Dispatch.java @@ -19,6 +19,7 @@ package com.sun.star.comp.test.deployment.passive_java; import com.sun.star.awt.MessageBoxButtons; +import com.sun.star.awt.MessageBoxType; import com.sun.star.awt.Rectangle; import com.sun.star.awt.XMessageBox; import com.sun.star.awt.XMessageBoxFactory; @@ -69,7 +70,7 @@ public final class Dispatch extends WeakBase implements XServiceInfo, XDispatch smgr.createInstanceWithContext( "com.sun.star.frame.Desktop", context)). getCurrentFrame().getComponentWindow())), - new Rectangle(), "infobox", MessageBoxButtons.BUTTONS_OK, + MessageBoxType.INFOBOX, MessageBoxButtons.BUTTONS_OK, "passive", "java"); box.execute(); UnoRuntime.queryInterface(XComponent.class, box).dispose(); diff --git a/desktop/test/deployment/passive/passive_native.cxx b/desktop/test/deployment/passive/passive_native.cxx index 819f6ab0ef59..93af8ab664e4 100644 --- a/desktop/test/deployment/passive/passive_native.cxx +++ b/desktop/test/deployment/passive/passive_native.cxx @@ -220,7 +220,7 @@ void Dispatch::dispatch( css::uno::Reference< css::awt::XMessageBox > box( xToolkit->createMessageBox( xWindowPeer, - css::awt::Rectangle(), "infobox", + css::awt::MessageBoxType_INFOBOX, css::awt::MessageBoxButtons::BUTTONS_OK, "passive", "native"), css::uno::UNO_SET_THROW); diff --git a/desktop/test/deployment/passive/passive_python.py b/desktop/test/deployment/passive/passive_python.py index 1157f8977959..f16797e50175 100644 --- a/desktop/test/deployment/passive/passive_python.py +++ b/desktop/test/deployment/passive/passive_python.py @@ -21,6 +21,7 @@ import unohelper from com.sun.star.awt import Rectangle from com.sun.star.awt.MessageBoxButtons import BUTTONS_OK +from com.sun.star.awt.MessageBoxType import INFOBOX from com.sun.star.frame import XDispatch, XDispatchProvider from com.sun.star.lang import XServiceInfo @@ -75,7 +76,7 @@ class Dispatch(unohelper.Base, XServiceInfo, XDispatch): smgr.createInstanceWithContext( \ "com.sun.star.frame.Desktop", self.context). \ getCurrentFrame().getComponentWindow(), \ - Rectangle(), "infobox", BUTTONS_OK, "passive", "python") + INFOBOX, BUTTONS_OK, "passive", "python") box.execute(); box.dispose(); |