diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-18 08:58:44 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-18 08:58:44 +0000 |
commit | 277bc8faffc7c42e0109b07f79f70904a449f83b (patch) | |
tree | 8adea54d29e7412e50f0d96a35d7b332d92bc829 /cppcanvas/source/inc | |
parent | 9c85b81b35636c2bef85a97bf4cac95758bd8236 (diff) |
INTEGRATION: CWS presfixes03 (1.5.2); FILE MERGED
2005/04/01 16:09:42 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/source/inc')
-rw-r--r-- | cppcanvas/source/inc/action.hxx | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/cppcanvas/source/inc/action.hxx b/cppcanvas/source/inc/action.hxx index e4353fc373b5..007440943b97 100644 --- a/cppcanvas/source/inc/action.hxx +++ b/cppcanvas/source/inc/action.hxx @@ -2,9 +2,9 @@ * * $RCSfile: action.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-03-30 08:24:45 $ + * last change: $Author: obo $ $Date: 2005-04-18 09:58:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -73,6 +73,7 @@ namespace basegfx { class B2DHomMatrix; + class B2DRange; } @@ -130,6 +131,9 @@ namespace cppcanvas @param rTransformation Transformation matrix to apply before rendering + + @return true, if rendering was successful. If + rendering failed, false is returned. */ virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation ) const = 0; @@ -150,6 +154,32 @@ namespace cppcanvas virtual bool render( const ::basegfx::B2DHomMatrix& rTransformation, const Subset& rSubset ) const = 0; + /** Query bounds of this action on the associated canvas + + @param rTransformation + Transformation matrix to apply + + @return the bounds for this action in device + coordinate space. + */ + virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation ) const = 0; + + /** Query bounds for the given part of the action on the + associated canvas. + + @param rTransformation + Transformation matrix to apply. + + @param rSubset + Subset of the action to query. See Subset description + for index semantics. + + @return the bounds for the given subset in device + coordinate space. + */ + virtual ::basegfx::B2DRange getBounds( const ::basegfx::B2DHomMatrix& rTransformation, + const Subset& rSubset ) const = 0; + /** Query action count. This method returns the number of subset actions |