#include <cdrfiltr.h>
Inheritance diagram for CDRBBoxList:
Public Member Functions | |
CDRBBoxList () | |
constructor | |
~CDRBBoxList () | |
destructor | |
BOOL | Add (Node *N, DocRect *BBox, Justification Just) |
Adds a bounding box to the list. | |
BOOL | Find (Node *N, DocRect *BBox) |
Finds a bounding box from a list of bounding boxes. | |
DocRect * | Find (Node *N) |
Finds a stored bounding box, returning a pointer to the DocRect which can be modified, for example, as a result of a transformation. |
Definition at line 615 of file cdrfiltr.h.
|
constructor
Definition at line 2064 of file cdrtext.cpp.
|
|
destructor
Definition at line 2082 of file cdrtext.cpp.
|
|
Adds a bounding box to the list.
Definition at line 2137 of file cdrtext.cpp. 02138 { 02139 CDRBBoxListItem *Item = new CDRBBoxListItem; 02140 02141 Item->pNode = N; 02142 Item->BBox = *BBox; 02143 02144 // alter the BBox for various justification options 02145 if(Just == JCENTRE) 02146 { 02147 BBox->Translate(0 - (BBox->Width() / 2), 0); 02148 } 02149 else if(Just == JRIGHT) 02150 { 02151 BBox->Translate(0 - BBox->Width(), 0); 02152 } 02153 02154 AddTail(Item); 02155 02156 return TRUE; 02157 }
|
|
Finds a stored bounding box, returning a pointer to the DocRect which can be modified, for example, as a result of a transformation.
Definition at line 2208 of file cdrtext.cpp. 02209 { 02210 CDRBBoxListItem *Item = (CDRBBoxListItem *)GetHead(); 02211 02212 while(Item != 0) 02213 { 02214 if(Item->pNode == N) 02215 { 02216 return &Item->BBox; 02217 } 02218 02219 Item = (CDRBBoxListItem *)GetNext(Item); 02220 } 02221 02222 return 0; 02223 }
|
|
Finds a bounding box from a list of bounding boxes.
Definition at line 2172 of file cdrtext.cpp. 02173 { 02174 CDRBBoxListItem *Item = (CDRBBoxListItem *)GetHead(); 02175 02176 while(Item != 0) 02177 { 02178 if(Item->pNode == N) 02179 { 02180 if(BBox != 0) 02181 { 02182 *BBox = Item->BBox; 02183 } 02184 return TRUE; 02185 } 02186 02187 Item = (CDRBBoxListItem *)GetNext(Item); 02188 } 02189 02190 return FALSE; 02191 }
|