#include <cmxfiltr.h>
Inheritance diagram for CMXFilter16:
Public Member Functions | |
CMXFilter16 () | |
Constructor for class CMXFilter16. | |
BOOL | Init () |
Initialiser for class CMXFilter. | |
Protected Member Functions | |
Matrix | GetExportTransform (Spread *pSpread) |
Creates a transformation matrix that provides the mapping between a Camelot document's co-ordinate system, and that used within the CMX file. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (CMXFilter16) |
Definition at line 163 of file cmxfiltr.h.
|
Constructor for class CMXFilter16.
Definition at line 176 of file cmxfiltr.cpp. 00177 { 00178 // Set up filter descriptions. 00179 FilterID = FILTERID_CMX16; 00180 }
|
|
|
|
Creates a transformation matrix that provides the mapping between a Camelot document's co-ordinate system, and that used within the CMX file.
Implements CMXFilter. Definition at line 442 of file cmxfiltr.cpp. 00443 { 00444 #ifdef DO_EXPORT 00445 00446 // Work out where the origin is... 00447 Page *pPage = ( Page * ) pSpread->FindFirstPageInSpread (); 00448 00449 // Use the centre of the page as the origin. 00450 DocCoord CMXOrigin = ( pPage->GetPageRect () ).Centre (); 00451 00452 // CMXOrigin is the origin of the page in CMX coords... 00453 Matrix Mat ( -CMXOrigin.x, -CMXOrigin.y ); 00454 00455 // Fiddle with the scale factor 00456 Mat *= Matrix ( FIXED16 ( CAMCOORD_SCALEFACTOR16 ), FIXED16 ( CAMCOORD_SCALEFACTOR16 ) ); 00457 00458 return Mat; 00459 #else 00460 return Matrix (); 00461 #endif 00462 }
|
|
Initialiser for class CMXFilter.
Implements Filter. Definition at line 214 of file cmxfiltr.cpp. 00215 { 00216 // Get the OILFilter object 00217 pOILFilter = new CMX16OILFilter(this); 00218 if (pOILFilter == NULL) 00219 return FALSE; 00220 00221 return TRUE; 00222 }
|