Pino Toscano
674c8536d3
read and apply the opacity for canvas
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825717
18 years ago
Pino Toscano
73c67b1822
read and apply the clipping for glyphs
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825710
18 years ago
Pino Toscano
4225aac69e
Read and apply the transformations of <PathGeometry> and <Canvas> elements.
...
Now lots more document (of the test suite) display better, yay! :)
(although, there are regressions in very few documents, but that is due to other unhandled stuff in them.)
svn path=/trunk/KDE/kdegraphics/okular/; revision=825707
18 years ago
Pino Toscano
dc827f1ff3
start reading the geometries child of the Path element;
...
introduce ah-hoc structores for handling them;
so far, read PolyLineSegment and PolyBezierSegment only
svn path=/trunk/KDE/kdegraphics/okular/; revision=825705
18 years ago
Pino Toscano
a2d22d791b
SVN_SILENT update comments
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825482
18 years ago
Pino Toscano
075f0302cd
consider also the Stroke child of Path elements
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825466
18 years ago
Pino Toscano
76af0c2c40
add a method to load entries from the archive, also in a case-insensitive way, and apply it for image and font loading
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825457
18 years ago
Pino Toscano
b81251ead3
I feel worth bumping the version to 0.2, after all the work that has been done for Okular0.7/KDE 4.1.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825378
18 years ago
Pino Toscano
aa0ceffea3
SVN_SILENT unused includes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825377
18 years ago
Pino Toscano
018045758f
do not draw text in some situations the XPS spec tell us to not do that:
...
- missing Fill attribute and Glyphs.Fill child element
- brush color with alpha == 0
- Opacity attribute explicitely 0
svn path=/trunk/KDE/kdegraphics/okular/; revision=825375
18 years ago
Pino Toscano
046637703b
slightly refactor absolutePath(), and optionally un-percent-encode if the path contains any '%' char
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825370
18 years ago
Pino Toscano
0e86eef685
the document relationship file can be splitted too, so take care of that
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825362
18 years ago
Pino Toscano
fdd5704f8f
do not draw text with fontsize of 0 (as the specs say)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825360
18 years ago
Pino Toscano
47b8d5ab9c
fix gradient stop reading conditions
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825354
18 years ago
Pino Toscano
a6b1f61a02
read and set the spread style of gradients
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825349
18 years ago
Pino Toscano
68a539c394
first try at reading the style simulation of a font
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825335
18 years ago
Pino Toscano
fbab823b45
read the join style and the miter limit of strokes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825313
18 years ago
Pino Toscano
8e417e7bc8
first try at reading dash pattern, dash offset, and cap style of strokes
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825305
18 years ago
Pino Toscano
4eb6413e37
pages can be interleaved in multiple files as well (10.1.2 in the specs)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825291
18 years ago
Pino Toscano
5c91487bbc
do not crash when requesting to load fonts we cannot load
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825287
18 years ago
Pino Toscano
af05a86e04
In case an image is not found, try uppercasing its extension and looking for it again.
...
(yay for case-insensitive contexts!)
svn path=/trunk/KDE/kdegraphics/okular/; revision=825261
18 years ago
Pino Toscano
f817bde307
Properly manage the gradient stops as the specs say;
...
parse the radial gradients.
svn path=/trunk/KDE/kdegraphics/okular/; revision=825253
18 years ago
Pino Toscano
0ff4a4a7a9
fix the H and V path operators
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825251
18 years ago
Pino Toscano
9ca9f0c791
do not crash when an image is not found in the archive
...
leave a TODO for different casing of requested vs existing file name
svn path=/trunk/KDE/kdegraphics/okular/; revision=825230
18 years ago
Pino Toscano
26b35e0fce
do not convert an image texture for brush to pixmap
...
try to activate threaded rendering for qt >= 4.2.2 [see notes]
svn path=/trunk/KDE/kdegraphics/okular/; revision=825099
18 years ago
Pino Toscano
0154ff9893
Parse and show linear gradients of brushes.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825088
18 years ago
Pino Toscano
90a664dba3
i think the viewport should be used here as well; fixed image y-alignment
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=825067
18 years ago
Pino Toscano
b8db72e6d9
Width and height of a page can be real values, not just integer.
...
BUG: 164822
svn path=/trunk/KDE/kdegraphics/okular/; revision=824976
18 years ago
Pino Toscano
3dc0752a93
SVN_SILENT add the TT task ID for Brad's image loading workaround
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784473
18 years ago
Pino Toscano
01f82d90b6
Better try to load the relationship file for a document in the XPS archive by using the name of the document itself.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=783797
18 years ago
Pino Toscano
85fef2f430
simplier way to extract the resource name from a "file name"
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=783759
18 years ago
Pino Toscano
a68ccfb893
Add 'revision' to the list of metadata we read from a document.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=783704
18 years ago
Pino Toscano
3b47f0dcdb
simplier way to say "white"...
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=783665
18 years ago
Pino Toscano
e66f4bb62e
According to the XPS specification, section 10.1.2, an XML file in the archive can be splitted in small sub-pieces placed with sequential names in a directory called like the XML file.
...
Handle this case for the relation parts, the references and the documents contents.
svn path=/trunk/KDE/kdegraphics/okular/; revision=783647
18 years ago
Pino Toscano
854f506617
Do not try to load an image from a path that really is a command for reading a combined image (image + color profile):
...
at the moment we do not support them, so just return an empty image.
svn path=/trunk/KDE/kdegraphics/okular/; revision=783632
18 years ago
Pino Toscano
610809d54b
Load the image from the absolute path.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=783627
18 years ago
Pino Toscano
ce1b9e5bb2
When loading the entries from the ZIP archive, we need to specify the "full path" inside them.
...
Though, there could be non-absolute (but relative to the file where they are) references:
so make sure to always create the absolute path of the resource we are going to load.
svn path=/trunk/KDE/kdegraphics/okular/; revision=783625
18 years ago
Pino Toscano
9e45d58aaf
adapt to the recent debug areas
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=752570
18 years ago
Pino Toscano
c6a6c3873d
better initialize the document structure to avoid crashing later
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=752566
18 years ago
Pino Toscano
6aa123656a
Port the plugin system to the standard KDE factory and loader, getting rid of the custom system okular had so far.
...
This requires a generator to have a
MyGenerator(QObject *parent, const QVariantList &args)
constructor in order to be successfully loaded.
The OKULAR_EXPORT_PLUGIN macro was adapted, and the generators to provide it the about data; the protected Generator::setAboutData() is no more needed.
Remove the 'lib' prefix from plugins, unneeded now.
CCMAIL: okular-devel@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=744169
19 years ago
Pino Toscano
15155d8824
Rename the virtual closeDocument() to doCloseDocument(), and make it protected.
...
Added a non-virtual closeDocument() in the base Generator class: this way, particular closing routines can be implemented in the "low level" of a generator.
Apart the renaming, the logic of doCloseDocument() remains the same.
CCMAIL: okular-devel@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=723046
19 years ago
Pino Toscano
e461f0c113
don't include kpixmapeffect.h
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=720047
19 years ago
Pino Toscano
7e150aeb43
don't leak the internal documents, but properly delete them
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=719297
19 years ago
Pino Toscano
48b2cad049
fixed wrong example in the apidox, and all the code that was done by copy&paste from it, basically...
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=705935
19 years ago
Laurent Montel
d7193013e2
Adapt to new KWarning/kFatal/kDebug api
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=695802
19 years ago
Pino Toscano
27e738f238
Start adding backend information to each generator.
...
Added them for DjVu, TIFF and XPS as a start.
Feel free to add them in the other generators, or to add your name if missing :)
CCMAIL: okular-devel@kde.org
svn path=/trunk/KDE/kdegraphics/okular/; revision=687842
19 years ago
Pino Toscano
a9900ec937
const& and simplify
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668039
19 years ago
Dirk Mueller
452ddeeb63
trying to fix a memory leak. strange API (CID 3642)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=665930
19 years ago
Tobias Koenig
06e831a3c9
Add a new method DocumentInfo::set( enum, QString ) to get more
...
consistency in the documentation info.
svn path=/trunk/KDE/kdegraphics/okular/; revision=664233
19 years ago
Pino Toscano
2e024d6d96
generalize a bit more the way for constructing "standard" ExportFormat's
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656426
19 years ago