Commit graph

107 commits

Author SHA1 Message Date
Laurent Montel
34edbef72d Port to new api
svn path=/trunk/playground/graphics/okular/; revision=621624
2007-01-09 11:02:04 +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
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
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
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
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
Laurent Montel
06b79cdf27 Compile++
svn path=/trunk/playground/graphics/okular/; revision=614897
2006-12-19 12:23:43 +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
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
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
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
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
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
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
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
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
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
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
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
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
bbcb217a19 foo(QString) -> foo(const QString&)
svn path=/trunk/playground/graphics/okular/; revision=597872
2006-10-21 21:57:43 +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
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
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