Commit Graph

12 Commits

Author SHA1 Message Date
7f8eb6d501 LOKDocView: add set_part_mode.
Change-Id: I0e14a535124e93979ef05431255911245a11aa29
2014-07-30 12:44:03 +02:00
366d8fb4db LOKDocView: add part name retrieval.
Change-Id: Iac31de0410d7f6187e5884152c329375047a23f4
2014-07-30 12:44:02 +02:00
1cde56c360 -Werror=declaration-after-statement
Change-Id: I97b1d03410e98c5ff2ad3cc15cef692e9b994a6c
2014-07-28 17:41:41 +02:00
c1d9fe079a Prevent LOK DocView crash if document too large.
There seems to be a maximum size that gdk's pixbuf
can handle, however I have been unable to find any
documentatation. Seeing as the current implementation
isn't realistically useable anyway, we might as well
set a hard limit here (in practice we'd have much smaller
tiles + compositing).

Specifically extras/source/shellnew/soffice.ods will fail
without this patch.

Change-Id: I6ac495adca8e15878989375ef8b2de472788279a
2014-07-28 16:34:18 +02:00
c49e26cb44 LOK DocView: implement part selection.
Change-Id: I2e16ca9d2d5fcd25b0435f1b9b0fbcb52b92e012
2014-07-12 05:19:13 +02:00
cdd76e8877 LOK DocView: only rerender on zoom if we have a document open.
Otherwise we would segfault, and it's perfectly valid to set a zoom
level _before_ opening a document (as that would e.g. save the document
first being rendered on opening if the client wants to immediately
render at a non-standard zoom level).

Change-Id: Ide261b09f4aab8dc3b552f6c3bf55f78ffd7870c
2014-07-12 05:19:12 +02:00
3c440aad56 LOK DocView: handle document load failure without crashing.
Change-Id: Icd668b3a7ec3ac58322a6af3f1da6008837d0b6b
2014-06-27 08:56:42 +01:00
af60018734 fix build
Change-Id: I33f06887b4b2b7950c6e322ccf1c7ec65240f9b0
2014-06-25 14:46:57 +01:00
2c658ae4fb LOK DocView: clean up document on exit.
Otherwise lock files etc. aren't cleaned up, which isn't particularly
nice should when then opening the file in normal LibreOffice.

Change-Id: I822b6fb582473674371a4c1d403d5a05adb7ea6b
2014-06-25 13:04:33 +01:00
6024ddbfac LOK Docview: add set_zoom
Change-Id: I902f3a134b4a7dcc721eff3f67376014a4276885
2014-06-25 13:04:33 +01:00
eaa21b726d Prevent GTK assertions due to scrolled window not being initialised.
Seems to be a gtk bug which we need to work around. The assertions
don't actually seem to cause any harm (they just print a bunch of
"Gtk-CRITICAL **: IA__gtk_range_get_adjustment: assertion `GTK_IS_RANGE (range)' failed"
but probably best to avoid them.

Change-Id: I5d1bb20bd5c0569c6d023a6148123208a15b9de2
2014-06-25 13:04:32 +01:00
d465dfb209 Implement LibreOfficeKit gtk+ viewer widget.
Very basic, but works.

Change-Id: I0c521e833b53e13065e0be48e6fa767e44b29787
2014-06-25 13:04:31 +01:00