Kaydet (Commit) cc4f739a authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS toolkit01 (1.5.32); FILE MERGED

2005/02/28 12:28:34 bc 1.5.32.3: #i37478# repainting problems in Webwizard and ReportWizard addressed
2005/02/25 12:08:26 bc 1.5.32.2: RESYNC: (1.5-1.6); FILE MERGED
2005/02/23 17:38:47 bc 1.5.32.1: ##several changes in Webwizard
üst 9232dc68
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: UnoDialog.java,v $ * $RCSfile: UnoDialog.java,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: vg $ $Date: 2005-02-21 14:06:50 $ * last change: $Author: vg $ $Date: 2005-03-08 15:46:05 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
package com.sun.star.wizards.ui; package com.sun.star.wizards.ui;
import com.sun.star.awt.*; import com.sun.star.awt.*;
import com.sun.star.awt.XReschedule;
import com.sun.star.beans.Property; import com.sun.star.beans.Property;
import com.sun.star.beans.XMultiPropertySet; import com.sun.star.beans.XMultiPropertySet;
...@@ -89,6 +90,7 @@ public class UnoDialog implements EventNames { ...@@ -89,6 +90,7 @@ public class UnoDialog implements EventNames {
public XNameAccess xDlgNameAccess; public XNameAccess xDlgNameAccess;
public XControl xControl; public XControl xControl;
public XDialog xDialog; public XDialog xDialog;
public XReschedule xReschedule;
public XWindow xWindow; public XWindow xWindow;
public XComponent xComponent; public XComponent xComponent;
public XInterface xDialogModel; public XInterface xDialogModel;
...@@ -591,6 +593,17 @@ public class UnoDialog implements EventNames { ...@@ -591,6 +593,17 @@ public class UnoDialog implements EventNames {
return xDialog.execute(); return xDialog.execute();
} }
public void setVisible(UnoDialog parent) throws com.sun.star.uno.Exception{
calculateDialogPosition(parent.xWindow.getPosSize());
if (xWindowPeer == null)
createWindowPeer();
XVclWindowPeer xVclWindowPeer = (XVclWindowPeer) UnoRuntime.queryInterface(XVclWindowPeer.class, xWindowPeer);
xDialog = (XDialog) UnoRuntime.queryInterface(XDialog.class, xUnoDialog);
this.xWindow.setVisible(true);
}
/** /**
* *
* @param parent * @param parent
...@@ -659,6 +672,7 @@ public class UnoDialog implements EventNames { ...@@ -659,6 +672,7 @@ public class UnoDialog implements EventNames {
if (parentPeer == null) if (parentPeer == null)
parentPeer = ((XToolkit) UnoRuntime.queryInterface(XToolkit.class, tk)).getDesktopWindow(); parentPeer = ((XToolkit) UnoRuntime.queryInterface(XToolkit.class, tk)).getDesktopWindow();
XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, tk); XToolkit xToolkit = (XToolkit) UnoRuntime.queryInterface(XToolkit.class, tk);
xReschedule = (XReschedule) UnoRuntime.queryInterface(XReschedule.class, xToolkit);
xControl.createPeer(xToolkit, parentPeer); xControl.createPeer(xToolkit, parentPeer);
xWindowPeer = xControl.getPeer(); xWindowPeer = xControl.getPeer();
return xControl.getPeer(); return xControl.getPeer();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment