Commit graph

2337 commits

Author SHA1 Message Date
Dirk Mueller
9f6f989e1c pedantic--
svn path=/trunk/playground/graphics/okular/; revision=584828
2006-09-15 16:11:07 +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
Laurent Montel
8ad07fc5da Compile++
svn path=/trunk/playground/graphics/okular/; revision=584683
2006-09-15 11:57:39 +00:00
Pino Toscano
8357b47a8c Annotations:
support the Hidden and DenyDelete flags

svn path=/trunk/playground/graphics/okular/; revision=584409
2006-09-14 18:42:28 +00:00
Pino Toscano
f1fa2511e8 Annotations:
- fix once again the PixmapPreviewSelector to support adding a visible name and an id for each item: this way we can add new pixmaps to it associating every pixmap name to a visible string (usually i18n'ed)
- when clicking on Apply in the Annotation Properties dialog, there are no changes pending so the annotation is unchanged again

svn path=/trunk/playground/graphics/okular/; revision=584208
2006-09-14 10:36:15 +00:00
Pino Toscano
58610481d8 Annotations:
- really activate the Apply button of the Properties dialog only when something is changed
- apply the changed in real-time, so they cna be seen directly with Apply and no need to close the dialog
- add a small fix (last, I hope) for the PixmapPreviewSelector about the pixmap loading 

svn path=/trunk/playground/graphics/okular/; revision=583922
2006-09-13 19:52:46 +00:00
Pino Toscano
15baef171e Annotations:
- improve the icon loading strategy for Stamp and Text(Linked) annotations: first look where we have the custom icons, then in the system place(s)
- add a simple (for now) TextAnnotationWidget to change the icon of a Linked Text annotation

svn path=/trunk/playground/graphics/okular/; revision=583882
2006-09-13 18:19:22 +00:00
Pino Toscano
a6dfc76123 extract a PixmapPreviewSelector out of the StampAnnotationWidget
svn path=/trunk/playground/graphics/okular/; revision=583857
2006-09-13 17:28:32 +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
2f0946e831 Make selection tool working again
svn path=/trunk/playground/graphics/okular/; revision=583789
2006-09-13 12:49:12 +00:00
Tobias Koenig
c3c79fa216 SVN_SILENT code cleanup
svn path=/trunk/playground/graphics/okular/; revision=583782
2006-09-13 12:11:42 +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
Pino Toscano
c178ed6392 if we're constructing a polygon (closed), then really set that it is closed instead of closign manually adding the first point to the path
svn path=/trunk/playground/graphics/okular/; revision=583633
2006-09-12 20:47:36 +00:00
Pino Toscano
c3a4b37301 Annotations:
start a basic system for the annotation properties editing. Add a base class that will act as "interface", and a factory to create the right subclass depending on the annotation type.
Adapt the Annotation Properties dialog to interact with the annotation widget.
Add the editing support for Stamp Annotation (but the artwork are missing, grrr)

svn path=/trunk/playground/graphics/okular/; revision=583620
2006-09-12 20:21:34 +00:00
Pino Toscano
aabe548eac when we have no color set for a Linked TextAnnotation, don't try to colorize the icon with a valid color, but leave it gray instead
svn path=/trunk/playground/graphics/okular/; revision=583618
2006-09-12 20:15:28 +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
Pino Toscano
726200f64a SVN_SILENT use the right default value for StampAnnotation
svn path=/trunk/playground/graphics/okular/; revision=583166
2006-09-11 15:44:13 +00:00
Pino Toscano
05d97ede77 Annotations:
- make the PagePainter draw all the points specified in a LineAnnotation, as it can represent also a Polygon or Polyline annotation
- automatically read the annotation dom element in the base AnnotatorEngine class, so every engine won't need to read it on its own
- properly reset some vars in the engines
- when constructing a Stamp annotation, use the right 'icon' attribute of the annotation element (and not the icon of the engine)
- renamed the TwoPointsEngine into PolyLineEngine, and abstracted to construct a polygon/polyline with a specified number of sides
- added a polygon button on the annotation toolbar
- check better if the annotator has to paint something

svn path=/trunk/playground/graphics/okular/; revision=583102
2006-09-11 11:51:10 +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
Pino Toscano
3578b4b9e8 Annotations:
- improve the calculation of the bounding rect for freetext annotations
- fix the drawing of the pixmap associated with the PickPointEngine
- implement the creation of stamp annotations

svn path=/trunk/playground/graphics/okular/; revision=582808
2006-09-10 16:10:40 +00:00
Pino Toscano
46b5ad5e48 'Contents' has lines separated by \r, so converting them to \n should help
svn path=/trunk/playground/graphics/okular/; revision=582650
2006-09-09 23:18:15 +00:00
Pino Toscano
0395938c7a move the drawing of the TextAnnotation::InPlace from the unbuffered annotations to the buffered ones: this allow us to draw using the specified opacity, and later we could easily draw the callout
svn path=/trunk/playground/graphics/okular/; revision=582624
2006-09-09 22:25:33 +00:00
Alexander Neundorf
5212b6c691 -add copyright notices
-remove unused configure checks

Alex


svn path=/trunk/KDE/kdegraphics/cmake/modules/; revision=582616
2006-09-09 21:46:46 +00:00
Pino Toscano
f311b04ed3 reactivate the Annotation's loading
svn path=/trunk/playground/graphics/okular/; revision=582610
2006-09-09 21:27:50 +00:00
Albert Astals Cid
5d7dd80086 fordwardport r582532
svn path=/trunk/playground/graphics/okular/; revision=582534
2006-09-09 17:31:36 +00:00
Stephan Kulow
9b1e475759 avoid crash even if commented :)
svn path=/trunk/playground/graphics/okular/; revision=582481
2006-09-09 14:17:38 +00:00
Pino Toscano
7a5511f10f SVN_SILENT kpdf -> okular
svn path=/trunk/playground/graphics/okular/; revision=582405
2006-09-09 10:06:14 +00:00
Pino Toscano
53fa802939 now the PickPointEngine can draw the pixmap either in the center or in the bottom-right part of the cursor
svn path=/trunk/playground/graphics/okular/; revision=582293
2006-09-08 23:06:22 +00:00
Pino Toscano
ecf3fec2d1 the standard icon names as specified in the PDF Reference are CamelCase, so better lowering them when loading their icons
svn path=/trunk/playground/graphics/okular/; revision=582292
2006-09-08 23:02:55 +00:00
Pino Toscano
b66b54a9c9 very small fixes about annotations
svn path=/trunk/playground/graphics/okular/; revision=582276
2006-09-08 21:08:51 +00:00
Tobias Koenig
4c923f00ac Don't connect twice to the selectUrl() signal, because the second time
the passed KUrl object was deleted by the slot of the first signal in the meantime.

svn path=/trunk/playground/graphics/okular/; revision=582173
2006-09-08 13:09:09 +00:00
Pino Toscano
8418a8c238 re-eanble the dbus registration of the okularpart
svn path=/trunk/playground/graphics/okular/; revision=582130
2006-09-08 11:14:29 +00:00
Pino Toscano
5ee6d32f1b clean up a bit by removing some stuff we probably won't ever use
svn path=/trunk/playground/graphics/okular/; revision=582099
2006-09-08 08:43:21 +00:00
Pino Toscano
d77701bc61 visible texts need to be i18n'ed
svn path=/trunk/playground/graphics/okular/; revision=581267
2006-09-05 20:40:39 +00:00
Pino Toscano
08e3a7de21 improve a bit the annotation dialog:
- use two standard kde widgets for the color selection and for the opacity slider
- clean up the code by storing only what we need to store, and by #include'ing most of the stuff in the cpp only

svn path=/trunk/playground/graphics/okular/; revision=581263
2006-09-05 20:22:19 +00:00
Dirk Mueller
2658e75c7d fix memory / fd leak (CID 2672)
svn path=/trunk/playground/graphics/okular/; revision=580849
2006-09-04 16:19:56 +00:00
Dirk Mueller
64ef532f4d make it crash rather than use uninitialized memory
svn path=/trunk/playground/graphics/okular/; revision=580813
2006-09-04 15:02:28 +00:00
Dirk Mueller
3c092edf3f if tmp can be null then m_current can be as well (CID 2644)
svn path=/trunk/playground/graphics/okular/; revision=580808
2006-09-04 14:57:39 +00:00
Dirk Mueller
5b69bb6ccb fix rather artificial memory leak (CID 2684)
svn path=/trunk/playground/graphics/okular/; revision=580807
2006-09-04 14:55:59 +00:00
Tobias Koenig
90140c1479 warnings--
svn path=/trunk/playground/graphics/okular/; revision=578892
2006-08-30 14:17:22 +00:00
Tobias Koenig
5bfa5435a8 URL -> url renaming to reimplement the correct KPart::openUrl()...
svn path=/trunk/playground/graphics/okular/; revision=578859
2006-08-30 13:02:48 +00:00
Tobias Koenig
69a72ebbe8 We have to use setFixedSize() here, otherwise the layout will set a height
of 0 for the ThumbnailWidget => ThumbnailWidget::region() is empty => QWidget::repaint
won't paint the content of the widget.

Now the thumbnails are showed on startup again and when the orientation is
changed the layout of the thumbnails is adapted as well...

svn path=/trunk/playground/graphics/okular/; revision=578852
2006-08-30 12:32:58 +00:00
Albert Astals Cid
760fdbcadb makeItBuild
svn path=/trunk/playground/graphics/okular/; revision=578661
2006-08-29 21:09:55 +00:00
Albert Astals Cid
4ca38336c0 some people need that to make it link
svn path=/trunk/playground/graphics/okular/; revision=578656
2006-08-29 21:04:16 +00:00
Laurent Montel
fcac6654b8 Adapt to new qtdbus
svn path=/trunk/playground/graphics/okular/; revision=578226
2006-08-28 18:12:22 +00:00
Laurent Montel
5bf047f728 Clean up
Remove not bnecessary files

svn path=/trunk/playground/graphics/okular/; revision=573208
2006-08-15 08:38:15 +00:00