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 115 of file pdfwriter_impl.hxx.

Constructor & Destructor Documentation

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

Definition at line 607 of file pdfwriter_impl.cxx.

References m_nPageObject, m_nUserUnit, m_pWriter, vcl::PDFWriter::PDF_1_6, and Regular.

Member Function Documentation

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

Definition at line 1057 of file pdfwriter_impl.cxx.

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

void vcl::PDFPage::appendMappedLength ( sal_Int32  nLength,
OStringBuffer &  rBuffer,
bool  bVertical = true,
sal_Int32 *  pOutLength = nullptr 
) const
void vcl::PDFPage::appendMappedLength ( double  fLength,
OStringBuffer &  rBuffer,
bool  bVertical = true,
sal_Int32  nPrecision = 5 
) const
void vcl::PDFPage::appendMatrix3 ( Matrix3 const &  rMatrix,
OStringBuffer &  rBuffer 
)
void vcl::PDFPage::appendPixelPoint ( const basegfx::B2DPoint rPoint,
OStringBuffer &  rBuffer 
) const
void vcl::PDFPage::appendPoint ( const Point &  rPoint,
OStringBuffer &  rBuffer 
) const
void vcl::PDFPage::appendPolygon ( const tools::Polygon rPoly,
OStringBuffer &  rBuffer,
bool  bClose = true 
) const
void vcl::PDFPage::appendPolygon ( const basegfx::B2DPolygon rPoly,
OStringBuffer &  rBuffer 
) const
void vcl::PDFPage::appendPolyPolygon ( const tools::PolyPolygon rPolyPoly,
OStringBuffer &  rBuffer 
) const

Definition at line 1015 of file pdfwriter_impl.cxx.

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

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

Definition at line 1022 of file pdfwriter_impl.cxx.

References appendPolygon().

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

Definition at line 1126 of file pdfwriter_impl.cxx.

References appendMappedLength(), and n.

void vcl::PDFPage::beginStream ( )
void vcl::PDFPage::convertRect ( tools::Rectangle rRect) const
bool vcl::PDFPage::emit ( sal_Int32  nParentPage)
void vcl::PDFPage::endStream ( )
double vcl::PDFPage::getHeight ( ) const

Member Data Documentation

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

Definition at line 130 of file pdfwriter_impl.hxx.

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

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

Definition at line 131 of file pdfwriter_impl.hxx.

Referenced by emit().

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

Definition at line 127 of file pdfwriter_impl.hxx.

Referenced by beginStream(), and emit().

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

Definition at line 125 of file pdfwriter_impl.hxx.

Referenced by emit().

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

Definition at line 132 of file pdfwriter_impl.hxx.

Referenced by emit().

sal_uInt64 vcl::pdf::PDFPage::m_nBeginStreamPos

Definition at line 129 of file pdfwriter_impl.hxx.

Referenced by beginStream(), and endStream().

double vcl::pdf::PDFPage::m_nPageHeight

Definition at line 119 of file pdfwriter_impl.hxx.

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

sal_Int32 vcl::pdf::PDFPage::m_nPageObject
double vcl::pdf::PDFPage::m_nPageWidth

Definition at line 118 of file pdfwriter_impl.hxx.

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

sal_Int32 vcl::pdf::PDFPage::m_nStreamLengthObject

Definition at line 128 of file pdfwriter_impl.hxx.

Referenced by beginStream(), and endStream().

sal_uInt32 vcl::pdf::PDFPage::m_nTransTime

Definition at line 133 of file pdfwriter_impl.hxx.

Referenced by emit().

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 124 of file pdfwriter_impl.hxx.

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

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

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