CMXReferBitmapFill Class Reference

#include <cmxexdc.h>

Inheritance diagram for CMXReferBitmapFill:

CMXReferListItem ListItem CCObject SimpleCCObject List of all members.

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)

Detailed Description

Definition at line 790 of file cmxexdc.h.


Constructor & Destructor Documentation

CMXReferBitmapFill::CMXReferBitmapFill CMXExportDC pDC  )  [inline]
 

Definition at line 795 of file cmxexdc.h.

00795 : CMXReferListItem(pDC) {};


Member Function Documentation

CMXReferBitmapFill::CC_DECLARE_DYNAMIC CMXReferBitmapFill   )  [private]
 

INT32 CMXReferBitmapFill::IndexEntrySize CMXExportDC pDC  )  [inline, virtual]
 

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

BOOL CMXReferBitmapFill::IsAProcedure void   )  [inline, virtual]
 

Reimplemented from CMXReferListItem.

Definition at line 802 of file cmxexdc.h.

00802 {return TRUE;};

BOOL CMXReferBitmapFill::IsASection void   )  [inline, virtual]
 

Reimplemented from CMXReferListItem.

Definition at line 799 of file cmxexdc.h.

00799 {return TRUE;};

INT32 CMXReferBitmapFill::IsInWhichIndex void   )  [inline, virtual]
 

Reimplemented from CMXReferListItem.

Definition at line 804 of file cmxexdc.h.

00804 {return cmxINDEX_PROCEDURE;};

void CMXReferBitmapFill::Set WORD  Ref  )  [inline]
 

Definition at line 797 of file cmxexdc.h.

00797 {BitmapReference = Ref;};

BOOL CMXReferBitmapFill::WriteInIndex CMXExportDC pDC  )  [virtual]
 

writes the relevant entry in the procedure index of the file

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
12/07/96
Parameters:
export dc [INPUTS]
Returns:
success
See also:

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 }

BOOL CMXReferBitmapFill::WriteSection CMXExportDC pDC  )  [virtual]
 

writes the relevant entry in the procedure index of the file

Author:
Ben_Summers (Xara Group Ltd) <camelotdev@xara.com>
Date:
15/07/96
Parameters:
export dc [INPUTS]
Returns:
success
See also:

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 }


Member Data Documentation

WORD CMXReferBitmapFill::BitmapReference [protected]
 

Definition at line 806 of file cmxexdc.h.

INT32 CMXReferBitmapFill::ProcedureFilePosition [protected]
 

Definition at line 810 of file cmxexdc.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:52:42 2007 for Camelot by  doxygen 1.4.4