Commit graph

648 commits

Author SHA1 Message Date
Jakob Petsovits df780d0096 Icon naming spec compliance (code changes - KDE/):
* text -> draw-text, or edit-rename (depends)
* replace inappropriate usage of "table"
  (in preparation of moving it out to KOffice)

svn path=/trunk/KDE/kdegraphics/okular/; revision=756900
2008-01-03 21:56:11 +00:00
Script Kiddy ff1e230a47 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=756424
2008-01-03 08:34:38 +00:00
Pino Toscano 4a71603ab6 take the list of the supported mimetypes from the kpart .desktop, as they contain more mimetypes (including the compressed versions)
[the compressed versions are not in the "generator" .desktop files because okular can deal natively with any gzip- or bzip2- compressed version of the supported document types]

svn path=/trunk/KDE/kdegraphics/okular/; revision=755661
2008-01-02 00:37:51 +00:00
Pino Toscano 02dde1035c for now, don't create xml storage files for non-local urls, as the local name will always change
svn path=/trunk/KDE/kdegraphics/okular/; revision=755447
2008-01-01 16:22:29 +00:00
Script Kiddy c878863fe7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=754564
2007-12-30 08:56:16 +00:00
Pino Toscano 1aab311b5c Slightly change the indexes used to query the generator for fonts:
- 0..n-1 are the page indexes again
- -1 is for the fonts not reall belonging to a single page (or when no selective page extraction can be done)

svn path=/trunk/KDE/kdegraphics/okular/; revision=753866
2007-12-28 17:06:43 +00:00
Script Kiddy 4bc4f57855 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=753675
2007-12-28 07:59:25 +00:00
Pino Toscano 9e45d58aaf adapt to the recent debug areas
svn path=/trunk/KDE/kdegraphics/okular/; revision=752570
2007-12-24 22:09:22 +00:00
Script Kiddy 270b737e0d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=751972
2007-12-23 08:32:07 +00:00
Pino Toscano a8758221fe Return the current configuration for gfx and text antialias.
For now they are always true, as no GUI can be added due to feature+string freeze.

svn path=/trunk/KDE/kdegraphics/okular/; revision=749280
2007-12-16 23:36:12 +00:00
Pino Toscano fb2a432097 update the free memory check timer on win32 as well
svn path=/trunk/KDE/kdegraphics/okular/; revision=747259
2007-12-11 13:52:55 +00:00
Script Kiddy e3d71f162d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=747149
2007-12-11 07:45:22 +00:00
Pino Toscano b9af4a6a94 check for valid pages
svn path=/trunk/KDE/kdegraphics/okular/; revision=747055
2007-12-10 22:39:48 +00:00
Pino Toscano 5fc6503d89 For now, do not consider links whose page cannot be calculated.
BUG: 153733

svn path=/trunk/KDE/kdegraphics/okular/; revision=747032
2007-12-10 21:03:32 +00:00
Pino Toscano a194acf2bc Foo/FooPrivate for TextDocumentConverter
svn path=/trunk/KDE/kdegraphics/okular/; revision=746277
2007-12-08 14:45:32 +00:00
Pino Toscano 870980da75 correctly set the External flag for annotations loaded from documents
svn path=/trunk/KDE/kdegraphics/okular/; revision=746264
2007-12-08 13:45:06 +00:00
Script Kiddy 8d7e8be0c7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=745899
2007-12-07 08:14:18 +00:00
Pino Toscano 66376cf31f make swap() private
svn path=/trunk/KDE/kdegraphics/okular/; revision=744918
2007-12-04 21:36:32 +00:00
Pino Toscano bd294e1de6 move the FilePrinterPreview to the kpart (no need for it to be in the core library)
svn path=/trunk/KDE/kdegraphics/okular/; revision=744225
2007-12-03 00:17:12 +00:00
Pino Toscano 5b01430bb0 remove internal aboutdata+componentdata of the generator, now it's handled by the plugin system
svn path=/trunk/KDE/kdegraphics/okular/; revision=744197
2007-12-02 22:55:12 +00:00
Pino Toscano 6aa123656a Port the plugin system to the standard KDE factory and loader, getting rid of the custom system okular had so far.
This requires a generator to have a
  MyGenerator(QObject *parent, const QVariantList &args)
constructor in order to be successfully loaded.
The OKULAR_EXPORT_PLUGIN macro was adapted, and the generators to provide it the about data; the protected Generator::setAboutData() is no more needed.

Remove the 'lib' prefix from plugins, unneeded now.

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=744169
2007-12-02 20:57:24 +00:00
Script Kiddy 4b1e246e87 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=743874
2007-12-02 08:05:31 +00:00
Tobias Koenig 3ce7e38f06 Now that we use QPrinter, call QTextDocument::print() directly...
Enable printing for this generator.

svn path=/trunk/KDE/kdegraphics/okular/; revision=742243
2007-11-27 16:29:50 +00:00
Dirk Mueller 7cfdc3dc80 header cleannness++
svn path=/trunk/KDE/kdegraphics/okular/; revision=742135
2007-11-27 08:44:10 +00:00
John Layt 1b1ed9451b Enable Okular printing features:
* Add FilePrinter class to enable printing via postscript files
* DJVU, PDF, and PS backends print FilePrinter
* All backends enable printing of bookmarked pages
* Print and Print Preview actions enabled/disabled depending on backends
  printing ability

Note that FilePrinter only works on *NIX platforms with Cups, lpr, or lp.



svn path=/trunk/KDE/kdegraphics/okular/; revision=741990
2007-11-26 21:43:54 +00:00
Pino Toscano d3f4460d38 add icon for the pdf export format
svn path=/trunk/KDE/kdegraphics/okular/; revision=741369
2007-11-25 14:48:54 +00:00
Pino Toscano dfce0d1fcd centralize the way we know whether a generator is configurable, and properly manage i18n loading in that case
svn path=/trunk/KDE/kdegraphics/okular/; revision=741325
2007-11-25 12:49:30 +00:00
Pino Toscano 07dd3fe824 give the debug area to the kWarning() calls
svn path=/trunk/KDE/kdegraphics/okular/; revision=741314
2007-11-25 12:18:10 +00:00
Pino Toscano 1214468229 directly take the componentdata
svn path=/trunk/KDE/kdegraphics/okular/; revision=741313
2007-11-25 12:15:55 +00:00
Pino Toscano 1e08dc6a95 correctly check whether a generator was already loaded, even when no generator was previously loaded
fixes the ghostcript config page not showing when starting an empty okular

svn path=/trunk/KDE/kdegraphics/okular/; revision=741308
2007-11-25 12:08:37 +00:00
Pino Toscano ba7d0732c1 ignore any "empty" component data
svn path=/trunk/KDE/kdegraphics/okular/; revision=741067
2007-11-24 18:07:59 +00:00
Allen Winter 1e34663484 remove deprecated Encoding
DocPath => X-DocPath
ServiceTypes => X-KDE-ServiceTypes
Keywords => X-KDE-Keywords

svn path=/trunk/KDE/kdegraphics/okular/; revision=737282
2007-11-15 22:38:18 +00:00
Script Kiddy d9e6745bc7 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=735260
2007-11-11 08:03:34 +00:00
Pino Toscano 6e37c43c8d don't print the debug stuff between " and "
svn path=/trunk/KDE/kdegraphics/okular/; revision=732875
2007-11-04 23:33:05 +00:00
Pino Toscano ca0f9184d2 export correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=732873
2007-11-04 23:31:36 +00:00
Pino Toscano 2340d9c6d8 Save the rotation of the document, so when reopening the document the last rotation is kept.
This also fixed the problem of the lost rotation when reloading because of document change.

CCBUG: 151130

svn path=/trunk/KDE/kdegraphics/okular/; revision=731697
2007-11-01 16:15:34 +00:00
Christian Ehrlicher ec72d7e654 mingw compile++
warnings--

svn path=/trunk/KDE/kdegraphics/okular/; revision=731467
2007-10-31 19:44:35 +00:00
Pino Toscano 6d375af868 Move all the bookmarking stuff into the BookmarkManager, that now updates the Document observers automatically.
svn path=/trunk/KDE/kdegraphics/okular/; revision=730404
2007-10-28 18:31:33 +00:00
John Layt 070285e039 Port from KPrinter to QPrinter, remove dependency on KDE4_KDEPRINT_LIBS.
*** Note this is not a complete port, most of the generators use the 
printFiles method which Qt 4.3 does not support, these have simply
been commented out until we find a solution.  At least it removes
the dependency so we can remove from kdelibs.

svn path=/trunk/KDE/kdegraphics/okular/; revision=725660
2007-10-15 23:01:27 +00:00
Script Kiddy d5fcbc09a8 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=724043
2007-10-11 08:09:20 +00:00
Pino Toscano 4060ef669e Make the document closing a bit more safe wrt internal threading - the closing waits for the background threads, to avoid aving them running with stale stuff.
This affects all the generators that use the internal generator threading, own threading models have to be fixed properly.

svn path=/trunk/KDE/kdegraphics/okular/; revision=723161
2007-10-08 21:49:27 +00:00
Pino Toscano 15155d8824 Rename the virtual closeDocument() to doCloseDocument(), and make it protected.
Added a non-virtual closeDocument() in the base Generator class: this way, particular closing routines can be implemented in the "low level" of a generator.
Apart the renaming, the logic of doCloseDocument() remains the same.

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=723046
2007-10-08 16:46:51 +00:00
Pino Toscano 5e0c1a1671 hm, we always need to 'transform' all the annotations, so the internal data are (re)set correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=722543
2007-10-07 15:10:58 +00:00
Pino Toscano b321f9ea21 when adding a rotated annotation to a rotated page, rotate its base coordinates to 0-degrees, then rotate again all its stuff correctly
svn path=/trunk/KDE/kdegraphics/okular/; revision=722456
2007-10-07 11:00:57 +00:00
Pino Toscano b654434a0e add private helpers to properly transform the base coordinates of an annotation
svn path=/trunk/KDE/kdegraphics/okular/; revision=722451
2007-10-07 10:52:05 +00:00
Pino Toscano a5940e0132 correctly initialize the history; crash spotted by Bram, thanks!
svn path=/trunk/KDE/kdegraphics/okular/; revision=721277
2007-10-04 21:41:19 +00:00
Script Kiddy d5dc96cb3b SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=720951
2007-10-04 05:56:53 +00:00
Pino Toscano 27f624d1f7 check whether the document is open
svn path=/trunk/KDE/kdegraphics/okular/; revision=720717
2007-10-03 15:03:49 +00:00
Pino Toscano d51e9fa4d8 remove the private methods of PixmapRequest, and make the Document work with its private class
svn path=/trunk/KDE/kdegraphics/okular/; revision=719319
2007-09-30 21:44:31 +00:00
Pino Toscano 5dc92c5824 use qint64 for the document size
svn path=/trunk/KDE/kdegraphics/okular/; revision=719107
2007-09-30 10:49:38 +00:00