From 03e17a141fbb4e1242de9d9979b5b699e6840454 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 31 Jan 2012 17:10:26 +0100 Subject: Fix fdo#42543: Don't paint a frame around the list of edit boxes. This conflicts with commit efc6b840a0423099d6c3e0d33c14d34637fbba4c that reorders painting of windows when they overlap; and in this case, the frame image paints over the controls. The sideeffect is that the dialog looks nicer ;-) --- .../com/sun/star/wizards/ui/ControlScroller.java | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'wizards/com') diff --git a/wizards/com/sun/star/wizards/ui/ControlScroller.java b/wizards/com/sun/star/wizards/ui/ControlScroller.java index c9aeee627247..a04d1c178736 100644 --- a/wizards/com/sun/star/wizards/ui/ControlScroller.java +++ b/wizards/com/sun/star/wizards/ui/ControlScroller.java @@ -39,7 +39,6 @@ public abstract class ControlScroller protected WizardDialog CurUnoDialog; protected XMultiServiceFactory xMSF; - private Object oImgControl; protected int ncurfieldcount; protected int nblockincrement; private int nlineincrement; @@ -113,17 +112,6 @@ public abstract class ControlScroller int ScrollHeight = iCompHeight - 2; nlineincrement = 1; sIncSuffix = com.sun.star.wizards.common.Desktop.getIncrementSuffix(CurUnoDialog.getDlgNameAccess(), "imgBackground"); - oImgControl = CurUnoDialog.insertControlModel("com.sun.star.awt.UnoControlImageControlModel", "imgBackground" + sIncSuffix, - new String[] - { - PropertyNames.PROPERTY_BORDER, PropertyNames.PROPERTY_HEIGHT, PropertyNames.PROPERTY_POSITION_X, PropertyNames.PROPERTY_POSITION_Y, PropertyNames.PROPERTY_STEP, PropertyNames.PROPERTY_WIDTH - }, - new Object[] - { - new Short("1"), new Integer(iCompHeight), ICompPosX, new Integer(iCompPosY), IStep, ICompWidth - }); - oImgControl = CurUnoDialog.xDlgContainer.getControl("imgBackground" + sIncSuffix); - setComponentMouseTransparent(); xScrollBar = CurUnoDialog.insertScrollBar("TitleScrollBar" + sIncSuffix, 0, new AdjustmentListenerImpl(), new String[] @@ -143,17 +131,6 @@ public abstract class ControlScroller } } - public void setComponentMouseTransparent() - { - CurUnoDialog.getPeerConfiguration().setPeerProperties(oImgControl, new String[] - { - "MouseTransparent" - }, new Boolean[] - { - Boolean.TRUE - }); - } - protected void setScrollBarOrientationHorizontal() { Helper.setUnoPropertyValue(xScrollBar, PropertyNames.ORIENTATION, new Integer(ScrollBarOrientation.HORIZONTAL)); -- cgit