summaryrefslogtreecommitdiff
path: root/filter/source/pdf/pdfexport.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/pdf/pdfexport.hxx')
-rw-r--r--filter/source/pdf/pdfexport.hxx92
1 files changed, 18 insertions, 74 deletions
diff --git a/filter/source/pdf/pdfexport.hxx b/filter/source/pdf/pdfexport.hxx
index 54784cce1abb..8bfd1c363038 100644
--- a/filter/source/pdf/pdfexport.hxx
+++ b/filter/source/pdf/pdfexport.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_FILTER_SOURCE_PDF_PDFEXPORT_HXX
-#define INCLUDED_FILTER_SOURCE_PDF_PDFEXPORT_HXX
+#pragma once
#include <tools/multisel.hxx>
#include <vcl/pdfwriter.hxx>
@@ -36,113 +35,58 @@ class Size;
namespace vcl { class PDFWriter; }
-using namespace ::com::sun::star;
-using namespace ::com::sun::star::beans;
-using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::uno;
-
class PDFExport
{
private:
- Reference< XComponent > mxSrcDoc;
- Reference< uno::XComponentContext > mxContext;
- Reference< task::XStatusIndicator > mxStatusIndicator;
- Reference< task::XInteractionHandler > mxIH;
-
- bool mbUseTaggedPDF;
- sal_Int32 mnPDFTypeSelection;
- bool mbPDFUACompliance;
- bool mbExportNotes;
- bool mbExportPlaceholders;
- bool mbUseReferenceXObject;
- bool mbExportNotesPages;
- bool mbExportOnlyNotesPages;
- bool mbUseTransitionEffects;
- bool mbExportBookmarks;
- bool mbExportHiddenSlides;
- bool mbSinglePageSheets;
- sal_Int32 mnOpenBookmarkLevels;
+ css::uno::Reference< css::lang::XComponent > mxSrcDoc;
+ css::uno::Reference< css::uno::XComponentContext > mxContext;
+ css::uno::Reference< css::task::XStatusIndicator > mxStatusIndicator;
+ css::uno::Reference< css::task::XInteractionHandler > mxIH;
bool mbUseLosslessCompression;
bool mbReduceImageResolution;
bool mbSkipEmptyPages;
- bool mbAddStream;
sal_Int32 mnMaxImageResolution;
sal_Int32 mnQuality;
- sal_Int32 mnFormsFormat;
- bool mbExportFormFields;
- bool mbAllowDuplicateFieldNames;
sal_Int32 mnProgressValue;
bool mbRemoveTransparencies;
bool mbIsRedactMode;
OUString msWatermark;
+ Color maWatermarkColor;
+ std::optional<sal_Int32> moWatermarkFontHeight;
+ OUString maWatermarkFontName;
+ std::optional<Degree10> moWatermarkRotateAngle;
OUString msTiledWatermark;
- // these variable are here only to have a location in filter/pdf to set the default
- // to be used by the macro (when the FilterData are set by the macro itself)
- bool mbHideViewerToolbar;
- bool mbHideViewerMenubar;
- bool mbHideViewerWindowControls;
- bool mbFitWindow;
- bool mbCenterWindow;
- bool mbOpenInFullScreenMode;
- bool mbDisplayPDFDocumentTitle;
- sal_Int32 mnPDFDocumentMode;
- sal_Int32 mnPDFDocumentAction;
- sal_Int32 mnZoom;
- sal_Int32 mnInitialPage;
- sal_Int32 mnPDFPageLayout;
-
- bool mbEncrypt;
- bool mbRestrictPermissions;
- sal_Int32 mnPrintAllowed;
- sal_Int32 mnChangesAllowed;
- bool mbCanCopyOrExtract;
- bool mbCanExtractForAccessibility;
-
- // #i56629
- bool mbExportRelativeFsysLinks;
- sal_Int32 mnDefaultLinkAction;
- bool mbConvertOOoTargetToPDFTarget;
- bool mbExportBmkToDest;
void ImplExportPage( vcl::PDFWriter& rWriter, vcl::PDFExtOutDevData& rPDFExtOutDevData,
const GDIMetaFile& rMtf );
- bool mbSignPDF;
- OUString msSignLocation;
- OUString msSignContact;
- OUString msSignReason;
- OUString msSignPassword;
- Reference< security::XCertificate > maSignCertificate;
- OUString msSignTSA;
-
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;
public:
- PDFExport( const Reference< XComponent >& rxSrcDoc,
- const Reference< task::XStatusIndicator >& xStatusIndicator,
- const Reference< task::XInteractionHandler >& xIH,
- const Reference< uno::XComponentContext >& xFact );
+ 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,
- Reference< css::view::XRenderable > const & rRenderable,
- const Any& rSelection,
+ css::uno::Reference< css::view::XRenderable > const & rRenderable,
+ const css::uno::Any& rSelection,
const StringRangeEnumerator& rRangeEnum,
- Sequence< PropertyValue >& rRenderOptions,
+ css::uno::Sequence< css::beans::PropertyValue >& rRenderOptions,
sal_Int32 nPageCount );
- bool Export( const OUString& rFile, const Sequence< PropertyValue >& rFilterData );
+ bool Export( const OUString& rFile, const css::uno::Sequence< css::beans::PropertyValue >& rFilterData );
void showErrors( const std::set<vcl::PDFWriter::ErrorCode>& );
};
-#endif // INCLUDED_FILTER_SOURCE_PDF_PDFEXPORT_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */