Commit graph

2687 commits

Author SHA1 Message Date
l10n daemon script 017a93c751 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-09-04 02:18:17 +00:00
l10n daemon script 54687d764d SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-09-04 01:15:44 +00:00
Albert Astals Cid 0c659a5466 clang-tidy: Enable google-explicit-constructor 2021-08-29 08:52:35 +00:00
l10n daemon script a225fb6d9a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-08-28 01:17:34 +00:00
Heiko Becker 5c16b25a11 GIT_SILENT Update Appstream for new release 2021-08-27 22:59:54 +02:00
Heiko Becker 9672d09900 GIT_SILENT Update Appstream for new release
(cherry picked from commit 5c16b25a11)
2021-08-27 22:59:54 +02:00
Albert Astals Cid c0de8366fc Merge remote-tracking branch 'origin/release/21.08' 2021-08-27 10:44:29 +02:00
l10n daemon script 3dbe3b18f5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-08-23 02:27:41 +00:00
l10n daemon script 361d084c44 GIT_SILENT made messages (after extraction) 2021-08-23 01:51:24 +00:00
l10n daemon script 7c2bac7d27 GIT_SILENT made messages (after extraction) 2021-08-22 00:15:58 +00:00
Volker Krause 2a7e4416b5 Don't require D-Bus on Android
Also, actually fully disable the build of okularpart, which isn't needed
on Android.

With this Okular can be built for Android without the D-Bus stub, at least
once KIO doesn't pull in D-Bus anymore.
2021-08-20 18:46:50 +00:00
Albert Astals Cid f143b323f1 Only show the Stamps warning when adding stamps to PDF files 2021-08-11 09:00:05 +02:00
Heiko Becker 139b822b0f GIT_SILENT Update Appstream for new release
(cherry picked from commit bf0642bfcb)
2021-08-04 23:53:58 +02:00
Heiko Becker bf0642bfcb GIT_SILENT Update Appstream for new release 2021-08-04 23:53:58 +02:00
l10n daemon script 14f9f06f44 GIT_SILENT made messages (after extraction) 2021-07-26 01:41:24 +00:00
l10n daemon script 21bc8bd023 GIT_SILENT made messages (after extraction) 2021-07-26 00:15:50 +00:00
Josef Filzmaier 1d90817660 Replace kWarning with qWarning
Even in comments
2021-07-16 00:11:53 +02:00
Yaroslav Sidlovsky 1047fd1df7 Fixed encoding detection for small texts (up to 3000 bytes)
BUG: 334733
(cherry picked from commit 929c94e09d)
2021-07-14 21:58:28 +02:00
Yaroslav Sidlovsky 504eec7688 Fix non unique KPlugin Id for fictionbook generator
BUG: 439807
(cherry picked from commit 8dc58c7617)
2021-07-14 21:58:22 +02:00
Yaroslav Sidlovsky 929c94e09d Fixed encoding detection for small texts (up to 3000 bytes)
BUG: 334733
2021-07-14 08:23:20 +00:00
Yaroslav Sidlovsky 8dc58c7617 Fix non unique KPlugin Id for fictionbook generator
BUG: 439807
2021-07-13 22:00:42 +00:00
l10n daemon script 5447aa1021 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-11 01:11:37 +00:00
l10n daemon script 16da5cb4b4 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-07-06 01:14:42 +00:00
l10n daemon script 561336f2f0 GIT_SILENT made messages (after extraction) 2021-07-06 00:15:45 +00:00
Heiko Becker ab812e6a52 GIT_SILENT Update Appstream for new release
(cherry picked from commit a0cc1cd31e)
2021-07-05 21:05:39 +02:00
Yuri Chornoivan 74cb4e545d Show alt text instead of the missing image in the Markdown code 2021-07-04 21:08:33 +00:00
Nicolas Fella 7d15dc1ae6 Clean up include_directories calls
Remove unnecessary calls

Convert necessary calls to target_include_directories
2021-07-04 00:51:15 +02:00
Albert Astals Cid 96135236cd Merge remote-tracking branch 'origin/release/21.04' 2021-06-15 19:27:36 +02:00
Albert Astals Cid 8f269d1884 epub: switch epub logs to warning
No need to show info level to users

BUGS: 438490
2021-06-15 01:05:25 +02:00
Alexander Lohnau ac083e44e3 Make meaning of sponsoring note more clear 2021-06-10 08:11:56 +00:00
Alexander Lohnau e05474450a GIT_SILENT Small clang-format adjustments 2021-06-10 08:11:56 +00:00
Alexander Lohnau 86a680d97c GIT_SILENT Put author mail in angle brackets 2021-06-10 08:11:56 +00:00
Alexander Lohnau 83dfef19ab Put author and mail on same SPDX-FileCopyrightText line 2021-06-10 08:11:56 +00:00
Alexander Lohnau beaa9fd490 Convert xps files to SPDX license headers 2021-06-10 08:11:56 +00:00
Alexander Lohnau bf4c8da4fc Manual fixes to license headers 2021-06-10 08:11:56 +00:00
Alexander Lohnau 78fc7e8c91 Fix & clean up SPDX conversions 2021-06-10 08:11:56 +00:00
Alexander Lohnau 24c75071be Move sponsoring note outside of SPDX-FileCopyrightText statement 2021-06-10 08:11:56 +00:00
Alexander Lohnau f9cd6c9868 Manually convert license files for fax generator 2021-06-10 08:11:56 +00:00
Alexander Lohnau 2f193a63de Convert license headers to SPDX 2021-06-10 08:11:56 +00:00
Heiko Becker 0692e8b037 GIT_SILENT Update Appstream for new release 2021-06-05 23:06:48 +02:00
Heiko Becker c785887516 GIT_SILENT Update Appstream for new release
(cherry picked from commit 0692e8b037)
2021-06-05 23:06:48 +02:00
l10n daemon script 6ad2ebdbbb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-06-02 02:15:07 +00:00
l10n daemon script 724b9413e3 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-06-02 01:14:44 +00:00
l10n daemon script 3fb0390f2f GIT_SILENT made messages (after extraction) 2021-06-02 00:16:16 +00:00
Alexander Lohnau 13a394cc17 Port msits kioslave to JSON metadata
Task: https://phabricator.kde.org/T14518

The JSON file was created using the protocoltojson utility from KIO.
2021-05-31 20:49:44 +00:00
Alexander Lohnau 16f70bb2a7 Remove Description property for kioslave
This value is never read in KIO and not exposed in the public API.
2021-05-31 20:49:44 +00:00
Alexander Lohnau 8b13d989c6
Clean up ServiceType property usage for JSON based plugins
This is no needed anymore, because the plugins are installed into a
specific dir. It is a leftover from the time where the ServiceTypes were
used to find the correct plugins.

Task: https://phabricator.kde.org/T14483
2021-05-21 06:53:52 +02:00
Albert Astals Cid 6e467c343e Merge remote-tracking branch 'origin/release/21.04' 2021-05-20 10:01:04 +02:00
Albert Astals Cid 99788b907e Second attempt at fixing the windows/craft build
Since libspectre includes reference themselves with libspectre/ change
the cmake find_path to also include libspectre/ when doing the include
path search
2021-05-20 10:00:18 +02:00
Albert Astals Cid fefe41b2fc Merge remote-tracking branch 'origin/release/21.04' 2021-05-20 08:56:37 +02:00
Dan Leinir Turthra Jensen 108e568d67 Fix spectre includes
The include path should not be added to the include line, that will make
it be not found if the parent directory for includes is not included.
2021-05-19 22:49:54 +02:00
Albert Astals Cid 75eb2095f5 Merge remote-tracking branch 'origin/release/21.04' 2021-05-15 23:34:04 +02:00
Mahmoud Khalil b15accd0ae Checks whether the pdf is broken or not
This commit adds support for the to be added functionality in Poppler
which detects whether or not the Xref Table has been reconstructed
2021-05-14 23:00:23 +00:00
Albert Astals Cid 1c349f5448 Use new poppler "fancy signature" 2021-05-14 16:59:41 +02:00
Albert Astals Cid f31152d389 Fix loading some png files inside zip comicbook files
BUGS: 436086
2021-05-12 22:52:07 +02:00
Heiko Becker 5941247354 GIT_SILENT Update Appstream for new release
(cherry picked from commit 1898bd2bec)
2021-05-07 20:22:29 +02:00
Heiko Becker 1898bd2bec GIT_SILENT Update Appstream for new release 2021-05-07 20:22:29 +02:00
l10n daemon script 74c92306b8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-04-21 01:16:32 +00:00
l10n daemon script 218c5ab64e GIT_SILENT made messages (after extraction) 2021-04-17 01:48:51 +00:00
l10n daemon script 41d3bedc41 GIT_SILENT made messages (after extraction) 2021-04-17 00:18:37 +00:00
Heiko Becker 8bdc851688 GIT_SILENT Update Appstream for new release 2021-04-14 17:11:17 +02:00
Albert Astals Cid 19355a42d7 Slight improvement to signature look&feel
Use black for text color and border (instead of default red)
Also force the date to have timezone info, i.e.
  2021-04-13T15:32:29+02:00
instead of
  2021-04-13T15:32:29
2021-04-13 15:33:08 +02:00
Yuri Chornoivan 931dca1514 If FB has multiple authors, show them all 2021-03-27 18:28:03 +02:00
Albert Astals Cid c38af3e695 Add a few more formats supported by qimageformat plugins
BUGS: 434888
BUGS: 434889
2021-03-24 23:42:05 +01:00
Yuri Chornoivan 272b386f58 Enhance FictionBook support: book annotation, text-author for the cite, section subtitles
BUG: 340134
2021-03-11 22:02:15 +00:00
Albert Astals Cid 3f923aa7b5 Move to new appstream format for mimetypes
It seems using mimetypes+mimetype is bad and now you have to use
provides+mediatype
2021-03-10 00:24:14 +00:00
George Florea Bănuș 5e5fcd88bb Fix loading files from cbr file on windows 2021-03-09 23:09:12 +02:00
George Florea Bănuș e6f82a50cf Fix unrar detection on Windows
CCBUG: 412413
2021-03-09 00:14:31 +00:00
Albert Astals Cid 88200f4f25 Merge remote-tracking branch 'origin/release/20.12' 2021-02-25 19:09:43 +01:00
Albert Astals Cid f8fa27e218 pdf: Fix InPlace text annotations being loaded as linked
BUGS: 432009, 432932
2021-02-24 23:25:25 +00:00
Heiko Becker 5044a63cd4 GIT_SILENT Update Appstream for new release
(cherry picked from commit 5951fc2731)
2021-02-25 00:25:13 +01:00
Heiko Becker 5951fc2731 GIT_SILENT Update Appstream for new release 2021-02-25 00:16:41 +01:00
Marat Radchenko c1583999d0 Add support for halign/valign and colspan for tables in FictionBook
Note that this commit does *not* add support for rowspan
2021-02-02 00:34:24 +03:00
Heiko Becker 1c97e60dbd GIT_SILENT Update Appstream for new release
(cherry picked from commit 2aff8958b1)
2021-01-29 21:09:47 +01:00
Heiko Becker 2aff8958b1 GIT_SILENT Update Appstream for new release 2021-01-29 21:09:47 +01:00
Albert Astals Cid 084631d11e Use more standard cmake functionality to search for discount
Instead of rolling our own, that's harder to understand and buggy anyway

BUGS: 431311
2021-01-24 11:16:49 +00:00
l10n daemon script c637a7e1dd SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-01-24 11:11:14 +01:00
l10n daemon script 256ad59705 GIT_SILENT made messages (after extraction) 2021-01-24 09:10:24 +01:00
l10n daemon script dd621979cd SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2021-01-24 06:51:51 +01:00
l10n daemon script 45a50b2d81 GIT_SILENT made messages (after extraction) 2021-01-24 02:27:21 +01:00
Carl Schwan 0f088dcbf3 Improve identation in Epub rendering
CCBUG: 321956
2021-01-16 23:07:11 +00:00
l10n daemon script ee40297976 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-12-31 09:34:35 +01:00
l10n daemon script 4161fec216 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-12-31 06:17:32 +01:00
Albert Astals Cid 1f63f91dc4 PDF: Merge the certs settings page to the regular pdf settings page 2020-12-29 13:34:02 +00:00
Albert Astals Cid b1fa4caaf2 Merge remote-tracking branch 'origin/release/20.12' 2020-12-22 01:25:17 +01:00
Albert Astals Cid 3e86c9a56c Fix crash with some broken PDF files 2020-12-21 22:30:16 +01:00
l10n daemon script f16b767057 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-12-20 06:07:29 +01:00
Albert Astals Cid 6cf0ca2194 Merge remote-tracking branch 'origin/release/20.12' 2020-12-14 22:19:12 +01:00
Albert Astals Cid 54209751b5 pdf: Fix small memory leak 2020-12-14 16:34:40 +00:00
Albert Astals Cid 579ce171c3 make the (C) line a less bad 2020-12-14 15:42:34 +01:00
Albert Astals Cid bfc7383d46 pdf signining: Change label to more accurately reflect what the list is about 2020-12-13 21:31:14 +00:00
Albert Astals Cid ac3a593eb4 PDF Signatures: Double check we have a capable poppler
In addition to being new enough it needs to have NSS support built in
2020-12-13 21:31:14 +00:00
Albert Astals Cid 33ccbc0449 Signing: Don't say that there are no certificates if the user cancels...
...entering the pwd for the certificate store

Also Move CertificateStoreImpl to PopplerCertificateStore, since
PopplerCertificateStore was declared but never defined and use it
in CertificateTools to get the certificate list instead of calling
the poppler classes directly
2020-12-13 21:31:14 +00:00
Albert Astals Cid b07b3209fb Move the cert code inside CertificateTools
Makes more sense
2020-12-13 21:31:14 +00:00
Albert Astals Cid 242718a9a2 Only ask for certificate password if really needed 2020-12-13 21:31:14 +00:00
Albert Astals Cid 9728d8b426 We don't do getFoo in Okular API 2020-12-13 21:31:14 +00:00
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)
2020-12-13 21:31:14 +00:00
Albert Astals Cid c02f98a60f Mark method as override 2020-12-13 21:31:14 +00:00
Albert Astals Cid 2646058111 Adapt to poppler API change
and fix a leak meanwhile ^_^
2020-12-13 21:31:14 +00:00
Albert Astals Cid b09e23f6ab Run clang-format
Attempting to fix the whole chain of commits is not worth it
2020-12-13 21:31:14 +00:00
Katarina Behrens 20b34d00c9 Make clang-tidy happier 2020-12-13 21:31:14 +00:00
Thorsten Behrens 62a4c63fd3 Conditionalize code to Poppler signing feature flag 2020-12-13 21:31:14 +00:00
Thorsten Behrens f37de4feb4 Set some signature reason - might want some UI later 2020-12-13 21:31:14 +00:00
Thorsten Behrens 71795917de Add configurable CertDB path 2020-12-13 21:31:14 +00:00
Thorsten Behrens 3eedb21a83 Consistenly use CERT nick to refer to signing key 2020-12-13 21:31:14 +00:00
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
2020-12-13 21:31:14 +00:00
Thorsten Behrens f7d6045b92 Add poppler NSS support
Move certificate config down into generator code
Read available signing certificates from poppler NSS
2020-12-13 21:31:14 +00:00
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.
2020-12-13 21:31:14 +00:00
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.
2020-12-13 21:31:14 +00:00
Thorsten Behrens e3e582ee5c Add feature flag for poppler signing API
Test and conditionally-compile pdf signing feature, depending
on poppler new-ness.
2020-12-13 21:31:14 +00:00
Katarina Behrens 5db7421851 Get certificate CN and password and pass it to poppler 2020-12-13 21:31:14 +00:00
Katarina Behrens cc908b9f92 Pass pointer to widget annotation just added down the chain 2020-12-13 21:31:14 +00:00
Katarina Behrens d320fa17ad Stub some iface for signing the document 2020-12-13 21:31:14 +00:00
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
2020-12-13 21:59:08 +01:00
Laurent Montel dd1938755e Don't include QtTest as it includes all QtCore includes 2020-12-13 17:51:28 +01:00
Albert Astals Cid 8176613076 Merge remote-tracking branch 'origin/release/20.12' 2020-12-10 00:01:29 +01:00
Albert Astals Cid bc85160d7f clang-tidy: Disable performance-no-automatic-move
It's just too aggressive with Qt classes that are refcounted and fine to
copy
2020-12-09 21:37:32 +01:00
Albert Astals Cid 39846f8c16 Merge remote-tracking branch 'origin/release/20.12' 2020-12-09 21:15:36 +01:00
Albert Astals Cid d1c2eed1b6 Make the CI pass with new clang-tidy
Disable bugprone-suspicious-include since it's triggered by the moc
includes

Disable bugprone-reserved-identifier since it's triggered by all our
_OKULAR defines, and yes even if the spec says that underscore is
reserved, are we going to be that unlucky that the library decides to
start using _OKULAR ? not probably

Add two TODOs for the future to make NormalizedRect/Point faster

Silence a warning about a quick moving QString if we make it non const

Silence a uchar vs char warning that is in decades old code so
experience seems to suggest it's ok.
2020-12-09 19:53:50 +01:00
Albert Astals Cid e200d90de2 cmake: Modern way to link to tiff 2020-12-02 19:01:32 +01:00
Albert Astals Cid 43ae701345 cmake: Modern way to link to freetype 2020-12-02 19:00:18 +01:00
Albert Astals Cid 3cc7bdd1d7 cmake: Modern way to link to zlib 2020-12-02 18:57:49 +01:00
Albert Astals Cid 3129b642f9 cmake: Modern way to link to jpeg 2020-12-02 18:55:59 +01:00
Marat Radchenko 2aa9f18fe7 initial tables support for FictionBook 2020-11-29 23:12:37 +03:00
Marat Radchenko 29ed5d1dd7 handle <subtitle> inside <cite> in FictionBook documents
(cherry picked from commit 2e3faa0052)
2020-11-28 02:20:30 +01:00
Marat Radchenko 2e3faa0052 handle <subtitle> inside <cite> in FictionBook documents 2020-11-27 10:25:34 +03:00
Marat Radchenko 9f7b45271f add support for <subtitle> tag in FictionBook
(cherry picked from commit bcdd5a996c)
2020-11-27 00:30:19 +01:00
l10n daemon script a61977aa8a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-11-26 10:02:48 +01:00
Marat Radchenko bcdd5a996c add support for <subtitle> tag in FictionBook 2020-11-25 11:16:50 +03:00
l10n daemon script 33483a10fa GIT_SILENT made messages (after extraction) 2020-11-25 08:38:49 +01:00
l10n daemon script c9440a9160 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-11-25 06:34:22 +01:00
l10n daemon script a752711872 GIT_SILENT made messages (after extraction) 2020-11-25 02:20:39 +01:00
David Hurka a83261db92 Merge branch 'release/20.12' into master 2020-11-18 20:35:53 +01:00
David Hurka 19d5dd8ec7 New part/ directory for okularpart sources from /, ui/, conf/
Source files are no longer separated by UI and non-UI and similar,
but only by their build target.

* ui/ -> part/
* Move all source files from conf/ to part/
* Keep config skeleton definitions in conf/, needed for the mobile target too
* Move editdrawingtooldialogtest.h from conf/autotests/ to autotests/
* ui/data/icons/ -> icons/
* Move /part.cpp, /part.rc and similar files to part/
* Adapt include paths in source files
* Adapt CMakeLists.txt files (in / and in subdirectories)
* Adapt /Messages.sh
2020-11-18 19:32:56 +00:00
Alexander Lohnau 3c1fa441d9 Remove dead code
A lot of this code has been commented out for over
a decade and adds no value to the project.
It is only annoying when you look over it ;).

Same for the KNS2 support which was commented out.

Also some of the debug statements didn't even build
anymore, because the properties got removed/refactored.
2020-11-14 10:52:00 +01:00
Albert Astals Cid 6bd6714ab0 poppler: Use actual function calls instead of xml to create poppler annotations 2020-11-11 00:43:54 +00:00
Albert Astals Cid becdc7c483 Revert the two last commits
f9841b0f8a and e0f45add55

They break the windows build, which shows there's something defenitely
fishy going on with the current code, but oh well, someone with more
time needs to figure out a proper solution
2020-11-11 01:31:47 +01:00
Albert Astals Cid e0f45add55 Enable -Wweak-vtables in clang
Read https://stackoverflow.com/a/23749273/11956287 for a full
explanation, but basically this is important for headers like the
interfaces/ and kdocumentviewer.h that are supposed to be used by third
partyies where it may happen that wrong things happen because the whole
class is inline in a header

For the classes that are defined in the .cpp or are not installed
headers this would not be necessary but it's not so hard to add a few
default defined destructors, so do that :)
2020-11-08 21:21:06 +00:00
David Hurka 055d5709c1 Merge branch 'release/20.08' into master 2020-11-08 02:05:10 +01:00
Christoph Feck 02c3bd691a GIT_SILENT Update Appstream for new release 2020-10-31 18:08:36 +01:00
Albert Astals Cid b9c40d709d Fix formatting after Laurent's commit
Please Laurent try to use MR when you do changes that may break our CI
like this one

CCMAIL: montel@kde.org
2020-10-23 22:48:44 +02:00
Laurent Montel 486e05b270 If include is define in .h remove it if it's defined in .cpp too (scripted) 2020-10-23 07:32:28 +02:00
l10n daemon script dc74ffa68c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-10-17 06:04:22 +02:00
l10n daemon script 6abe9fcdfd GIT_SILENT made messages (after extraction) 2020-10-17 02:16:46 +02:00
Albert Astals Cid 62d7a6938a Remove the ooo plugin
As mentioned on the Akademy meeting, just use the calligra okular plugins if you want to open an odt/odp in Okular
2020-10-07 22:01:22 +00:00
Christoph Feck 6a31bfc7e3 GIT_SILENT Update Appstream for new release
(cherry picked from commit 0abdab924d)
2020-10-03 14:20:24 +02:00
Christoph Feck 0abdab924d GIT_SILENT Update Appstream for new release 2020-10-03 14:20:23 +02:00
Albert Astals Cid 45702f2291 Port deprecated QFontMetrics::width -> horizontalAdvance 2020-09-30 16:09:57 +00:00
Albert Astals Cid 78d983eeed drawRoundRect -> drawRoundedRect 2020-09-30 16:09:57 +00:00
Albert Astals Cid 8ab379e178 Part away from deprecated QProcess::finished(int) 2020-09-30 16:09:56 +00:00
l10n daemon script 601e96037c SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-09-25 09:54:54 +02:00
l10n daemon script 21647201c2 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-09-25 06:16:02 +02:00
Albert Astals Cid ceb8cf629d poppler: Convert Stamp annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-09-24 07:42:52 +00:00
Albert Astals Cid d13b18af32 poppler: Convert Caret annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-09-24 07:42:52 +00:00
Albert Astals Cid bfdd033bfb poppler: Convert Ink annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-09-24 07:42:52 +00:00
Albert Astals Cid a39708e71d Remove setTextIcon call that we already do at createAnnotationFromPopplerAnnotation 2020-09-24 07:42:52 +00:00
Albert Astals Cid eed89aaef6 poppler: Convert Highlight annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-09-24 07:42:52 +00:00
Albert Astals Cid f533788637 poppler: Convert Geom annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-09-24 07:42:51 +00:00
Albert Astals Cid 7ccb475df8 Fix crash on files that have the same signature in more than 1 page
It happens with some official documents where they use the same
signature in all pages to make it clear all pages are signed/official

BUGS: 426467
2020-09-17 01:27:42 +02:00
Albert Astals Cid 9bf171a108 Fix crash on files that have the same signature in more than 1 page
It happens with some official documents where they use the same
signature in all pages to make it clear all pages are signed/official

BUGS: 426467
2020-09-16 21:42:23 +00:00
Friedrich W. H. Kossebau 1784c1d0cb Use more nullptr instead of 0 2020-09-13 11:20:09 +02:00
Albert Astals Cid 4085181512 UDSEntry::insert -> UDSEntry::fastInsert
we're clearing the UDSEntry just before the inserts so it's safe to
assume we're not inserting something that was there already
2020-09-13 01:25:54 +02:00
Albert Astals Cid 8a1bef81f8 Remove poppler 0.80 ifdefs since we require 0.86 now 2020-09-13 01:21:11 +02:00
Albert Astals Cid 6b08af754f Remove poppler 0.79 ifdefs since we require 0.86 now 2020-09-13 01:20:14 +02:00
Albert Astals Cid 4d12c257b2 Remove poppler 0.74 ifdefs since we require 0.86 now 2020-09-13 01:18:34 +02:00
Albert Astals Cid 9264723002 Remove poppler 0.73 ifdefs since we require 0.86 now
This actually fixes a mistake in SignatureFormTest::testSignatureForm
2020-09-13 01:16:27 +02:00
Albert Astals Cid e283da994b Remove poppler 0.69 ifdefs since we require 0.86 now 2020-09-13 01:12:53 +02:00
Albert Astals Cid eacb5eed8b Remove poppler 0.68 ifdefs since we require 0.86 now 2020-09-13 01:12:05 +02:00
Albert Astals Cid 7dce3389cb Remove poppler 0.65 ifdefs since we require 0.86 now 2020-09-13 01:11:08 +02:00
Albert Astals Cid c019a7e76c Remove poppler 0.64 ifdefs since we require 0.86 now 2020-09-13 01:10:10 +02:00
Albert Astals Cid bcd36d6374 Remove poppler 0.63 ifdefs since we require 0.86 now 2020-09-13 01:07:38 +02:00
Albert Astals Cid e989200dcf Increase minimum supported versions to those provided by Ubuntu 20.04 2020-09-13 01:03:53 +02:00
Albert Astals Cid 2697105462 Revert cbddcd3273
KJS and KWallet are indeed optional, that's what the ${optionalComponents} variable does
2020-09-09 14:13:09 +02:00
Albert Astals Cid cbddcd3273 kwallet and kjs are mandatory in cmake anyway, remove ifdefs 2020-09-05 23:50:45 +00:00
Albert Astals Cid a05df764bc Move IsDigitallySigned code to part.cpp
It isn't really pdf generator specific
2020-09-05 19:33:47 +00:00
Christoph Feck b3101774cf GIT_SILENT Update Appstream for new release
(cherry picked from commit 4b9e50a1ed)
2020-08-31 21:02:07 +02:00
Christoph Feck 4b9e50a1ed GIT_SILENT Update Appstream for new release 2020-08-31 21:02:06 +02:00
Albert Astals Cid 8966b715b6 poppler: Convert Line annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-08-22 23:38:53 +00:00
Albert Astals Cid 884704f6cb poppler: Convert Text annotations via C++
Instead of via the magic XML cycle of Poppler::AnnotationUtils::storeAnnotation + Okular::AnnotationUtils::createAnnotation
2020-08-22 23:38:53 +00:00
Markus Brenneis 89cf21b222 Add support for image sizes in markdowns
The discount markdown parser supports parsing explicit image sizes in markdown, but we ignore them and replace them with the actual image dimensions. With this patch, any specified image sizes are respected.
2020-08-22 23:32:27 +00:00
Christoph Feck f6ce4a57d8 GIT_SILENT Update Appstream for new release 2020-08-05 09:52:57 +02:00
Christoph Feck d0b9d83946 GIT_SILENT Update Appstream for new release
(cherry picked from commit f6ce4a57d8)
2020-08-05 09:52:57 +02:00
l10n daemon script 36a6010c4f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-07-30 09:32:05 +02:00
l10n daemon script 8f81af09e2 GIT_SILENT made messages (after extraction) 2020-07-30 07:58:09 +02:00
l10n daemon script 8563aa45cb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-07-30 05:49:55 +02:00
l10n daemon script 685ae66b45 GIT_SILENT made messages (after extraction) 2020-07-30 02:13:37 +02:00
l10n daemon script 3ef3de28c8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-07-25 05:29:31 +02:00
Albert Astals Cid 1eb724b5be Convert the poppler revisions to Okular revisions
It's not really like it matters since we're not using the okular
revision information anywhere, but well, at least from the poppler
plugin we're doing the right thing
2020-07-23 08:44:53 +00:00
Albert Astals Cid 2c8dd71931 Convert the poppler annotation popup to Okular annotation window
Not having this is not as bad as it sounds since for most of the
annotations where the style makes sense this is currently already being
converted by AnnotationPrivate::setAnnotationProperties but the plan is
to stop passing xml between poppler annotations and okular annotations
because that's just plain bad
2020-07-23 08:44:53 +00:00
Albert Astals Cid 2b639579f7 Convert the poppler annotation style to Okular annotation the style
Not having this is not as bad as it sounds since for most of the
annotations where the style makes sense this is currently already being
converted by AnnotationPrivate::setAnnotationProperties but the plan is
to stop passing xml between poppler annotations and okular annotations
because that's just plain bad
2020-07-23 08:44:53 +00:00
Albert Astals Cid 5ce3593e8f createAnnotationFromPopplerAnnotation: Renames to make the code easier to read
It's not clear ann was a popplerAnnotation but annotation was an
okularAnnotation
2020-07-23 08:44:53 +00:00
Albert Astals Cid 4e89757af1 Poppler: Use non xml API for toc if possible
The xml api will be removed in Qt6 so better to move away from it as
soon as possible
2020-07-23 07:49:38 +00:00
Albert Astals Cid 19d98d6a74 Run clang-format
find . \( -name "*.cpp" -or -name "*.h"  -or -name "*.c"  -or -name "*.cc" \) -exec clang-format -i {} \;

If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-07-11 09:17:33 +02:00
Albert Astals Cid 751a7074d1 Need two clang-format off markers to not trigger clazy-connect-not-normalized 2020-07-11 09:15:45 +02:00
Albert Astals Cid 2ed253a540 Include fixes 2020-07-11 00:12:08 +02:00
Albert Astals Cid ae0bdd1fe9 Add qAsConst to code that is not CI'ed so clazy didn't complain [yet]
It's not CI'ed because CI doesn't have a poppler new enough
2020-07-09 21:37:43 +02:00
Laurent Montel 516fb89d94 Use camelcase include. (scripted) 2020-07-08 13:54:37 +02:00
Christoph Feck 182e2791d7 GIT_SILENT Update Appstream for new release
(cherry picked from commit 13dc58655a)
2020-07-03 23:03:22 +02:00
l10n daemon script 90502b2961 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-06-18 05:35:59 +02:00
l10n daemon script f046034c69 GIT_SILENT made messages (after extraction) 2020-06-18 02:14:44 +02:00
l10n daemon script 2857dc241f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-06-17 14:03:40 +02:00
l10n daemon script 6cd2e32e64 GIT_SILENT made messages (after extraction) 2020-06-17 11:28:48 +02:00
l10n daemon script ef53790eba SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-06-10 05:21:36 +02:00
Nate Graham 4ee6b5066d Merge branch 'release/20.04' 2020-06-09 13:16:33 -06:00
l10n daemon script cc452498e5 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-06-09 09:16:32 +02:00
Christoph Feck 6bb75da566 GIT_SILENT Update Appstream for new release
(cherry picked from commit 884b082aea)
2020-06-08 19:53:17 +02:00
Christoph Feck 884b082aea GIT_SILENT Update Appstream for new release 2020-06-08 19:53:16 +02:00
Albert Astals Cid 7a51799484 Merge remote-tracking branch 'origin/release/20.04' 2020-06-08 00:32:10 +02:00
Christoph Cullmann 3ad9fc7028 allow unicode filenames to work on Windows, too
BUG: 422500
2020-06-07 13:52:07 +02:00
l10n daemon script 0ff05b0e39 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-06-05 05:01:57 +02:00
Albert Astals Cid 8bd51cd97d Merge remote-tracking branch 'origin/release/20.04' 2020-06-03 09:04:30 +02:00
Albert Astals Cid 8460d34f34 pdf: fix memory leak when listing fonts 2020-06-02 22:55:45 +02:00
Albert Astals Cid 8d2fe2231d Merge remote-tracking branch 'origin/release/20.04' 2020-05-23 12:12:27 +02:00
Albert Astals Cid bb8de23468 CHM: Fix memory leak every time we open a file 2020-05-20 00:12:34 +02:00
Albert Astals Cid 4954395d08 PDF: Only enable the signatures without page feature with poppler 0.89
poppler 0.88 is crashy when using the signatures() method.

Use poppler's own version defines to check for 0.89 (since there's no
new api added in 0.89 we can't check it like the others)
2020-05-16 12:46:19 +02:00
Albert Astals Cid 4b1d85f81b Show signatures that don't belong to any page in the signature panel
Needs poppler 0.88, we "pretend" the belong to page 0 since in Okular
core there's no concept of having a signature that doesn't belong to any
page

BUGS: 415199
2020-05-13 21:21:52 +00:00
Albert Astals Cid b1c02b7e79 Markdown: Support internal links
When processing the <a> elements, store in two maps those that contain
an href="#Something" and those with name="Something" then once we've
processed them all, go over the first map trying to find itself in the
second

BUGS: 421163
2020-05-12 22:21:15 +00:00
Christoph Feck 3d148bd570 GIT_SILENT Update Appstream for new release 2020-05-11 23:14:44 +02:00
Christoph Feck 5e1f2c9a47 GIT_SILENT Update Appstream for new release
(cherry picked from commit 3d148bd570)
2020-05-11 23:14:44 +02:00
l10n daemon script ee0c3c0f17 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-05-11 06:20:55 +02:00
l10n daemon script 67b36f1cc2 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-05-10 10:48:45 +02:00
l10n daemon script 3b57e3a731 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-05-05 10:22:59 +02:00
l10n daemon script 0fe02f2e18 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-05-05 06:13:17 +02:00
l10n daemon script f353ed2a9b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-20 09:50:10 +02:00
l10n daemon script 5410a798c9 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-20 05:45:41 +02:00
Albert Astals Cid a4e044e6d6 tweak spacing to make clang-10 happier
The whole file is a mess, but in particular this was making a warning so
let's fix it
2020-04-19 17:29:35 +02:00
Albert Astals Cid 5abcbea617 Make clazy happy
Otherwise when CI gets a new enough poppler it'll start failing
2020-04-18 23:48:51 +02:00
Albert Astals Cid d8e4796830 Merge remote-tracking branch 'origin/release/20.04' 2020-04-16 00:06:40 +02:00
Albert Astals Cid 903cdec02b GIT_SILENT fix version
need to figure out a way to make this work :/
2020-04-16 00:06:00 +02:00
Christoph Feck 8fd53e5674 GIT_SILENT Update Appstream for new release
(cherry picked from commit c8dcf1fdea)
2020-04-15 11:06:58 +02:00
Christoph Feck c8dcf1fdea GIT_SILENT Update Appstream for new release 2020-04-15 11:06:58 +02:00
Albert Astals Cid cf42f391cc Merge remote-tracking branch 'origin/release/20.04' 2020-04-12 19:46:24 +02:00
Albert Astals Cid da24829ee2 djvu: Fix garbage on empty pages at "high" zoom levels
BUGS: 419962
2020-04-12 17:37:16 +02:00
Albert Astals Cid 25b6775468 Use ${KF5_REQUIRED_VERSION} also for ECM 2020-04-08 21:56:29 +02:00
l10n daemon script 1cea26861a SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-04 10:55:58 +02:00
l10n daemon script 3d69157736 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-04 06:34:17 +02:00
l10n daemon script b7c4f253bb SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-02 10:24:59 +02:00
l10n daemon script 1e3b058254 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2020-04-02 06:14:37 +02:00
Nicolas Fella 7d24a51e6a Launch okularkirigami directly instead of via kpackagelauncherqml 2020-03-29 12:39:19 +00:00
Albert Astals Cid f69e2114e7 Use poppler choicesWithExportValues if available 2020-03-28 23:12:08 +00:00
Albert Astals Cid 4019ec56e5 comicbook: Obey autotransform of images
BUGS: 410778
2020-03-04 19:07:03 +00:00
Albert Astals Cid 4964e7e42d Merge remote-tracking branch 'origin/release/19.12' 2020-03-02 22:22:06 +01:00
Christoph Feck a7876ca013 GIT_SILENT Update Appstream for new release 2020-03-01 10:37:27 +01:00
Albert Astals Cid af35ef4fbf Merge remote-tracking branch 'origin/release/19.12' 2020-02-23 22:33:56 +01:00
Albert Astals Cid 3720833be4 Enable clazy qstring-allocations 2020-02-21 17:45:03 +01:00
Albert Astals Cid 9a32bd354d Enable clazy raw-environment-function 2020-02-21 17:09:46 +01:00
Albert Astals Cid dcf8f79481 Enable clazy isempty-vs-count and qhash-with-char-pointer-key 2020-02-21 17:09:46 +01:00
Albert Astals Cid 46d1ba0e20 Enable clazy missing-qobject-macro 2020-02-21 17:09:46 +01:00
Albert Astals Cid 6d0d61c2ad Enable clazy copyable-polymorphic 2020-02-21 17:09:43 +01:00
Albert Astals Cid 93540ac16d Enable most of clazy level2 2020-02-21 14:57:48 +01:00