LibreOffice Module vcl (master) 1
|
#include <pdfwriter_impl.hxx>
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< PDFWriterImpl > | m_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 |
Definition at line 120 of file pdfwriter_impl.hxx.
vcl::PDFPage::PDFPage | ( | PDFWriterImpl * | pWriter, |
double | nPageWidth, | ||
double | nPageHeight, | ||
PDFWriter::Orientation | eOrientation | ||
) |
Definition at line 628 of file pdfwriter_impl.cxx.
References m_nPageObject, m_nUserUnit, m_pWriter, vcl::PDFWriter::PDF_1_4, vcl::PDFWriter::PDF_1_5, vcl::PDFWriter::PDF_A_1, and Regular.
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.
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().
void vcl::PDFPage::appendMappedLength | ( | sal_Int32 | nLength, |
OStringBuffer & | rBuffer, | ||
bool | bVertical = true , |
||
sal_Int32 * | pOutLength = nullptr |
||
) | const |
Definition at line 1041 of file pdfwriter_impl.cxx.
References Size::Height(), m_pWriter, nLength, nValue, and Size::Width().
Referenced by appendLineInfo(), appendPolygon(), appendRect(), and appendWaveLine().
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().
void vcl::PDFPage::appendPixelPoint | ( | const basegfx::B2DPoint & | rPoint, |
OStringBuffer & | rBuffer | ||
) | const |
Definition at line 871 of file pdfwriter_impl.cxx.
References getHeight(), basegfx::Tuple2D< typename TYPE >::getX(), and basegfx::Tuple2D< typename TYPE >::getY().
Referenced by appendPolygon().
void vcl::PDFPage::appendPoint | ( | const Point & | rPoint, |
OStringBuffer & | rBuffer | ||
) | const |
Definition at line 853 of file pdfwriter_impl.cxx.
References getHeight(), m_pWriter, nValue, vcl::pdf::pointToPixel(), Point::X(), and Point::Y().
Referenced by appendMatrix3(), appendPolygon(), and appendRect().
void vcl::PDFPage::appendPolygon | ( | const basegfx::B2DPolygon & | rPoly, |
OStringBuffer & | rBuffer | ||
) | const |
Definition at line 953 of file pdfwriter_impl.cxx.
References appendMappedLength(), appendPixelPoint(), basegfx::B2DPolygon::count(), basegfx::B2DPolygon::getB2DPoint(), basegfx::B2DPolygon::getB2DRange(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMaxY(), basegfx::Range2D< typename TYPE, typename TRAITS >::getMinX(), basegfx::B2DPolygon::getNextControlPoint(), basegfx::B2DPolygon::getPrevControlPoint(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), i, basegfx::B2DPolygon::isClosed(), basegfx::B2DPolygon::isNextControlPointUsed(), basegfx::B2DPolygon::isPrevControlPointUsed(), basegfx::utils::isRectangle(), m_pWriter, and nCurPoint.
void vcl::PDFPage::appendPolygon | ( | const tools::Polygon & | rPoly, |
OStringBuffer & | rBuffer, | ||
bool | bClose = true |
||
) | const |
Definition at line 908 of file pdfwriter_impl.cxx.
References appendPoint(), tools::Polygon::GetConstFlagAry(), tools::Polygon::GetSize(), i, and SAL_WARN_IF.
Referenced by appendPolyPolygon().
void vcl::PDFPage::appendPolyPolygon | ( | const basegfx::B2DPolyPolygon & | rPolyPoly, |
OStringBuffer & | rBuffer | ||
) | const |
Definition at line 1035 of file pdfwriter_impl.cxx.
References appendPolygon().
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.
void vcl::PDFPage::appendRect | ( | const tools::Rectangle & | rRect, |
OStringBuffer & | rBuffer | ||
) | const |
Definition at line 881 of file pdfwriter_impl.cxx.
References appendMappedLength(), appendPoint(), tools::Rectangle::BottomLeft(), tools::Rectangle::GetHeight(), and tools::Rectangle::GetWidth().
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.
void vcl::PDFPage::beginStream | ( | ) |
Definition at line 657 of file pdfwriter_impl.cxx.
References g_bDebugDisableCompression, m_aStreamObjects, m_nBeginStreamPos, m_nStreamLengthObject, and m_pWriter.
void vcl::PDFPage::convertRect | ( | tools::Rectangle & | rRect | ) | const |
Definition at line 891 of file pdfwriter_impl.cxx.
References tools::Rectangle::BottomLeft(), getHeight(), tools::Rectangle::GetSize(), Size::Height(), m_pWriter, vcl::pdf::pointToPixel(), tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), tools::Rectangle::Top(), Size::Width(), Point::X(), and Point::Y().
bool vcl::PDFPage::emit | ( | sal_Int32 | nParentPage | ) |
Definition at line 714 of file pdfwriter_impl.cxx.
References vcl::PDFWriter::BlindsHorizontal, vcl::PDFWriter::BlindsVertical, vcl::PDFWriter::BoxInward, vcl::PDFWriter::BoxOutward, vcl::PDFWriter::Dissolve, i, vcl::PDFWriter::Inherit, m_aAnnotations, m_aContext, m_aMCIDParents, m_aStreamObjects, m_eOrientation, m_eTransition, m_nPageHeight, m_nPageObject, m_nPageWidth, m_nTransTime, m_nUserUnit, m_pWriter, vcl::PDFWriter::Portrait, vcl::PDFWriter::Regular, vcl::PDFWriter::SplitHorizontalInward, vcl::PDFWriter::SplitHorizontalOutward, vcl::PDFWriter::SplitVerticalInward, vcl::PDFWriter::SplitVerticalOutward, vcl::PDFWriter::WipeBottomToTop, vcl::PDFWriter::WipeLeftToRight, vcl::PDFWriter::WipeRightToLeft, and vcl::PDFWriter::WipeTopToBottom.
void vcl::PDFPage::endStream | ( | ) |
Definition at line 689 of file pdfwriter_impl.cxx.
References g_bDebugDisableCompression, m_nBeginStreamPos, m_nStreamLengthObject, and m_pWriter.
double vcl::PDFPage::getHeight | ( | ) | const |
Definition at line 1191 of file pdfwriter_impl.cxx.
References vcl::pdf::g_nInheritedPageHeight, m_nPageHeight, and m_nUserUnit.
Referenced by appendPixelPoint(), appendPoint(), and convertRect().
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().
std::vector<sal_Int32> vcl::pdf::PDFPage::m_aMCIDParents |
Definition at line 136 of file pdfwriter_impl.hxx.
Referenced by emit().
std::vector<sal_Int32> vcl::pdf::PDFPage::m_aStreamObjects |
Definition at line 132 of file pdfwriter_impl.hxx.
Referenced by beginStream(), and emit().
PDFWriter::Orientation vcl::pdf::PDFPage::m_eOrientation |
Definition at line 130 of file pdfwriter_impl.hxx.
Referenced by emit().
PDFWriter::PageTransition vcl::pdf::PDFPage::m_eTransition |
Definition at line 137 of file pdfwriter_impl.hxx.
Referenced by emit().
sal_uInt64 vcl::pdf::PDFPage::m_nBeginStreamPos |
Definition at line 134 of file pdfwriter_impl.hxx.
Referenced by beginStream(), and endStream().
double vcl::pdf::PDFPage::m_nPageHeight |
Definition at line 124 of file pdfwriter_impl.hxx.
Referenced by emit(), vcl::PDFWriterImpl::getCurPageSize(), and getHeight().
sal_Int32 vcl::pdf::PDFPage::m_nPageObject |
Definition at line 131 of file pdfwriter_impl.hxx.
Referenced by vcl::PDFWriterImpl::appendDest(), emit(), vcl::PDFWriterImpl::emitNamedDestinations(), and PDFPage().
double vcl::pdf::PDFPage::m_nPageWidth |
Definition at line 123 of file pdfwriter_impl.hxx.
Referenced by emit(), and vcl::PDFWriterImpl::getCurPageSize().
sal_Int32 vcl::pdf::PDFPage::m_nStreamLengthObject |
Definition at line 133 of file pdfwriter_impl.hxx.
Referenced by beginStream(), and endStream().
sal_uInt32 vcl::pdf::PDFPage::m_nTransTime |
Definition at line 138 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 129 of file pdfwriter_impl.hxx.
Referenced by emit(), getHeight(), and PDFPage().
VclPtr<PDFWriterImpl> vcl::pdf::PDFPage::m_pWriter |
Definition at line 122 of file pdfwriter_impl.hxx.
Referenced by appendLineInfo(), appendMappedLength(), appendPoint(), appendPolygon(), beginStream(), convertRect(), emit(), endStream(), and PDFPage().