diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 09:34:38 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-08-19 09:34:38 +0000 |
commit | 6d3aa544bcf2d912a41e33975f03a231bb77a6eb (patch) | |
tree | 2310f2bfeb9d91308b33debfc3886b4fd4ac9384 /wizards/com | |
parent | 515421f799fb3982a4811ab2149134e333c5abe2 (diff) |
INTEGRATION: CWS dba31a (1.2.10); FILE MERGED
2008/07/02 12:08:31 fs 1.2.10.1: copying following changes from CWS dba30f to CWS dba31a:
2008/07/01 09:38:59 lla 1.2.2.1: #i90874# Orientation handled wrong (Cache problem)
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java index e6ee5009ec2f..c35e7e8d4f5d 100644 --- a/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java +++ b/wizards/com/sun/star/wizards/reportbuilder/layout/ReportBuilderLayouter.java @@ -9,7 +9,7 @@ * * $RCSfile: ReportBuilderLayouter.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * * This file is part of OpenOffice.org. * @@ -646,10 +646,12 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter } else { +// TODO: there seems to be some problems with copy all properties from the design template to the current design final FontDescriptor aFD = _aSO.getFontDescriptor(); if (aFD != null) { xFixedText.setFontDescriptor(aFD); + copyProperties(_aSO.getParent(), xFixedText); } nHeight = _aSO.getHeight(500); } @@ -712,10 +714,12 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter int nHeight = 500; if (_aSO != null) { +// TODO: there seems to be some problems with copy all properties from the design template to the current design final FontDescriptor aFD = _aSO.getFontDescriptor(); if (aFD != null) { xFormattedField.setFontDescriptor(aFD); + copyProperties(_aSO.getParent(), xFormattedField); } nHeight = _aSO.getHeight(500); } @@ -1164,7 +1168,21 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter Object aClone = aComponent.createClone(); if (aClone != null) { + String sName = aComponent.getName(); + com.sun.star.awt.Point aPosition = aComponent.getPosition(); + Size aSize = aComponent.getSize(); + XShape aShape = (XShape)UnoRuntime.queryInterface(XShape.class, aClone); + String sShapeType = aShape.getShapeType(); + com.sun.star.awt.Point aShapePoint = aShape.getPosition(); + Size aShapeSize = aShape.getSize(); + + // normally 'createClone' will create a real clone of the component, + // but there seems some problems, we have to controll. + copyProperties(aComponent, aClone); + + // aShape.setPosition(aComponent.getPosition()); + // aShape.setSize(aComponent.getSize()); _xToSection.add(aShape); } } @@ -1317,6 +1335,9 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter return; } + // TODO: how should we arrive this code (set page and pagecount in the middle of the page footer) + // If there exists a design template, don't use it. + // we don't have a default report definition final String sPageOf = getResource().getResText(UIConsts.RID_REPORT + 89); // 'Page #page# of #count#' @@ -1397,6 +1418,9 @@ abstract public class ReportBuilderLayouter implements IReportBuilderLayouter m_aFieldTypes = aOther.m_aFieldTypes; // m_nLeftIndent = aOther.m_nLeftIndent; m_xDesignTemplate = aOther.m_xDesignTemplate; + + // dirty PageWidth + m_nPageWidth = -1; } } |