PdeElement class.
More...
#include <pdfix.h>
PdeElement class.
PdeElement is the base class for elements of a pagemap (PdePageMap). The general PdeElement methods allow you to get and set general element properties. PdeElement is an abstract superclass from which the PdeText, PdeTextLine, PdeWord, PdeTable, PdeImage, PdeContainer, PdeLine, PdeRect, PdeTableCell, PdeFormField, PdeHeader, PdeFooter, PdeArtifact classes are derived. Use PdeElement::GetType method to find the type of an element.
◆ GetAlignment()
Gets the element alignment within the content column.
- Returns
- Requested element alignment.
◆ GetAngle()
virtual float PdeElement::GetAngle |
( |
| ) |
const |
|
pure virtual |
Gets the element angle.
- Returns
- Requested element angle.
◆ GetBBox()
virtual void PdeElement::GetBBox |
( |
PdfRect * |
bbox | ) |
const |
|
pure virtual |
Gets the bounding box for an element in user space coordinates. To avoid the device-dependent effects of specifying objects in device space, PDF defines a device-independent coordinate system that always bears the same relationship to the current page, regardless of the output device on which printing or displaying occurs. This device-independent coordinate system is called user space. The origin of the user space(0, 0) represents the bottom-left corner of the PDF page. PDF files specify 72 points to 1 physical inch. The returned bounding box is guaranteed to encompass the element.
- Parameters
-
bbox | (Filled by the method) A pointer to a PdfRect structure specifying the bounding box of an element, specified in user space coordinates. |
◆ GetChild()
virtual PdeElement * PdeElement::GetChild |
( |
int |
index | ) |
|
|
pure virtual |
Gets the requested child element from an element.
- Parameters
-
index | The index of element to obtain. |
- Returns
- Requested element.
- See also
- PdeElement::GetNumChildren
◆ GetData()
virtual void * PdeElement::GetData |
( |
| ) |
const |
|
pure virtual |
Gets user-supplied data to pass to the element.
- Returns
- User-supplied data from the element.
◆ GetFlags()
virtual int PdeElement::GetFlags |
( |
| ) |
const |
|
pure virtual |
Get the element state flags.
- Returns
- the element flags as PdfElementFlags.
◆ GetGraphicState()
Gets the graphics state information for an element.
- Parameters
-
g_state | (Filled by the method) Pointer to a PdfGraphicState structure that contains graphics state information for pdeElement. |
◆ GetId()
virtual int PdeElement::GetId |
( |
| ) |
|
|
pure virtual |
Gets the id of an element. The id is unique number on a page.
- Returns
- Unique number for the element.
◆ GetLabelType()
Gets the element label type.
- Returns
- The element label type.
◆ GetNumChildren()
virtual int PdeElement::GetNumChildren |
( |
| ) |
const |
|
pure virtual |
Gets the number of child elements in an element object.
- Returns
- The number of children.
- See also
- PdeElement::GetChild
◆ GetNumPageObjects()
virtual int PdeElement::GetNumPageObjects |
( |
| ) |
const |
|
pure virtual |
Get the the number pf page object in the element.
- Returns
- The number of page objects.
◆ GetPageMap()
Get the the page map object containing this element.
- Returns
- The page map object.
◆ GetPageObject()
Get the the page object of the element by index.
- Returns
- The page object.
◆ GetQuad()
virtual void PdeElement::GetQuad |
( |
PdfQuad * |
quad | ) |
const |
|
pure virtual |
Gets the quad for an element in user space coordinates. See GetBBox for more info. The returned quad is guaranteed to encompass the element.
- Parameters
-
quad | (Filled by the method) A pointer to a PdfQuad structure specifying the bounding quad of an element, specified in user space coordinates. |
◆ GetStateFlags()
virtual int PdeElement::GetStateFlags |
( |
| ) |
const |
|
pure virtual |
Get the element state flags.
- Returns
- the element state flags as PdfStateFlags.
◆ GetTag()
virtual int PdeElement::GetTag |
( |
wchar_t * |
buffer, |
|
|
int |
len |
|
) |
| const |
|
pure virtual |
Gets the tag name of the element.
- Parameters
-
buffer | (filled by method) If the buffer is null function returns required length of string |
len | Length of a buffer to be filled in. |
- Returns
- Number of characters written into buffer of required length.
◆ GetType()
Gets the type of an element.
- Returns
- Element type, kElementUnknown otherwise.
◆ SetActualText()
virtual bool PdeElement::SetActualText |
( |
const wchar_t * |
text | ) |
|
|
pure virtual |
Sets the actual text of the element.
- Parameters
-
alt | The actual text to be set. |
- Returns
- true if the actual text was set, false otherwise.
◆ SetAlt()
virtual bool PdeElement::SetAlt |
( |
const wchar_t * |
alt | ) |
|
|
pure virtual |
Sets the alternate description of the element.
- Parameters
-
alt | The alternate decsription to be set. |
- Returns
- true if the description was set, false otherwise.
◆ SetBBox()
virtual bool PdeElement::SetBBox |
( |
const PdfRect * |
bbox | ) |
|
|
pure virtual |
Gets the bounding box for an element in user space coordinates. To avoid the device-dependent effects of specifying objects in device space, PDF defines a device-independent coordinate system that always bears the same relationship to the current page, regardless of the output device on which printing or displaying occurs. This device-independent coordinate system is called user space. The origin of the user space(0, 0) represents the bottom-left corner of the PDF page. PDF files specify 72 points to 1 physical inch. The returned bounding box is guaranteed to encompass the element.
- Parameters
-
bbox | A pointer to a PdfRect structure specifying the bounding box of an element, specified in user space coordinates. |
◆ SetData()
virtual void PdeElement::SetData |
( |
void * |
data | ) |
|
|
pure virtual |
Sets user-supplied data to pass to the element.
- Parameters
-
data | User-supplied data to pass to element. |
◆ SetFlags()
virtual bool PdeElement::SetFlags |
( |
int |
flags | ) |
|
|
pure virtual |
Set the element state flags.
- Parameters
-
flags | the PdfElementFlags flags to be set |
- Returns
- true if the element flags was set false otherwise
◆ SetLabelType()
Sets the element type level.
- Parameters
-
type | Sets element label type. |
- Returns
- true if label type was set, false otherwise.
◆ SetStateFlags()
virtual bool PdeElement::SetStateFlags |
( |
int |
flags, |
|
|
bool |
objects |
|
) |
| |
|
pure virtual |
Set the element state flags.
- Parameters
-
flags | the PdfStateFlags flags to be set |
objects | set the state flag to all underlying page objects |
- Returns
- true if the element state flags was set false otherwise
◆ SetTag()
virtual bool PdeElement::SetTag |
( |
const wchar_t * |
text | ) |
|
|
pure virtual |
Sets the tag name of the element.
- Parameters
-
alt | The actual text to be set. |
- Returns
- true if the actual text was set, false otherwise.