#include <cmxexdc.h>
Inheritance diagram for CMXReferDotDash:
Public Member Functions | |
CMXReferDotDash (CMXExportDC *pDC) | |
void | Set (DashRec *ptDash) |
INT32 | IsInWhichDesc (void) |
BOOL | WriteInDesc (CMXExportDC *pDC) |
writes a dot dash pattern to the description section | |
virtual BOOL | AreYouThisDotDash (DashRec *ptDash) |
Protected Attributes | |
DashRec * | pDash |
Private Member Functions | |
CC_DECLARE_DYNAMIC (CMXReferDotDash) |
Definition at line 515 of file cmxexdc.h.
|
Definition at line 520 of file cmxexdc.h. 00520 : CMXReferListItem(pDC) {pDash = 0;};
|
|
Reimplemented in CMXReferDefaultDotDash. Definition at line 527 of file cmxexdc.h.
|
|
|
|
Reimplemented from CMXReferListItem. Reimplemented in CMXReferDefaultDotDash. Definition at line 524 of file cmxexdc.h. 00524 {return cmxDESC_DOTDASH;};
|
|
Definition at line 522 of file cmxexdc.h. 00522 {pDash = ptDash;};
|
|
writes a dot dash pattern to the description section
Reimplemented from CMXReferListItem. Reimplemented in CMXReferDefaultDotDash. Definition at line 2876 of file cmxexdc.cpp. 02877 { 02878 pDash->CheckAndFix(); // just in case 02879 02880 // start the tag 02881 if(!pDC->StartTag(cmxTAG_DescrSection_Dash)) 02882 return FALSE; 02883 02884 // dot count 02885 WORD DotCount = (WORD)pDash->Elements; 02886 if(!pDC->WriteData(&DotCount, sizeof(DotCount))) 02887 return FALSE; 02888 02889 // write the elements 02890 for(INT32 l = 0; l < pDash->Elements; l++) 02891 { 02892 WORD Element = (WORD)((pDash->ElementData[l] + 4) / pDash->LineWidth); 02893 if(Element <= 0) Element = 1; 02894 Element *= 4; 02895 if(!pDC->WriteData(&Element, sizeof(Element))) 02896 return FALSE; 02897 } 02898 02899 // end the tag and write the end tag 02900 if(!pDC->EndTag() || !pDC->WriteMinEndTag()) 02901 return FALSE; 02902 02903 return TRUE; 02904 }
|
|
|