INTEGRATION: CWS presfixes03 (1.5.2); FILE MERGED
2005/04/01 16:09:41 thb 1.5.2.1: #i36190#, #i39245# Changed uno::Sequence::operator[] for nonconst sequences to use naked ptr; added support for true bezier polygons (and removed subdivision, where it was added because of that canvas deficiency); overhauled mtf renderer to provide faithful bounds also for subsetted meta files
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: renderer.hxx,v $
|
* $RCSfile: renderer.hxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.5 $
|
* $Revision: 1.6 $
|
||||||
*
|
*
|
||||||
* last change: $Author: rt $ $Date: 2005-03-30 08:22:27 $
|
* last change: $Author: obo $ $Date: 2005-04-18 09:57:51 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
@@ -89,6 +89,10 @@
|
|||||||
#include <cppcanvas/color.hxx>
|
#include <cppcanvas/color.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace basegfx
|
||||||
|
{
|
||||||
|
class B2DRange;
|
||||||
|
}
|
||||||
|
|
||||||
/* Definition of Renderer interface */
|
/* Definition of Renderer interface */
|
||||||
|
|
||||||
@@ -125,6 +129,33 @@ namespace cppcanvas
|
|||||||
virtual bool drawSubset( sal_Int32 nStartIndex,
|
virtual bool drawSubset( sal_Int32 nStartIndex,
|
||||||
sal_Int32 nEndIndex ) const = 0;
|
sal_Int32 nEndIndex ) const = 0;
|
||||||
|
|
||||||
|
/** Query bounding box of metafile subset
|
||||||
|
|
||||||
|
This method queries the actual bounding box of the given
|
||||||
|
subset, when rendered on the associated canvas.
|
||||||
|
|
||||||
|
@param nStartIndex
|
||||||
|
The index of the first action to be rendered (the indices
|
||||||
|
correspond roughly to the action indices of the
|
||||||
|
originating GDIMetaFile. Note, although, that certain
|
||||||
|
actions, e.g. text, accounts for more than one index: a
|
||||||
|
text produces as many addressable indices as it has
|
||||||
|
characters).
|
||||||
|
|
||||||
|
@param nEndIndex
|
||||||
|
The index of the first action _not_ painted anymore,
|
||||||
|
i.e. the action after the last action rendered (the
|
||||||
|
indices correspond roughly to the action indices of the
|
||||||
|
originating GDIMetaFile. Note, although, that certain
|
||||||
|
actions, e.g. text, accounts for more than one index: a
|
||||||
|
text produces as many addressable indices as it has
|
||||||
|
characters).
|
||||||
|
|
||||||
|
@return the bounding box of the specified subset
|
||||||
|
*/
|
||||||
|
virtual ::basegfx::B2DRange getSubsetArea( sal_Int32 nStartIndex,
|
||||||
|
sal_Int32 nEndIndex ) const = 0;
|
||||||
|
|
||||||
/** Parameters for the Renderer
|
/** Parameters for the Renderer
|
||||||
*/
|
*/
|
||||||
struct Parameters
|
struct Parameters
|
||||||
|
Reference in New Issue
Block a user