DocPrintMarkList Class Reference

Provide a class that will add Print mark components to new documents. More...

#include <prnmkcom.h>

Inheritance diagram for DocPrintMarkList:

List CCObject SimpleCCObject List of all members.

Public Member Functions

 DocPrintMarkList ()
 ~DocPrintMarkList ()
BOOL AddMark (UINT32 handle)
void RemoveMark (UINT32 handle)
void RemoveAllMarks ()
BOOL IsVirgin () const
DocPrintMarkGetFirstMark () const
DocPrintMarkGetNextMark (DocPrintMark *pItem) const
DocPrintMarkFindMark (UINT32 SearchHandle) const
 Try to find a print mark in the doc component, using its handle.

Private Attributes

BOOL Virgin

Detailed Description

Provide a class that will add Print mark components to new documents.

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

Definition at line 155 of file prnmkcom.h.


Constructor & Destructor Documentation

DocPrintMarkList::DocPrintMarkList  ) 
 

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

Definition at line 177 of file prnmkcom.cpp.

00178 {
00179     Virgin=TRUE;
00180 }

DocPrintMarkList::~DocPrintMarkList  ) 
 

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

Definition at line 194 of file prnmkcom.cpp.

00195 {
00196     RemoveAllMarks();
00197 }


Member Function Documentation

BOOL DocPrintMarkList::AddMark UINT32  handle  ) 
 

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 }

DocPrintMark * DocPrintMarkList::FindMark UINT32  SearchHandle  )  const
 

Try to find a print mark in the doc component, using its handle.

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/07/96
Parameters:
SearchHandle = the handle of the mark to search for [INPUTS]
Returns:
A pointer to the print mark described by this handle (NULL if none)

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 }

DocPrintMark * DocPrintMarkList::GetFirstMark  )  const [inline]
 

Definition at line 184 of file prnmkcom.h.

00185 {
00186     return ((DocPrintMark*)GetHead());
00187 }

DocPrintMark * DocPrintMarkList::GetNextMark DocPrintMark pItem  )  const [inline]
 

Definition at line 189 of file prnmkcom.h.

00190 {
00191     return ((DocPrintMark*)GetNext(pItem));
00192 }

BOOL DocPrintMarkList::IsVirgin  )  const [inline]
 

Definition at line 166 of file prnmkcom.h.

00166 { return Virgin; }

void DocPrintMarkList::RemoveAllMarks  ) 
 

Definition at line 224 of file prnmkcom.cpp.

00225 {
00226     DocPrintMark* pItem;
00227     while ((pItem=((DocPrintMark*)RemoveTail()))!=NULL)
00228         delete pItem;
00229 }

void DocPrintMarkList::RemoveMark UINT32  handle  ) 
 

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 }


Member Data Documentation

BOOL DocPrintMarkList::Virgin [private]
 

Definition at line 174 of file prnmkcom.h.


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