Pino Toscano
2602037fb9
display (if available) the file size for attachments, courtesy of Albert for his work in poppler
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=682847
2007-07-03 14:47:16 +00:00
Script Kiddy
9fb2221299
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=679853
2007-06-25 05:24:26 +00:00
Script Kiddy
7c8a8bce4f
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=678711
2007-06-22 05:13:04 +00:00
Script Kiddy
3211dbbaf5
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=678319
2007-06-21 05:01:46 +00:00
Pino Toscano
c8f85f0735
FindPoppler.cmake:
...
- fix the include path checking, now really using the cflags. tested with current HEAD (0.6), should work with 0.5.x as well
- fix the caching
CMakeLists.txt files:
- adapt to the include path fixes
svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=668612
2007-05-26 23:15:42 +00:00
Pino Toscano
b4f2087279
SVN_SILENT remove stray endings
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668394
2007-05-26 08:50:40 +00:00
Pino Toscano
79ae8273e2
less warnings for poppler HEAD/0.6 users
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668328
2007-05-26 00:02:26 +00:00
Pino Toscano
fb3fec647e
the Poppler library is going to start the release cycle of the 0.6 serie, so s/HEAD/0_6/
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668326
2007-05-25 23:57:03 +00:00
Pino Toscano
37eb438999
restore compatibility with poppler 0.5.x
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668322
2007-05-25 23:39:31 +00:00
Albert Astals Cid
f6b13e66fd
adapt to poppler cvs head changes from seconds ago
...
i know this is not ifdefed, but tomorrow we are hopefully releasing poppler 0.6 RC and will require it ;-)
svn path=/trunk/KDE/kdegraphics/okular/; revision=668320
2007-05-25 23:23:23 +00:00
Pino Toscano
03fd060f3f
lazy loading of links, their loading is expensive
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668319
2007-05-25 23:16:03 +00:00
Pino Toscano
06a37c61e9
use the debug area for all the debug messages of the generator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=668044
2007-05-24 21:58:50 +00:00
Script Kiddy
9984a73c33
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667190
2007-05-22 05:16:03 +00:00
Pino Toscano
de45467966
properly free the resources of a document when calling closeDocument(), not in the destructor of the generator or in loadDocument()
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=667128
2007-05-21 22:26:37 +00:00
Albert Astals Cid
3bd28d1fbb
fix indentation
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=664727
2007-05-14 18:51:13 +00:00
Albert Astals Cid
09d57691d7
a bit more corner case handling in paper size handling
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=664721
2007-05-14 18:38:50 +00:00
Tobias Koenig
06e831a3c9
Add a new method DocumentInfo::set( enum, QString ) to get more
...
consistency in the documentation info.
svn path=/trunk/KDE/kdegraphics/okular/; revision=664233
2007-05-13 12:54:46 +00:00
Albert Astals Cid
61b3f856d0
fordwardport SVN commit 663027 by aacid:
...
Improve handling of page sizes when printing.
svn path=/trunk/KDE/kdegraphics/okular/; revision=663034
2007-05-09 21:30:33 +00:00
Script Kiddy
1d727e66f6
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=662419
2007-05-08 05:06:32 +00:00
Pino Toscano
106e96240c
rename (almost) every ActionFoo class to FooAction
...
exception to this is the ActionDocumentAction, renamed to DocumentAction and whose id is DocAction
svn path=/trunk/KDE/kdegraphics/okular/; revision=660523
2007-05-02 22:50:27 +00:00
Pino Toscano
2654c1b16b
set a proper WId for KWallet -- thanks Lubos for the kind remind :)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=659706
2007-04-30 17:13:58 +00:00
Luboš Luňák
6843ce2916
No default window argument to kwallet calls.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=659643
2007-04-30 15:04:29 +00:00
Script Kiddy
46781db872
SVN_SILENT made messages (.desktop file)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=658969
2007-04-29 05:00:55 +00:00
Albert Astals Cid
3ff1d4b9be
adapt to poppler head change
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=658743
2007-04-28 12:01:25 +00:00
Pino Toscano
f61e86d542
Adapt to the recent changes in Poppler HEAD, mainly in the posibility to generate links anytime, and not just as a result of a pixmap generation.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=658738
2007-04-28 11:30:55 +00:00
Pino Toscano
fa7ec200a4
this is no more needed
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=658624
2007-04-27 22:57:08 +00:00
Pino Toscano
1248d82976
Keep it up to the recent poppler HEAD changes:
...
- add the title when printing
- add a print settings page for the rasterization option
both were already there in KPDF, just waiting for their counterpart in poppler.
svn path=/trunk/KDE/kdegraphics/okular/; revision=658608
2007-04-27 22:10:08 +00:00
Pino Toscano
db817781c9
cache the font names instead of reinit them every time we want the information about fonts
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656936
2007-04-22 19:16:38 +00:00
Pino Toscano
7ad2256498
let poppler calculate width and height
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656830
2007-04-22 13:05:20 +00:00
Pino Toscano
76171e38e6
manual activate the antialiasing for both text and gfx, if using poppler HEAD
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656807
2007-04-22 12:17:46 +00:00
Pino Toscano
2e024d6d96
generalize a bit more the way for constructing "standard" ExportFormat's
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656426
2007-04-21 11:09:41 +00:00
Pino Toscano
214883d582
free the resources when we close the document
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=656214
2007-04-20 16:17:12 +00:00
Pino Toscano
5f21b15d99
Link -> Action renaming.
...
Step #2 : Link -> Action for the action hierarchy, and for the ObjectRect type.
svn path=/trunk/KDE/kdegraphics/okular/; revision=656140
2007-04-20 12:37:12 +00:00
Pino Toscano
f3e484082d
Link -> Action renaming.
...
Step #1 : link.(cpp|h) -> action.(cpp|h)
svn path=/trunk/KDE/kdegraphics/okular/; revision=656123
2007-04-20 11:26:05 +00:00
Albert Astals Cid
0d47b62715
krazy include order issues
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655893
2007-04-19 18:30:20 +00:00
Chusslove Illich
120e3a6d79
i18n fixes.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=655194
2007-04-17 22:05:28 +00:00
Pino Toscano
55a06c9b00
read the Open attribute from the poppler toc
...
the attribute is in poppler HEAD (future 0.6), but it's not incompatible with the 0.5.x serie
svn path=/trunk/KDE/kdegraphics/okular/; revision=654773
2007-04-16 21:35:34 +00:00
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
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
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
f18845576b
add the permission to fill forms
...
svn path=/trunk/playground/graphics/okular/; revision=643462
2007-03-17 14:14:55 +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
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
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
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
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
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
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
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
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
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
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
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
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