Commit graph

223 commits

Author SHA1 Message Date
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
Albert Astals Cid
8f0c595dfd Use pagesize with double values to divide, if not the rounding up and down and whatnow hits us and we get a page of the different size we wanted.
BUG: 153621

svn path=/trunk/KDE/kdegraphics/okular/; revision=746081
2007-12-07 19:17:53 +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
2354aebd55 remove the 'lib' prefix from the okularpart
make konqueror able to load again okular as embedded :/

svn path=/trunk/KDE/kdegraphics/okular/; revision=745740
2007-12-06 23:12:27 +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
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
10503cf472 Add stubs for about data for the backends that don't have one, but have translations.
I remember all the maintainers to fill them only after the KDE 4.0 unfreeze :)

CCMAIL: okular-devel@kde.org

svn path=/trunk/KDE/kdegraphics/okular/; revision=741068
2007-11-24 18:08:30 +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
Laurent Montel
8702899c83 Fix separator
svn path=/trunk/KDE/kdegraphics/okular/; revision=731764
2007-11-01 20:10:05 +00:00
Albert Astals Cid
3a15da028d poppler clearly states in its doc since 36 minutes ago that passwords have to be latin1 encoded
svn path=/trunk/KDE/kdegraphics/okular/; revision=731537
2007-10-31 23:24:52 +00:00
Nicolas Lécureuil
24024a20c2 Fix desktop files for XDG
svn path=/trunk/KDE/kdegraphics/okular/; revision=731368
2007-10-31 14:28:09 +00:00
Script Kiddy
4973559541 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=729164
2007-10-25 07:10:56 +00:00
Pino Toscano
3237f94761 use 'graphics-viewer-document' as icon in our .desktop files
svn path=/trunk/KDE/kdegraphics/okular/; revision=728493
2007-10-23 13:12: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
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
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
Script Kiddy
44dd16d127 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=717659
2007-09-27 09:33:48 +00:00
Script Kiddy
63b6301d12 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=714636
2007-09-20 05:45:54 +00:00
Pino Toscano
ac970f2d6c reduce the locked section a bit
svn path=/trunk/KDE/kdegraphics/okular/; revision=712976
2007-09-15 21:55:12 +00:00
Pino Toscano
4dcadf5544 Add a mutex in the base generator class, so any generator that wants a mutex can use it.
Adapt the poppler and the chm generator to use it instead of the own.

svn path=/trunk/KDE/kdegraphics/okular/; revision=712821
2007-09-15 11:35:53 +00:00
Pino Toscano
78e2377a87 Add a method for generators to know some metadata of the document
adapted the poppler and the chm generators to use that, instead of fiddling with the settings class

svn path=/trunk/KDE/kdegraphics/okular/; revision=712614
2007-09-14 22:16:00 +00:00
Script Kiddy
4c9b70db9d SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=711908
2007-09-13 05:55:31 +00:00
Pino Toscano
c141af6017 look for Poppler::PSConverter::setOutputDevice(), and use it if found
svn path=/trunk/KDE/kdegraphics/okular/; revision=709853
2007-09-08 11:21:16 +00:00
Pino Toscano
8e6d1619f3 now that poppler 0.6 was released, i can enable the code to get the size of the embedded files
svn path=/trunk/KDE/kdegraphics/okular/; revision=709831
2007-09-08 10:45:05 +00:00
Pino Toscano
1350802160 in case the document has no title, put just the filename as title, not the whole path
svn path=/trunk/KDE/kdegraphics/okular/; revision=709512
2007-09-07 17:30:00 +00:00
Pino Toscano
1bd4373ceb move the okular-poppler specific configuration into its own config.h
svn path=/trunk/KDE/kdegraphics/okular/; revision=709493
2007-09-07 16:04:32 +00:00
Pino Toscano
ef3769ea5b DocPath -> X-DocPath for .desktop of type Application
svn path=/trunk/KDE/kdegraphics/okular/; revision=709100
2007-09-06 15:07:23 +00:00
Script Kiddy
a550d8c0d4 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=705612
2007-08-28 07:29:37 +00:00
Thiago Macieira
99a7d08c6d Remove use of k_funcinfo
svn path=/trunk/KDE/kdegraphics/okular/; revision=702588
2007-08-20 21:38:21 +00:00
Script Kiddy
a688f5b331 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=702203
2007-08-20 07:38:48 +00:00
Script Kiddy
b998bc9491 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=695423
2007-08-02 04:55:35 +00:00
Pino Toscano
5150419e81 adapt the debug stuff to the new kdebug way:
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp

svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
2007-07-31 10:19:48 +00:00
Pino Toscano
459192d34f temporarly disable the attachment size detection, as it breaks with poppler 0.6rc1
will be reactivated after the release of poppler 0.6

svn path=/trunk/KDE/kdegraphics/okular/; revision=693750
2007-07-28 22:05:16 +00:00
Pino Toscano
f96287978b also add the "compressed" versions of the mmetypes for the Application and the KParts services
svn path=/trunk/KDE/kdegraphics/okular/; revision=693741
2007-07-28 21:30:57 +00:00
Laurent Montel
2e59ada023 change XDG_APPS_DIR -> XDG_APPS_INSTALL_DIR, XDG_DIRECTORY_DIR->XDG_DIRECTORY_INSTALL_DIR, DBUS_INTERFACES_DIR->DBUS_INTERFACES_INSTALL_ DIR, DBUS_SERVICES_DIR->DBUS_SERVICES_INSTALL_DIR to have same naming convention as discussed with Alex.
svn path=/trunk/KDE/kdegraphics/okular/; revision=691222
2007-07-23 07:05:28 +00:00
Script Kiddy
0fc32d6b18 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=689368
2007-07-18 05:47:51 +00:00
Script Kiddy
c1a3a10aa0 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=686774
2007-07-12 05:01:50 +00:00
Script Kiddy
94e66ff910 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=686331
2007-07-11 04:57:14 +00:00
Allen Winter
5110d1d3f2 remove kde4_automoc()
svn path=/trunk/KDE/kdegraphics/okular/; revision=686063
2007-07-10 14:11:49 +00:00
Pino Toscano
64d4210634 read correctly the information about font embedding now
svn path=/trunk/KDE/kdegraphics/okular/; revision=685333
2007-07-08 16:26:24 +00:00
Pino Toscano
3fd552ef21 Extend the FontInfo class to distinguish the different types of font embedding.
svn path=/trunk/KDE/kdegraphics/okular/; revision=685317
2007-07-08 16:07:37 +00:00
Pino Toscano
97f781ff31 reduce the critical section
svn path=/trunk/KDE/kdegraphics/okular/; revision=685277
2007-07-08 14:33:50 +00:00
Pino Toscano
2048eada89 the fonts OT are only for Poppler 0.6, so make the generator compile again for poppler 0.5 users
svn path=/trunk/KDE/kdegraphics/okular/; revision=685210
2007-07-08 09:10:55 +00:00
Pino Toscano
e5037f45b1 Refator a bit the way Document and the generators use to read the font information from a document.
Instead of having a synchronous function that extracts all the information at once, use a function to read the fonts of a single page.
This way, we can get all the result step by step (aka page by page), and possibly in an asynchronous way.
The resuls of the font "scanning" are sent via signals, as well the end of the work.
So, instead of block waiting for the results of all the document at once, the Fonts tab in the properties dialog can have a progress bar with the progress, and the results (the fonts) that are added incrementally to the list.

Only two minor things are left:
- the process is always asynchronous at the moment, as the only generator that can provide this kind of information is the Poppler one (safe)
- there is no check for duplicate fonts
But they should be easy to solve.

svn path=/trunk/KDE/kdegraphics/okular/; revision=685002
2007-07-07 20:35:01 +00:00
Script Kiddy
ac29f76f55 SVN_SILENT made messages (.desktop file)
svn path=/trunk/KDE/kdegraphics/okular/; revision=684724
2007-07-07 04:51:50 +00:00
Pino Toscano
05c01834c5 well, size() is for "poppler 0.6", the rc1 is still 0.5 :-D
svn path=/trunk/KDE/kdegraphics/okular/; revision=682935
2007-07-03 17:47:51 +00:00
Benjamin Reed
3f164edcb7 no size in poppler 0.6 rc1
svn path=/trunk/KDE/kdegraphics/okular/; revision=682930
2007-07-03 17:38:01 +00:00