LibreOffice Module vcl (master) 1
Public Member Functions | Public Attributes | List of all members
vcl::pdf::PDFPage Struct Reference

#include <pdfwriter_impl.hxx>

Collaboration diagram for vcl::pdf::PDFPage:
[legend]

Public Member Functions

 PDFPage (PDFWriterImpl *pWriter, double nPageWidth, double nPageHeight, PDFWriter::Orientation eOrientation)
 
void beginStream ()
 
void endStream ()
 
bool emit (sal_Int32 nParentPage)
 
void appendPoint (const Point &rPoint, OStringBuffer &rBuffer) const
 
void appendPixelPoint (const basegfx::B2DPoint &rPoint, OStringBuffer &rBuffer) const
 
void appendRect (const tools::Rectangle &rRect, OStringBuffer &rBuffer) const
 
void convertRect (tools::Rectangle &rRect) const
 
void appendPolygon (const tools::Polygon &rPoly, OStringBuffer &rBuffer, bool bClose=true) const
 
void appendPolygon (const basegfx::B2DPolygon &rPoly, OStringBuffer &rBuffer) const
 
void appendPolyPolygon (const tools::PolyPolygon &rPolyPoly, OStringBuffer &rBuffer) const
 
void appendPolyPolygon (const basegfx::B2DPolyPolygon &rPolyPoly, OStringBuffer &rBuffer) const
 
void appendMappedLength (sal_Int32 nLength, OStringBuffer &rBuffer, bool bVertical=true, sal_Int32 *pOutLength=nullptr) const
 
void appendMappedLength (double fLength, OStringBuffer &rBuffer, bool bVertical=true, sal_Int32 nPrecision=5) const
 
bool appendLineInfo (const LineInfo &rInfo, OStringBuffer &rBuffer) const
 
void appendWaveLine (sal_Int32 nLength, sal_Int32 nYOffset, sal_Int32 nDelta, OStringBuffer &rBuffer) const
 
void appendMatrix3 (Matrix3 const &rMatrix, OStringBuffer &rBuffer)
 
double getHeight () const
 

Public Attributes

VclPtr< PDFWriterImplm_pWriter
 
double m_nPageWidth
 
double m_nPageHeight
 
sal_Int32 m_nUserUnit
 A positive number that gives the size of default user space units, in multiples of points. More...
 
PDFWriter::Orientation m_eOrientation
 
sal_Int32 m_nPageObject
 
std::vector< sal_Int32 > m_aStreamObjects
 
sal_Int32 m_nStreamLengthObject
 
sal_uInt64 m_nBeginStreamPos
 
std::vector< sal_Int32 > m_aAnnotations
 
std::vector< sal_Int32 > m_aMCIDParents
 
PDFWriter::PageTransition m_eTransition
 
sal_uInt32 m_nTransTime
 

Detailed Description

Definition at line 120 of file pdfwriter_impl.hxx.

Constructor & Destructor Documentation

◆ PDFPage()

vcl::PDFPage::PDFPage ( PDFWriterImpl pWriter,
double  nPageWidth,
double  nPageHeight,
PDFWriter::Orientation  eOrientation 
)

Member Function Documentation

◆ appendLineInfo()

bool vcl::PDFPage::appendLineInfo ( const LineInfo rInfo,
OStringBuffer &  rBuffer 
) const

Definition at line 1070 of file pdfwriter_impl.cxx.

References appendMappedLength(), Dash, m, m_pWriter, n, and basegfx::NONE.

◆ appendMappedLength() [1/2]

void vcl::PDFPage::appendMappedLength ( double  fLength,
OStringBuffer &  rBuffer,
bool  bVertical = true,
sal_Int32  nPrecision = 5 
) const

Definition at line 1060 of file pdfwriter_impl.cxx.

References Size::Height(), m_pWriter, and Size::Width().

◆ appendMappedLength() [2/2]

void vcl::PDFPage::appendMappedLength ( sal_Int32  nLength,
OStringBuffer &  rBuffer,
bool  bVertical = true,
sal_Int32 *  pOutLength = nullptr 
) const

◆ appendMatrix3()

void vcl::PDFPage::appendMatrix3 ( Matrix3 const &  rMatrix,
OStringBuffer &  rBuffer 
)

Definition at line 1178 of file pdfwriter_impl.cxx.

References appendPoint(), and vcl::pdf::Matrix3::get().

◆ appendPixelPoint()

void vcl::PDFPage::appendPixelPoint ( const basegfx::B2DPoint rPoint,
OStringBuffer &  rBuffer 
) const

◆ appendPoint()

void vcl::PDFPage::appendPoint ( const Point rPoint,
OStringBuffer &  rBuffer 
) const

◆ appendPolygon() [1/2]

void vcl::PDFPage::appendPolygon ( const basegfx::B2DPolygon rPoly,
OStringBuffer &  rBuffer 
) const

◆ appendPolygon() [2/2]

void vcl::PDFPage::appendPolygon ( const tools::Polygon rPoly,
OStringBuffer &  rBuffer,
bool  bClose = true 
) const

◆ appendPolyPolygon() [1/2]

void vcl::PDFPage::appendPolyPolygon ( const basegfx::B2DPolyPolygon rPolyPoly,
OStringBuffer &  rBuffer 
) const

Definition at line 1035 of file pdfwriter_impl.cxx.

References appendPolygon().

◆ appendPolyPolygon() [2/2]

void vcl::PDFPage::appendPolyPolygon ( const tools::PolyPolygon rPolyPoly,
OStringBuffer &  rBuffer 
) const

Definition at line 1028 of file pdfwriter_impl.cxx.

References appendPolygon(), tools::PolyPolygon::Count(), and n.

◆ appendRect()

void vcl::PDFPage::appendRect ( const tools::Rectangle rRect,
OStringBuffer &  rBuffer 
) const

◆ appendWaveLine()

void vcl::PDFPage::appendWaveLine ( sal_Int32  nLength,
sal_Int32  nYOffset,
sal_Int32  nDelta,
OStringBuffer &  rBuffer 
) const

Definition at line 1139 of file pdfwriter_impl.cxx.

References appendMappedLength(), and n.

◆ beginStream()

void vcl::PDFPage::beginStream ( )

◆ convertRect()

void vcl::PDFPage::convertRect ( tools::Rectangle rRect) const

◆ emit()

bool vcl::PDFPage::emit ( sal_Int32  nParentPage)

◆ endStream()

void vcl::PDFPage::endStream ( )

◆ getHeight()

double vcl::PDFPage::getHeight ( ) const

Member Data Documentation

◆ m_aAnnotations

std::vector<sal_Int32> vcl::pdf::PDFPage::m_aAnnotations

Definition at line 135 of file pdfwriter_impl.hxx.

Referenced by emit(), and vcl::PDFWriterImpl::sortWidgets().

◆ m_aMCIDParents

std::vector<sal_Int32> vcl::pdf::PDFPage::m_aMCIDParents

Definition at line 136 of file pdfwriter_impl.hxx.

Referenced by emit().

◆ m_aStreamObjects

std::vector<sal_Int32> vcl::pdf::PDFPage::m_aStreamObjects

Definition at line 132 of file pdfwriter_impl.hxx.

Referenced by beginStream(), and emit().

◆ m_eOrientation

PDFWriter::Orientation vcl::pdf::PDFPage::m_eOrientation

Definition at line 130 of file pdfwriter_impl.hxx.

Referenced by emit().

◆ m_eTransition

PDFWriter::PageTransition vcl::pdf::PDFPage::m_eTransition

Definition at line 137 of file pdfwriter_impl.hxx.

Referenced by emit().

◆ m_nBeginStreamPos

sal_uInt64 vcl::pdf::PDFPage::m_nBeginStreamPos

Definition at line 134 of file pdfwriter_impl.hxx.

Referenced by beginStream(), and endStream().

◆ m_nPageHeight

double vcl::pdf::PDFPage::m_nPageHeight

Definition at line 124 of file pdfwriter_impl.hxx.

Referenced by emit(), vcl::PDFWriterImpl::getCurPageSize(), and getHeight().

◆ m_nPageObject

sal_Int32 vcl::pdf::PDFPage::m_nPageObject

◆ m_nPageWidth

double vcl::pdf::PDFPage::m_nPageWidth

Definition at line 123 of file pdfwriter_impl.hxx.

Referenced by emit(), and vcl::PDFWriterImpl::getCurPageSize().

◆ m_nStreamLengthObject

sal_Int32 vcl::pdf::PDFPage::m_nStreamLengthObject

Definition at line 133 of file pdfwriter_impl.hxx.

Referenced by beginStream(), and endStream().

◆ m_nTransTime

sal_uInt32 vcl::pdf::PDFPage::m_nTransTime

Definition at line 138 of file pdfwriter_impl.hxx.

Referenced by emit().

◆ m_nUserUnit

sal_Int32 vcl::pdf::PDFPage::m_nUserUnit

A positive number that gives the size of default user space units, in multiples of points.

Typically 1, larger if page size is > 508 cm.

Definition at line 129 of file pdfwriter_impl.hxx.

Referenced by emit(), getHeight(), and PDFPage().

◆ m_pWriter

VclPtr<PDFWriterImpl> vcl::pdf::PDFPage::m_pWriter

The documentation for this struct was generated from the following files: