Commit graph

73 commits

Author SHA1 Message Date
Pranav Kant
bc98231119 loleaflet: Store and hide readonly view cursors
Change-Id: Ib2bec3158275e77d883308e25f1984491309234f
2017-03-31 12:20:43 +05:30
Ashod Nakashian
5cac95e6a9 loleaflet: remove pagepartrectangles request and handling in loleaflet
Change-Id: Ib83e7c0ca05a7d7d1a3d30675ef3cf5804f5ac4c
2017-02-05 21:59:22 -05:00
Tor Lillqvist
8fe58df759 An updated preview of a slide should be broadcast to all document clients
Amazingly, this (my third attempt) seems to work.

Add a boolean 'forAllClients' parameter to the loleafget getPreview()
function, and pass it as true in the location where a new preview of
an edited slide is requested.

Add a parameter 'broadcast' to the 'tile' (request) message. Set to
'yes' in the above case. When subscribing to a such tile rendering,
subscribe all sessions of the document.

While at it, drop the default values for the parameters of the
TileDesc constructor. I dislike default values...

Change-Id: Idb438f11c953d791fafe4c890e0497d8dfbaa733
Reviewed-on: https://gerrit.libreoffice.org/29591
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2016-11-21 07:07:18 +00:00
Pranav Kant
4d28338a10 More WOPI documentation
Change-Id: I0c04d2105ff6227f9f7b6eaa73a7efe6a94faecd
2016-11-16 19:56:33 +05:30
Pranav Kant
d8a202bf1c tdf#103641: Split App_LoadedStatus - Frame_Ready, Document_Loaded
Post App_LoadingStatus with 'Status' field as Frame_Ready when
we are ready to show the UI.

Post Document_Loaded when document is completely loaded after
which loleaflet is ready to respond to more document specific
queries through post message API.

Change-Id: I60a4e9b75e115c748fcee8d449bc8c2d4ffa34a9
2016-11-15 18:23:40 +05:30
Pranav Kant
d060b242e8 More documentation about post message API
Change-Id: I362e159c32d2ea93139be58ca647a2f4c5678dee
2016-11-10 22:37:38 +05:30
Pranav Kant
5219baaab0 tdf#103641: WOPI: Implement Action_Save, Action_Print, Action_Export
WOPI hosts can now send above mentioned messages to loleaflet so
that loleaflet does stuff accordingly.

Change-Id: I50e10a62c5b629bd12f7d9ce51bcd13cb13cdd8a
2016-11-10 22:03:17 +05:30
Pranav Kant
7f77618f38 Document PostMessage API in reference.html
Change-Id: Ibdd3fc060a99f3b6185362fa3143014710873079
2016-11-10 14:45:20 +05:30
Tor Lillqvist
c99379d67f The 'invalidatepreview' event handling seems to be unimplemented
No need to fire it if nothing happens. Just confuses a reader of the
code.

I don't really understand JavsScript events etc, so if I have
misunderstood something, feel free to revert.
2016-10-06 15:43:41 +03:00
Pranav Kant
1b92b481ee loleaflet: reference; add missing method to PolyUtil 2016-08-16 13:34:39 +05:30
Jan Holesovsky
e3b0d00240 Kill the rest of document_simple_example.html + related controls.
[Those that are not used in the loleaflet.html.]
2016-05-19 00:43:51 +02:00
Jan Holesovsky
5e96e32b56 bccu#1699: Use 256 pixels at 96dpi as the TWIPs size (3840 TWIPs). 2016-04-18 14:42:25 +02:00
Jan Holesovsky
b76140cb7b loleaflet: Trigger locontextmenu event with the context menu structure. 2016-04-08 19:15:08 +02:00
Andras Timar
abe330d390 loleaflet: ws:// -> wss:// 2016-03-23 22:02:50 +01:00
Jan Holesovsky
e10e155f72 loleaflet: Document the .uno:SortAscending and .uno:SortDescending. 2016-03-10 20:26:06 +01:00
Jan Holesovsky
db1adc643a loleaflet: Update Table of X (Content etc.) related commands. 2016-03-10 16:21:00 +01:00
Jan Holesovsky
f76206258e loleaflet: Add commands for handling table rows / columns in presentatios. 2016-03-10 15:28:16 +01:00
Jan Holesovsky
713987a9aa loleaflet: Add missing .uno: prefixes. 2016-03-10 13:34:31 +01:00
Jan Holesovsky
7882fb34a8 loleaflet: Document .uno: command to change layout of the current slide. 2016-03-10 13:33:54 +01:00
Andras Timar
71e283ca9d loleaflet: fix a typo in reference.html 2016-02-15 19:04:23 +01:00
Andras Timar
5cdbe3e837 loleaflet: fix unclosed tags in reference.html 2016-02-15 18:58:06 +01:00
Jan Holesovsky
65b492404c loleaflet: initializationComplete renamed to initializationcomplete.
This is for consistency with other events there.

Add documentation too.
2016-02-09 15:38:01 +01:00
Marco Cecchetti
686a531287 loleaflet - L.Cursor.imagePath can be a relative path
Change-Id: Ib4e2c88f580ebc6322427d6f950231b603c58186
2016-02-06 18:23:34 +01:00
Jan Holesovsky
8145ac71af loleaflet: Document .uno:CharBackgroundExt. 2016-02-05 12:33:53 +01:00
Jan Holesovsky
32ecdb8ab6 loolwsd, loleaflet: Handle the ERROR callback.
This introduces a new error id 5 - "document save failed".
2016-02-03 11:24:21 +01:00
Marco Cecchetti
6da856dd29 loleaflet: map option: cursorURL - local server path to cursors
The meaning of the cursorURL option is changed: now it does not
represent anymore the full URL including protocol and server but only
the path local to the server.

Map option curosr.HotSpot has been removed since not requested.

cursorURL option has been documented in reference.html.

Change-Id: I9ccc4756ade469018837af08b1d32a3fabddc958
2016-02-02 12:07:22 +01:00
Jan Holesovsky
c158eeb901 loleaflet: Additional documentation for .uno:ModifiedStatus. 2016-01-27 13:25:40 +01:00
Jan Holesovsky
0bb8d0f1c3 loleaflet: Rename searchAll() to highlightAll() for clarity.
The previous work changed the behaviour of searchAll so that it does not
create a real selection, but instead adds additional mean of highlight, so
that it is possible to show all the results, and travel them at the same time.

The usage is now:

* call once the highlightAll()
* and then traverse the results using search()
2016-01-25 22:42:38 +01:00
Jan Holesovsky
baf936d1b8 loleaflet: Document .uno:Name and .uno:Remove. 2016-01-21 00:53:38 +01:00
Jan Holesovsky
35a7ac691d loleaflet: Document the spreadsheet-related rows / columns commands. 2016-01-20 19:19:32 +01:00
Miklos Vajna
aed9e61c2e loleaflet: document .uno:ModifiedStatus 2016-01-19 17:07:10 +01:00
Jan Holesovsky
95bc0d4ebb loleaflet: Fire 'hyperlinkclicked' when the user clicks hyperlink in the doc. 2016-01-14 22:32:18 +01:00
Jan Holesovsky
43417659ad loleaflet: Implement 'id' for errors.
Most of the errors are not interesting for the user (in the sense that they
couldn't do anything about them anyway), for those return just a general
'internal error'; details are still available through the 'cmd' and 'kind'.

The rest have their own 'id'.
2016-01-14 21:30:53 +01:00
Jan Holesovsky
3cc15e88b9 loleaflet: Update the spreadsheet tabs after inserting a sheet. 2016-01-13 11:52:31 +01:00
Jan Holesovsky
2af63d4b2e loleaflet: Add more commands to the documentation. 2016-01-13 08:54:29 +01:00
Jan Holesovsky
ed7585e4ff loleaflet: Document how to insert a table via .uno: command. 2016-01-12 11:33:37 +01:00
Miklos Vajna
20488cce86 loleaflet: document border shadow config option 2016-01-08 11:52:33 +01:00
Jan Holesovsky
558e08af58 loleaflet: Introduce a 'webserver' option for the http access to loolwsd.
When proxying, the websocket may be hidden behind another URL, so this allows
an explicit setting.
2016-01-07 12:36:16 +01:00
Mihai Varga
fe7ae3cc2a fire the commandresult when the saveAs command has finished 2015-12-18 15:40:03 +02:00
Mihai Varga
6ae4bdf2a1 loleaflet: allow specifying the starting zoom level 2015-12-18 14:40:46 +02:00
Mihai Varga
d7b37ea25a loleaflet: map.fitWidthZoom(maxZoom) method
I've also added an initialization parameter that controls whether the
document should automatically call fitWidthZoom on resize.
2015-12-18 12:50:07 +02:00
Mihai Varga
f789928419 loleaflet: specify the toolbar container + don't add empty controls 2015-12-16 19:57:55 +02:00
Mihai Varga
84347b2b2e loleaflet: remove edit/readOnly map init options, add permission
And permission can be 'view', 'edit' or 'readonly'
2015-12-16 18:47:12 +02:00
Mihai Varga
3a13f2bea4 loleaflet: document the current initialization methods 2015-12-15 18:58:05 +02:00
Andras Timar
6d187eef00 loleaflet: typo fixes in reference.html 2015-12-06 14:05:35 +01:00
Mihai Varga
031156546e loleaflet: document map.sendUnoCommand 2015-12-04 10:40:56 +02:00
Mihai Varga
b78fd2c68a loleaflet: renderfont command handler 2015-11-30 11:16:53 +02:00
Mihai Varga
46a726c22e loleaflet: tested and document .uno:SetHyperlink' 2015-11-30 11:16:53 +02:00
Mihai Varga
f045fb5613 loleaflet: order the events description alphabetically 2015-11-18 17:45:21 +02:00
Mihai Varga
accf4c64aa loleaflet: order the events alphabetically 2015-11-18 17:45:21 +02:00