#include <cmxexdc.h>
Inheritance diagram for CMXReferBitmapFill:
Public Member Functions | |
CMXReferBitmapFill (CMXExportDC *pDC) | |
void | Set (WORD Ref) |
BOOL | IsASection (void) |
BOOL | WriteSection (CMXExportDC *pDC) |
writes the relevant entry in the procedure index of the file | |
BOOL | IsAProcedure (void) |
INT32 | IsInWhichIndex (void) |
BOOL | WriteInIndex (CMXExportDC *pDC) |
writes the relevant entry in the procedure index of the file | |
INT32 | IndexEntrySize (CMXExportDC *pDC) |
Protected Attributes | |
WORD | BitmapReference |
INT32 | ProcedureFilePosition |
Private Member Functions | |
CC_DECLARE_DYNAMIC (CMXReferBitmapFill) |
Definition at line 790 of file cmxexdc.h.
|
Definition at line 795 of file cmxexdc.h. 00795 : CMXReferListItem(pDC) {};
|
|
|
|
Reimplemented from CMXReferListItem. Definition at line 806 of file cmxexdc.h. 00806 {return sizeof(cmxProcIndexEntry)+(pDC->IsThirtyTwoBit()?sizeof(WORD):0);}; // size of entry which goes in index
|
|
Reimplemented from CMXReferListItem. Definition at line 802 of file cmxexdc.h. 00802 {return TRUE;};
|
|
Reimplemented from CMXReferListItem. Definition at line 799 of file cmxexdc.h. 00799 {return TRUE;};
|
|
Reimplemented from CMXReferListItem. Definition at line 804 of file cmxexdc.h. 00804 {return cmxINDEX_PROCEDURE;};
|
|
Definition at line 797 of file cmxexdc.h. 00797 {BitmapReference = Ref;};
|
|
writes the relevant entry in the procedure index of the file
Reimplemented from CMXReferListItem. Definition at line 2303 of file cmxdcobj.cpp. 02304 { 02305 // write the index entry 02306 cmxProcIndexEntry en; 02307 pDC->WriteSizeInFile(sizeof(en)); 02308 en.RefList = -1; 02309 en.Procedure = ProcedureFilePosition; 02310 02311 return pDC->WriteData(&en, sizeof(en)); 02312 }
|
|
writes the relevant entry in the procedure index of the file
Reimplemented from CMXReferListItem. Definition at line 2412 of file cmxdcobj.cpp. 02413 { 02414 // get the file position for our records 02415 ProcedureFilePosition = pDC->GetFilePosition(); 02416 02417 // first step -- start the procedure section 02418 if(!pDC->StartSection(CMXExportDC::CMXSECTION_PROCBITFILL)) 02419 return FALSE; 02420 02421 // bounding box 02422 DocRect bbox = DocRect(0, 0, cmxBITMAPFILLTILESIZE_X, cmxBITMAPFILLTILESIZE_Y); 02423 02424 // put in the start the procedure 02425 if(!pDC->StartPage(&bbox, TRUE)) 02426 return FALSE; 02427 02428 // write the bitmap object 02429 DocCoord Paral[4] = // bouning parallelogram of the bitmap 02430 { DocCoord(0, cmxBITMAPFILLTILESIZE_Y), 02431 DocCoord(cmxBITMAPFILLTILESIZE_X, cmxBITMAPFILLTILESIZE_Y), 02432 DocCoord(cmxBITMAPFILLTILESIZE_X, 0), 02433 DocCoord(0, 0) 02434 }; 02435 02436 if ( !pDC->WriteBitmap ( 0, Paral, CMXExportDC::CMXBITMAPCOLOURSOURCE_NONE, 02437 FALSE, BitmapReference ) ) 02438 return FALSE; 02439 02440 // end the page 02441 if(!pDC->EndPage()) 02442 return FALSE; 02443 02444 // end the section 02445 if(!pDC->EndSection()) 02446 return FALSE; 02447 02448 return TRUE; 02449 }
|
|
|
|
|