diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2014-12-19 22:01:19 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2014-12-19 23:35:00 +0100 |
commit | d566256b78f56bfb2e6eba747d54087527ba4baf (patch) | |
tree | 0d26e8b5bc377996d905c2f3f288d508eecaeae9 /wizards | |
parent | 66c7dbbf7dfba8cfab63f8d1df72ace87e5bf7ca (diff) |
xShapeGroup *is* the control's global xShape, so use it as such
this allows the rest of the code to automagically do the right stuff:
- get&set position
- group this control with its label
- set the label property to the label control
- ...
Conflicts:
wizards/com/sun/star/wizards/document/TimeStampControl.java
Change-Id: Ibf3cb0ae82ba5c8a23fde05f6466f8eec8308186
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/document/TimeStampControl.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/wizards/com/sun/star/wizards/document/TimeStampControl.java b/wizards/com/sun/star/wizards/document/TimeStampControl.java index 42b8b5351d89..0fced1d3b595 100644 --- a/wizards/com/sun/star/wizards/document/TimeStampControl.java +++ b/wizards/com/sun/star/wizards/document/TimeStampControl.java @@ -40,7 +40,6 @@ public class TimeStampControl extends DatabaseControl private double nreldatewidth; private double nreltimewidth; private int nDBWidth; - private XShape xShapeGroup; public TimeStampControl(Resource _oResource, FormHandler _oFormHandler, XNameContainer _xFormName, String _curFieldName, Point _aPoint) { @@ -57,7 +56,7 @@ public class TimeStampControl extends DatabaseControl nDBWidth = nDateWidth + nTimeWidth + 10; xShapes.add(oDateControl.xShape); xShapes.add(oTimeControl.xShape); - xShapeGroup = _oFormHandler.xShapeGrouper.group(xShapes); + xShape = _oFormHandler.xShapeGrouper.group(xShapes); nreldatewidth = 1.0 / ((double) getSize().Width / (double) nDateWidth); nreltimewidth = 1.0 - nreldatewidth; } @@ -122,20 +121,6 @@ public class TimeStampControl extends DatabaseControl return new Size(ncontrolwidth, oDateControl.xShape.getSize().Height); } - public Point getPosition() - { - return xShapeGroup.getPosition(); - } - - public void setPosition(Point _aPoint) - { - // --> TESTING - Point aBeforePt = xShapeGroup.getPosition(); - xShapeGroup.setPosition(_aPoint); - // --> TESTING - Point aAfterPt = xShapeGroup.getPosition(); - } - public int getControlType() { return FormHandler.SODATETIMECONTROL; |