Albert Astals Cid
be50f03acf
Pass the pageview to the signature annotator
...
This way we don't use nullptr as part for the dialogs, it's always a bit
ugly to do so
5 years ago
Albert Astals Cid
bd00acb5c4
Warn if the signature we're trying to create is too small
5 years ago
Albert Astals Cid
9728d8b426
We don't do getFoo in Okular API
5 years ago
Albert Astals Cid
a4030a20f5
Properly cancel the signature mode if we don't add one
5 years ago
Albert Astals Cid
6325a4fe0b
Make sure you have no unsaved changes before saving
5 years ago
Albert Astals Cid
a5df71a79a
Sign -> Digitally Sign
...
And remove from toolbar, it's not that important it should be there
Also increase version
5 years ago
Albert Astals Cid
18ef1349f1
Improvements to adding digital signatures
...
* Don't make WidgetAnnotation know about signatures stuff, widget
annotations are for multiple things
* Don't create an "empty" widget annotation and then call sign on it
(which is wrong because widget annotations can be multiple things),
just say sign the document with this data (cert, l&f, etc)
* Remove the "management" functionality from CertificateTools it was
only visual, i.e. it didn't really add/remove certificates
* Ask for the NSS password (if needed)
5 years ago
Albert Astals Cid
43900fe56e
Warn the user if there's no availabe signing certificates
5 years ago
Albert Astals Cid
c02f98a60f
Mark method as override
5 years ago
Albert Astals Cid
2646058111
Adapt to poppler API change
...
and fix a leak meanwhile ^_^
5 years ago
Albert Astals Cid
b09e23f6ab
Run clang-format
...
Attempting to fix the whole chain of commits is not worth it
5 years ago
Albert Astals Cid
bcf54ef2f1
These two methods don't need to be slots
5 years ago
Thorsten Behrens
b52adfeaee
Fix more clang-tidy unhappines
5 years ago
Katarina Behrens
20b34d00c9
Make clang-tidy happier
5 years ago
Thorsten Behrens
62a4c63fd3
Conditionalize code to Poppler signing feature flag
5 years ago
Thorsten Behrens
f37de4feb4
Set some signature reason - might want some UI later
5 years ago
Thorsten Behrens
71795917de
Add configurable CertDB path
5 years ago
Thorsten Behrens
e9577f5f7d
Properly set signature annotation bounds after insertion
5 years ago
Thorsten Behrens
9bca008f9d
Init m_signatureMode in ctor
5 years ago
Thorsten Behrens
3eedb21a83
Consistenly use CERT nick to refer to signing key
5 years ago
Thorsten Behrens
981c597376
Fix overwriting pdf after signing
...
- make explicit we're using static QFile func here
- QFile::rename doesn't work across filesystems, so instead
create it alongside. Might fail if dir is not writeable
- can't use QSaveFile, since poppler sign() func wants a filename
5 years ago
Thorsten Behrens
f7d6045b92
Add poppler NSS support
...
Move certificate config down into generator code
Read available signing certificates from poppler NSS
5 years ago
Thorsten Behrens
ae2c6a55c2
Fix crash on invalid engine
5 years ago
Thorsten Behrens
b96dac6df3
Add certificate store for access to NSS keys
...
WIP - add interfaces and methods to get access to NSS-via-poppler
sign certificates, and provide them for signing documents.
5 years ago
Thorsten Behrens
847b423e2a
Add better diagnostics
5 years ago
Thorsten Behrens
e031822744
Adapt to poppler sign api change
...
Now poppler offers signing via PDFConverter class. Add some error
handling, and store signature in temp file. Document gets reloaded
after replacing original file.
5 years ago
Thorsten Behrens
e3e582ee5c
Add feature flag for poppler signing API
...
Test and conditionally-compile pdf signing feature, depending
on poppler new-ness.
5 years ago
Katarina Behrens
b33a12d786
Prompt for password and stick it to widget annotation
5 years ago
Katarina Behrens
45fc7cd805
Read the certificates from configuration
5 years ago
Katarina Behrens
38c5b614b4
Simplify adding certificates to config and implement edit slot
5 years ago
Katarina Behrens
5db7421851
Get certificate CN and password and pass it to poppler
5 years ago
Katarina Behrens
cc908b9f92
Pass pointer to widget annotation just added down the chain
5 years ago
Katarina Behrens
03381667f6
Pass certificate CN and password down the chain
5 years ago
Katarina Behrens
66f2bff5ca
Pass bounding rectangle down the chain
5 years ago
Katarina Behrens
d320fa17ad
Stub some iface for signing the document
5 years ago
Katarina Behrens
c560a4a20e
Eventually hide the message window
5 years ago
Katarina Behrens
48dc3779f7
Add empty widget annotation
5 years ago
Katarina Behrens
b2c5aa61d7
Read/write certificate settings
5 years ago
Katarina Behrens
dd0c06a82b
Signature mode must eventually end
5 years ago
Katarina Behrens
6cff306bab
Making 'Sign' button a toggle was a bad idea
5 years ago
Katarina Behrens
3330f8407a
Open filepicker to select p12, pfx file to add to user identity
5 years ago
Katarina Behrens
242710cae7
Recycle WidgetConfigurationToolsBase for certificate management dlg
5 years ago
Katarina Behrens
060175735f
Open certificate selection dialog on mouse release
5 years ago
Katarina Behrens
339ce239f5
Draw an initial rectangle where to place the signature
5 years ago
Katarina Behrens
b5117aff6c
Add slot for 'Sign' button, shows info overlay so far
5 years ago
Katarina Behrens
888d287f1f
Add 'Sign' button to toolbar
5 years ago
Katarina Behrens
69ddb957f1
Add config page to configure signing identities/certificates
5 years ago
Katarina Behrens
2845db76fb
Add 'Sign' menu entry
5 years ago
Albert Astals Cid
35590a273d
Fix CI
...
Laurent please use MR like everyone else does, otherwise you break the
build for the rest of us.
CCMAIL: montel@kde.org
5 years ago
Laurent Montel
dd1938755e
Don't include QtTest as it includes all QtCore includes
5 years ago