Commit graph

619 commits

Author SHA1 Message Date
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
Pino Toscano 274469dae8 Almost complete support for inverse search within okular.
THe system generally works; what is missing is a good activating strategy (added in TODO - our usability expert is working on that), and a GUI to configure the editor.
The DVI backend was adapted to use this new feature.
(The PDF backend will use it soon.)

svn path=/trunk/playground/graphics/okular/; revision=605708
2006-11-17 22:15:15 +00:00
Albert Astals Cid 0266470364 *** applying this patch ***
trunk/KDE/kdegraphics/kghostview/dscparse.cpp

SVN commit 605597 by mueller:

- fix off-by-one issue during parsing certain ps files

svn path=/trunk/playground/graphics/okular/; revision=605672
2006-11-17 18:22:18 +00:00
Tobias Koenig eba7da2a4a Prevent crash if fileName is empty
svn path=/trunk/playground/graphics/okular/; revision=605630
2006-11-17 15:53:26 +00:00
Tobias Koenig 6c53e576b6 Add support for printing of TIFF documents
svn path=/trunk/playground/graphics/okular/; revision=605625
2006-11-17 15:21:40 +00:00
Tobias Koenig 07167f1e24 SVN_SILENT code cleanup
svn path=/trunk/playground/graphics/okular/; revision=605624
2006-11-17 15:21:19 +00:00
Pino Toscano 4f305424bc read the annotations only once, ie when loading the pages
svn path=/trunk/playground/graphics/okular/; revision=605455
2006-11-16 19:52:04 +00:00
Pino Toscano 0d7f4d49d2 adapt to the recent poppler-qt4 changes, and maintain the compatibility with poppler 0.5.x
svn path=/trunk/playground/graphics/okular/; revision=605210
2006-11-15 21:14:50 +00:00
Pino Toscano 673fe63610 generate an uid for the djvu annotations
svn path=/trunk/playground/graphics/okular/; revision=604290
2006-11-12 12:43:42 +00:00
Pino Toscano 9a232e9d88 SVN_SILENT typo
svn path=/trunk/playground/graphics/okular/; revision=604211
2006-11-12 00:53:48 +00:00
Pino Toscano de6d8eaf1d update
svn path=/trunk/playground/graphics/okular/; revision=604210
2006-11-12 00:52:31 +00:00
Pino Toscano 5731b36fe5 the text is needed in this field, too, for the moment
svn path=/trunk/playground/graphics/okular/; revision=604209
2006-11-12 00:48:59 +00:00
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
2006-11-11 23:52:12 +00:00
Pino Toscano 28c63b44e8 read the 'width' info for lines
svn path=/trunk/playground/graphics/okular/; revision=604196
2006-11-11 23:23:07 +00:00
Pino Toscano 825c725eaf change the internal KDjVu data storage to an hash of variants
svn path=/trunk/playground/graphics/okular/; revision=604173
2006-11-11 20:34:07 +00:00
Pino Toscano 132daba86a update with some annotation stuff
svn path=/trunk/playground/graphics/okular/; revision=604168
2006-11-11 19:25:09 +00:00
Pino Toscano 0c4a081174 Add preliminary support for DjVu Text and Line annotations.
This means we can read them almost correctly, but there are some problems with placements and colors.

svn path=/trunk/playground/graphics/okular/; revision=604165
2006-11-11 19:15:58 +00:00
Pino Toscano a29cbda39e The DjVu backend can now read hyperlinks whose url is decoded as "(url href target)".
svn path=/trunk/playground/graphics/okular/; revision=604073
2006-11-11 14:22:41 +00:00
Pino Toscano 5adbe4c66f there's no more need for libtool files
svn path=/trunk/playground/graphics/okular/; revision=603923
2006-11-10 20:03:50 +00:00
Tobias Koenig 16ca81993f Applyed patch written by Leandro Emanuel Lopez which adds plain text and
pdf export to ooo generator.

CCMAIL:okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=602249
2006-11-05 14:52:04 +00:00
Tobias Koenig bea71df6e0 * Made image rotation asynchronous
* Changed Page API and PagePainter to work only with QImage

svn path=/trunk/playground/graphics/okular/; revision=601581
2006-11-03 17:57:32 +00:00
Albert Astals Cid e113d48bf3 I need this so that print and print preview of a landscape pdf work
wonder why the orientation-request thing does not work anymore

svn path=/trunk/playground/graphics/okular/; revision=601061
2006-11-01 22:24:57 +00:00
Albert Astals Cid 46ac215751 Now that i fixed kdeprint i can ensure that Pino's change was wrong and PageSize is what we want
svn path=/trunk/playground/graphics/okular/; revision=600500
2006-10-30 19:47:03 +00:00
Pino Toscano e43d62afff old, limited and replaced by the tiff one (was already disabled since some time)
svn path=/trunk/playground/graphics/okular/; revision=600116
2006-10-29 15:44:45 +00:00
Pino Toscano 0a2d8a0d65 use Utils::getDpi(X|Y), less header include
svn path=/trunk/playground/graphics/okular/; revision=600110
2006-10-29 15:35:57 +00:00
Pino Toscano 1b501cd8d2 add missing copyright statement
svn path=/trunk/playground/graphics/okular/; revision=600108
2006-10-29 15:30:45 +00:00
Holger Freyther 569e93b929 oKular: Add method(s) to get the DPI of the primary screen
some generators use QX11Info to get the DPI of the display.
    Obviously this is not portable, add a getDpi? method to utils
    which can be used by generators.
    Currently only the DVI converter is converted.
    The CMakeLists.txt change assumes that non existing variables
    gets expanded to empty strings.

svn path=/trunk/playground/graphics/okular/; revision=600099
2006-10-29 15:08:18 +00:00
Pino Toscano a49e75edeb const
svn path=/trunk/playground/graphics/okular/; revision=600089
2006-10-29 14:20:24 +00:00
Pino Toscano 51dd1dc328 this should be more correct, although not working either
svn path=/trunk/playground/graphics/okular/; revision=599984
2006-10-29 11:34:15 +00:00
Pino Toscano c89e93c974 the clear button is no more needed
svn path=/trunk/playground/graphics/okular/; revision=599856
2006-10-28 20:16:13 +00:00
Pino Toscano 8def2109ec change the metaData() function of the Generator to use QVariant as type for the returned value and for the 'option' parameter, this gives more flexibility
svn path=/trunk/playground/graphics/okular/; revision=599847
2006-10-28 19:18:36 +00:00
Pino Toscano 9a2b938431 Add support for the directive to open the table of contents when opening a document, used in PDFs.
svn path=/trunk/playground/graphics/okular/; revision=599835
2006-10-28 18:21:55 +00:00
Pino Toscano 4c3d96c193 make the rotation working almost again
svn path=/trunk/playground/graphics/okular/; revision=599808
2006-10-28 16:47:33 +00:00
Pino Toscano a3667a7202 make the rotation work again
svn path=/trunk/playground/graphics/okular/; revision=599799
2006-10-28 16:24:16 +00:00
Pino Toscano 9b5a184aa3 delete the old rotation code and make this generator working again
svn path=/trunk/playground/graphics/okular/; revision=599791
2006-10-28 16:08:08 +00:00
Pino Toscano 90ee1a0547 convert to generate page images and not pixmaps
svn path=/trunk/playground/graphics/okular/; revision=599786
2006-10-28 15:57:58 +00:00
Albert Astals Cid d6c251a752 setPixmap -> setImage
svn path=/trunk/playground/graphics/okular/; revision=599765
2006-10-28 14:21:51 +00:00
Pino Toscano 66b5ef51f3 show a 'keep password' checkbox when using a wallet so the user ca decide if he wants the password saved in the wallet.
Implements KPDF wish #122605.

svn path=/trunk/playground/graphics/okular/; revision=599715
2006-10-28 10:32:46 +00:00
Pino Toscano eb83fc5d27 adapt the djvu generator (and kdjvu) to handle images instead of pixmaps
add a basic TODO

svn path=/trunk/playground/graphics/okular/; revision=599108
2006-10-25 19:42:30 +00:00
Tobias Koenig a375953402 Adapt ghostview, kimgio, pdf, dvi, chm, xps and ooo generators to setImage()
svn path=/trunk/playground/graphics/okular/; revision=599090
2006-10-25 17:43:15 +00:00
Tobias Koenig d22b2f1892 A rather big change:
* Hide as much private API as possible in Generator, PixmapRequest and ExportEntry/Format
 * Renamed ExportEntry to ExportFormat and made it value based
 * Removed canExportToText() and exportToText() from Generator API and implemented this
   functionality in exportFormats()/exportTo() in the generators
 * Removed the orientation parameter from PixmapRequest and let the Document handle the rotation
   of the page (pixmap) instead

CCMAIL:okular-devel@kde.org

svn path=/trunk/playground/graphics/okular/; revision=599058
2006-10-25 15:35:53 +00:00
Pino Toscano a62cd3aa2f The internal search is a pretty bad concept, as the Document provides it for free
svn path=/trunk/playground/graphics/okular/; revision=598553
2006-10-23 22:26:31 +00:00
Pino Toscano de3d0468ab use the new kdelibs (adding a caption)
svn path=/trunk/playground/graphics/okular/; revision=598477
2006-10-23 17:55:18 +00:00
Laurent Montel acb44a49d5 Apply Alex patch (now we can use enable-final argument
some module compiles with enable-final now)
As discussed with Alex it's not necessary to have program name
into automoc macro

svn path=/trunk/playground/graphics/okular/; revision=598341
2006-10-23 09:29:10 +00:00
Tobias Koenig 65eae2664a Fixed generation of 'table of contents'
svn path=/trunk/playground/graphics/okular/; revision=598329
2006-10-23 08:54:58 +00:00
Pino Toscano 4c0808fabf a bit less of #include's
svn path=/trunk/playground/graphics/okular/; revision=598229
2006-10-22 23:00:39 +00:00
Pino Toscano 18028a8a2c API change in the Generator: use an empty construct, and set the document for the generator right after its construction.
Add a protected method to get the document, and hide the real document pointer as private, so the generators can't redefine it.

svn path=/trunk/playground/graphics/okular/; revision=598025
2006-10-22 11:25:08 +00:00
Pino Toscano cc3de8c899 fix typo in license
svn path=/trunk/playground/graphics/okular/; revision=597879
2006-10-21 22:10:09 +00:00
Pino Toscano ed84916c0d spell checking
svn path=/trunk/playground/graphics/okular/; revision=597875
2006-10-21 22:07:05 +00:00
Pino Toscano bbcb217a19 foo(QString) -> foo(const QString&)
svn path=/trunk/playground/graphics/okular/; revision=597872
2006-10-21 21:57:43 +00:00
Pino Toscano 300d2a19d1 less includes
svn path=/trunk/playground/graphics/okular/; revision=597871
2006-10-21 21:51:05 +00:00
Pino Toscano 9093fb49ac forward declaration
svn path=/trunk/playground/graphics/okular/; revision=597779
2006-10-21 15:44:21 +00:00
Albert Astals Cid 47423021dc fix my broken fix to tokoe's change
svn path=/trunk/playground/graphics/okular/; revision=597679
2006-10-21 11:30:55 +00:00
Albert Astals Cid 9bcad073c7 remove spanish debug message
svn path=/trunk/playground/graphics/okular/; revision=597675
2006-10-21 11:06:02 +00:00
Pino Toscano 2fdca9ed0e old stuff
svn path=/trunk/playground/graphics/okular/; revision=597610
2006-10-20 23:25:07 +00:00
Albert Astals Cid f6fc0a8944 tokoe messed up this, fix it
svn path=/trunk/playground/graphics/okular/; revision=597536
2006-10-20 17:19:47 +00:00
Tobias Koenig fccd412d69 * Added documentation to Generator API
* Moved all implementations to generator.cpp
 * Added 'const' where it make sense
 * Adapted all generators (except gs)

svn path=/trunk/playground/graphics/okular/; revision=597525
2006-10-20 16:51:46 +00:00
Pino Toscano 78809ba627 use better a regexp
svn path=/trunk/playground/graphics/okular/; revision=597319
2006-10-19 21:58:06 +00:00
Albert Astals Cid fe0e06e54c There is no need to load all text at the beginning as okular does the text extraction on-demand
svn path=/trunk/playground/graphics/okular/; revision=597226
2006-10-19 17:05:58 +00:00
Laurent Montel de4760de6e Fix enable-final
svn path=/trunk/playground/graphics/okular/; revision=597046
2006-10-19 09:47:49 +00:00
Albert Astals Cid 0353fb4c37 Don't crash when the user clicks cancel when beign asked for the password
svn path=/trunk/playground/graphics/okular/; revision=596903
2006-10-18 20:44:03 +00:00
Pino Toscano e7bbe08957 trying to port to KTemporaryFile where possible, and still rely on K3TempFile where it needs more work
svn path=/trunk/playground/graphics/okular/; revision=596083
2006-10-16 17:57:44 +00:00
Albert Astals Cid 5143cd2512 Report page size
It's only reported in case it makes sense for the format
Only implemented for pdf atm
If all pages have the same size it's reported on document properties
else there's a label shown in the new bottom bar with the size of the current page

svn path=/trunk/playground/graphics/okular/; revision=595822
2006-10-15 19:37:14 +00:00
Albert Astals Cid 0d942a0cce fordward port r595680
*******
When reloading a document because it changed still be in presentation mode after the reload
*******
and while at it make the document reloading work again

svn path=/trunk/playground/graphics/okular/; revision=595690
2006-10-15 12:26:16 +00:00
Pino Toscano 5107d8cd0a remove old comments and improve another one
svn path=/trunk/playground/graphics/okular/; revision=595311
2006-10-13 23:00:40 +00:00
Pino Toscano b48e3b9c04 - correctly mark a docinfo as not dirty after the first generation
- clean up correctly when closing a document

svn path=/trunk/playground/graphics/okular/; revision=595288
2006-10-13 21:12:48 +00:00
Laurent Montel 8c4c673073 Necessary to modify KDE4_ADD_KCFG_FILES to support ENABLE_FINAL
(there was not a dependancy between <name>_final.cpp file and
kcfg file => kfg files were never created)

Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules

I ported all kde module (without enable-final argument, it compiles fines (test and program))
Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works)
(I didn't test all compile for the moment I will fix all compile today (without enable-final argument)
kdelibs/kdepimlibs/kdebase/kdeutils compiles fine)

svn path=/trunk/playground/graphics/okular/; revision=595199
2006-10-13 13:55:33 +00:00
Laurent Montel 9f317e53ca Port to new kde4_automoc macro
Necessary to change KDE4_AUTOMOC macro to support
enable-final argument

(there was not a dependancy between <name>_final.cpp file and
moc generated files => moc files were never created)

Not necessary to rebuild all kdelibs just cp kdelibs/cmake/modules/KDE4Macros.cmake <path_kde4>/share/apps/cmake/modules

I ported and tested all kde module (without enable-final argument, it compiles fines (test and program))
Don't try to use enable-final argument for the moment it doesn't compile (but dependancy works)

Regards

svn path=/trunk/playground/graphics/okular/; revision=595060
2006-10-13 08:13:52 +00:00
Pino Toscano 92c358a10e read sounds, sound links and page actions if the poppler version is head
svn path=/trunk/playground/graphics/okular/; revision=593976
2006-10-09 18:05:44 +00:00
Pino Toscano c52a0e622b Change the way we rotate the pages.
Instead of telling the generators to do the work themselves (that was usually destraoying the ld pages and creating the new ones), now we just rotate the page objects deleting only their "mutable" contents.
This way, generators can just return true in their supportRotation() to make okular rotate the pages for them for free. Of course they still have to generate the page pixmaps according to the given page rotation.
Now, there's a new rotationChanged() function in the Generator API so generator that needs it can be norified about the document rotation changing.

CCMAIL: developers@okular.org

svn path=/trunk/playground/graphics/okular/; revision=593632
2006-10-08 15:07:23 +00:00
Pino Toscano 480c2b7431 revert error, so we can still use the "old" wallet (should be do some kind of migration?)
svn path=/trunk/playground/graphics/okular/; revision=593463
2006-10-07 21:34:56 +00:00
Albert Astals Cid 49554bd23b make internals link work, at least for the dia-manual.chm file, i have no other chm file laying around
svn path=/trunk/playground/graphics/okular/; revision=593293
2006-10-07 11:48:07 +00:00
Albert Astals Cid 8328b24178 remove qt3 support need for gs generator
svn path=/trunk/playground/graphics/okular/; revision=588874
2006-09-27 09:12:21 +00:00
Albert Astals Cid f67a7f00a6 chm generator no longer needs qt3support
svn path=/trunk/playground/graphics/okular/; revision=588870
2006-09-27 09:04:48 +00:00
Brad Hards 0776034e3b Implement a bit more of the XPS specification - some
basic matrix transformations now work.

Also do a bit of refactoring - see if painting on a QImage
is any faster than painting on a QPixmap. Also move some
of the convenience routines into member functions, so that
they can correctly implement stuff like fill modes.

svn path=/trunk/playground/graphics/okular/; revision=588580
2006-09-26 11:53:27 +00:00
Brad Hards 3298fc16a7 Fix serious bug that prevented us getting at the fonts we've loaded.
Also correct a compile warning.

svn path=/trunk/playground/graphics/okular/; revision=587490
2006-09-23 00:42:42 +00:00
Brad Hards 4b68351612 An initial commit of pixmap rendering. This is very ugly code,
but it does work a bit (well, except for the font loading:
http://www.trolltech.com/developer/task-tracker/index_html?method=entry&id=130976
is a bad problem)

svn path=/trunk/playground/graphics/okular/; revision=587041
2006-09-21 11:41:46 +00:00
Pino Toscano aafd2b684e more KPDF -> okular renaming in comments, include guards and READMEs
svn path=/trunk/playground/graphics/okular/; revision=587000
2006-09-21 09:33:56 +00:00
Pino Toscano 41000f2cd8 remove stuff that won't be used, as gv doesn't provide text extraction
svn path=/trunk/playground/graphics/okular/; revision=586998
2006-09-21 09:20:01 +00:00
Pino Toscano 8e847ccd78 adapt to the new Okular namespace for the classes in core/
svn path=/trunk/playground/graphics/okular/; revision=586997
2006-09-21 09:15:00 +00:00
Tobias Koenig df7d144c10 Moved all classes in core/ into the 'Okular' namespace and removed
nearly all references to kpdf (knewstuff still missing).

svn path=/trunk/playground/graphics/okular/; revision=586993
2006-09-21 08:45:36 +00:00
Tobias Koenig 7f8f7b4d0e * Add initial version of link support
* Improved rendering of tables
 * Refactoring

svn path=/trunk/playground/graphics/okular/; revision=586706
2006-09-20 11:48:04 +00:00
Albert Astals Cid 8beff183b9 add desktop files indicating libokular provides a part for those mimetypes
svn path=/trunk/playground/graphics/okular/; revision=586466
2006-09-19 17:42:02 +00:00
Dirk Mueller 89bacb77bb compile++
svn path=/trunk/playground/graphics/okular/; revision=586265
2006-09-19 09:09:30 +00:00
Tobias Koenig 265c541925 Prevent endless-loops
svn path=/trunk/playground/graphics/okular/; revision=586047
2006-09-18 15:30:44 +00:00
Tobias Koenig 21b3dc4263 * reimplemented table of contents parsing in a faster way (thanks to tronical!)
svn path=/trunk/playground/graphics/okular/; revision=586039
2006-09-18 15:03:03 +00:00
Tobias Koenig e21d2af66a * Add support for TableOfContents
* Add basic table rendering

svn path=/trunk/playground/graphics/okular/; revision=585990
2006-09-18 13:01:43 +00:00
Pino Toscano a8c90e618b fix compilation
svn path=/trunk/playground/graphics/okular/; revision=585743
2006-09-17 22:27:08 +00:00
Urs Wolfer 656a7c403a Port KProgressBar's to QProgressBar's.
svn path=/trunk/playground/graphics/okular/; revision=585741
2006-09-17 22:15:41 +00:00
Tobias Koenig c4ace82830 Don't stop loading if document contains no Pictures directory...
svn path=/trunk/playground/graphics/okular/; revision=585227
2006-09-16 16:17:31 +00:00
Tobias Koenig dd5b91ca40 * Add support for style families (text looks much more consistent now)
* Add support for images
 * Add support for spaces and tabs

svn path=/trunk/playground/graphics/okular/; revision=585220
2006-09-16 15:52:00 +00:00
Tobias Koenig 8518b9e17b * Add basic support for enumerations
* Fixed page margins

svn path=/trunk/playground/graphics/okular/; revision=585178
2006-09-16 13:18:26 +00:00
Tobias Koenig 30aed9edb0 - borrowed code from KOffice to convert units correctly
- split styles into text and block styles to apply them seperated
 - add support for 'h' (header) tag

svn path=/trunk/playground/graphics/okular/; revision=584818
2006-09-15 16:00:49 +00:00
Pino Toscano 702f234c2a enable the OpenDocument generator
svn path=/trunk/playground/graphics/okular/; revision=583825
2006-09-13 16:18:29 +00:00
Tobias Koenig b3c4359d60 Initial version of generator for OpenDocument(Text) documents.
It renders just text atm, but also provides support for meta data,
printing and rotation.

svn path=/trunk/playground/graphics/okular/; revision=583769
2006-09-13 11:14:10 +00:00
Brad Hards 602c41f5dd It looks like Microsoft must have at least two
completely different code bases for generation of
XPS files. 

In any case, we now handle FixedPage files where
the path provided is relative to the FixedDocument,
not an absolute path.

This allows us to load XPS samples from the 
Office2007 set.

svn path=/trunk/playground/graphics/okular/; revision=583440
2006-09-12 10:31:09 +00:00
Pino Toscano 467e507fe8 add the QT3_SUPPORT definition where needed
svn path=/trunk/playground/graphics/okular/; revision=583408
2006-09-12 09:28:24 +00:00
Pino Toscano 33bc345d4e no more QT3_SUPPORT here
svn path=/trunk/playground/graphics/okular/; revision=583406
2006-09-12 09:27:21 +00:00
Pino Toscano c01b769e29 make it compile
svn path=/trunk/playground/graphics/okular/; revision=583209
2006-09-11 18:26:24 +00:00
Brad Hards a212a92780 Try harder not to crash.
svn path=/trunk/playground/graphics/okular/; revision=583018
2006-09-11 11:05:40 +00:00
Brad Hards 7c8ecc36bd Add in very rough first version of the XML paper
specification renderer. 

This doesn't work yet. And it crashes a lot. You
can help!

If you want to test this, a search for
"xps sample documents" will give you a sample set that
you can unzip.


svn path=/trunk/playground/graphics/okular/; revision=583014
2006-09-11 10:44:17 +00:00
Pino Toscano 46b5ad5e48 'Contents' has lines separated by \r, so converting them to \n should help
svn path=/trunk/playground/graphics/okular/; revision=582650
2006-09-09 23:18:15 +00:00
Pino Toscano f311b04ed3 reactivate the Annotation's loading
svn path=/trunk/playground/graphics/okular/; revision=582610
2006-09-09 21:27:50 +00:00
Stephan Kulow 9b1e475759 avoid crash even if commented :)
svn path=/trunk/playground/graphics/okular/; revision=582481
2006-09-09 14:17:38 +00:00
Pino Toscano 5ee6d32f1b clean up a bit by removing some stuff we probably won't ever use
svn path=/trunk/playground/graphics/okular/; revision=582099
2006-09-08 08:43:21 +00:00
Dirk Mueller 2658e75c7d fix memory / fd leak (CID 2672)
svn path=/trunk/playground/graphics/okular/; revision=580849
2006-09-04 16:19:56 +00:00
Dirk Mueller 64ef532f4d make it crash rather than use uninitialized memory
svn path=/trunk/playground/graphics/okular/; revision=580813
2006-09-04 15:02:28 +00:00
Dirk Mueller 5b69bb6ccb fix rather artificial memory leak (CID 2684)
svn path=/trunk/playground/graphics/okular/; revision=580807
2006-09-04 14:55:59 +00:00
Tobias Koenig 90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Albert Astals Cid 760fdbcadb makeItBuild
svn path=/trunk/playground/graphics/okular/; revision=578661
2006-08-29 21:09:55 +00:00
Laurent Montel 5bf047f728 Clean up
Remove not bnecessary files

svn path=/trunk/playground/graphics/okular/; revision=573208
2006-08-15 08:38:15 +00:00
Laurent Montel 8613479305 Fix install icons with new kde4macro
svn path=/trunk/playground/graphics/okular/; revision=573205
2006-08-15 08:20:53 +00:00
Chu Xiaodong e6078e98c3 call Annotation context menu any time(implemented in pageview.cpp)
svn path=/trunk/playground/graphics/okular/; revision=571653
2006-08-10 08:59:58 +00:00
Pino Toscano fb6409e8fd properly creating the text rects (inverting top and bottom is not a good idea...)
svn path=/trunk/playground/graphics/okular/; revision=570601
2006-08-07 11:44:47 +00:00
Pino Toscano 7ba0c4df3a Show the title of the current document - if available - as title of the main window, as requested in comments of KPDF bug #103362.
Adapted the poppler(pdf) and the chm generators to return the title of the current document.

svn path=/trunk/playground/graphics/okular/; revision=568059
2006-07-30 23:37:50 +00:00
Albert Astals Cid d261d27274 reverting some sabotage done by montel ;-)
svn path=/trunk/playground/graphics/okular/; revision=566296
2006-07-25 18:19:06 +00:00
Laurent Montel 3d62f697b2 Clean up
svn path=/trunk/playground/graphics/okular/; revision=566117
2006-07-25 13:08:23 +00:00
Pino Toscano e147f53ab7 make sure to really close the djvu document
svn path=/trunk/playground/graphics/okular/; revision=564677
2006-07-20 20:02:02 +00:00
Pino Toscano 25eb77c1de some fixes according to EBN:
- fix single char addition to QString's
- some spell checking

svn path=/trunk/playground/graphics/okular/; revision=563891
2006-07-18 19:06:01 +00:00
Pino Toscano b6d7a36eda Small addition to the Ganarator API: bool closeDocument().
Now every generator has to implement this one and put (if necessary) all the code for cleaning up all the stuff related to the currently open document.
For now the return value it is not read, but generators as strongly suggested to return tru o false, whether all the operations in there went fine.

svn path=/trunk/playground/graphics/okular/; revision=562210
2006-07-14 10:54:29 +00:00
Pino Toscano 9b55ffedd4 better check case-insensitively here
svn path=/trunk/playground/graphics/okular/; revision=561957
2006-07-13 17:48:28 +00:00
Pino Toscano 38593f718c delete a Link if an ObjectRect is not created; less deferences
svn path=/trunk/playground/graphics/okular/; revision=561949
2006-07-13 17:27:34 +00:00
Pino Toscano 2d64d446d7 Read correctly the 'poly' links for DjVu documents.
svn path=/trunk/playground/graphics/okular/; revision=561918
2006-07-13 16:08:50 +00:00
Pino Toscano 67fabc7659 - adapted the DjVu generators to the new ObjectRect API
- read also the links with an elliptic shape
- some code less

svn path=/trunk/playground/graphics/okular/; revision=561892
2006-07-13 15:06:47 +00:00
Pino Toscano 1ba01ac6f1 Refactor a bit how ObjectRect works: now it's an independent class, that keeps the shape of the "kept" object using a QPainterPath [the qreal version to QRegion].
Modified the constructors to specify if a rect represents a rectangular region or an elliptic one; added a new one to create a region defined using a polygon.
Adapted to the new API the generators that support links (all but the DjVu one - will be adapted and improved soon).

svn path=/trunk/playground/graphics/okular/; revision=561890
2006-07-13 15:03:18 +00:00
Pino Toscano 1154dd1c8f read the creation date
svn path=/trunk/playground/graphics/okular/; revision=561551
2006-07-12 13:33:29 +00:00
Pino Toscano 9fbfc1cb39 disable the fax generator, as the tiff one seems way better
svn path=/trunk/playground/graphics/okular/; revision=561316
2006-07-11 20:38:23 +00:00
Pino Toscano 80b0e358c7 Start to read the EXIF fields of TIFF documents, for now Description, Software, Copyright and Artist.
svn path=/trunk/playground/graphics/okular/; revision=560704
2006-07-10 22:52:50 +00:00
Pino Toscano 0211c662e9 now that KDjVu works nicely, reduce the debug
svn path=/trunk/playground/graphics/okular/; revision=559952
2006-07-08 17:51:25 +00:00
Pino Toscano 2d41c4459b clean up the CMakeLists.txt files from the auto* stuff
svn path=/trunk/playground/graphics/okular/; revision=559521
2006-07-07 15:08:46 +00:00
Pino Toscano b43f2c4d28 A new backend: TIFF.
It uses directly the libTIFF, and actually can load TIFF documents even better than the fax generator (that uses libkfaximage).
The generator can also rotate the images, but it is not tested as the menus with the current kdelibs snapshot don't work.

svn path=/trunk/playground/graphics/okular/; revision=559514
2006-07-07 14:58:12 +00:00
Laurent Montel 5262f0c13f Fix install files
svn path=/trunk/playground/graphics/okular/; revision=559162
2006-07-06 17:50:37 +00:00
Pino Toscano 2cc4065c3b use install instead of install_files
svn path=/trunk/playground/graphics/okular/; revision=558034
2006-07-04 15:25:27 +00:00
Pino Toscano 1285825aa5 use install instead of install_files
svn path=/trunk/playground/graphics/okular/; revision=558033
2006-07-04 15:24:52 +00:00
Pino Toscano 317132c670 remove some unused stuff; add comments and fix include guard name
svn path=/trunk/playground/graphics/okular/; revision=556946
2006-07-01 23:47:39 +00:00
Pino Toscano f574dc37e6 Make use of the new text export function of the generator.
svn path=/trunk/playground/graphics/okular/; revision=556944
2006-07-01 23:43:35 +00:00
Pino Toscano aa109c9ef0 Port the recent changes to kdv, and remove some debug code
(Luigi Toscano)

svn path=/trunk/playground/graphics/okular/; revision=556901
2006-07-01 21:17:42 +00:00
Pino Toscano c82fed6d75 Make use of okularUtils, and use a Center viewport position for links.
(Luigi Toscano)

svn path=/trunk/playground/graphics/okular/; revision=556625
2006-06-30 22:52:54 +00:00
Pino Toscano d0b5207bce Extract the table of contents from DVI documents.
svn path=/trunk/playground/graphics/okular/; revision=556622
2006-06-30 22:35:48 +00:00
Pino Toscano a324781264 adapt the djvu generator to make use of the okularUtils namespace
svn path=/trunk/playground/graphics/okular/; revision=556609
2006-06-30 21:43:40 +00:00
Pino Toscano 9385667f6c now, really copy (hope so) the strictly necessary files from the dvi plugin of kviewshell, and applying our work to make it work
svn path=/trunk/playground/graphics/okular/; revision=556303
2006-06-29 21:12:47 +00:00
Pino Toscano 7d26d25bd2 delete the dupe files, and now really copying the good ones
svn path=/trunk/playground/graphics/okular/; revision=556294
2006-06-29 20:43:50 +00:00
Pino Toscano ca85816c4c take correctly into account the rotation of the document, and rotate the link rects accordingly
svn path=/trunk/playground/graphics/okular/; revision=556019
2006-06-28 22:57:01 +00:00
Pino Toscano c39fdf8f5c Improve the hyperlink support, and make it less error-prone. Micro suppport for URL hyperlinks.
svn path=/trunk/playground/graphics/okular/; revision=555968
2006-06-28 20:44:12 +00:00
Pino Toscano e5018d700f Complete support for hyperlinks.
Cookies go to Luigi, thanks!

svn path=/trunk/playground/graphics/okular/; revision=555965
2006-06-28 20:40:47 +00:00
Pino Toscano 39e73f95f6 Read correctly the DjVu area maps (aka links) referring to local pages.
svn path=/trunk/playground/graphics/okular/; revision=555915
2006-06-28 17:52:00 +00:00
Pino Toscano 2bfdb0f319 New backend: DVI.
Adapted from the DVI plugin of KViewShell.
It can:
- load documents
- generate correctly the pixmaps for the images
- rotate the pages
- extract the text from the pages (thus search and text selection are possible)
- extract the URL hyperlinks from the documents

Credits for this work goes to Luigi Toscano, thanks Luigi!

CCMAIL: Luigi Toscano <luigi.toscano@tiscali.it>

svn path=/trunk/playground/graphics/okular/; revision=555582
2006-06-27 22:17:35 +00:00
Pino Toscano 63c1580412 SVN_SILENT apidox
svn path=/trunk/playground/graphics/okular/; revision=555392
2006-06-27 09:33:43 +00:00
Pino Toscano a5795e2726 Now the DjVu generator is able to extract the list of bookmarks (aka Table of Contents) from the DjVy document, if it has any.
svn path=/trunk/playground/graphics/okular/; revision=555320
2006-06-27 00:08:42 +00:00
Pino Toscano 70423d2f95 Be able to rotate fax documents.
svn path=/trunk/playground/graphics/okular/; revision=554987
2006-06-25 22:20:11 +00:00
Albert Astals Cid dba404945a Adapt to poppler cvs changes, you need to use poppler-qt4 cvs to build okular
CCMAIL: xiaodongchu@gmail.com

svn path=/trunk/playground/graphics/okular/; revision=554893
2006-06-25 17:02:34 +00:00
Pino Toscano a3dc3b2646 add a desktop file so the ghostscript generator can make okular good candidate for print preview
svn path=/trunk/playground/graphics/okular/; revision=554320
2006-06-23 17:11:05 +00:00
Pino Toscano cfaefdc3cb not needed
svn path=/trunk/playground/graphics/okular/; revision=553841
2006-06-22 09:33:07 +00:00
Albert Astals Cid 38343cd4e1 drop .la as per dfaure's suggestion
svn path=/trunk/playground/graphics/okular/; revision=553685
2006-06-21 17:31:50 +00:00
Pino Toscano e37ff4f3fe small trick: when generating small pixmaps (ie less wide than 300px) the render it as a page wider than 800px, and then rescale it back. this way, we respect more the geometry of the page in the small pixmaps (tipically, thumbnails).
svn path=/trunk/playground/graphics/okular/; revision=553409
2006-06-20 22:47:02 +00:00
Pino Toscano 80a843cbed TGenerator -> CHMGenerator
svn path=/trunk/playground/graphics/okular/; revision=553326
2006-06-20 18:41:48 +00:00
Pino Toscano 066beaa1dd small changes in the Generator API:
- no need for a private empty constructor
- move the signalRequestDone 'signal' to a protected visibility, as it's not meant to be called from outside a generator
- KPDF_EXPORT_PLUGIN -> OKULAR_EXPORT_PLUGIN

svn path=/trunk/playground/graphics/okular/; revision=553077
2006-06-19 22:15:07 +00:00
Pino Toscano 49a5be93da isolate the code for creating pages in an own method, should work correctly for pages with an initial rotation different than 0
svn path=/trunk/playground/graphics/okular/; revision=552594
2006-06-18 13:04:42 +00:00
Pino Toscano 15d8822c6f directly convert the image into a ixmap, instead of painting the image over the pixmap
svn path=/trunk/playground/graphics/okular/; revision=552566
2006-06-18 10:15:38 +00:00
Pino Toscano c2cb18a4bf don't leak the image we get from qgs
svn path=/trunk/playground/graphics/okular/; revision=552376
2006-06-17 16:57:52 +00:00
Pino Toscano ebe64cc2b7 SVN_SILENT wordings
svn path=/trunk/playground/graphics/okular/; revision=552294
2006-06-17 11:11:48 +00:00
Pino Toscano b1dd2e8d04 fix layout warnings
svn path=/trunk/playground/graphics/okular/; revision=552292
2006-06-17 10:51:00 +00:00