summaryrefslogtreecommitdiff
path: root/cppcanvas/inc/cppcanvas
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-04-18 08:57:51 +0000
committerOliver Bolte <obo@openoffice.org>2005-04-18 08:57:51 +0000
commite811f409245578e1fe305ac55f54f9d9433b627c (patch)
tree867939c4815d24c1b2e1961cfbbda7c13015ad6f /cppcanvas/inc/cppcanvas
parent7b7fcaed29a97a86610374b5ceff1e640f9526c6 (diff)
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
Diffstat (limited to 'cppcanvas/inc/cppcanvas')
-rw-r--r--cppcanvas/inc/cppcanvas/renderer.hxx35
1 files changed, 33 insertions, 2 deletions
diff --git a/cppcanvas/inc/cppcanvas/renderer.hxx b/cppcanvas/inc/cppcanvas/renderer.hxx
index 43e8851cee24..b5ffe8e687e3 100644
--- a/cppcanvas/inc/cppcanvas/renderer.hxx
+++ b/cppcanvas/inc/cppcanvas/renderer.hxx
@@ -2,9 +2,9 @@
*
* $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
* either of the following licenses
@@ -89,6 +89,10 @@
#include <cppcanvas/color.hxx>
#endif
+namespace basegfx
+{
+ class B2DRange;
+}
/* Definition of Renderer interface */
@@ -125,6 +129,33 @@ namespace cppcanvas
virtual bool drawSubset( sal_Int32 nStartIndex,
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
*/
struct Parameters