cdrfiltr.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "cdrfiltr.h"
#include "progress.h"
#include "cdrcol.h"
#include "rifffile.h"
#include "cdrform.h"
#include "nodepath.h"
#include "page.h"
#include "nodershp.h"
#include "ndoptmz.h"
#include "collist.h"
#include "layer.h"
#include "sglayer.h"
#include "sprdmsg.h"
#include "nodebmp.h"
#include "nodetxts.h"
#include "zoomops.h"
#include "nodemold.h"
#include "moldshap.h"
#include "ndmldpth.h"
#include "nodemldr.h"
#include "fontman.h"
#include "cmxifltr.h"

Go to the source code of this file.

Defines

#define new   CAM_DEBUG_NEW
#define PROGRESSUPDATE_MASK   0x7f
#define CDRFILTER_DI_RETURNERROR   {Success = FALSE; return ClearUp();}
 Does the import of a CDR (.cdr or .cdt).
#define RECTANGLE_CORNER_MAGIC   (1.0 - 0.552)
 generates a rectangle object
#define RECT_MOVE(px, py)   {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertMoveTo(co)) goto NoMemory;}
#define RECT_LINE(px, py)   {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertLineTo(co)) goto NoMemory;}
#define RECT_CURVE(cx1, cy1, cx2, cy2, px, py)
#define RECT_CLOSE   {if(!pPath->InkPath.CloseSubPath()) goto NoMemory;}
#define BITM_MOVE(px, py)   {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertMoveTo(co)) return FALSE;}
 generates a bitmap object
#define BITM_LINE(px, py)   {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertLineTo(co)) return FALSE;}
#define BITM_CLOSE   {if(!pPath->InkPath.CloseSubPath()) return FALSE;}
#define PERS_MOVE(co)   {if(!pShape->InkPath.InsertMoveTo(co)) return FALSE;}
 transforms an object given a CDR perspective
#define PERS_LINE(co)   {if(!pShape->InkPath.InsertLineTo(co)) return FALSE;}
#define PERS_CLOSE   {if(!pShape->InkPath.CloseSubPath()) return FALSE;}
#define ENVV3_NCOORDS   25
 converts a envelope from position N

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")


Define Documentation

#define BITM_CLOSE   {if(!pPath->InkPath.CloseSubPath()) return FALSE;}
 

Definition at line 2741 of file cdrfiltr.cpp.

#define BITM_LINE px,
py   )     {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertLineTo(co)) return FALSE;}
 

Definition at line 2740 of file cdrfiltr.cpp.

#define BITM_MOVE px,
py   )     {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertMoveTo(co)) return FALSE;}
 

generates a bitmap object

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/04/95
Parameters:
pointer to header [INPUTS]
Returns:
error flag
See also:

Definition at line 2739 of file cdrfiltr.cpp.

#define CDRFILTER_DI_RETURNERROR   {Success = FALSE; return ClearUp();}
 

Does the import of a CDR (.cdr or .cdt).

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
21 03 95
Parameters:
As for the Filter class [INPUTS]
Returns:
As for the Filter class
See also:
Filter

Definition at line 365 of file cdrfiltr.cpp.

#define ENVV3_NCOORDS   25
 

converts a envelope from position N

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/05/95
Parameters:
pointer to a pointer to a nodepath to fill in, a docrect for the orignial BBox [INPUTS] and the position
Returns:
a transform type
See also:
CDRFilter

Definition at line 4537 of file cdrfiltr.cpp.

#define new   CAM_DEBUG_NEW
 

Definition at line 173 of file cdrfiltr.cpp.

#define PERS_CLOSE   {if(!pShape->InkPath.CloseSubPath()) return FALSE;}
 

Definition at line 3410 of file cdrfiltr.cpp.

#define PERS_LINE co   )     {if(!pShape->InkPath.InsertLineTo(co)) return FALSE;}
 

Definition at line 3409 of file cdrfiltr.cpp.

#define PERS_MOVE co   )     {if(!pShape->InkPath.InsertMoveTo(co)) return FALSE;}
 

transforms an object given a CDR perspective

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/05/95
Parameters:
the node to transform, and the trfd chunk to transform it by [INPUTS]
Returns:
error flag
See also:
Filter

Definition at line 3408 of file cdrfiltr.cpp.

#define PROGRESSUPDATE_MASK   0x7f
 

Definition at line 175 of file cdrfiltr.cpp.

#define RECT_CLOSE   {if(!pPath->InkPath.CloseSubPath()) goto NoMemory;}
 

Definition at line 2599 of file cdrfiltr.cpp.

#define RECT_CURVE cx1,
cy1,
cx2,
cy2,
px,
py   ) 
 

Value:

{cn1.x = (cx1); cn1.y = (cy1); cn2.x = (cx2); cn2.y = (cy2); \
            co.x = (px); co.y = (py); if(!pPath->InkPath.InsertCurveTo(cn1, cn2, co)) goto NoMemory;}

Definition at line 2597 of file cdrfiltr.cpp.

#define RECT_LINE px,
py   )     {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertLineTo(co)) goto NoMemory;}
 

Definition at line 2596 of file cdrfiltr.cpp.

#define RECT_MOVE px,
py   )     {co.x = (px); co.y = (py); if(!pPath->InkPath.InsertMoveTo(co)) goto NoMemory;}
 

Definition at line 2595 of file cdrfiltr.cpp.

#define RECTANGLE_CORNER_MAGIC   (1.0 - 0.552)
 

generates a rectangle object

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
27 03 95
Parameters:
pointer to header [INPUTS]
Returns:
error flag
See also:

Definition at line 2593 of file cdrfiltr.cpp.


Function Documentation

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 


Generated on Sat Nov 10 03:49:05 2007 for Camelot by  doxygen 1.4.4