1 #ifndef PDFTRON_H_CPPContentTree
2 #define PDFTRON_H_CPPContentTree
4 #include <C/Layout/TRN_ContentElement.h>
5 #include <C/Layout/TRN_ContentNode.h>
6 #include <C/Layout/TRN_ContentContainer.h>
7 #include <C/Layout/TRN_Section.h>
8 #include <C/Layout/TRN_Paragraph.h>
9 #include <C/Layout/TRN_PageNumber.h>
10 #include <C/Layout/TRN_Table.h>
11 #include <C/Layout/TRN_TableRow.h>
12 #include <C/Layout/TRN_TableCell.h>
13 #include <C/Layout/TRN_TextRun.h>
14 #include <C/Layout/TRN_TextStyledElement.h>
15 #include <C/Layout/TRN_List.h>
16 #include <C/Layout/TRN_ListItem.h>
17 #include <C/Layout/TRN_Shape.h>
18 #include <C/Layout/TRN_Chart.h>
19 #include <C/Layout/TRN_Float.h>
25 namespace pdftron {
namespace Layout {
59 template <
typename TImpl>
616 void SetMargins(
double left,
double top,
double right,
double bottom);
660 Float(TRN_Float impl);
850 Shape(TRN_Shape impl);
1047 Chart(TRN_Chart impl);
1569 Table(TRN_Table impl);
1654 List(TRN_List impl);
1656 void UpdateLastItemRef(TRN_ContentElement last_item);
1756 void UpdateLastItemRef(TRN_ContentElement last_item);
1809 #include <Impl/ContentElement.inl>
1810 #include <Impl/ContentNode.inl>
1811 #include <Impl/ContentContainer.inl>
1812 #include <Impl/Section.inl>
1813 #include <Impl/ElementRef.inl>
1814 #include <Impl/PageNumber.inl>
1815 #include <Impl/Paragraph.inl>
1816 #include <Impl/TextRun.inl>
1817 #include <Impl/TextStyledElement.inl>
1818 #include <Impl/TableCell.inl>
1819 #include <Impl/TableRow.inl>
1820 #include <Impl/Table.inl>
1821 #include <Impl/ListItem.inl>
1822 #include <Impl/List.inl>
1823 #include <Impl/Shape.inl>
1824 #include <Impl/Chart.inl>
1825 #include <Impl/Float.inl>
1830 #endif // PDFTRON_H_CPPContentTree
void SetFontFace(const UString &font_name)
PageNumber AddPageNumber(PageNumber::NumberType type)
void SetDisplayRtl(bool val)
void SetMargins(double left, double top, double right, double bottom)
ElementRef< ContentContainer > GetHeader(PageGroup pages) const
void SetHyperlinkTarget(const UString &target)
CellAlignmentVertical GetVerticalAlignment()
double GetDefaultRowHeight()
void RemoveFooter(PageGroup pages)
void SetHorizontalAlignment(CellAlignmentHorizontal val)
void SetObstructionType(FloatObstructionType type)
void SetEndIndent(double val)
double GetArrowHeadSize()
void SetDefaultColumnWidth(double val)
void SetWidth(double val)
TextStyledElement GetTextStyledElement()
TextRun AddHyperlink(const UString &text, const UString &target)
void RemoveHeader(PageGroup pages)
ContentNodeIterator GetContentNodeIterator()
void SetJustificationMode(TextJustification val)
void SetDefaultRowHeight(double val)
Common::Iterator< ContentElement > ContentNodeIterator
void SetVerticalAlignment(CellAlignmentVertical val)
void SetHeight(double val)
ElementRef< TableRow > AsTableRow() const
ContentContainer GetOrCreateFooter(PageGroup pages)
void SetText(const UString &text)
ElementRef< ListItem > AsListItem() const
void SetDefinition(const UString &definition)
Chart AddChart(double width, double height, const UString &definition)
void SetArrowHeadSize(double size)
void SetOutlineThickness(double thickness)
void SetBackgroundColor(UInt8 red, UInt8 green, UInt8 blue)
void SetNumberFormat(const NumberFormat format)
void SetPageSize(double width, double height)
ElementRef< TextRun > AsTextRun() const
ElementRef< Chart > AsChart() const
TableCell MergeCellsRight(UInt32 num)
int GetIndentationLevel()
TableCell GetTableCell(UInt32 column, UInt32 row)
void SetOutlineColor(int r, int g, int b)
double GetBorderThickness()
FloatReferencePoint GetHorizontalReferencePoint()
void SetWidth(double width)
double GetDefaultTabStop()
void SetStartIndent(double val)
void SetHeight(double height)
void SetHorizontalReferencePoint(FloatReferencePoint point)
TextStyledElement GetLabelStyle()
ElementRef< Paragraph > AsParagraph() const
TableCell MergeCellsDown(UInt32 num)
void SetBackgroundImage(const UString &file_path)
Shape AddShape(Shape::ShapeType type, double width, double height)
NumberType GetNumberType()
void SetRotation(double angle)
void SetTextColor(UInt8 red, UInt8 green, UInt8 blue)
ContentContainer GetTextBox()
ContentNode(TRN_ContentNode impl)
void SetPositionX(double x)
void SetNumberType(NumberType type)
TextRun AddText(const UString &text)
TRN_ContentElement m_impl
ContentContainer(TRN_ContentContainer impl)
double GetBorderThickness()
void SetBackgroundColor(UInt8 red, UInt8 green, UInt8 blue)
void SetSpacesPerTab(UInt32 val)
void SetNumberFormat(NumberFormat format)
void SetFlipHorizontal(bool value)
FloatReferencePoint GetVerticalReferencePoint()
void SetSpaceBefore(double val)
TextStyledElement & operator=(const TextStyledElement &other)
int GetIndentationLevel()
ElementRef< ContentNode > AsContentNode() const
UString GetHyperlinkTarget()
void SetBackgroundColor(int r, int g, int b)
void SetBorder(double thickness, UInt8 red, UInt8 green, UInt8 blue)
TRN_TextStyledElement m_impl
ElementRef< Float > AsFloat() const
FloatObstructionType GetObstructionType()
void SetVerticalReferencePoint(FloatReferencePoint point)
NumberFormat GetNumberFormat()
TextJustification GetJustificationMode()
double GetBorderThickness()
ElementRef< Shape > AsShape() const
ElementRef< ContentContainer > GetFooter(PageGroup pages) const
ElementRef< List > AsList() const
void SetType(ShapeType type)
void AddTabStop(double val)
void SetFontSize(double font_size)
double GetOutlineThickness()
ContentContainer GetOrCreateHeader(PageGroup pages)
void SetBorder(double thickness, UInt8 red, UInt8 green, UInt8 blue)
void SetStartIndex(int idx)
ElementRef< Table > AsTable() const
ElementRef< PageNumber > AsPageNumber() const
void SetTextIndent(double val)
CellAlignmentHorizontal GetHorizontalAlignment()
ContentElement(TRN_ContentElement impl)
void SetSpaceAfter(double val)
void SetBorder(double thickness, UInt8 red, UInt8 green, UInt8 blue)
ElementRef< TableCell > AsTableCell() const
void SetHeight(double height)
void SetFlipVertical(bool value)
double GetNextTabStop(double val)
void SetWidth(double width)
void SetCornerRadius(double radius)
void SetPositionY(double y)
void SetDefaultTabStop(double val)
Shape AddImage(double width, double height, const UString &image_path)
void SetRowHeight(double val)