INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED
2004/11/08 05:56:07 thb 1.2.2.7: #i36093# Added native canvas gradients 2004/09/30 21:45:41 thb 1.2.2.6: #110496# Now handling clip meta actions correctly (were mostly ignored before) 2004/08/23 19:15:49 thb 1.2.2.5: #110496# Added more overridable attributes (needed for slideshow attribute animations 2004/07/20 19:08:57 thb 1.2.2.4: #110496# Unified include statements; removed external prefix from boost includes 2004/07/09 09:50:39 hdu 1.2.2.3: #116716# more text effects and text lines 2004/04/21 18:49:38 thb 1.2.2.2: #110496# Added shape-global change functionality to Renderer interface 2004/04/05 15:58:46 thb 1.2.2.1: Resync with canvas01 changes
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
*
|
*
|
||||||
* $RCSfile: implrenderer.hxx,v $
|
* $RCSfile: implrenderer.hxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.3 $
|
* $Revision: 1.4 $
|
||||||
*
|
*
|
||||||
* last change: $Author: rt $ $Date: 2004-09-08 16:59:12 $
|
* last change: $Author: rt $ $Date: 2004-11-26 20:53:39 $
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@@ -77,8 +77,8 @@
|
|||||||
#include <cppcanvas/canvas.hxx>
|
#include <cppcanvas/canvas.hxx>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "canvasgraphichelper.hxx"
|
#include <canvasgraphichelper.hxx>
|
||||||
#include "action.hxx"
|
#include <action.hxx>
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
@@ -102,9 +102,11 @@ namespace cppcanvas
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ImplRenderer( const CanvasSharedPtr& rCanvas,
|
ImplRenderer( const CanvasSharedPtr& rCanvas,
|
||||||
const GDIMetaFile& rMtf );
|
const GDIMetaFile& rMtf,
|
||||||
|
const Parameters& rParms );
|
||||||
ImplRenderer( const CanvasSharedPtr& rCanvas,
|
ImplRenderer( const CanvasSharedPtr& rCanvas,
|
||||||
const BitmapEx& rBmpEx );
|
const BitmapEx& rBmpEx,
|
||||||
|
const Parameters& rParms );
|
||||||
|
|
||||||
virtual ~ImplRenderer();
|
virtual ~ImplRenderer();
|
||||||
|
|
||||||
@@ -132,10 +134,23 @@ namespace cppcanvas
|
|||||||
ImplRenderer(const ImplRenderer&);
|
ImplRenderer(const ImplRenderer&);
|
||||||
ImplRenderer& operator=( const ImplRenderer& );
|
ImplRenderer& operator=( const ImplRenderer& );
|
||||||
|
|
||||||
bool createActions( const CanvasSharedPtr& rCanvas,
|
void updateClipping( VectorOfOutDevStates& rStates,
|
||||||
VirtualDevice& rVDev,
|
const ::basegfx::B2DPolyPolygon& rClipPoly,
|
||||||
GDIMetaFile& rMtf,
|
const CanvasSharedPtr& rCanvas,
|
||||||
VectorOfOutDevStates& rStates );
|
bool bIntersect );
|
||||||
|
|
||||||
|
::com::sun::star::uno::Reference<
|
||||||
|
::drafts::com::sun::star::rendering::XCanvasFont > createFont( ::basegfx::B2DHomMatrix& o_rFontMatrix,
|
||||||
|
const ::Font& rFont,
|
||||||
|
const CanvasSharedPtr& rCanvas,
|
||||||
|
const ::VirtualDevice& rVDev,
|
||||||
|
const Parameters& rParms ) const;
|
||||||
|
bool createActions( const CanvasSharedPtr& rCanvas,
|
||||||
|
VirtualDevice& rVDev,
|
||||||
|
GDIMetaFile& rMtf,
|
||||||
|
VectorOfOutDevStates& rStates,
|
||||||
|
const Parameters& rParms,
|
||||||
|
int& io_rCurrActionIndex );
|
||||||
bool createFillAndStroke( const ::PolyPolygon& rPolyPoly,
|
bool createFillAndStroke( const ::PolyPolygon& rPolyPoly,
|
||||||
const CanvasSharedPtr& rCanvas,
|
const CanvasSharedPtr& rCanvas,
|
||||||
int rActionIndex,
|
int rActionIndex,
|
||||||
@@ -143,16 +158,55 @@ namespace cppcanvas
|
|||||||
void skipContent( GDIMetaFile& rMtf,
|
void skipContent( GDIMetaFile& rMtf,
|
||||||
const char& rCommentString ) const;
|
const char& rCommentString ) const;
|
||||||
|
|
||||||
void createGradientAction( const Rectangle& rRect,
|
void createGradientAction( const ::PolyPolygon& rPoly,
|
||||||
const Gradient& rGradient,
|
const ::Gradient& rGradient,
|
||||||
VirtualDevice& rVDev,
|
::VirtualDevice& rVDev,
|
||||||
const CanvasSharedPtr& rCanvas,
|
const CanvasSharedPtr& rCanvas,
|
||||||
VectorOfOutDevStates& rStates );
|
VectorOfOutDevStates& rStates,
|
||||||
|
const Parameters& rParms,
|
||||||
|
int& io_rCurrActionIndex,
|
||||||
|
bool bIsPolygonRectangle );
|
||||||
|
|
||||||
|
// create text effects such as shadow/relief/embossed
|
||||||
|
void createTextWithEffectsAction(
|
||||||
|
const Point& rStartPoint,
|
||||||
|
const String rString,
|
||||||
|
int nIndex,
|
||||||
|
int nLength,
|
||||||
|
const long* pCharWidths,
|
||||||
|
VirtualDevice& rVDev,
|
||||||
|
const CanvasSharedPtr& rCanvas,
|
||||||
|
VectorOfOutDevStates& rStates,
|
||||||
|
const Parameters& rParms,
|
||||||
|
int nCurrActionIndex );
|
||||||
|
|
||||||
|
// create text draw actions and add text lines
|
||||||
|
void createTextWithLinesAction(
|
||||||
|
const Point& rStartPoint,
|
||||||
|
const String rString,
|
||||||
|
int nIndex,
|
||||||
|
int nLength,
|
||||||
|
const long* pCharWidths,
|
||||||
|
VirtualDevice& rVDev,
|
||||||
|
const CanvasSharedPtr& rCanvas,
|
||||||
|
VectorOfOutDevStates& rStates,
|
||||||
|
const Parameters& rParms,
|
||||||
|
int nCurrActionIndex );
|
||||||
|
|
||||||
|
// create text lines such as underline and strikeout
|
||||||
|
void createJustTextLinesAction(
|
||||||
|
const Point& rStartPoint,
|
||||||
|
long nLineWidth,
|
||||||
|
VirtualDevice& rVDev,
|
||||||
|
const CanvasSharedPtr& rCanvas,
|
||||||
|
VectorOfOutDevStates& rStates,
|
||||||
|
const Parameters& rParms,
|
||||||
|
int nCurrActionIndex );
|
||||||
|
|
||||||
// prefetched and prepared canvas actions
|
// prefetched and prepared canvas actions
|
||||||
// (externally not visible)
|
// (externally not visible)
|
||||||
typedef ::std::vector< MtfAction > ActionVector;
|
typedef ::std::vector< MtfAction > ActionVector;
|
||||||
ActionVector maActions;
|
ActionVector maActions;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user