diff options
author | Gökçen Eraslan <gokcen.eraslan@gmail.com> | 2012-06-24 16:25:39 +0300 |
---|---|---|
committer | Gökçen Eraslan <gokcen.eraslan@gmail.com> | 2012-06-24 16:25:39 +0300 |
commit | 2a537c6d96bac3ef0661bf59375e4061342c0aca (patch) | |
tree | 2e121fb2ceb4d18cc70bdc1239dc8b6a2b9e2191 /filter/source/pdf/impdialog.hxx | |
parent | 1d546e142274f9f1f1bbc60f095b4b7c7493e469 (diff) |
Add a simple GUI for digital signatures.
Right now, there is no certificate selection and password
edit but this GUI will make things easier to test. If Sign PDF
checkbox is checked, I will create the necessary data in PDF file
with a garbage PKCS7 object, for now.
Change-Id: Ib9f0b33d3be31cb3eb8acb12a6aa2e37f2d3beeb
Diffstat (limited to 'filter/source/pdf/impdialog.hxx')
-rw-r--r-- | filter/source/pdf/impdialog.hxx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/filter/source/pdf/impdialog.hxx b/filter/source/pdf/impdialog.hxx index f3330c08b684..87327a024388 100644 --- a/filter/source/pdf/impdialog.hxx +++ b/filter/source/pdf/impdialog.hxx @@ -149,6 +149,12 @@ protected: sal_Int32 mnViewPDFMode; sal_Bool mbConvertOOoTargets; sal_Bool mbExportBmkToPDFDestination; + + sal_Bool mbSignPDF; + String msSignLocation; + String msSignContact; + String msSignReason; + ::rtl::OUString maWatermarkText; public: @@ -158,6 +164,7 @@ public: friend class ImpPDFTabOpnFtrPage; friend class ImpPDFTabSecurityPage; friend class ImpPDFTabLinksPage; + friend class ImpPDFTabSigningPage; ImpPDFTabDialog( Window* pParent, Sequence< PropertyValue >& rFilterData, @@ -430,6 +437,31 @@ public: void ImplPDFALinkControl( sal_Bool bEnableLaunch ); }; +//class to implement the digital signing +class ImpPDFTabSigningPage : public SfxTabPage +{ + CheckBox maCbSignPDF; + FixedText maFtSignLocation; + Edit maEdSignLocation; + FixedText maFtSignContactInfo; + Edit maEdSignContactInfo; + FixedText maFtSignReason; + Edit maEdSignReason; + + DECL_LINK( ToggleSignPDFHdl, void* ); + +public: + ImpPDFTabSigningPage( Window* pParent, + const SfxItemSet& rSet ); + + ~ImpPDFTabSigningPage(); + static SfxTabPage* Create( Window* pParent, + const SfxItemSet& rAttrSet ); + + void GetFilterConfigItem( ImpPDFTabDialog* paParent); + void SetFilterConfigItem( const ImpPDFTabDialog* paParent ); +}; + #endif // IMPDIALOG_HXX |