From 341da37f0397ee32757588ffe5d72b63ef51db5b Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 17 Jan 2008 13:37:04 +0000 Subject: Fixed logic error setting the transformation matrix for block-container viewports (applies to absolute and fixed block-containers only). The CTM now only rotates and shifts the content as necessary for reference-orientation and writing-mode. All the rest of the transformation is done by the renderer which allows to add additional transformations as made possible by fox:transform (see below). Important: External renderer implementations need to adjust for the change and implement the new method concatenateTransformationMatrix(AffineTransform) if the renderer is derived from AbstractPathOrientedRenderer. New extension attribute fox:transform on fo:block-container allows free-form transformation (rotation, scaling etc.) of absolute and fixed block-containers. Supported only for PDF, PS and Java2D-based renderers. Added missing region background painting for PCL renderer. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@612815 13f79535-47bb-0310-9956-ffa450edef68 --- ...k-container_absolute-position_display-align.xml | 10 ++-- .../block-container_absolute-position_fixed.xml | 4 +- ...k-container_absolute-position_fox-transform.xml | 54 ++++++++++++++++++++++ 3 files changed, 61 insertions(+), 7 deletions(-) create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_fox-transform.xml (limited to 'test') diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml index 6fb1916c6..667d2a37c 100644 --- a/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml @@ -58,7 +58,7 @@ - + @@ -74,7 +74,7 @@ - + @@ -90,7 +90,7 @@ - + @@ -109,7 +109,7 @@ - + @@ -128,7 +128,7 @@ - + diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml index 54db8dea7..b35fbadfe 100644 --- a/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml @@ -56,8 +56,8 @@ - - + + diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_fox-transform.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_fox-transform.xml new file mode 100644 index 000000000..2061ccf77 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_fox-transform.xml @@ -0,0 +1,54 @@ + + + + + +

+ This test checks absolutely positioned block-containers with fox:transform. +

+
+ + + + + + + + + + + ro = 0 + + + ro = 90 + + + ro = 180 + + + ro = 270 + + + + + + + + + +
-- cgit v1.2.3