Commit graph

680 commits

Author SHA1 Message Date
Pino Toscano c8f85f0735 FindPoppler.cmake:
- fix the include path checking, now really using the cflags. tested with current HEAD (0.6), should work with 0.5.x as well
- fix the caching
CMakeLists.txt files:
- adapt to the include path fixes

svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=668612
2007-05-26 23:15:42 +00:00
Pino Toscano b4f2087279 SVN_SILENT remove stray endings
svn path=/trunk/KDE/kdegraphics/okular/; revision=668394
2007-05-26 08:50:40 +00:00
Pino Toscano 79ae8273e2 less warnings for poppler HEAD/0.6 users
svn path=/trunk/KDE/kdegraphics/okular/; revision=668328
2007-05-26 00:02:26 +00:00
Pino Toscano fb3fec647e the Poppler library is going to start the release cycle of the 0.6 serie, so s/HEAD/0_6/
svn path=/trunk/KDE/kdegraphics/okular/; revision=668326
2007-05-25 23:57:03 +00:00
Pino Toscano 37eb438999 restore compatibility with poppler 0.5.x
svn path=/trunk/KDE/kdegraphics/okular/; revision=668322
2007-05-25 23:39:31 +00:00
Albert Astals Cid f6b13e66fd adapt to poppler cvs head changes from seconds ago
i know this is not ifdefed, but tomorrow we are hopefully releasing poppler 0.6 RC and will require it ;-)

svn path=/trunk/KDE/kdegraphics/okular/; revision=668320
2007-05-25 23:23:23 +00:00
Pino Toscano 03fd060f3f lazy loading of links, their loading is expensive
svn path=/trunk/KDE/kdegraphics/okular/; revision=668319
2007-05-25 23:16:03 +00:00
Pino Toscano 06a37c61e9 use the debug area for all the debug messages of the generator
svn path=/trunk/KDE/kdegraphics/okular/; revision=668044
2007-05-24 21:58:50 +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
Pino Toscano 758daf07d1 connect() to finished() only once, and close the url of the khtml part after every usage
svn path=/trunk/KDE/kdegraphics/okular/; revision=667131
2007-05-21 22:38:15 +00:00
Pino Toscano de45467966 properly free the resources of a document when calling closeDocument(), not in the destructor of the generator or in loadDocument()
svn path=/trunk/KDE/kdegraphics/okular/; revision=667128
2007-05-21 22:26:37 +00:00
Pino Toscano e0f08ab3e9 delete the khtml part on destruction; remove unused #include
svn path=/trunk/KDE/kdegraphics/okular/; revision=667101
2007-05-21 21:20:27 +00:00
Dirk Mueller 37d03accd0 fix memory leak (CID 3620)
svn path=/trunk/KDE/kdegraphics/okular/; revision=666003
2007-05-18 14:35:55 +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
Albert Astals Cid 3bd28d1fbb fix indentation
svn path=/trunk/KDE/kdegraphics/okular/; revision=664727
2007-05-14 18:51:13 +00:00
David Faure 7404448320 needs qt3support; cleanups.
svn path=/trunk/KDE/kdegraphics/okular/; revision=664726
2007-05-14 18:47:19 +00:00
Albert Astals Cid 09d57691d7 a bit more corner case handling in paper size handling
svn path=/trunk/KDE/kdegraphics/okular/; revision=664721
2007-05-14 18:38:50 +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
Albert Astals Cid 61b3f856d0 fordwardport SVN commit 663027 by aacid:
Improve handling of page sizes when printing. 

svn path=/trunk/KDE/kdegraphics/okular/; revision=663034
2007-05-09 21:30:33 +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
Dirk Mueller 43a23a2de6 the usual "daily unbreak compilation"
svn path=/trunk/KDE/kdegraphics/okular/; revision=661101
2007-05-04 15:41:04 +00:00
Pino Toscano 106e96240c rename (almost) every ActionFoo class to FooAction
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction

svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
2007-05-02 22:50:27 +00:00
Pino Toscano 2654c1b16b set a proper WId for KWallet -- thanks Lubos for the kind remind :)
svn path=/trunk/KDE/kdegraphics/okular/; revision=659706
2007-04-30 17:13:58 +00:00
Luboš Luňák 6843ce2916 No default window argument to kwallet calls.
svn path=/trunk/KDE/kdegraphics/okular/; revision=659643
2007-04-30 15:04:29 +00:00
Urs Wolfer 30114716c4 adopt to new API
svn path=/trunk/KDE/kdegraphics/okular/; revision=659609
2007-04-30 13:49:23 +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
Albert Astals Cid 3ff1d4b9be adapt to poppler head change
svn path=/trunk/KDE/kdegraphics/okular/; revision=658743
2007-04-28 12:01:25 +00:00
Pino Toscano f61e86d542 Adapt to the recent changes in Poppler HEAD, mainly in the posibility to generate links anytime, and not just as a result of a pixmap generation.
svn path=/trunk/KDE/kdegraphics/okular/; revision=658738
2007-04-28 11:30:55 +00:00
Pino Toscano fa7ec200a4 this is no more needed
svn path=/trunk/KDE/kdegraphics/okular/; revision=658624
2007-04-27 22:57:08 +00:00
Pino Toscano 1248d82976 Keep it up to the recent poppler HEAD changes:
- add the title when printing
- add a print settings page for the rasterization option
both were already there in KPDF, just waiting for their counterpart in poppler.

svn path=/trunk/KDE/kdegraphics/okular/; revision=658608
2007-04-27 22:10:08 +00:00
Pino Toscano db817781c9 cache the font names instead of reinit them every time we want the information about fonts
svn path=/trunk/KDE/kdegraphics/okular/; revision=656936
2007-04-22 19:16:38 +00:00
Pino Toscano 7ad2256498 let poppler calculate width and height
svn path=/trunk/KDE/kdegraphics/okular/; revision=656830
2007-04-22 13:05:20 +00:00
Pino Toscano 76171e38e6 manual activate the antialiasing for both text and gfx, if using poppler HEAD
svn path=/trunk/KDE/kdegraphics/okular/; revision=656807
2007-04-22 12:17:46 +00:00
Laurent Montel c03c8f0c3c Remove not necessary include
svn path=/trunk/KDE/kdegraphics/okular/; revision=656802
2007-04-22 12:03:30 +00:00
Laurent Montel 44fbf99be0 Remove not necessary include
svn path=/trunk/KDE/kdegraphics/okular/; revision=656728
2007-04-22 08:11:41 +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
Pino Toscano 214883d582 free the resources when we close the document
svn path=/trunk/KDE/kdegraphics/okular/; revision=656214
2007-04-20 16:17:12 +00:00
Pino Toscano 84f7c0a6e3 own header first
svn path=/trunk/KDE/kdegraphics/okular/; revision=656162
2007-04-20 13:41:42 +00:00
Pino Toscano 0e12746a92 Link -> Action renaming.
TextDocumentConverter::addLink -> addAction
Document::processLink -> processAction

svn path=/trunk/KDE/kdegraphics/okular/; revision=656145
2007-04-20 12:49:17 +00:00
Pino Toscano 5f21b15d99 Link -> Action renaming.
Step #2: Link -> Action for the action hierarchy, and for the ObjectRect type.

svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +00:00
Pino Toscano f3e484082d Link -> Action renaming.
Step #1: link.(cpp|h) -> action.(cpp|h)

svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +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
Chusslove Illich 120e3a6d79 i18n fixes.
svn path=/trunk/KDE/kdegraphics/okular/; revision=655194
2007-04-17 22:05:28 +00:00
Pino Toscano 55a06c9b00 read the Open attribute from the poppler toc
the attribute is in poppler HEAD (future 0.6), but it's not incompatible with the 0.5.x serie

svn path=/trunk/KDE/kdegraphics/okular/; revision=654773
2007-04-16 21:35:34 +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
Albert Astals Cid 3f927c095a maks was right, zoom was the problem
It seems getRect returns always the rect at 100% zoom so use page->width() and not request->width() to calculate link rect positions

svn path=/trunk/KDE/kdegraphics/okular/; revision=652717
2007-04-11 21:41:33 +00:00
David Faure 728f386e95 extra ';'
svn path=/trunk/KDE/kdegraphics/okular/; revision=652580
2007-04-11 14:21:56 +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
Pino Toscano 29d515a996 adapt to the recent fix of Lubos to FindFreetype.cmake
svn path=/trunk/playground/graphics/okular/; revision=650464
2007-04-04 17:05:43 +00:00
Luboš Luňák cf3922d498 No kde_xget_temp_gc().
svn path=/trunk/playground/graphics/okular/; revision=649258
2007-04-02 12:18:51 +00:00
Albert Astals Cid 1c8453f629 remove accidental change
svn path=/trunk/playground/graphics/okular/; revision=648179
2007-03-30 17:57:14 +00:00
Albert Astals Cid 5365f79d6d fordwardport r648173 kpdf/branches/KDE/3.5/kdegraphics/kpdf/ (4 files in 3 dirs):
Give KMessageBoxes a parent widget.
DVI plugin is missing 4 messageboxes, some work has to be done to get them know the document() so they can call widget()

svn path=/trunk/playground/graphics/okular/; revision=648175
2007-03-30 17:46:50 +00:00
Brad Hards 5f09330e23 Find libqgs, even if it isn't installed.
CURRENT_SOURCE_DIR is playground/graphics/okular/generators/ghostview/
so ../libqgs would be
playground/graphics/okular/generators/libqgs
and ../../libqgs would be 
playground/graphics/okular/libqgs
so we need ../../../libqgs


svn path=/trunk/playground/graphics/okular/; revision=648055
2007-03-30 11:45:28 +00:00
Pino Toscano c953ca9927 now that kde depends on Qt4.3, reenable the xps generator by default
svn path=/trunk/playground/graphics/okular/; revision=648028
2007-03-30 09:32:08 +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 a54af96ed8 KProcess -> K3Process
svn path=/trunk/playground/graphics/okular/; revision=647321
2007-03-27 23:07:24 +00:00
Laurent Montel 9c9ee91dba Port to new api
svn path=/trunk/playground/graphics/okular/; revision=647114
2007-03-27 12:19:21 +00:00
Anne-Marie Mahfouf 1945d479ef that fixes the "undefined reference to `jpeg_std_error(jpeg_error_mgr*)'" error that several of us get
svn path=/trunk/playground/graphics/okular/; revision=646728
2007-03-26 14:49:13 +00:00
David Faure 0c1b5314e9 Use standard mimetype names from shared-mime-info
svn path=/trunk/playground/graphics/okular/; revision=644959
2007-03-21 11:39:20 +00:00
Pino Toscano a7abb688a3 - convert to the xdg mimetypes
- remove the self-installed mimetypes, as they are in freedesktop.org or in our db

svn path=/trunk/playground/graphics/okular/; revision=644840
2007-03-21 01:16:06 +00:00
Christian Ehrlicher c5c2da7c89 fix win32 compilation
warnings--

svn path=/trunk/playground/graphics/okular/; revision=643874
2007-03-18 17:14:36 +00:00
Pino Toscano c363cad735 this should hopefully fix the build
svn path=/trunk/playground/graphics/okular/; revision=643486
2007-03-17 15:53:51 +00:00
Pino Toscano f18845576b add the permission to fill forms
svn path=/trunk/playground/graphics/okular/; revision=643462
2007-03-17 14:14:55 +00:00
Tobias Koenig ef13da1225 Fixed the loading of documents where not all pages are referenced
via links. That's a bug which also exists in the original explode.c
demo app from plkr.org.

svn path=/trunk/playground/graphics/okular/; revision=643276
2007-03-16 19:11:13 +00:00
Tobias Koenig bc309799d7 Worked around some bugs in QTextCursor/Document, bug reports already sent to TT
svn path=/trunk/playground/graphics/okular/; revision=643230
2007-03-16 16:49:41 +00:00
Pino Toscano e321010e63 the plucker generators requires, libjpeg, so compile it only if libjpeg is found
use the right cmake variables instead of hardcoding the library name

svn path=/trunk/playground/graphics/okular/; revision=642611
2007-03-14 21:00:15 +00:00
Albert Astals Cid 6c75fd3203 No idea why it was a void * if it always was used as int.
This change makes it compile on amd64.

Tobias is the support complete? I tried a document from gutenberg website at it seems i don't get all content.
CCMAIL: tokoe@kde.org

svn path=/trunk/playground/graphics/okular/; revision=642294
2007-03-13 21:37:19 +00:00
Pino Toscano 61ace600ec extra ';'
svn path=/trunk/playground/graphics/okular/; revision=642284
2007-03-13 20:53:01 +00:00
Dirk Mueller 92628902bd pedantic--
svn path=/trunk/playground/graphics/okular/; revision=642236
2007-03-13 18:35:38 +00:00
Tobias Koenig bbab731ce0 Add plugin for the Plucker format (http://www.plkr.org/) which is used for
many eBooks. You can find sample files under http://www.gutenberg.org/

svn path=/trunk/playground/graphics/okular/; revision=641974
2007-03-13 00:00:58 +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 1bfc805a3e it does not make much sense to check for a serie of permissions at the same time, so just check one permission at a time
svn path=/trunk/playground/graphics/okular/; revision=641341
2007-03-10 23:59:11 +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
Pino Toscano c8f1b532f8 placeholder
svn path=/trunk/playground/graphics/okular/; revision=641192
2007-03-10 13:36:26 +00:00
Pino Toscano 24c56ef3d9 move most of the okular cmake configure stuff within the okular source tree
svn path=/trunk/playground/graphics/okular/; revision=641188
2007-03-10 13:15:49 +00:00
Brad Hards 61aa0d440d Switch the Text Extraction handler over to using
QXmlStreamReader. This still isn't working the way I would like -
looks to be something wrong in either the character selection or the
matrix transformation code.

Also implemented the "export to" text/plain.

svn path=/trunk/playground/graphics/okular/; revision=641156
2007-03-10 10:18:12 +00:00
Brad Hards 3c05813278 More conversion from DOM to QXmlStreamReader. Same functionality,
a little more debugging, and about half as much code.

svn path=/trunk/playground/graphics/okular/; revision=641126
2007-03-10 05:52:56 +00:00
Brad Hards b0039a0e11 Remove unused declaration.
svn path=/trunk/playground/graphics/okular/; revision=641121
2007-03-10 05:39:27 +00:00
Pino Toscano 9ccf6d520d adapt the icon names to the icon naming spec
svn path=/trunk/playground/graphics/okular/; revision=640710
2007-03-08 21:41:46 +00:00
Brad Hards 81a132092f Switch to using QXmlStreamReader (from Qt4.3) for
parsing. There is more of this to be done.

Also, use a debug area for the XPS generator.

svn path=/trunk/playground/graphics/okular/; revision=640442
2007-03-08 03:11:04 +00:00
Script Kiddy 9c27194383 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/graphics/okular/; revision=640317
2007-03-07 16:49:37 +00:00
Brad Hards 2610ad9755 temporarily disable XPS generator for Qt4.2 and
earlier. I'm switching to using a new XML parser
that is only going live in Qt4.3.

svn path=/trunk/playground/graphics/okular/; revision=639934
2007-03-06 10:25:42 +00:00
Pino Toscano 1ea8792482 Restore compatibility with Poppler 0.5.x.
svn path=/trunk/playground/graphics/okular/; revision=637077
2007-02-25 10:55:06 +00:00
Pino Toscano db8a10dc2c Preliminary supports for text and choice form fields.
This includes:
- the interfaces for the generators
- the basic widgets for editing their value
- a top bar for show/hide the forms of a document
- the implementation of the forms for the PDF backend
still nothing that can be done with them, nor the value of the forms can be saved...
... but it's a start! :-)

svn path=/trunk/playground/graphics/okular/; revision=637001
2007-02-25 00:07:59 +00:00
Brad Hards b6a3ab9a2c Fix a couple of crash bugs.
There was a problem with documents that have Story,
but no synopsis (TOC). There was also a double delete
problem - crash on exit or load of a second doc.

Also add in support for "Category" metadata.

svn path=/trunk/playground/graphics/okular/; revision=635540
2007-02-20 09:29:32 +00:00
Tobias Koenig 68e1c81b9a * Fixed the loading of chm documents (avoids crashes)
* Improved performance by creating text page/object rects only on first generatePixmap call
* Code cleanup

svn path=/trunk/playground/graphics/okular/; revision=635240
2007-02-19 14:58:08 +00:00
Tobias Koenig f6db3a7408 Replaced the kapp->processEvents magic by a clean nested QEventLoop
svn path=/trunk/playground/graphics/okular/; revision=635219
2007-02-19 13:23:59 +00:00
Brad Hards 642a841840 Add document synopsis for XPS.
I don't have a lot of documents that actually have a document
structure - it is optional in XPS. In fact, I did this code on just
one file - the XPS 1.0 spec itself.

CCMAIL: jiri.klement@gmail.com

svn path=/trunk/playground/graphics/okular/; revision=635167
2007-02-19 10:43:40 +00:00
Brad Hards f749c5dc22 Minor rethink on the colour parsing. If we have separate methods for
Pen and Brush, we can make sure that references make sense for the
kind of colour we're providing.

These might be candidates for more shared code later.


svn path=/trunk/playground/graphics/okular/; revision=634451
2007-02-17 11:18:06 +00:00
Brad Hards 999967935e Implement pen colour and size (Stroke and StrokeThickness
attributes). This allows us to correctly show objects that have an
outline (pen) colour that is different to the fill colour.

svn path=/trunk/playground/graphics/okular/; revision=634439
2007-02-17 10:45:07 +00:00
Brad Hards e29e44ff89 Store away the digital signature origin.
This prevents a warning on loading files containing
signatures, and is also a start towards proper handling
of digital signatures.

svn path=/trunk/playground/graphics/okular/; revision=634423
2007-02-17 09:56:08 +00:00
Brad Hards d5ec64e34c Add support for the Opacity attribute.
This allows the WPF_ZTRANS_001 example to render correctly
(with the green of the D showing through the number 2 shape).
There is still a problem with that example - it looks like
we aren't rendering the pen correctly.

CCMAIL: jiri.klement@gmail.com

svn path=/trunk/playground/graphics/okular/; revision=634416
2007-02-17 09:42:15 +00:00
Jiri Klement dbe7fea25a Fix memory leaks
svn path=/trunk/playground/graphics/okular/; revision=633346
2007-02-13 21:13:08 +00:00
Jiri Klement 065287322a Share fonts in whole xpsfile (not only xpspage)
svn path=/trunk/playground/graphics/okular/; revision=633189
2007-02-13 13:26:37 +00:00
Jiri Klement 1c545fb8cb Text extraction support
svn path=/trunk/playground/graphics/okular/; revision=633154
2007-02-13 11:13:35 +00:00
Pino Toscano ed3b44ad38 missing #include
svn path=/trunk/playground/graphics/okular/; revision=632935
2007-02-12 18:13:44 +00:00
Jiri Klement 4ea8794f52 ImageBrush rendering element: support for Viewbox, Viewport, Transform
svn path=/trunk/playground/graphics/okular/; revision=632844
2007-02-12 13:31:16 +00:00
Pino Toscano 90f1a9f5be properly use of loadDocument()/closeDocument()
svn path=/trunk/playground/graphics/okular/; revision=632333
2007-02-10 17:47:44 +00:00
Jiri Klement c8adc05145 Fix font size
svn path=/trunk/playground/graphics/okular/; revision=632330
2007-02-10 17:41:11 +00:00
Jiri Klement f0eaa1fbff Rewrite of page rendering. Now it respects context and actual work is done at the end of element so child elements are taken into account
svn path=/trunk/playground/graphics/okular/; revision=632324
2007-02-10 17:31:25 +00:00
Jiri Klement 411bf7d873 Fix separation of graphics elements (settings for path could affect glyphs)
svn path=/trunk/playground/graphics/okular/; revision=631815
2007-02-09 08:22:06 +00:00
Jiri Klement 55d67b9034 Fix memory leaks
svn path=/trunk/playground/graphics/okular/; revision=631812
2007-02-09 08:11:47 +00:00
Jiri Klement 03dc9c916c Page is now rendered on screen size so no additional scaling is necessary - better looking and faster rendering
svn path=/trunk/playground/graphics/okular/; revision=631669
2007-02-08 18:09:15 +00:00
Jiri Klement 74e912ea1f SVN_SILENT fix intendation
svn path=/trunk/playground/graphics/okular/; revision=631640
2007-02-08 16:41:53 +00:00
Jiri Klement 1de57323db Optimalize document loading. Now is used SAX instead of DOM for getting page size which reduced time to load document few times
svn path=/trunk/playground/graphics/okular/; revision=631634
2007-02-08 16:20:55 +00:00
Jiri Klement 53122db23d parseAbbreviatedData has be rewritten, now it supports almost all commands(except arc)
svn path=/trunk/playground/graphics/okular/; revision=631602
2007-02-08 15:07:54 +00:00
Brad Hards 8f3336d252 Patch from Jiri Klement, which fixes:
1) Loading of obfuscated fonts
2) Segmentation fault when xps document was opened and then another
xps documen was opend.
3) Load font only once, not everytime it's used

Also some white space changes from xemacs.

CCMAIL: jiri.klement@gmail.com

svn path=/trunk/playground/graphics/okular/; revision=630741
2007-02-06 07:07:23 +00:00
Pino Toscano d8748b118b SVN_SILENT unused parameter
svn path=/trunk/playground/graphics/okular/; revision=630701
2007-02-06 00:54:48 +00:00
Pino Toscano e158d82848 just #include in the cpp
svn path=/trunk/playground/graphics/okular/; revision=630078
2007-02-04 12:15:02 +00:00
Pino Toscano e31caf8334 bits
svn path=/trunk/playground/graphics/okular/; revision=630068
2007-02-04 11:47:41 +00:00
Pino Toscano e4d66e7cea unused #include's
svn path=/trunk/playground/graphics/okular/; revision=630062
2007-02-04 11:32:23 +00:00
Pino Toscano 6068c76df6 Merge the new functions of ThreadedGenerator into the base Generator: this means that there's again only a single base Generator that can provide the multithreading for the generation of contents, just pixmaps for now.
svn path=/trunk/playground/graphics/okular/; revision=628853
2007-01-31 18:31:19 +00:00
Pino Toscano 763bb521b7 make the loading of images from stdin working
svn path=/trunk/playground/graphics/okular/; revision=628833
2007-01-31 17:09:06 +00:00
Pino Toscano 72eea79ccd Small optimization: as PopplerQt4 currently has the limitation that links can be calculated only after a pixmap generation, then just do it once per page.
svn path=/trunk/playground/graphics/okular/; revision=628587
2007-01-30 13:57:11 +00:00
Pino Toscano fcf7e9aa4e waiting for a refactory, use or destroy the object rects created in the generation thread
svn path=/trunk/playground/graphics/okular/; revision=628577
2007-01-30 12:50:45 +00:00
Albert Astals Cid 4586139282 Adapt to kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=628342
2007-01-29 20:18:39 +00:00
Pino Toscano d37f6a80ff no need to include config.h anymore
svn path=/trunk/playground/graphics/okular/; revision=628210
2007-01-29 14:35:07 +00:00
Pino Toscano 23d666cf7f move the DRM skip checks to the Document
svn path=/trunk/playground/graphics/okular/; revision=628208
2007-01-29 14:28:58 +00:00
Tobias Koenig baf1fb2870 Several changes:
- renamed signalRequestDone to signalPixmapRequestDone to allow a future signalTextPageRequestDone
  - added error/warning/notice signals to TextDocumentConverter and add meaningful error messages
    to ooo and fictionbook generator
  - code cleanup in chm generator
  - print improvements and error notification in kimgio generator

svn path=/trunk/playground/graphics/okular/; revision=628124
2007-01-29 08:17:45 +00:00
Pino Toscano 55dfb87f3f simplify a bit the Feature system: move it to the base Generator class, and add a protected method to switch a feature on and off easily - no more need to copy&paste hasFeature() anymore
svn path=/trunk/playground/graphics/okular/; revision=627450
2007-01-26 16:35:30 +00:00
Pino Toscano 59f8fa67e5 ok i was wrong with this...
svn path=/trunk/playground/graphics/okular/; revision=627424
2007-01-26 14:58:34 +00:00
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
2007-01-26 00:28:59 +00:00
Tobias Koenig d227a94e79 First part of the porting to a threaded api for generators
- made comicbook, tiff and kimgio a threaded generator

svn path=/trunk/playground/graphics/okular/; revision=626761
2007-01-24 15:06:45 +00:00
Pino Toscano f7f9b3df41 create() -> createDevice() as per new kdelibs API
svn path=/trunk/playground/graphics/okular/; revision=626372
2007-01-23 01:02:17 +00:00
Pino Toscano a669609a00 less warnings when compiling with poppler 0.5.x
svn path=/trunk/playground/graphics/okular/; revision=626327
2007-01-22 20:59:15 +00:00
Pino Toscano b7ee07a424 read the page labels from poppler
svn path=/trunk/playground/graphics/okular/; revision=626057
2007-01-21 23:18:23 +00:00
Pino Toscano 2479bb7cb5 one more check, and try opening the file as first action
svn path=/trunk/playground/graphics/okular/; revision=625705
2007-01-20 21:20:58 +00:00
Pino Toscano 3d989381f9 don't look twice in the hash
svn path=/trunk/playground/graphics/okular/; revision=625703
2007-01-20 21:12:56 +00:00
Pino Toscano d0744fa204 use a feature from v18 only if we have it
svn path=/trunk/playground/graphics/okular/; revision=625656
2007-01-20 18:05:04 +00:00
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
2007-01-20 16:34:26 +00:00
Tobias Koenig e642b97c8c Make the generator multithreaded
svn path=/trunk/playground/graphics/okular/; revision=625262
2007-01-19 17:27:16 +00:00
Tobias Koenig 427325fef2 Don't print over the size of the page
svn path=/trunk/playground/graphics/okular/; revision=625254
2007-01-19 17:01:33 +00:00
Tobias Koenig 69557420a7 Add support for document internal links
svn path=/trunk/playground/graphics/okular/; revision=624979
2007-01-18 16:00:54 +00:00
Albert Astals Cid 317abde0f9 compile
svn path=/trunk/playground/graphics/okular/; revision=624729
2007-01-17 21:33:35 +00:00
Tobias Koenig deabbae3bf Say hello to the new ComicBook generator for okular.
Information about this format and testfiles can be found at
  http://en.wikipedia.org/wiki/CDisplay_RAR_Archived_Comic_Book_File


svn path=/trunk/playground/graphics/okular/; revision=624702
2007-01-17 18:49:05 +00:00
Pino Toscano 169b752433 make it compile properly
svn path=/trunk/playground/graphics/okular/; revision=624689
2007-01-17 18:05:06 +00:00
Pino Toscano 4f6666d509 also the page size is a feature, so thread it as such (and remove supportsPageSizes())
svn path=/trunk/playground/graphics/okular/; revision=624686
2007-01-17 18:02:53 +00:00
Pino Toscano a1b0e157c8 release the pointer of a done request
svn path=/trunk/playground/graphics/okular/; revision=624662
2007-01-17 16:39:01 +00:00
Pino Toscano 3a4e56015e no need to recalculate the links for every pixmap request
isolate the link+objectrect and annotation conversions into own functions 

svn path=/trunk/playground/graphics/okular/; revision=624659
2007-01-17 16:24:46 +00:00
Pino Toscano 135a18b407 get rid of supportsSearching() by using a proper feature
svn path=/trunk/playground/graphics/okular/; revision=624587
2007-01-17 11:58:20 +00:00
Pino Toscano 468a0da775 bye bye canGenerateTextPage(), unused nowadays
svn path=/trunk/playground/graphics/okular/; revision=624579
2007-01-17 11:34:47 +00:00
Tobias Koenig ce289e816d Port OOO generator to TextDocumentGenerator, so it supports text
extraction now as well

svn path=/trunk/playground/graphics/okular/; revision=623084
2007-01-13 23:59:46 +00:00
Tobias Koenig e1ab8660ef Add new TextDocumentGenerator class, which is a base class for
generators which work on a QTextDocument. So all the nasty calculation
for text extraction and link/annotation positions is done by the
generator.

Ported FictionBook generator to it.


svn path=/trunk/playground/graphics/okular/; revision=623071
2007-01-13 23:15:28 +00:00
Pino Toscano 5bd13f7c0e update the keep status only when really needed
svn path=/trunk/playground/graphics/okular/; revision=623026
2007-01-13 20:03:28 +00:00
Albert Astals Cid c9102c7cfd Add loadDocumentFromData method to the pdf backend.
You need poppler cvs version as of a few seconds ago to make it work

svn path=/trunk/playground/graphics/okular/; revision=622998
2007-01-13 17:59:22 +00:00
Pino Toscano 4f8724b62b Improve a bit the image generator, even if it's just a toy:
- use QImage instead of QPixmap, and save some QPixmap <-> QImage conversions
- make it able to read from raw data (read from stdin) as a simple example of the functionality

svn path=/trunk/playground/graphics/okular/; revision=622775
2007-01-12 23:03:12 +00:00
Pino Toscano ba36aa3953 fix broken blind porting
svn path=/trunk/playground/graphics/okular/; revision=621803
2007-01-09 20:16:04 +00:00
Laurent Montel 34edbef72d Port to new api
svn path=/trunk/playground/graphics/okular/; revision=621624
2007-01-09 11:02:04 +00:00
Tobias Koenig 53c97a481b Add generator plugin for the FictionBook format (http://en.wikipedia.org/wiki/FictionBook),
you can find documents e.g. under http://www.fictionbook.ru

svn path=/trunk/playground/graphics/okular/; revision=620876
2007-01-07 16:42:24 +00:00
Pino Toscano 2de89d6eb8 don't leak the format mask and the (empty) kdjvu
svn path=/trunk/playground/graphics/okular/; revision=620781
2007-01-07 10:46:50 +00:00
Pino Toscano 2d49a3c7ee the dvi generator optionally requires freetype
svn path=/trunk/playground/graphics/okular/; revision=620651
2007-01-06 21:14:13 +00:00
Pino Toscano 5636ac551f don't leak memory when loading page actions from poppler, and sound objects
svn path=/trunk/playground/graphics/okular/; revision=620533
2007-01-06 14:25:33 +00:00
Pino Toscano 18fab3d130 Improve the way we deal with generators that give the possibility to change the size of the pages: instead of let them destroy and recreate the pages (bad), ask them the sizes they support, then do the work ourselves and notify the generator when the work is done.
While I was at it, I changed from "paper size" to "page size", it should be better.

svn path=/trunk/playground/graphics/okular/; revision=620411
2007-01-05 23:12:06 +00:00
Pino Toscano 55d26ba370 no more initial rotation
svn path=/trunk/playground/graphics/okular/; revision=620317
2007-01-05 17:17:30 +00:00
Pino Toscano 4b922367e2 Use a proper enum to deal with orientation/rotation all around okular.
svn path=/trunk/playground/graphics/okular/; revision=620312
2007-01-05 17:09:47 +00:00
Tobias Koenig ac792e5c9c Fixed krazy issues
svn path=/trunk/playground/graphics/okular/; revision=619843
2007-01-04 15:22:28 +00:00
Tobias Koenig ea51ee18f5 Do a lot of include cleanups... we install all important
header files now

svn path=/trunk/playground/graphics/okular/; revision=619492
2007-01-03 14:30:48 +00:00
Pino Toscano 652787611d make it build with the new kdelibs
svn path=/trunk/playground/graphics/okular/; revision=619217
2007-01-03 00:17:31 +00:00
Tobias Koenig 86a1fd3b69 Big cleanup of Document API and documentation:
* add full API docs
 * renamed getMetaData -> metaData
 * removed supportsRotation in Document and Generator
 * moved Permission and SearchDirection enums into separated header core/global.h

svn path=/trunk/playground/graphics/okular/; revision=619183
2007-01-02 22:37:55 +00:00
Tobias Koenig 2aa8a4c31b Moved SourceReference into its own file
svn path=/trunk/playground/graphics/okular/; revision=619076
2007-01-02 17:45:32 +00:00
Pino Toscano 915a48eb4d move the Generator configuration stuff into a new ConfigInterface
svn path=/trunk/playground/graphics/okular/; revision=619061
2007-01-02 17:14:37 +00:00
Pino Toscano d9a844d67c move the GUI stuff out of Generator in an own GuiInterface, and adapt the ghostscript generator to its usage; renamed also some methods to more Qt4-ish names.
svn path=/trunk/playground/graphics/okular/; revision=619044
2007-01-02 16:40:22 +00:00
Pino Toscano 69cdc31727 SVN_SILENT unused parameters
svn path=/trunk/playground/graphics/okular/; revision=618233
2006-12-31 17:44:38 +00:00
Pino Toscano 5083655c11 Implement the page duration in presentation mode, and read the info from PDF documents.
svn path=/trunk/playground/graphics/okular/; revision=618136
2006-12-31 10:48:49 +00:00
Tobias Koenig 4fe8bdce53 Fixed free text selection for rotated pages
svn path=/trunk/playground/graphics/okular/; revision=617621
2006-12-29 18:18:07 +00:00
Albert Astals Cid 486095425b Master pino wants me to commit this
svn path=/trunk/playground/graphics/okular/; revision=617564
2006-12-29 15:04:07 +00:00
Pino Toscano 94c9ffa3d7 do not explicitely include document.h in generator.h
svn path=/trunk/playground/graphics/okular/; revision=617283
2006-12-28 16:45:50 +00:00
Pino Toscano 0594e78bdc make it compile correctly everywhere
svn path=/trunk/playground/graphics/okular/; revision=616997
2006-12-27 17:30:38 +00:00
André Wöbbeking 6e7d98b829 adapt to Aaron's kdelibs changes
svn path=/trunk/playground/graphics/okular/; revision=616901
2006-12-27 10:03:34 +00:00
Pino Toscano b7328d7234 add an handy DocumentViewport::isValid() and use it where possible instead of doing checks manually
svn path=/trunk/playground/graphics/okular/; revision=616667
2006-12-26 12:26:49 +00:00
Pino Toscano 536ebab639 SmallIconSet -> KIcon
DesktopIconSet -> KIcon
fix the #include's accordingly, where possible

svn path=/trunk/playground/graphics/okular/; revision=615251
2006-12-20 20:37:50 +00:00
Laurent Montel 06b79cdf27 Compile++
svn path=/trunk/playground/graphics/okular/; revision=614897
2006-12-19 12:23:43 +00:00
Tobias Koenig 6f9d0df5cd Further annotation API cleanup
svn path=/trunk/playground/graphics/okular/; revision=612395
2006-12-11 07:59:02 +00:00
Tobias Koenig a9f58440df First large commit for the Annotation API cleanup
* Moved all public member variables of Annotation to private
    and add accessors
  * Renamed RevScope and RevType to RevisionScope and RevisionType
  * Add API documentation (@pino, please review)

svn path=/trunk/playground/graphics/okular/; revision=610749
2006-12-05 11:05:50 +00:00
Tobias Koenig 0166264223 Add patch written by Leandro Emanuel Lopez which adds master-page-support
svn path=/trunk/playground/graphics/okular/; revision=610404
2006-12-04 07:54:09 +00:00
Tobias Koenig d276fc4aa1 Add support for annotations
@Pino: Can you write a big, green 'Yes' on the website, please? :)

svn path=/trunk/playground/graphics/okular/; revision=609168
2006-11-29 16:43:55 +00:00
Tobias Koenig 57139e3192 API cleanup (utils.h), renamed getDpiX -> dpiX() and getDpiY -> dpiY()
svn path=/trunk/playground/graphics/okular/; revision=608236
2006-11-27 08:13:47 +00:00
Tobias Koenig 9969547b0c * observer API cleanup
* removed NotifyRequest, that looked more like a hack than a solution
  (see comment in ghostscript generator)

svn path=/trunk/playground/graphics/okular/; revision=608235
2006-11-27 08:12:39 +00:00
Tobias Koenig d45d7b31b1 Performance improvement: parse content dom only once
svn path=/trunk/playground/graphics/okular/; revision=608234
2006-11-27 08:10:24 +00:00
Pino Toscano afa2e5a999 iterator -> const_iterator
svn path=/trunk/playground/graphics/okular/; revision=607842
2006-11-25 22:32:13 +00:00
Tobias Koenig a7b04cb92b Replaced
Page::setSearchPage( TextPage* );
  Page::hasSearchPage();

with

  Page::setTextPage( TextPage* );
  Page::hasTextPage();

to make the API clearer. The TextPage is not only used for
searching but also for extracting selected text, so the term
'search' is confusing...


svn path=/trunk/playground/graphics/okular/; revision=607195
2006-11-23 16:09:26 +00:00
Tobias Koenig 47636c5ae0 Improved support for href links, the calculation of the bounding
rect is correct now.

svn path=/trunk/playground/graphics/okular/; revision=607189
2006-11-23 15:48:05 +00:00
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
2006-11-20 22:48:44 +00:00
Pino Toscano aeab3273cf don't keep pointers to requests done that have been deleted
svn path=/trunk/playground/graphics/okular/; revision=606532
2006-11-20 18:12:42 +00:00
Pino Toscano 2a87f65ad4 fix sillyness
svn path=/trunk/playground/graphics/okular/; revision=606531
2006-11-20 18:10:09 +00:00
Tobias Koenig 76ea6f6564 The generator has to reswap the page height and width to create a pixmap
width default orientation

svn path=/trunk/playground/graphics/okular/; revision=606530
2006-11-20 18:02:35 +00:00
Pino Toscano a0d0f637cf try to keep compatibility with poppler 0.5.x
svn path=/trunk/playground/graphics/okular/; revision=606385
2006-11-20 09:14:37 +00:00
Pino Toscano 318c381780 adapt to the recent core API changes
svn path=/trunk/playground/graphics/okular/; revision=606384
2006-11-20 09:14:07 +00:00
Tobias Koenig a490cc0cd7 Add the following functionality:
* Bring QPixmap* back to make Albert happy ;)
 * Store only one QPixmap per page/size and rotate it directly
 * Rotate ObjectRects (boundary)
 * Rotate Annotations (point coordinates)
 * Don't reload pixmaps, ObjectRects and annotations on rotation

svn path=/trunk/playground/graphics/okular/; revision=606371
2006-11-20 07:53:32 +00:00
Albert Astals Cid 24651d3743 delete m_file when closing the documetn
svn path=/trunk/playground/graphics/okular/; revision=605995
2006-11-18 21:56:08 +00:00
Pino Toscano 732b6e9c6e use the return value of kprinter
svn path=/trunk/playground/graphics/okular/; revision=605939
2006-11-18 17:27:25 +00:00
Albert Astals Cid a0a387b121 Fordward port kpdf changes about printing margins, a poppler from 1 minute ago is needed
svn path=/trunk/playground/graphics/okular/; revision=605937
2006-11-18 17:09:24 +00:00
Pino Toscano d40ea02787 Read almost completely the pdfsync information for a PDF, if available.
Unfortunately, I have no source file for the pdfsync files I have, so maybe there could be some problems.
Feedback is welcome.

svn path=/trunk/playground/graphics/okular/; revision=605905
2006-11-18 15:10:40 +00:00