Commit graph

680 commits

Author SHA1 Message Date
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
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