PEG imagespan_getwholepage--tjl: Access entire page

Author: Tuomas J. Lukka
Last-Modified:2003-11-05
Revision: 1.2
Status: Accepted

Now that there are two distinct types of image spans: plain ``ImageSpan``s and ``PageImageSpan``s, it is not easy to get the entire image that the current span is a subset of, as ``PageImageSpan``s require different treatment. This is not good.

System Message: WARNING/2 (../ffdoc/alph/pegboard/imagespan_getwholepage--tjl/peg.rst, line 10); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (../ffdoc/alph/pegboard/imagespan_getwholepage--tjl/peg.rst, line 10); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (../ffdoc/alph/pegboard/imagespan_getwholepage--tjl/peg.rst, line 10); backlink

Inline literal start-string without end-string.

This PEG resolves the problem by adding a method to ImageSpan to get the entire 2D image the current span is a subset of.

Issues

Changes

Into ImageSpan add the method getSuperImageSpan:

/** Get the whole contiguous 2D image that this span is a part of.
 */
ImageSpan getSuperImageSpan();