Alexander Lohnau
2f193a63de
Convert license headers to SPDX
5 years ago
Laurent Montel
486e05b270
If include is define in .h remove it if it's defined in .cpp too (scripted)
5 years ago
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)
6 years ago
Christoph Cullmann
3ad9fc7028
allow unicode filenames to work on Windows, too
...
BUG: 422500
6 years ago
Albert Astals Cid
da24829ee2
djvu: Fix garbage on empty pages at "high" zoom levels
...
BUGS: 419962
6 years ago
Albert Astals Cid
93540ac16d
Enable most of clazy level2
6 years ago
Ahmad Samir
54494cc3d4
[generators/*] Replace deprecated foreach with range-for
6 years ago
Yuri Chornoivan
5478b2ec92
Fix minor typos
7 years ago
Yuri Chornoivan
c04ca1fa96
Fix minor EBN issues
8 years ago
Kevin Funk
a53a2402ca
clang-tidy: modernize-use-nullptr run
...
Semi-ACK'd by Albert :)
9 years ago
Albert Astals Cid
0419812ad7
djvu: Initialize to white if rendering fails
...
It's what ddjvu does, and also it's not nice to return an uninitialzed image back to the user
BUGS: 377202
9 years ago
Albert Astals Cid
7da5adce57
indent++
9 years ago
Martin T. H. Sandsmark
2b473fedbd
generators: Fix build without implicit cast to/from ascii
...
See previous commit for details.
10 years ago
Patrick Spendrin
37d5623102
Remove kdelibs4support from the generator plugins
...
This removes kdelibs4support for all generators except the mobipocket one.
The test executable for kimgio needs some windows fixes too, so I'll try
to make a separate review for that.
REVIEW: 126375
10 years ago
Montel Laurent
466eb79615
Use QStringLiteral
11 years ago
Montel Laurent
3b4ee788b8
Fix includes
12 years ago
Arnold Dumas
a92c9c31a5
Get rid of to/fromAscii methods.
12 years ago
Montel Laurent
fc13e5c148
Reactivate djvu generator
12 years ago
Frederik Gladhorn
6c602bf0e7
Use categorized logging even more
12 years ago
Frederik Gladhorn
83d3f1f6b7
Revert "Some more kDebug->qDebug"
...
Seems like kDebug doesn't spam the user, so this needs to use qCDebug.
This reverts commit 34fbdf8c85 .
12 years ago
Frederik Gladhorn
34fbdf8c85
Some more kDebug->qDebug
12 years ago
Pino Toscano
515f9c7ac1
resolve numeric destinations of outline items
...
pages can have identifiers made up only with numbers; this needs to be taken
into account when resolving the destination of outline items, otherwise the
previous algorithm would assume that a numeric destination is a page number,
and thus potentially accessing to wrong pages (and crashing)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1182195
16 years ago
Pino Toscano
00288db0ba
move the caching of the name->index page mapping to the private pageWithName()
...
so it can be reused within other methods in the private class
svn path=/trunk/KDE/kdegraphics/okular/; revision=1182194
16 years ago
Pino Toscano
7cf332a943
Check for errors after document loading.
...
BUG: 182971
svn path=/trunk/KDE/kdegraphics/okular/; revision=920671
17 years ago
Pino Toscano
25a414904a
djvu toc:
...
- add mapping for page id/name/title -> page
- properly get the destination for "named" destinations in toc items
this way we should recognize all the types of destinations in a djvu toc
svn path=/trunk/KDE/kdegraphics/okular/; revision=890963
18 years ago
Pino Toscano
b43fe1ce35
djvu toc:
...
- do not skip any entry
- better detection of the destination in case it is a page number, a page name or a url
- simplier handling of page numbers as destination
svn path=/trunk/KDE/kdegraphics/okular/; revision=890869
18 years ago
Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Pino Toscano
d51be3729b
add a way to disable the internal page cache, and disable it by default in the generator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=843095
18 years ago
Pino Toscano
2f12a3a3d6
allocate less temporary buffers; this should make the backend use less memory when rendering
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=843088
18 years ago
Pino Toscano
16b864fe24
statically allocate the format mask instead of creating+deleting
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=843087
18 years ago
Pino Toscano
27fc7f9144
Apply workaround as suggested by DjVuLibre's maintainer Leon Bottou to avoid a potential crash in rare situations.
...
The real fix should be applied already in DjVuLibre's CVS.
Thanks Leon!
BUG: 168030
svn path=/trunk/KDE/kdegraphics/okular/; revision=842846
18 years ago
Pino Toscano
c3bb88f01d
free the minilisp expression of the outline after the conversion to the dom document
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784821
18 years ago
Pino Toscano
57cbf9fa91
add dynamic getters and setters for color, comment and line width
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784136
18 years ago
Pino Toscano
2f985db7d0
Store the miniexp_t for annotations in the KDjVu::Annotation object directly, and parse all the properties there.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784025
18 years ago
Pino Toscano
823edf52b1
make KDjVu no more a QObject, and remove the traces of "async" loading (never really implemented)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=716072
19 years ago
Pino Toscano
ee925f2e58
add a postscript export overload that takes a QFile*, so we can properly use KTemporaryFile with printing
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709582
19 years ago
Pino Toscano
dea213be87
use the proper zero-method with DDJVUAPI_VERSION >= 18
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=695779
19 years ago
Pino Toscano
a9f0d2eb46
Try to extract the text entities (thus the text) from a DjVu document.
...
At the moment the granularuty of the extracted text is "word", as "char" is quite difficult to find in documents.
Kind of works, let's hope it will like all the documents around.
svn path=/trunk/KDE/kdegraphics/okular/; revision=695740
19 years ago
Pino Toscano
5150419e81
adapt the debug stuff to the new kdebug way:
...
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp
svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
19 years ago
Pino Toscano
59f8fa67e5
ok i was wrong with this...
...
svn path=/trunk/playground/graphics/okular/; revision=627424
19 years ago
Pino Toscano
2db51ef56b
Read information like 'title', 'author', 'editor', 'publisher', 'year' and 'volume' from DjVu documents, and make them visible in the Information dialog.
...
A big Thanks! to liquidat for pointing me in the right place to look for :)
CCMAIL: liquidat <liquidat@gmail.com>
svn path=/trunk/playground/graphics/okular/; revision=627217
19 years ago
Pino Toscano
2479bb7cb5
one more check, and try opening the file as first action
...
svn path=/trunk/playground/graphics/okular/; revision=625705
19 years ago
Pino Toscano
3d989381f9
don't look twice in the hash
...
svn path=/trunk/playground/graphics/okular/; revision=625703
19 years ago
Pino Toscano
d0744fa204
use a feature from v18 only if we have it
...
svn path=/trunk/playground/graphics/okular/; revision=625656
19 years ago
Pino Toscano
f0a80b14fc
Take a bit less time to load a DjVu document: instead of decoding all the pages during the loading to get their info, just decode their status, doing the real page loading when needed (usually when generating their pixmaps).
...
svn path=/trunk/playground/graphics/okular/; revision=625636
19 years ago
Pino Toscano
2de89d6eb8
don't leak the format mask and the (empty) kdjvu
...
svn path=/trunk/playground/graphics/okular/; revision=620781
19 years ago
Pino Toscano
5c0de8b638
Add printing support for DjVu files. (It is also PostScript exporting, as you can print to file to get a PS document.)
...
svn path=/trunk/playground/graphics/okular/; revision=606585
20 years ago
Pino Toscano
4f305424bc
read the annotations only once, ie when loading the pages
...
svn path=/trunk/playground/graphics/okular/; revision=605455
20 years ago
Pino Toscano
cb414fbf1d
remember, pino, remember: djvu coordinates refer to the lower-left corner of a page.
...
fix the coordinate loading for the annotations
svn path=/trunk/playground/graphics/okular/; revision=604204
20 years ago
Pino Toscano
28c63b44e8
read the 'width' info for lines
...
svn path=/trunk/playground/graphics/okular/; revision=604196
20 years ago