#include <prnmkcom.h>
Inheritance diagram for DocPrintMarkList:
Public Member Functions | |
DocPrintMarkList () | |
~DocPrintMarkList () | |
BOOL | AddMark (UINT32 handle) |
void | RemoveMark (UINT32 handle) |
void | RemoveAllMarks () |
BOOL | IsVirgin () const |
DocPrintMark * | GetFirstMark () const |
DocPrintMark * | GetNextMark (DocPrintMark *pItem) const |
DocPrintMark * | FindMark (UINT32 SearchHandle) const |
Try to find a print mark in the doc component, using its handle. | |
Private Attributes | |
BOOL | Virgin |
Definition at line 155 of file prnmkcom.h.
|
Definition at line 177 of file prnmkcom.cpp.
|
|
Definition at line 194 of file prnmkcom.cpp. 00195 { 00196 RemoveAllMarks(); 00197 }
|
|
Definition at line 199 of file prnmkcom.cpp. 00200 { 00201 DocPrintMark* pMark = new DocPrintMark(handle); 00202 if (pMark) 00203 { 00204 AddTail(pMark); 00205 Virgin=FALSE; 00206 } 00207 return (pMark!=NULL); 00208 }
|
|
Try to find a print mark in the doc component, using its handle.
Definition at line 243 of file prnmkcom.cpp. 00244 { 00245 DocPrintMark* pItem = GetFirstMark(); 00246 while (pItem) 00247 { 00248 if (pItem->GetHandle() == SearchHandle) 00249 return pItem; 00250 pItem = GetNextMark(pItem); 00251 } 00252 return NULL; 00253 }
|
|
Definition at line 184 of file prnmkcom.h. 00185 { 00186 return ((DocPrintMark*)GetHead()); 00187 }
|
|
Definition at line 189 of file prnmkcom.h. 00190 { 00191 return ((DocPrintMark*)GetNext(pItem)); 00192 }
|
|
Definition at line 166 of file prnmkcom.h. 00166 { return Virgin; }
|
|
Definition at line 224 of file prnmkcom.cpp. 00225 { 00226 DocPrintMark* pItem; 00227 while ((pItem=((DocPrintMark*)RemoveTail()))!=NULL) 00228 delete pItem; 00229 }
|
|
Definition at line 210 of file prnmkcom.cpp. 00211 { 00212 DocPrintMark* pMark = FindMark(handle); 00213 if (pMark) 00214 { 00215 RemoveItem(pMark); 00216 delete pMark; 00217 } 00218 else 00219 { 00220 TRACEUSER( "Mike", _T("Unable to find mark during DocPrintMarkList::RemoveMark()")); 00221 } 00222 }
|
|
Definition at line 174 of file prnmkcom.h. |