#include <prnmks.h>
Inheritance diagram for PageRectList:
Public Member Functions | |
PageRectList () | |
virtual | ~PageRectList () |
BOOL | AddPageRect (const DocRect &rect) |
void | DeleteAll () |
Deletes the list, calling the destructors of all ListItems. | |
PageRect * | GetFirstPageRect () const |
PageRect * | GetNextPageRect (PageRect *pItem) const |
PageRect * | FindPageRect (const DocRect &rect) const |
Definition at line 614 of file prnmks.h.
|
Definition at line 619 of file prnmks.h.
|
|
Definition at line 1718 of file prnmks.cpp. 01719 { 01720 DeleteAll(); 01721 }
|
|
Definition at line 1740 of file prnmks.cpp. 01741 { 01742 if (FindPageRect(rect)==NULL) 01743 { 01744 PageRect *pRect = new PageRect(rect); 01745 if (pRect) 01746 { 01747 AddTail(pRect); 01748 return TRUE; 01749 } 01750 return FALSE; 01751 } 01752 return TRUE; 01753 }
|
|
Deletes the list, calling the destructors of all ListItems.
Reimplemented from List. Definition at line 1723 of file prnmks.cpp. 01724 { 01725 PageRect* pItem; 01726 while ((pItem=((PageRect*)RemoveTail()))) // assignment 01727 delete pItem; 01728 }
|
|
Definition at line 1755 of file prnmks.cpp. 01756 { 01757 PageRect* pItem = GetFirstPageRect(); 01758 while (pItem) 01759 { 01760 if (pItem->Rect == rect) 01761 return pItem; 01762 pItem = GetNextPageRect(pItem); 01763 } 01764 return NULL; 01765 }
|
|
Definition at line 1730 of file prnmks.cpp.
|
|
Definition at line 1735 of file prnmks.cpp.
|