PageRectList Class Reference

Keeps a list of page rectanges in order to service the crop mark renderer. More...

#include <prnmks.h>

Inheritance diagram for PageRectList:

List CCObject SimpleCCObject List of all members.

Public Member Functions

 PageRectList ()
virtual ~PageRectList ()
BOOL AddPageRect (const DocRect &rect)
void DeleteAll ()
 Deletes the list, calling the destructors of all ListItems.
PageRectGetFirstPageRect () const
PageRectGetNextPageRect (PageRect *pItem) const
PageRectFindPageRect (const DocRect &rect) const

Detailed Description

Keeps a list of page rectanges in order to service the crop mark renderer.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
31/07/96

Definition at line 614 of file prnmks.h.


Constructor & Destructor Documentation

PageRectList::PageRectList  )  [inline]
 

Definition at line 619 of file prnmks.h.

00619 {};

PageRectList::~PageRectList  )  [virtual]
 

Definition at line 1718 of file prnmks.cpp.

01719 {
01720     DeleteAll();
01721 }


Member Function Documentation

BOOL PageRectList::AddPageRect const DocRect rect  ) 
 

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 }

void PageRectList::DeleteAll  )  [virtual]
 

Deletes the list, calling the destructors of all ListItems.

Author:
Simon_Maneggio (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/2/94
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

See also:
-

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 }

PageRect * PageRectList::FindPageRect const DocRect rect  )  const
 

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 }

PageRect * PageRectList::GetFirstPageRect  )  const [inline]
 

Definition at line 1730 of file prnmks.cpp.

01731 {
01732     return ((PageRect*)GetHead());
01733 }

PageRect * PageRectList::GetNextPageRect PageRect pItem  )  const [inline]
 

Definition at line 1735 of file prnmks.cpp.

01736 {
01737     return ((PageRect*)GetNext(pItem));
01738 }


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