#include <ContentTree.h>
|
| | ~Paragraph () |
| |
| void | Destroy () |
| |
| TextRun | AddText (const UString &text) |
| |
| TextRun | AddHyperlink (const UString &text, const UString &target) |
| |
| PageNumber | AddPageNumber (PageNumber::NumberType type) |
| |
| Shape | AddShape (Shape::ShapeType type, double width, double height) |
| |
| Shape | AddImage (double width, double height, const UString &image_path) |
| |
| Shape | AddImage (double width, double height, const Filters::Filter &image_filter) |
| |
| Chart | AddChart (double width, double height, const UString &definition) |
| |
| Float | AddFloat () |
| |
| void | SetSpaceBefore (double val) |
| |
| double | GetSpaceBefore () |
| |
| void | SetSpaceAfter (double val) |
| |
| double | GetSpaceAfter () |
| |
| void | SetJustificationMode (TextJustification val) |
| |
| TextJustification | GetJustificationMode () |
| |
| void | SetStartIndent (double val) |
| |
| double | GetStartIndent () |
| |
| void | SetEndIndent (double val) |
| |
| double | GetEndIndent () |
| |
| void | SetTextIndent (double val) |
| |
| double | GetTextIndent () |
| |
| void | SetBorder (double thickness, UInt8 red, UInt8 green, UInt8 blue) |
| |
| double | GetBorderThickness () |
| |
| void | AddTabStop (double val) |
| |
| double | GetNextTabStop (double val) |
| |
| void | SetDefaultTabStop (double val) |
| |
| double | GetDefaultTabStop () |
| |
| void | SetSpacesPerTab (UInt32 val) |
| |
| UInt32 | GetSpacesPerTab () |
| |
| void | SetDisplayRtl (bool val) |
| |
| bool | IsDisplayRtl () |
| |
| | ~ContentNode () |
| |
| void | Destroy () |
| |
| ContentNodeIterator | GetContentNodeIterator () |
| |
| | ~ContentElement () |
| |
| void | Destroy () |
| |
| ElementRef< List > | AsList () const |
| |
| ElementRef< ListItem > | AsListItem () const |
| |
| ElementRef< ContentNode > | AsContentNode () const |
| |
| ElementRef< TextRun > | AsTextRun () const |
| |
| ElementRef< PageNumber > | AsPageNumber () const |
| |
| ElementRef< Shape > | AsShape () const |
| |
| ElementRef< Float > | AsFloat () const |
| |
| ElementRef< Chart > | AsChart () const |
| |
| ElementRef< Paragraph > | AsParagraph () const |
| |
| ElementRef< Table > | AsTable () const |
| |
| ElementRef< TableRow > | AsTableRow () const |
| |
| ElementRef< TableCell > | AsTableCell () const |
| |
| TextStyledElement | GetTextStyledElement () |
| |
A Paragraph is a content node that contains a list of TextRun objects.
Definition at line 1097 of file ContentTree.h.
| Enumerator |
|---|
| e_text_justification_invalid |
Text justification is invalid
|
| e_text_justify_left |
Text is left justified
|
| e_text_justify_right |
Text is right justified
|
| e_text_justify_center |
Text is justified centered
|
Definition at line 1106 of file ContentTree.h.
| pdftron::Layout::Paragraph::~Paragraph |
( |
| ) |
|
| Chart pdftron::Layout::Paragraph::AddChart |
( |
double |
width, |
|
|
double |
height, |
|
|
const UString & |
definition |
|
) |
| |
Add a chart to the paragraph.
- Parameters
-
| width | The chart width in points. |
| height | The chart height in points. |
| definition | A JSON string describing the chart contents. |
- Returns
- The newly created Chart object.
| Float pdftron::Layout::Paragraph::AddFloat |
( |
| ) |
|
Add a float to the paragraph.
The content added to the returned Float is taken out of the main document flow and positioned relative to the chosen reference points, with the main document content wrapped around it (depending on the obstruction type).
- Returns
- The newly created Float object.
Add a hyperlink text run to the paragraph.
- Parameters
-
| text | The visible hyperlink text. |
| target | The hyperlink target. |
- Returns
- The newly created TextRun object.
| Shape pdftron::Layout::Paragraph::AddImage |
( |
double |
width, |
|
|
double |
height, |
|
|
const UString & |
image_path |
|
) |
| |
Add an image shape to the paragraph using a file path.
Internally this calls AddShape() and sets the image as shape background.
- Parameters
-
| width | The image width in points. |
| height | The image height in points. |
| image_path | The image file path. |
- Returns
- The newly created Shape object.
| Shape pdftron::Layout::Paragraph::AddImage |
( |
double |
width, |
|
|
double |
height, |
|
|
const Filters::Filter & |
image_filter |
|
) |
| |
Add an image shape to the paragraph using a filter.
Internally this calls AddShape() and sets the image as shape background.
- Parameters
-
| width | The image width in points. |
| height | The image height in points. |
| image_filter | The image filter. |
- Returns
- The newly created Shape object.
Add a page number to the paragraph
- Parameters
-
| type | The type of page number to add (current page or total pages) |
- Returns
- The newly created PageNumber object
Add a shape to the paragraph.
- Parameters
-
| type | The shape type. |
| width | The shape width in points. |
| height | The shape height in points. |
- Returns
- The newly created Shape object.
| void pdftron::Layout::Paragraph::AddTabStop |
( |
double |
val | ) |
|
Adds a tab stop to the paragraph style.
- Parameters
-
| val | The position of the tab stop to add. |
Add another text run to the paragraph
- Parameters
-
- Returns
- The newly created TextRun object
| void pdftron::Layout::Paragraph::Destroy |
( |
| ) |
|
| double pdftron::Layout::Paragraph::GetBorderThickness |
( |
| ) |
|
Gets the border thickness for the paragraph style.
- Returns
- The border thickness for the paragraph style.
| double pdftron::Layout::Paragraph::GetDefaultTabStop |
( |
| ) |
|
Gets the default tab stop position for the paragraph style.
- Returns
- The default tab stop position for the paragraph style.
| double pdftron::Layout::Paragraph::GetEndIndent |
( |
| ) |
|
Gets the end indent for the paragraph style.
- Returns
- The end indent value for the paragraph style.
Get justification mode for the paragraph
- Returns
- Justification mode for paragraph style
| double pdftron::Layout::Paragraph::GetNextTabStop |
( |
double |
val | ) |
|
Gets the next tab stop position for the paragraph style, given a starting position.
- Parameters
-
| val | The starting position. |
- Returns
- The position of the next tab stop.
| double pdftron::Layout::Paragraph::GetSpaceAfter |
( |
| ) |
|
Get the "space after" value for the paragraph style
- Returns
- "space after" value for paragraph style
| double pdftron::Layout::Paragraph::GetSpaceBefore |
( |
| ) |
|
Get the "space before" value for the paragraph style
- Returns
- "space before" value for paragraph style
| UInt32 pdftron::Layout::Paragraph::GetSpacesPerTab |
( |
| ) |
|
Gets the number of spaces per tab for the paragraph style.
- Returns
- The number of spaces per tab for the paragraph style.
| double pdftron::Layout::Paragraph::GetStartIndent |
( |
| ) |
|
Gets the start indent for the paragraph style.
- Returns
- The start indent value for the paragraph style.
| double pdftron::Layout::Paragraph::GetTextIndent |
( |
| ) |
|
Gets the text indent for the paragraph style.
- Returns
- The text indent value for the paragraph style.
| bool pdftron::Layout::Paragraph::IsDisplayRtl |
( |
| ) |
|
Checks if the paragraph style has the right-to-left (RTL) property set.
- Returns
- True if the display is RTL, false otherwise.
| void pdftron::Layout::Paragraph::SetBorder |
( |
double |
thickness, |
|
|
UInt8 |
red, |
|
|
UInt8 |
green, |
|
|
UInt8 |
blue |
|
) |
| |
Sets the border for the paragraph style.
- Parameters
-
| thickness | The border thickness. |
| red | The red component of the border color. |
| green | The green component of the border color. |
| blue | The blue component of the border color. |
| void pdftron::Layout::Paragraph::SetDefaultTabStop |
( |
double |
val | ) |
|
Sets the default tab stop position for the paragraph style.
- Parameters
-
| val | The default tab stop position to set. |
| void pdftron::Layout::Paragraph::SetDisplayRtl |
( |
bool |
val | ) |
|
Sets the right-to-left (RTL) property for the paragraph style.
- Parameters
-
| val | The value to set. True if RTL, false if not. |
| void pdftron::Layout::Paragraph::SetEndIndent |
( |
double |
val | ) |
|
Sets the end indent for the paragraph style.
- Parameters
-
| val | The end indent value to set. |
Set justification mode for paragraph style
- Parameters
-
| val | The justification mode to set |
| void pdftron::Layout::Paragraph::SetSpaceAfter |
( |
double |
val | ) |
|
Set the "space after" value for paragraph style
- Parameters
-
| val | The "space after" value to set |
| void pdftron::Layout::Paragraph::SetSpaceBefore |
( |
double |
val | ) |
|
Set the "space before" value for the paragraph style
- Parameters
-
| val | The "space before" value to set |
| void pdftron::Layout::Paragraph::SetSpacesPerTab |
( |
UInt32 |
val | ) |
|
Sets the number of spaces per tab for the paragraph style.
- Parameters
-
| val | The number of spaces per tab to set. |
| void pdftron::Layout::Paragraph::SetStartIndent |
( |
double |
val | ) |
|
Sets the start indent for the paragraph style.
- Parameters
-
| val | The start indent value to set. |
| void pdftron::Layout::Paragraph::SetTextIndent |
( |
double |
val | ) |
|
Sets the text indent for the paragraph style.
- Parameters
-
| val | The text indent value to set. |
The documentation for this class was generated from the following file: