Commit graph

404 commits

Author SHA1 Message Date
Script Kiddy
cfd881c2ee SVN_SILENT made messages (.desktop file) 2011-08-16 15:21:46 +02:00
Pino Toscano
8585bb70ec bump versions of comicbook and xps generators 2011-07-19 23:49:52 +02:00
Script Kiddy
69ba0a3878 SVN_SILENT made messages (.desktop file) 2011-06-08 09:36:09 +02:00
Pino Toscano
89e7b03a3b xps: set the correct mimetype in the document properties 2011-06-05 00:06:05 +02:00
Pino Toscano
250abf31a0 xps: introduce parseRscRefPath()
use it to either parse an abbreviate path data or (in the future) read paths from resources;
call parseRscRefPath() instead of parseAbbreviatedPathData() directly
2011-06-04 23:32:52 +02:00
Pino Toscano
eff172bddd xps: ignore more elements when extracting text 2011-06-04 23:05:04 +02:00
Pino Toscano
f3799d700e xps: allow also 'e' when parsing numbers from path strings
it indicates the exponential part of a real number, e.g. "3.54824e-005"
2011-06-04 22:36:31 +02:00
Pino Toscano
31a2e0af57 xps: use readFileOrDirectoryParts() also when creating a text page
just like it is done when rendering

CCBUG: 274482
2011-06-04 20:52:46 +02:00
Pino Toscano
7e0cfa2319 xps: load fonts with readFileOrDirectoryParts()
apparently, even those can be split in multiple chunks

CCBUG: 274482
2011-06-04 20:19:39 +02:00
Pino Toscano
a4ba73feb1 xps: split loadFile() in loadEntry() + loadFile()
loadEntry() retains the main entry loading logic (with the case insensitivity),
return just generic KArchiveEntry pointers
loadFile() just calls loadEntry(), returning the result if the entry is a file
2011-06-04 20:05:06 +02:00
Pino Toscano
fbe0c0764f xps: more debug when parseAbbreviatedPathData() fails 2011-06-04 19:27:44 +02:00
Pino Toscano
505139af31 generators: fix core #includes removing the okular prefix 2011-06-01 10:51:36 +02:00
Script Kiddy
84cc400fd0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1231700
2011-05-13 07:09:13 +00:00
Script Kiddy
b815d7356d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1231185
2011-05-10 10:01:23 +00:00
Script Kiddy
805a8e7f89 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230986
2011-05-09 07:42:08 +00:00
Albert Astals Cid
e1ae8200d2 fix typo uncovereted by gcc4.6 new warnings
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230922
2011-05-08 18:18:03 +00:00
Script Kiddy
64b8965b35 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230852
2011-05-08 07:37:44 +00:00
Script Kiddy
1b38da667b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1230663
2011-05-06 07:24:37 +00:00
Script Kiddy
6754fbd1c4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1213671
2011-01-11 09:12:11 +00:00
Pino Toscano
e6b98db3d0 bump some generators version number to the values of the 4.5 branch, plus increase if there was work/fixes done
svn path=/trunk/KDE/kdegraphics/okular/; revision=1212170
2011-01-05 23:47:33 +00:00
Pino Toscano
adf32b88bf support also application/oxps, which is the new mimetype name for XPS documents
svn path=/trunk/KDE/kdegraphics/okular/; revision=1187566
2010-10-19 20:14:21 +00:00
Laurent Montel
28fff2c988 Install as programs
svn path=/trunk/KDE/kdegraphics/okular/; revision=1187515
2010-10-19 17:00:35 +00:00
David Faure
605c31e27c Make executable the Type=Application .desktop files we install,
so that they can be used even from a KDE running in another prefix (http://markmail.org/message/4p3krovtnzwx35zd)

svn path=/trunk/KDE/kdegraphics/okular/; revision=1182571
2010-10-04 23:51:07 +00:00
Albert Astals Cid
a2905602ae Protect us against "impossible" things (Qt not knowing a font we just added), probably fixes 250728
svn path=/trunk/KDE/kdegraphics/okular/; revision=1173928
2010-09-10 21:53:49 +00:00
Script Kiddy
34cef01317 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1150134
2010-07-15 07:11:30 +00:00
John Layt
b30305b668 Enable Current Page option in Okular print dialog if running Qt >= 4.7
Changed exported api so cc: to bindings.
CCMAIL: kde-bindings@kde.org

CCBUG: 194586


svn path=/trunk/KDE/kdegraphics/okular/; revision=1134379
2010-06-04 08:25:25 +00:00
Glen Kaukola
122fab0eee Krazy: Check single-char QString operations for efficiency.
svn path=/trunk/KDE/kdegraphics/okular/; revision=1110335
2010-04-02 19:07:36 +00:00
Script Kiddy
ff913d232f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1108213
2010-03-28 07:14:45 +00:00
Script Kiddy
bf36e688a5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1085570
2010-02-05 13:33:34 +00:00
Script Kiddy
ed49bc455a SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1066903
2009-12-28 10:28:21 +00:00
Script Kiddy
c2390f3197 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1065022
2009-12-22 10:04:12 +00:00
Script Kiddy
d819d858bd SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1053122
2009-11-23 10:50:42 +00:00
Script Kiddy
1f786797a6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1051910
2009-11-20 10:32:28 +00:00
Albert Astals Cid
eb9a8dc093 add some X-KDE-Keywords to okularApplication_*.desktop so Okular appears in krunner when searching those keywords
BUGS: 209983

svn path=/trunk/KDE/kdegraphics/okular/; revision=1038813
2009-10-21 22:35:07 +00:00
Script Kiddy
309a641160 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1024784
2009-09-17 09:31:35 +00:00
Script Kiddy
3d403bc66b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=1020829
2009-09-07 10:25:57 +00:00
Script Kiddy
00b149b380 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=997443
2009-07-15 20:30:11 +00:00
Pino Toscano
07e6cc3bb0 bump plugins versions to be in sync with kde 4.2 and, in case, consider more work being done
svn path=/trunk/KDE/kdegraphics/okular/; revision=989180
2009-06-29 17:01:24 +00:00
Script Kiddy
c6101baa9e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=985259
2009-06-22 14:14:42 +00:00
Script Kiddy
9f0d409189 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=972275
2009-05-24 13:44:10 +00:00
Brad Hards
78ef56d4b4 Improve text layout handling in XPS document generator.
Fixes bug 185532 (about RTL text), helps some more complex documents where characters often ended up overstriking characters from the next text run.

Add preliminary support for BiDi text.

OK'd by Pino at http://reviewboard.kde.org/r/715/

Blog request for additional testing produced no results, which I guess indicates a lack of interest.

svn path=/trunk/KDE/kdegraphics/okular/; revision=972031
2009-05-24 04:40:10 +00:00
Script Kiddy
af1302e36b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=969584
2009-05-18 13:49:56 +00:00
Script Kiddy
81e3526dab SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=966631
2009-05-11 17:13:40 +00:00
Albert Astals Cid
d796459fb6 Add some userMutex to remove some helgrind warnings
May or may not fix bug 190336
Please try once KDE 4.2.3 is out if this still crashes for you
CCBUG: 190336

svn path=/trunk/KDE/kdegraphics/okular/; revision=957819
2009-04-22 23:02:00 +00:00
Script Kiddy
fa136bc6db SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=944478
2009-03-25 15:35:35 +00:00
Script Kiddy
9a426d8fde SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=939261
2009-03-14 14:37:19 +00:00
Script Kiddy
febf292a6f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=936841
2009-03-08 14:39:28 +00:00
Script Kiddy
6b8fe9fc29 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=936377
2009-03-07 13:27:16 +00:00
Script Kiddy
5d813f6de2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=934678
2009-03-03 14:52:39 +00:00
Script Kiddy
048e7daded SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=923252
2009-02-08 14:12:18 +00:00
Script Kiddy
878fce954f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=917792
2009-01-28 15:05:40 +00:00
Pino Toscano
e468befe0f bump versions (sync with kde 4.2)
svn path=/trunk/KDE/kdegraphics/okular/; revision=907921
2009-01-08 22:01:53 +00:00
Script Kiddy
fdf4e64fae SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=899359
2008-12-20 14:40:16 +00:00
Script Kiddy
2eecd577ed SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=898588
2008-12-18 12:50:32 +00:00
Script Kiddy
7ac43b7aa5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=891618
2008-12-02 13:40:23 +00:00
Script Kiddy
2f35e0b6ed SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=884759
2008-11-15 18:56:39 +00:00
Script Kiddy
59ebe1b6b4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=882522
2008-11-10 21:25:09 +00:00
Pino Toscano
050d5c32cf void* -> QVariant conversion for the XpsRenderNode data
svn path=/trunk/KDE/kdegraphics/okular/; revision=857098
2008-09-04 17:30:56 +00:00
Pino Toscano
7c6998b8ad (oups) if the unicode string has no escape marking, return it as it is
svn path=/trunk/KDE/kdegraphics/okular/; revision=857093
2008-09-04 17:01:03 +00:00
Pino Toscano
97f75cf299 start to handle the Unicode strings in a single way as specified in the specs, 5.1.4
svn path=/trunk/KDE/kdegraphics/okular/; revision=856859
2008-09-03 22:58:52 +00:00
Pino Toscano
0ac1b55589 fill the rendering image only where needed
svn path=/trunk/KDE/kdegraphics/okular/; revision=850680
2008-08-22 00:41:17 +00:00
Pino Toscano
9308f9b1af SVN_SILENT i feel to have contributed in a significant way, so add me too
svn path=/trunk/KDE/kdegraphics/okular/; revision=841468
2008-08-03 10:31:56 +00:00
Pino Toscano
2eb4dd8147 - extract the painter-based paint procedure of the XpsPage in an own method
- add printing support for the XPS backend

svn path=/trunk/KDE/kdegraphics/okular/; revision=841450
2008-08-03 10:19:05 +00:00
Pino Toscano
2329f93b84 more qreal/double mismatches
svn path=/trunk/KDE/kdegraphics/okular/; revision=839972
2008-07-31 09:26:11 +00:00
Script Kiddy
9830f4e2aa SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=839175
2008-07-29 13:27:46 +00:00
Dirk Mueller
41afd26ba3 link all direct dependencies
svn path=/trunk/KDE/kdegraphics/okular/; revision=829219
2008-07-07 20:57:40 +00:00
Pino Toscano
64617bd429 implement the PolyQuadraticBezierSegment
svn path=/trunk/KDE/kdegraphics/okular/; revision=825763
2008-06-29 10:40:49 +00:00
Pino Toscano
674c8536d3 read and apply the opacity for canvas
svn path=/trunk/KDE/kdegraphics/okular/; revision=825717
2008-06-29 08:00:17 +00:00
Pino Toscano
73c67b1822 read and apply the clipping for glyphs
svn path=/trunk/KDE/kdegraphics/okular/; revision=825710
2008-06-29 04:26:09 +00:00
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
2008-06-29 03:09:08 +00:00
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
2008-06-29 02:15:17 +00:00
Pino Toscano
a2d22d791b SVN_SILENT update comments
svn path=/trunk/KDE/kdegraphics/okular/; revision=825482
2008-06-28 11:34:51 +00:00
Pino Toscano
075f0302cd consider also the Stroke child of Path elements
svn path=/trunk/KDE/kdegraphics/okular/; revision=825466
2008-06-28 10:58:57 +00:00
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
2008-06-28 10:15:43 +00:00
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
2008-06-27 23:57:25 +00:00
Pino Toscano
aa0ceffea3 SVN_SILENT unused includes
svn path=/trunk/KDE/kdegraphics/okular/; revision=825377
2008-06-27 23:51:45 +00:00
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
2008-06-27 23:44:33 +00:00
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
2008-06-27 23:10:18 +00:00
Pino Toscano
0e86eef685 the document relationship file can be splitted too, so take care of that
svn path=/trunk/KDE/kdegraphics/okular/; revision=825362
2008-06-27 22:36:14 +00:00
Pino Toscano
fdd5704f8f do not draw text with fontsize of 0 (as the specs say)
svn path=/trunk/KDE/kdegraphics/okular/; revision=825360
2008-06-27 22:18:00 +00:00
Pino Toscano
47b8d5ab9c fix gradient stop reading conditions
svn path=/trunk/KDE/kdegraphics/okular/; revision=825354
2008-06-27 21:18:09 +00:00
Pino Toscano
a6b1f61a02 read and set the spread style of gradients
svn path=/trunk/KDE/kdegraphics/okular/; revision=825349
2008-06-27 21:02:36 +00:00
Pino Toscano
68a539c394 first try at reading the style simulation of a font
svn path=/trunk/KDE/kdegraphics/okular/; revision=825335
2008-06-27 20:35:55 +00:00
Pino Toscano
fbab823b45 read the join style and the miter limit of strokes
svn path=/trunk/KDE/kdegraphics/okular/; revision=825313
2008-06-27 19:50:44 +00:00
Pino Toscano
8e417e7bc8 first try at reading dash pattern, dash offset, and cap style of strokes
svn path=/trunk/KDE/kdegraphics/okular/; revision=825305
2008-06-27 19:40:14 +00:00
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
2008-06-27 19:09:50 +00:00
Pino Toscano
5c91487bbc do not crash when requesting to load fonts we cannot load
svn path=/trunk/KDE/kdegraphics/okular/; revision=825287
2008-06-27 19:00:17 +00:00
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
2008-06-27 17:42:42 +00:00
Pino Toscano
f817bde307 Properly manage the gradient stops as the specs say;
parse the radial gradients.

svn path=/trunk/KDE/kdegraphics/okular/; revision=825253
2008-06-27 17:18:41 +00:00
Pino Toscano
0ff4a4a7a9 fix the H and V path operators
svn path=/trunk/KDE/kdegraphics/okular/; revision=825251
2008-06-27 17:15:05 +00:00
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
2008-06-27 16:37:58 +00:00
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
2008-06-27 12:38:06 +00:00
Pino Toscano
0154ff9893 Parse and show linear gradients of brushes.
svn path=/trunk/KDE/kdegraphics/okular/; revision=825088
2008-06-27 11:52:45 +00:00
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
2008-06-27 10:31:02 +00:00
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
2008-06-27 00:59:36 +00:00
Script Kiddy
f7b2f750a1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=822009
2008-06-18 21:38:20 +00:00
Jakob Petsovits
df5364da6c Copy Okular's app icon from Oxygen core as "okular",
in the hicolor namespace. Before, the non-specified
"graphics-viewer-document" icon was used, which caused
icon loaders from other toolkits not to find this icon
as they don't consider Oxygen by default.

Also update all the references that made use of the
"graphics-viewer-document" icon in the code and
the many .desktop files.

svn path=/trunk/KDE/kdegraphics/okular/; revision=819965
2008-06-12 18:51:36 +00:00
Script Kiddy
f9e3980c1d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=819275
2008-06-10 20:52:49 +00:00
Script Kiddy
603a72f1cd SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=817867
2008-06-06 21:49:00 +00:00
Script Kiddy
6048f67f48 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=815781
2008-06-02 15:15:51 +00:00
Script Kiddy
6ef155b9dc SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=813910
2008-05-28 21:41:08 +00:00
Script Kiddy
d8eabdac6f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=813139
2008-05-26 23:06:39 +00:00
Script Kiddy
c698399915 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=812441
2008-05-25 13:58:07 +00:00
Script Kiddy
5ef72af455 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=808730
2008-05-17 12:47:22 +00:00
Script Kiddy
bc8b45a24e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=806907
2008-05-12 14:41:46 +00:00
Script Kiddy
da6f2d204e SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=802309
2008-04-29 06:00:21 +00:00
Script Kiddy
135c3752f1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=799017
2008-04-20 03:05:18 +00:00
Script Kiddy
0b2775f527 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=794315
2008-04-07 02:20:55 +00:00
Script Kiddy
7d19cd2020 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=790906
2008-03-27 20:13:44 +00:00
Script Kiddy
3c387e94e9 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=790023
2008-03-25 18:48:04 +00:00
Script Kiddy
e81d64ff86 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=788506
2008-03-21 17:48:08 +00:00
Pino Toscano
3dc0752a93 SVN_SILENT add the TT task ID for Brad's image loading workaround
svn path=/trunk/KDE/kdegraphics/okular/; revision=784473
2008-03-11 12:57:43 +00:00
Script Kiddy
20edfaae91 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=784310
2008-03-10 22:14:58 +00:00
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
2008-03-09 16:09:31 +00:00
Pino Toscano
85fef2f430 simplier way to extract the resource name from a "file name"
svn path=/trunk/KDE/kdegraphics/okular/; revision=783759
2008-03-09 14:29:28 +00:00
Pino Toscano
a68ccfb893 Add 'revision' to the list of metadata we read from a document.
svn path=/trunk/KDE/kdegraphics/okular/; revision=783704
2008-03-09 10:06:44 +00:00
Pino Toscano
3b47f0dcdb simplier way to say "white"...
svn path=/trunk/KDE/kdegraphics/okular/; revision=783665
2008-03-09 02:51:10 +00:00
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
2008-03-09 00:54:49 +00:00
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
2008-03-08 23:45:02 +00:00
Pino Toscano
610809d54b Load the image from the absolute path.
svn path=/trunk/KDE/kdegraphics/okular/; revision=783627
2008-03-08 23:22:12 +00:00
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
2008-03-08 23:11:52 +00:00
Script Kiddy
51244e469c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=778798
2008-02-24 16:38:47 +00:00
Script Kiddy
81bea38964 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=776785
2008-02-18 20:28:23 +00:00
Script Kiddy
936171d955 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=774940
2008-02-14 13:05:08 +00:00
Script Kiddy
8b4d21d28f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=772852
2008-02-09 16:03:16 +00:00
Script Kiddy
28ef3c962f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=771981
2008-02-07 12:24:33 +00:00
Script Kiddy
1dab4c4aef SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=771585
2008-02-06 13:01:43 +00:00
Script Kiddy
c59b0d8eea SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=770815
2008-02-04 14:08:41 +00:00
Script Kiddy
918d28a86d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=769081
2008-01-31 13:26:39 +00:00
Script Kiddy
daad15e7d2 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=767676
2008-01-28 14:23:23 +00:00
Script Kiddy
51a1d75de3 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=767165
2008-01-27 13:31:32 +00:00
Script Kiddy
97b0fe6bdf SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=766697
2008-01-26 13:11:06 +00:00
Script Kiddy
75f203b82f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=765681
2008-01-24 13:44:24 +00:00
Script Kiddy
3e8a8d9d1d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=765166
2008-01-23 11:39:10 +00:00
Burkhard Lück
050d63153b unified the spelling of okular to Okular
svn path=/trunk/KDE/kdegraphics/okular/; revision=764676
2008-01-22 10:35:36 +00:00
Script Kiddy
0f9027a566 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=764259
2008-01-21 10:32:43 +00:00
Pino Toscano
88ea8c2992 Remove the X-DocPath key from the Application .desktop of the generators, so they won't show up in KHelpCenter.
svn path=/trunk/KDE/kdegraphics/okular/; revision=759080
2008-01-09 23:43:55 +00:00
Script Kiddy
c729c3d5db SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=758821
2008-01-09 10:38:24 +00:00
Script Kiddy
4109de93c1 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=757115
2008-01-04 08:41:36 +00:00
Script Kiddy
ff1e230a47 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=756424
2008-01-03 08:34:38 +00:00
Script Kiddy
eea72c12c4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=755851
2008-01-02 08:28:33 +00:00
Script Kiddy
c91bdf809c SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=755336
2008-01-01 08:09:23 +00:00
Script Kiddy
c878863fe7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=754564
2007-12-30 08:56:16 +00:00
Script Kiddy
4bc4f57855 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=753675
2007-12-28 07:59:25 +00:00
Pino Toscano
9e45d58aaf adapt to the recent debug areas
svn path=/trunk/KDE/kdegraphics/okular/; revision=752570
2007-12-24 22:09:22 +00:00
Pino Toscano
c6a6c3873d better initialize the document structure to avoid crashing later
svn path=/trunk/KDE/kdegraphics/okular/; revision=752566
2007-12-24 21:28:26 +00:00
Script Kiddy
270b737e0d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=751972
2007-12-23 08:32:07 +00:00
Script Kiddy
e3d71f162d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=747149
2007-12-11 07:45:22 +00:00
Script Kiddy
8d7e8be0c7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=745899
2007-12-07 08:14:18 +00:00
Pino Toscano
2354aebd55 remove the 'lib' prefix from the okularpart
make konqueror able to load again okular as embedded :/

svn path=/trunk/KDE/kdegraphics/okular/; revision=745740
2007-12-06 23:12:27 +00:00
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
2007-12-02 20:57:24 +00:00
Script Kiddy
4b1e246e87 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=743874
2007-12-02 08:05:31 +00:00
Allen Winter
1e34663484 remove deprecated Encoding
DocPath => X-DocPath
ServiceTypes => X-KDE-ServiceTypes
Keywords => X-KDE-Keywords

svn path=/trunk/KDE/kdegraphics/okular/; revision=737282
2007-11-15 22:38:18 +00:00
Script Kiddy
d9e6745bc7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=735260
2007-11-11 08:03:34 +00:00
Script Kiddy
4973559541 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=729164
2007-10-25 07:10:56 +00:00
Pino Toscano
3237f94761 use 'graphics-viewer-document' as icon in our .desktop files
svn path=/trunk/KDE/kdegraphics/okular/; revision=728493
2007-10-23 13:12:33 +00:00
Script Kiddy
d5fcbc09a8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=724043
2007-10-11 08:09:20 +00:00
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
2007-10-08 16:46:51 +00:00
Script Kiddy
d5dc96cb3b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=720951
2007-10-04 05:56:53 +00:00
Pino Toscano
e461f0c113 don't include kpixmapeffect.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=720047
2007-10-02 08:05:52 +00:00
Pino Toscano
7e150aeb43 don't leak the internal documents, but properly delete them
svn path=/trunk/KDE/kdegraphics/okular/; revision=719297
2007-09-30 20:51:19 +00:00
Script Kiddy
44dd16d127 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=717659
2007-09-27 09:33:48 +00:00
Script Kiddy
63b6301d12 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=714636
2007-09-20 05:45:54 +00:00
Script Kiddy
4c9b70db9d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=711908
2007-09-13 05:55:31 +00:00
Pino Toscano
ef3769ea5b DocPath -> X-DocPath for .desktop of type Application
svn path=/trunk/KDE/kdegraphics/okular/; revision=709100
2007-09-06 15:07:23 +00:00
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
2007-08-28 23:27:37 +00:00
Script Kiddy
a550d8c0d4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=705612
2007-08-28 07:29:37 +00:00
Script Kiddy
a688f5b331 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=702203
2007-08-20 07:38:48 +00:00
Laurent Montel
d7193013e2 Adapt to new KWarning/kFatal/kDebug api
svn path=/trunk/KDE/kdegraphics/okular/; revision=695802
2007-08-02 23:54:14 +00:00
Script Kiddy
b998bc9491 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=695423
2007-08-02 04:55:35 +00:00
Laurent Montel
2e59ada023 change XDG_APPS_DIR -> XDG_APPS_INSTALL_DIR, XDG_DIRECTORY_DIR->XDG_DIRECTORY_INSTALL_DIR, DBUS_INTERFACES_DIR->DBUS_INTERFACES_INSTALL_ DIR, DBUS_SERVICES_DIR->DBUS_SERVICES_INSTALL_DIR to have same naming convention as discussed with Alex.
svn path=/trunk/KDE/kdegraphics/okular/; revision=691222
2007-07-23 07:05:28 +00:00
Script Kiddy
0fc32d6b18 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=689368
2007-07-18 05:47:51 +00:00
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
2007-07-14 14:00:19 +00:00
Script Kiddy
c1a3a10aa0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=686774
2007-07-12 05:01:50 +00:00
Script Kiddy
94e66ff910 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=686331
2007-07-11 04:57:14 +00:00
Allen Winter
5110d1d3f2 remove kde4_automoc()
svn path=/trunk/KDE/kdegraphics/okular/; revision=686063
2007-07-10 14:11:49 +00:00
Script Kiddy
ac29f76f55 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=684724
2007-07-07 04:51:50 +00:00
Script Kiddy
9fb2221299 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=679853
2007-06-25 05:24:26 +00:00
Stephan Binner
2eccd176e2 make .desktop files valid
svn path=/trunk/KDE/kdegraphics/okular/; revision=678982
2007-06-22 17:51:04 +00:00
Script Kiddy
7c8a8bce4f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=678711
2007-06-22 05:13:04 +00:00
Script Kiddy
3211dbbaf5 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=678319
2007-06-21 05:01:46 +00:00
Pino Toscano
a9900ec937 const& and simplify
svn path=/trunk/KDE/kdegraphics/okular/; revision=668039
2007-05-24 21:22:25 +00:00
Script Kiddy
9984a73c33 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=667190
2007-05-22 05:16:03 +00:00
Dirk Mueller
452ddeeb63 trying to fix a memory leak. strange API (CID 3642)
svn path=/trunk/KDE/kdegraphics/okular/; revision=665930
2007-05-18 11:49:19 +00:00
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
2007-05-13 12:54:46 +00:00
Script Kiddy
1d727e66f6 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=662419
2007-05-08 05:06:32 +00:00
Script Kiddy
46781db872 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=658969
2007-04-29 05:00:55 +00:00
Pino Toscano
2e024d6d96 generalize a bit more the way for constructing "standard" ExportFormat's
svn path=/trunk/KDE/kdegraphics/okular/; revision=656426
2007-04-21 11:09:41 +00:00
Jiri Klement
afa1902c78 Fixed wrong rendering size of images which don't have dpi specified. I had to use workaround described in loadImageFromFile method
svn path=/trunk/KDE/kdegraphics/okular/; revision=656095
2007-04-20 09:15:00 +00:00
Albert Astals Cid
0d47b62715 krazy include order issues
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Jiri Klement
6147136895 Unpack page source completely before rendering. It's possible that another file from zip will be required during rendering (font, image, ...), but KZip doesn't allow simuntanelous reading of more than one file.
svn path=/trunk/KDE/kdegraphics/okular/; revision=655840
2007-04-19 14:38:03 +00:00
Jiri Klement
0b77d7011c Fixed parsing of abbreviated data - now it don't freeze in case of wrong data in xps
svn path=/trunk/KDE/kdegraphics/okular/; revision=654647
2007-04-16 17:53:15 +00:00
Script Kiddy
2e5b353482 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=652113
2007-04-10 05:01:48 +00:00
David Jarvie
6ccde0505c Add fancy date option to KLocale::formatDate(), KLocale::formatDateTime()
svn path=/trunk/KDE/kdegraphics/okular/; revision=652038
2007-04-09 23:36:26 +00:00
Script Kiddy
e54cfd797f SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=651276
2007-04-07 04:57:03 +00:00
Albert Astals Cid
55a67a082e Each plugin installs a application desktop so that the supported mimetypes are exactly the ones supported by the plugins installed
svn path=/trunk/KDE/kdegraphics/okular/; revision=651194
2007-04-06 21:47:06 +00:00
David Faure
06d18ea3cc Make it possible to compile all of playground in one go (but also still to compile it like before, of course).
-> CMAKE_SOURCE_DIR replaced with CMAKE_CURRENT_SOURCE_DIR.
Remove module-wide config.h files, unused yet, but better remove the temptation.

svn path=/trunk/playground/graphics/okular/; revision=647336
2007-03-28 00:22:51 +00:00
Pino Toscano
88006a575b extract the messages of each generator into an own pot: this way it's easier to translate a single backend (or provide the translation for a custom one), but as drawback some strings are repeated in more than one pot
svn path=/trunk/playground/graphics/okular/; revision=641620
2007-03-12 00:26:41 +00:00
Brad Hards
3716cc9eb3 Minor cleanups - make debugging more informative, a spello
fix, and put a line break between pages in text dumps.

svn path=/trunk/playground/graphics/okular/; revision=641360
2007-03-11 01:14:33 +00:00
Pino Toscano
3507d4e68f use the new Okular::ExportFormat::plainText()
svn path=/trunk/playground/graphics/okular/; revision=641321
2007-03-10 22:09:23 +00:00