The ScopeSET Support and Community Portal
         
View all tags
Tags:    No tags associated yet.
Go Back
Tracker: ECRs Priority: High Type: Enhancement
Found: -- Status: Closed Target: 9.2.1+10.0
OS: All Fixed: 9.2.1.0.45, 10.0.0.0.143 PatchID: --
Description:
In the RTF report there is code which determines whether a diagram should be printed in portrait or landscape orientation. It uses the x and y coordinates of all node_refs in a diagram to calculate the width and height (all done in ct/qrl/include/ALL_PrintDiagram.inc).

This approach is fundamentally flawed because it does not (and cannot from the OMS) consider the size of the symbols. Examples are package diagrams, or a sequence diagram like the attached diagram. The lifelines are much "higher" then the extremes of the node_ref y coordinates in the diagram indicate.

After some discussion, we concluded that it would be best to "internalize" all the calculations which are presently done in ALL_PrintDiagram.inc into the file_print function QRL function.

It should get 5 new parameters:

Based on the given diagram dimension, it should then decide whether to print the diagram portrait or landsacpe and should also scale it according to the given papersize and margins and the chosen orientation. The calculations in ALL_PrintDiagram.inc should then be removed.

If inline_caption is true, it should also inline the caption into the diagram (as is done with IdePrintSetting::setShowCaption). There are 2 more issues which need to be fixed for Captions:

Please also consider The diagram box for diagrams in RTF is sometimes too high

Details:
Children (0)
Associations (1)
All (0)

Submitted Type Wiki Link Target Comment
Nothing found to display.

Submitted Type Wiki Link Source Comment
amueller
Sep 15 2007 18:29
related [ECR-2845] Symbols in sequence diagrams are sometimes clipped, diagram frame is a bit too small