Commit graph

55 commits

Author SHA1 Message Date
Andras Timar
4b72613447 loleaflet: bccu#1649 l10n of Admin Console 2016-05-31 23:31:16 +02:00
Pranav Kant
d9019a2e79 loleaflet: Reuse html canvas spinner for slideshows
Move the spinner initialization to a separate class L.LOUtil.
Other similar LO related functions should also go there.

Also remove superfluous class leaflet-slideshow-spinner. It was
not being used anyway due to wrong spelling.

Change-Id: Ie8fac0391a9c6a3771900539e8f08d1b73b9be28
2016-05-31 14:30:22 +05:30
Pranav Kant
2c3964be1d loleaflet: Setup infrastructure for top menubar
Change-Id: Ib48c2b3219b74da15bc2898044ad9b3c01f8a203
2016-05-23 13:27:48 +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
30f34cff39 document_simple_example: Kill Control.Presentation.js. 2016-05-19 00:43:50 +02:00
Jan Holesovsky
0f3cf72724 document_simple_example: Kill Control.Buttons.js.
We don't need the document_simple_example.html any more, remove the stuff that
is needed only for that.
2016-05-19 00:43:50 +02:00
Pranav Kant
58c1714ee8 loleaflet: Setup context menu
But use a whitelist to not show items/uno commands that
correspond to opening a dialog. Whitelist is limited as of now,
but can be extended easily to include more commands to the
context menu as required.

Change-Id: I3ff8cf722d395aa643d512c98db41ebeee0a95d1
2016-05-16 14:37:51 +05:30
Henry Castro
a1e3c30d6e loleaflet: bccu#1622, add a marker progress bar 2016-03-31 21:33:48 -04:00
Pranav Kant
32e24dcab3 loleaflet: Make style l10n work in new toolbar
Please note that this is just a workaround because there is no
consistent pattern between LO sending us programmatic, UI names.
During the initial command value event, we get programmatic names
from it. During the state change event, we get UI names for
Writer, but programmatic ones for others.

Change-Id: I7e69e1d437b22a34e54d2026b76e81951c4cc601
2016-03-25 18:24:11 +05:30
Pranav Kant
ee5ebb8489 loleaflet: Move admin console related files to dist/admin
Better to put all admin related content in a separate directory
rather than mixing it with other files in dist/

Change-Id: I328ff95cf23251ff91bb438c3b9be923ccc2017f
2016-03-22 00:05:29 +05:30
Tor Lillqvist
e41be7c0f4 Revert "loleaflet: Move admin console related files to dist/admin"
This reverts commit 3a09c992f7.
2016-03-21 16:52:52 +02:00
Pranav Kant
3a09c992f7 loleaflet: Move admin console related files to dist/admin
Better to put all admin related content in a separate directory
rather than mixing it with other files in dist/

Change-Id: I328ff95cf23251ff91bb438c3b9be923ccc2017f
2016-03-21 16:33:17 +02:00
Pranav Kant
8519a6a462 loleaflet: Support for memory subscription
Library for creating graphs: D3.js
License: BSD
Currently only being served by a CDN, not copied into the source
tree.

Change-Id: Ib99ec9011da489fc42799c3610612a8c3c8e5c2b
2016-03-13 19:40:52 +05:30
Pranav Kant
ee54f2abbb loleaflet: Split admin JS files into multiple
And then combine into one during build for distributing. We would
also want to minify the combined JS file but that is for later.

This come up rather early than anticipated, but good for us.

Change-Id: I74feb4955c5d47f0e9e817b410726ad219add485
2016-03-08 15:12:28 +05:30
Pranav Kant
cd58f2a491 loleaflet: Better design for Admin console JS files
Lets have a new websocket class for each websocket type we want
in admin console inheriting from single abstract base class.

This, hopefully, would provide us with extensibility and ease of
managing files in future. Right now, there is only one class with
very less complexity, hence all the code is in one file.
As the complexity increases, we would need to separate all these
classes in different files, concat and compress them before moving
to dist/

Also rename dashboard.html to admin.html

Change-Id: I34b9b2817fe4a0e6ee2913c017d2694a17ab978c
Reviewed-on: https://gerrit.libreoffice.org/22904
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2016-03-07 10:56:59 +00:00
Ozcan Esen
e78d65c199 loleaflet: add presentation controls
Change-Id: Ied2c8d0700d95ad628ad9634b1736839c90bd313
2015-12-22 14:58:18 +02:00
Mihai Varga
2d883a2dbe loleaflet: fixed indentation 2015-12-11 14:47:45 +02:00
Andras Timar
19c3187371 Revert "loleaflet: add column/row-header selection support"
This reverts commit db02f8795b.
2015-12-02 16:46:17 +01:00
Andrzej Hunt
db02f8795b loleaflet: add column/row-header selection support
(cherry picked from commit 264761ca18406b414080ccae31554b8ea1128dfd)
2015-12-02 16:23:10 +01:00
Mihai Varga
c1efc7c012 Formula bar for calc 2015-11-12 16:55:56 +02:00
Henry Castro
fd6d0c2b53 loleaflet: add ColumnHeader and RowHeader controls
Column and Row headers for spreadsheet documents, based
on html table tag
2015-11-08 12:29:58 -04:00
Andrzej Hunt
2879547c67 loleaflet: Implement DomEvent trplclick and qdrplclick support
Browsers only support single and double click, so we need
to do our own trplclick and qdrplclick synthesis.
2015-10-29 16:43:38 +01:00
Mihai Varga
f03459611a loleaflet: file insert control 2015-10-22 18:40:43 +03:00
Mihai Varga
6e8bd4fdf0 loleaflet: file insert handler
It sends a file to the server to the /insertfile endpoint,
once the file has been saved in the loolwsd choot, loolwsd is then
notified to insert it in the document

TODO: avoid the last roundtrip
2015-10-22 18:38:35 +03:00
Mihai Varga
84b7b128a0 loleaflet: fullscreen slideshow
We request svg exports for each slide which we then display in fulscreen
2015-10-16 14:07:45 +03:00
Mihai Varga
5f655a7555 loleaflet: print handler tdf#94607
In a browser != Firefox we use a hidden iframe to load the exported pdf
document and call print on that iframe.
For Firefox where the PDFjs script has some permission problems, we
can't do that so we just notify the user that they can download a pdf
version of the document
2015-10-13 20:58:45 +03:00
Mihai Varga
87fae7f854 loleaflet: fonts control 2015-09-10 11:26:47 +03:00
Mihai Varga
baa0806b7c loleaflet: moved the style formating methods in Toolbar.js 2015-09-09 18:59:53 +03:00
Mihai Varga
95463adc44 loleaflet: created a general toolbar methods handler 2015-09-09 18:47:14 +03:00
Mihai Varga
bbc65ebeb0 loleaflet: fixed typo 2015-09-02 14:27:29 +03:00
Mihai Varga
ad756ec257 loleaflet: first splitting of TileLayer into 3 components 2015-09-02 10:56:24 +03:00
Mihai Varga
bb3f3c758a loleaflet: moved the socket init/communication to core/Socket.js
The socket is now available through the L.Socket object which now also
handles the initial connection and reconnection to the server.
The document (tile layer) is now added automatically in the map
initialization.
2015-09-01 17:53:44 +03:00
Mihai Varga
e46766de19 loleaflet: styles control 2015-08-19 11:48:49 +03:00
Mihai Varga
438e400859 loleaflet: document style setter and getter 2015-08-19 11:48:49 +03:00
Mihai Varga
dc56c97c9e loleaflet: separate parts preview and tabs from the next/prev buttons 2015-08-17 10:41:01 +03:00
Mihai Varga
1379326bcf loleaflet: on error fire 'error' events
Those events are now handled by a removable control
2015-08-06 17:41:56 +03:00
Mihai Varga
eca15f7c17 loleaflet: scroll API and event description in README 2015-07-24 16:04:38 +03:00
Mihai Varga
d33f71d32d loleaflet: renamed Map.ScrollWheelZoom to Map.Scroll 2015-07-24 16:04:38 +03:00
Mihai Varga
9b097f376d loleaflet: add the scrollbars as a control to be easily removed 2015-07-24 16:04:38 +03:00
Mihai Varga
e8eedf3f25 loleaflet: moved mouse handler from TileLayer.js -> Map.Mouse.js 2015-07-16 16:15:30 +03:00
Mihai Varga
51592a4c53 loleaflet: log utility
It's used to log communication between the server and the client
It can print or download a csv formated file
2015-07-16 13:55:53 +03:00
Mihai Varga
0d41a804eb loleaflet: enabled mouse selection in viewing mode
Mouse selection is enabled by by calling
map.enableSelection() which disables dragging and selection
can be disabled to re-enable dragging by calling
map.disableSelection()
The above only work for 'view' and 'readonly' mode
2015-07-13 15:53:02 +03:00
Mihai Varga
cd9433e192 loleaflet: setPart API for switching parts
Also added the 'updateparts' event which has the members:
currentPart and parts, indicating the current visible part
and the number of parts
2015-07-10 16:32:19 +03:00
Mihai Varga
761a1b320d loleaflet: toggleState API for bold, italic, etc
Also added the event 'statechanged' with members
unoCmd and state
2015-07-10 15:27:30 +03:00
Mihai Varga
9eea9a63c7 loleaflet: exposed the setPermission API: map.setPermission(perm)
Where perm can be: edit, view or readonly
This also replaces the editMode and readOnly flags
2015-07-10 12:28:56 +03:00
Mihai Varga
146afb7921 loleaflet: exposed the 'search' API: map.search() 2015-07-10 11:00:53 +03:00
Mihai Varga
f374079d1a loleaflet: toolbar control integration 2015-07-08 09:22:27 +03:00
Henry Castro
78764623d8 Added blinking cursor 2015-06-02 23:38:00 -04:00
Mihai Varga
2fa440c18f Status indicator control 2015-05-28 18:43:29 +03:00
Mihai Varga
7b79f0edd5 Control for switching between viewing and editing mode 2015-05-26 20:56:27 +03:00