LibreOffice Module filter (master) 1
|
#include <pdfexport.hxx>
Public Member Functions | |
PDFExport (const css::uno::Reference< css::lang::XComponent > &rxSrcDoc, const css::uno::Reference< css::task::XStatusIndicator > &xStatusIndicator, const css::uno::Reference< css::task::XInteractionHandler > &xIH, const css::uno::Reference< css::uno::XComponentContext > &xFact) | |
~PDFExport () | |
bool | ExportSelection (vcl::PDFWriter &rPDFWriter, css::uno::Reference< css::view::XRenderable > const &rRenderable, const css::uno::Any &rSelection, const StringRangeEnumerator &rRangeEnum, css::uno::Sequence< css::beans::PropertyValue > &rRenderOptions, sal_Int32 nPageCount) |
bool | Export (const OUString &rFile, const css::uno::Sequence< css::beans::PropertyValue > &rFilterData) |
void | showErrors (const std::set< vcl::PDFWriter::ErrorCode > &) |
Private Member Functions | |
void | ImplExportPage (vcl::PDFWriter &rWriter, vcl::PDFExtOutDevData &rPDFExtOutDevData, const GDIMetaFile &rMtf) |
void | ImplWriteWatermark (vcl::PDFWriter &rWriter, const Size &rPageSize) |
void | ImplWriteTiledWatermark (vcl::PDFWriter &rWriter, const Size &rPageSize) |
css::uno::Reference< css::security::XCertificate > | GetCertificateFromSubjectName (const std::u16string_view &rSubjectName) const |
Definition at line 38 of file pdfexport.hxx.
PDFExport::PDFExport | ( | const css::uno::Reference< css::lang::XComponent > & | rxSrcDoc, |
const css::uno::Reference< css::task::XStatusIndicator > & | xStatusIndicator, | ||
const css::uno::Reference< css::task::XInteractionHandler > & | xIH, | ||
const css::uno::Reference< css::uno::XComponentContext > & | xFact | ||
) |
Definition at line 77 of file pdfexport.cxx.
References COL_LIGHTGREEN(), mxContext, and mxStatusIndicator.
PDFExport::~PDFExport | ( | ) |
Definition at line 145 of file pdfexport.cxx.
bool PDFExport::Export | ( | const OUString & | rFile, |
const css::uno::Sequence< css::beans::PropertyValue > & | rFilterData | ||
) |
Definition at line 423 of file pdfexport.cxx.
References vcl::PDFWriter::ActionDefault, vcl::PDFWriter::ActionZoom, vcl::PDFWriter::AddAttachedFile(), vcl::PDFWriter::PDFWriterContext::AllowDuplicateFieldNames, Any, aURL, vcl::PDFWriter::PDFDocInfo::Author, vcl::PDFWriter::PDFWriterContext::BaseURL, vcl::PDFWriter::PDFEncryptionProperties::CanAddOrModify, vcl::PDFWriter::PDFEncryptionProperties::CanAssemble, vcl::PDFWriter::PDFEncryptionProperties::CanCopyOrExtract, vcl::PDFWriter::PDFEncryptionProperties::CanExtractForAccessibility, vcl::PDFWriter::PDFEncryptionProperties::CanFillInteractive, vcl::PDFWriter::PDFEncryptionProperties::CanModifyTheContent, vcl::PDFWriter::PDFEncryptionProperties::CanPrintFull, vcl::PDFWriter::PDFEncryptionProperties::CanPrintTheDocument, vcl::PDFWriter::PDFWriterContext::CenterWindow, ColorTransparency, vcl::PDFWriter::Continuous, vcl::PDFWriter::ContinuousFacing, vcl::PDFWriter::PDFWriterContext::ConvertOOoTargetToPDFTarget, comphelper::OStorageHelper::CreatePackageEncryptionData(), vcl::PDFWriter::PDFDocInfo::Creator, DBG_ASSERT, vcl::PDFWriter::DefaultLayout, vcl::PDFWriter::PDFWriterContext::DefaultLinkAction, vcl::PDFWriter::PDFWriterContext::DisplayPDFDocumentTitle, vcl::PDFWriter::PDFWriterContext::DocumentInfo, vcl::PDFWriter::Emit(), vcl::PDFWriter::PDFWriterContext::Encryption, ExportSelection(), vcl::PDFWriter::FDF, vcl::PDFWriter::PDFWriterContext::FirstPageLeft, vcl::PDFWriter::FitInWindow, vcl::PDFWriter::FitVisible, vcl::PDFWriter::FitWidth, vcl::PDFWriter::PDFWriterContext::FitWindow, vcl::PDFWriter::PDFWriterContext::ForcePDFAction, GetCertificateFromSubjectName(), vcl::PDFExtOutDevData::GetDocumentLocale(), vcl::PDFWriter::GetErrors(), getMimetypeForDocument(), utl::ConfigManager::getProductName(), utl::ConfigManager::getProductVersion(), vcl::PDFWriter::GetReferenceDevice(), vcl::PDFWriter::PDFWriterContext::HideViewerMenubar, vcl::PDFWriter::PDFWriterContext::HideViewerToolbar, vcl::PDFWriter::PDFWriterContext::HideViewerWindowControls, vcl::PDFWriter::HTML, vcl::PDFWriter::InitEncryption(), vcl::PDFWriter::PDFWriterContext::InitialPage, utl::ConfigManager::IsFuzzing(), vcl::PDFWriter::PDFDocInfo::Keywords, vcl::PDFWriter::LaunchAction, comphelper::makePropertyValue(), maSignCertificate, maWatermarkColor, maWatermarkFontName, mbAddStream, mbAllowDuplicateFieldNames, mbCanCopyOrExtract, mbCanExtractForAccessibility, mbCenterWindow, mbConvertOOoTargetToPDFTarget, mbDisplayPDFDocumentTitle, mbEncrypt, mbExportBmkToDest, mbExportBookmarks, mbExportFormFields, mbExportHiddenSlides, mbExportNotes, mbExportNotesInMargin, mbExportNotesPages, mbExportOnlyNotesPages, mbExportPlaceholders, mbExportRelativeFsysLinks, mbFitWindow, mbHideViewerMenubar, mbHideViewerToolbar, mbHideViewerWindowControls, mbIsRedactMode, mbOpenInFullScreenMode, mbPDFUACompliance, mbReduceImageResolution, mbRemoveTransparencies, mbRestrictPermissions, mbSignPDF, mbSinglePageSheets, mbSkipEmptyPages, mbUseLosslessCompression, mbUseReferenceXObject, mbUseTaggedPDF, mbUseTransitionEffects, mnChangesAllowed, mnDefaultLinkAction, mnFormsFormat, mnInitialPage, mnMaxImageResolution, mnOpenBookmarkLevels, mnPDFDocumentAction, mnPDFDocumentMode, mnPDFPageLayout, mnPDFTypeSelection, mnPrintAllowed, mnQuality, mnZoom, vcl::PDFWriter::ModeDefault, moWatermarkFontHeight, moWatermarkRotateAngle, msSignContact, msSignLocation, msSignPassword, msSignReason, msSignTSA, msTiledWatermark, msWatermark, mxContext, mxSrcDoc, mxStatusIndicator, vcl::PDFWriter::PDFWriterContext::OpenBookmarkLevels, vcl::PDFWriter::PDFWriterContext::OpenInFullScreenMode, vcl::PDFWriter::PDFWriterContext::PageLayout, vcl::PDFWriter::PDF, vcl::PDFWriter::PDFWriterContext::PDFDocumentAction, vcl::PDFWriter::PDFWriterContext::PDFDocumentMode, vcl::PDFExtOutDevData::PlayGlobalActions(), pOut, vcl::PDFWriter::PDFDocInfo::Producer, vcl::PDFWriter::PDFWriterContext::RelFsys, vcl::PDFExtOutDevData::SetCompressionQuality(), vcl::PDFWriter::SetDocumentLocale(), vcl::PDFExtOutDevData::SetIsExportBookmarks(), vcl::PDFExtOutDevData::SetIsExportFormFields(), vcl::PDFExtOutDevData::SetIsExportHiddenSlides(), vcl::PDFExtOutDevData::SetIsExportNamedDestinations(), vcl::PDFExtOutDevData::SetIsExportNotes(), vcl::PDFExtOutDevData::SetIsExportNotesInMargin(), vcl::PDFExtOutDevData::SetIsExportTaggedPDF(), vcl::PDFExtOutDevData::SetIsExportTransitionEffects(), vcl::PDFExtOutDevData::SetIsLosslessCompression(), vcl::PDFExtOutDevData::SetIsReduceImageResolution(), vcl::PDFExtOutDevData::SetIsSinglePageSheets(), showErrors(), vcl::PDFWriter::PDFWriterContext::SignCertificate, vcl::PDFWriter::PDFWriterContext::SignContact, vcl::PDFWriter::PDFWriterContext::SignLocation, vcl::PDFWriter::PDFWriterContext::SignPassword, vcl::PDFWriter::PDFWriterContext::SignPDF, vcl::PDFWriter::PDFWriterContext::SignReason, vcl::PDFWriter::PDFWriterContext::SignTSA, vcl::PDFWriter::SinglePage, StringRangeEnumerator::size(), vcl::PDFWriter::PDFDocInfo::Subject, vcl::PDFWriter::PDFWriterContext::SubmitFormat, vcl::PDFWriter::PDFWriterContext::Tagged, vcl::PDFWriter::PDFDocInfo::Title, INetURLObject::ToIUri, u, vcl::PDFWriter::PDFWriterContext::UniversalAccessibilityCompliance, vcl::PDFWriter::URIAction, vcl::PDFWriter::URIActionDestination, vcl::PDFWriter::PDFWriterContext::URL, vcl::PDFWriter::UseOutlines, vcl::PDFWriter::PDFWriterContext::UseReferenceXObject, vcl::PDFWriter::UseThumbs, vcl::PDFWriter::PDFWriterContext::Version, vcl::PDFWriter::XML, xModel, and vcl::PDFWriter::PDFWriterContext::Zoom.
Referenced by PDFFilter::implExport().
bool PDFExport::ExportSelection | ( | vcl::PDFWriter & | rPDFWriter, |
css::uno::Reference< css::view::XRenderable > const & | rRenderable, | ||
const css::uno::Any & | rSelection, | ||
const StringRangeEnumerator & | rRangeEnum, | ||
css::uno::Sequence< css::beans::PropertyValue > & | rRenderOptions, | ||
sal_Int32 | nPageCount | ||
) |
Definition at line 150 of file pdfexport.cxx.
References Any, StringRangeEnumerator::begin(), StringRangeEnumerator::end(), Exception, GDIMetaFile::GetActionSize(), Graphic::GetBitmapEx(), Graphic::GetGDIMetaFile(), vcl::PDFWriter::GetReferenceDevice(), ImplExportPage(), mbIsRedactMode, mbSkipEmptyPages, mnProgressValue, mxStatusIndicator, Name, vcl::PDFWriter::NewPage(), pOut, GDIMetaFile::Record(), vcl::PDFExtOutDevData::SetCurrentPageNumber(), vcl::PDFExtOutDevData::SetIsExportNotesPages(), vcl::PDFWriter::SetMapMode(), GDIMetaFile::SetPrefMapMode(), GDIMetaFile::SetPrefSize(), GDIMetaFile::Stop(), TOOLS_WARN_EXCEPTION, and GDIMetaFile::WindStart().
Referenced by Export().
|
private |
|
private |
Definition at line 1154 of file pdfexport.cxx.
References vcl::unotools::b2DRectangleFromRectangle(), basegfx::utils::createPolygonFromRect(), tools::Polygon::getB2DPolygon(), basegfx::B2DPolygon::getB2DRange(), basegfx::Range2D< typename TYPE, typename TRAITS >::getHeight(), GDIMetaFile::GetPrefMapMode(), GDIMetaFile::GetPrefSize(), vcl::PDFWriter::GetReferenceDevice(), basegfx::Range2D< typename TYPE, typename TRAITS >::getWidth(), Size::Height(), ImplWriteTiledWatermark(), ImplWriteWatermark(), OutputDevice::LogicToLogic(), vcl::PDFWriter::PlayMetafileContext::m_bOnlyLosslessCompression, vcl::PDFWriter::PlayMetafileContext::m_bTransparenciesWereRemoved, vcl::PDFWriter::PlayMetafileContext::m_nJPEGQuality, vcl::PDFWriter::PlayMetafileContext::m_nMaxImageResolution, mbReduceImageResolution, mbRemoveTransparencies, mbUseLosslessCompression, mnMaxImageResolution, mnQuality, msTiledWatermark, msWatermark, vcl::PDFWriter::NewPage(), vcl::PDFWriter::PlayMetafile(), vcl::PDFExtOutDevData::ResetSyncData(), vcl::PDFWriter::SetClipRegion(), vcl::PDFWriter::SetMapMode(), and Size::Width().
Referenced by ExportSelection().
|
private |
Definition at line 1320 of file pdfexport.cxx.
References ALIGN_BOTTOM, vcl::PDFWriter::BeginStructureElement(), vcl::PDFWriter::BeginTransparencyGroup(), vcl::PDFWriter::DrawPolyLine(), vcl::PDFWriter::DrawText(), vcl::PDFWriter::EndStructureElement(), vcl::PDFWriter::EndTransparencyGroup(), vcl::PDFWriter::EnsureStructureElement(), vcl::Font::GetFontHeight(), vcl::PDFWriter::GetReferenceDevice(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), Point::getX(), Point::getY(), Size::Height(), gentoken::i, vcl::PDFWriter::InitStructureElement(), ITALIC_NONE, Point::Move(), msTiledWatermark, vcl::PDFWriter::NonStructElement, vcl::PDFWriter::Pagination, OutputDevice::Pop(), vcl::PDFWriter::Pop(), vcl::PDFWriter::Push(), OutputDevice::Push(), vcl::Font::SetAlignment(), vcl::PDFWriter::SetClipRegion(), OutputDevice::SetFont(), vcl::PDFWriter::SetFont(), vcl::Font::SetFontHeight(), vcl::Font::SetItalic(), OutputDevice::SetMapMode(), vcl::PDFWriter::SetMapMode(), vcl::Font::SetOrientation(), vcl::PDFWriter::SetStructureAttribute(), vcl::PDFWriter::SetTextColor(), vcl::Font::SetWeight(), vcl::Font::SetWidthType(), vcl::PDFWriter::Subtype, vcl::PDFWriter::Type, w, vcl::PDFWriter::Watermark, WEIGHT_NORMAL, Size::Width(), and WIDTH_NORMAL.
Referenced by ImplExportPage().
|
private |
Definition at line 1206 of file pdfexport.cxx.
References Point::AdjustX(), Point::AdjustY(), ALIGN_BOTTOM, vcl::PDFWriter::BeginStructureElement(), vcl::PDFWriter::BeginTransparencyGroup(), tools::Rectangle::Center(), basegfx::utils::createPolygonFromRect(), vcl::PDFWriter::DrawPolyLine(), vcl::PDFWriter::DrawText(), vcl::PDFWriter::EndStructureElement(), vcl::PDFWriter::EndTransparencyGroup(), vcl::PDFWriter::EnsureStructureElement(), basegfx::B2DPolygon::getB2DRange(), basegfx::B2DRange::getCenter(), vcl::Font::GetFontHeight(), vcl::PDFWriter::GetReferenceDevice(), OutputDevice::GetTextHeight(), OutputDevice::GetTextWidth(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), Size::Height(), vcl::PDFWriter::InitStructureElement(), ITALIC_NONE, maWatermarkColor, maWatermarkFontName, moWatermarkFontHeight, moWatermarkRotateAngle, msWatermark, vcl::PDFWriter::NonStructElement, vcl::PDFWriter::Pagination, OutputDevice::Pop(), vcl::PDFWriter::Pop(), vcl::PDFWriter::Push(), OutputDevice::Push(), basegfx::B2DHomMatrix::rotate(), vcl::Font::SetAlignment(), vcl::PDFWriter::SetClipRegion(), OutputDevice::SetFont(), vcl::PDFWriter::SetFont(), vcl::Font::SetFontHeight(), vcl::Font::SetItalic(), OutputDevice::SetMapMode(), vcl::PDFWriter::SetMapMode(), vcl::Font::SetOrientation(), vcl::PDFWriter::SetStructureAttribute(), vcl::PDFWriter::SetTextColor(), vcl::Font::SetWeight(), vcl::Font::SetWidthType(), vcl::PDFWriter::Subtype, toRadians(), basegfx::B2DPolygon::transform(), vcl::PDFWriter::Type, w, vcl::PDFWriter::Watermark, WEIGHT_NORMAL, Size::Width(), and WIDTH_NORMAL.
Referenced by ImplExportPage().
void PDFExport::showErrors | ( | const std::set< vcl::PDFWriter::ErrorCode > & | rErrors | ) |
|
private |
Definition at line 118 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 77 of file pdfexport.hxx.
Referenced by Export(), and ImplWriteWatermark().
|
private |
Definition at line 79 of file pdfexport.hxx.
Referenced by Export(), and ImplWriteWatermark().
|
private |
Definition at line 65 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 70 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 102 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 103 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 89 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 108 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 91 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 98 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 109 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 57 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 69 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 58 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 50 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 51 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 54 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 55 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 52 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 106 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 88 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 86 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 85 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 87 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 74 of file pdfexport.hxx.
Referenced by Export(), and ExportSelection().
|
private |
Definition at line 90 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 49 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 63 of file pdfexport.hxx.
Referenced by Export(), and ImplExportPage().
|
private |
Definition at line 72 of file pdfexport.hxx.
Referenced by Export(), and ImplExportPage().
|
private |
Definition at line 99 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 113 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 59 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 64 of file pdfexport.hxx.
Referenced by Export(), and ExportSelection().
|
private |
Definition at line 62 of file pdfexport.hxx.
Referenced by Export(), and ImplExportPage().
|
private |
Definition at line 53 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 47 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 56 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 101 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 107 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 68 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 95 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 66 of file pdfexport.hxx.
Referenced by Export(), and ImplExportPage().
|
private |
Definition at line 60 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 93 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 92 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 96 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 48 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 100 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 71 of file pdfexport.hxx.
Referenced by ExportSelection().
|
private |
Definition at line 67 of file pdfexport.hxx.
Referenced by Export(), and ImplExportPage().
|
private |
Definition at line 94 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 78 of file pdfexport.hxx.
Referenced by Export(), and ImplWriteWatermark().
|
private |
Definition at line 80 of file pdfexport.hxx.
Referenced by Export(), and ImplWriteWatermark().
|
private |
Definition at line 115 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 114 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 117 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 116 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 119 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 81 of file pdfexport.hxx.
Referenced by Export(), ImplExportPage(), and ImplWriteTiledWatermark().
|
private |
Definition at line 76 of file pdfexport.hxx.
Referenced by Export(), ImplExportPage(), and ImplWriteWatermark().
|
private |
Definition at line 43 of file pdfexport.hxx.
Referenced by Export(), and GetCertificateFromSubjectName().
|
private |
Definition at line 45 of file pdfexport.hxx.
Referenced by showErrors().
|
private |
Definition at line 42 of file pdfexport.hxx.
Referenced by Export().
|
private |
Definition at line 44 of file pdfexport.hxx.
Referenced by Export(), and ExportSelection().