Commit graph

1780 commits

Author SHA1 Message Date
Pranav Kant
2bd1dd9646 loleaflet: There's another socket object inside
Change-Id: I952b548e11b2456e3c9d64182444377190062b89
2017-03-31 19:58:51 +05:30
Marco Cecchetti
1e24c77c82 Loleaflet - Calc: horizontal scroll bar not updated on changed doc width
For big spreadsheet (> 100k rows) when the doc width is extended the
horizontal scroll-bar is not updated, causing to not be able toscroll
the document up to the whole width.

This was due to the fact that the old doc height was obtained through
L.DomUtil.getStyle, but the precision of the retrieved value is 6
digits only.

Change-Id: I430b08dd4c864cec09b62c61420414ad306da225
2017-03-31 14:44:04 +02:00
Pranav Kant
ca8bc37657 loleaflet: Close mobile-mode menu upon clicking any menuitem
Change-Id: Iaea20a9b364fc9f1b10d95694aa9b7e465249ca1
2017-03-31 17:45:26 +05:30
Pranav Kant
4b7904036a loleaflet: Annotate readonly users in userlist
Change-Id: Ia000a06baf9f88830dd30c4c4a4297eb10192fd6
2017-03-31 12:22:39 +05:30
Pranav Kant
bc98231119 loleaflet: Store and hide readonly view cursors
Change-Id: Ib2bec3158275e77d883308e25f1984491309234f
2017-03-31 12:20:43 +05:30
Pranav Kant
30c9414d6d loleaflet: Context menu cut/copy/paste is always internal
If user wants to take something out of the document, he/she needs to
make use of keyboard shortcuts to do the same.

Change-Id: Id8237e0bfcb311d1a1465645042f160f7e1d8fb6
2017-03-31 11:07:27 +05:30
Pranav Kant
87c9b30f48 tdf#106842: Prefix 'Internal ' to cut/copy/paste strings
... in DisableCopy mode.

Change-Id: Id758d4654fbe129dd16a466050bf51686440909d
2017-03-30 18:11:49 +05:30
Pranav Kant
017fe90af1 loleaflet: Refine copy/pasting in DisableCopy mode
We always want internal document copy/paste to work and always want to
do a richtext copy/paste whenever possible.

Change-Id: I54705293bd34bc284ceff815ebdf556c7ca1587c
2017-03-30 18:11:49 +05:30
Henry Castro
ebf6bb389e loleaflet: simplify date format of the annotation object
Change-Id: I4d7adfa93f03b8fd639fd701066ed83b41a1bd82
2017-03-29 15:26:05 -04:00
Henry Castro
dc7cbaef0e loleaflet: re-work the arrangement of annotation objects
Change-Id: Idce433835bed16b943306e6ad1bb888f5e9e1ee5
2017-03-29 14:55:36 -04:00
Pranav Kant
9107b012e7 loleaflet: Prevent hscrollbar coming over context menu
Change-Id: Ie4f0fc67aad64e93fe4abc8ac624decc128f59b0
2017-03-28 18:47:18 +05:30
Samuel Mehrbrodt
460da71ce2 Use hub link for git log
Change-Id: Iaf4a6f5568f2e84d8261756607a62598a7144df1
Reviewed-on: https://gerrit.libreoffice.org/35656
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2017-03-27 07:15:10 +00:00
Henry Castro
d99dbade2b loleaflet: handle annotation reply for Calc documents
Change-Id: I27d03313bf4cdc43e7356e78424ee236b90c5269
2017-03-26 11:55:04 -04:00
Henry Castro
5e67e19a6c loleaflet: handle annotation reply for Impress documents
Change-Id: I47edbc8807f5f7aa5a28b3a4fd79aeebc8026262
2017-03-26 11:16:49 -04:00
Henry Castro
563b90a20a loleaflet: remove save button of the annotation object
Change-Id: I1aa19e3620d1bbd3a76fae32e97c4c32adcf0fe6
2017-03-26 10:19:10 -04:00
Henry Castro
6da38c8244 loleaflet: fix when an annotation is removed from Calc documents
Calc server does not respond with cellPos property when an annotation
is removed

Change-Id: I7c15e112c549f10277fb2fb51bc12b3f16f5fc88
2017-03-26 10:11:27 -04:00
Jan Holesovsky
9f17050a7d Pass the locale settings from loleaflet to wsd/kit.
Change-Id: Ie530db73cfbdb62787f16eae0f4b07fbf8b8acb4
2017-03-24 12:34:32 +01:00
Pranav Kant
5c8fb67863 loleaflet: Redline has only textRange property
Change-Id: I534f327cb71cddec4b3437f17f92ee4b24ed488a
2017-03-23 17:54:58 +05:30
Pranav Kant
5bb6e203c5 loleaflet: Accept, Reject redlines buttons in main annotation win.
Change-Id: I16b931c07485eb98fdac00d1dc968a4c9251a02a
2017-03-23 17:34:35 +05:30
Pranav Kant
092d93d5ef loleaflet: Do not set width explicitly
Container will automatically adjust its width as according to the width
of the containing child table or other elements.

Change-Id: I0a18dc5263d05eb8c67d342d4acf5f7c4bae128c
2017-03-23 17:10:51 +05:30
Pranav Kant
b0b7e5abe3 Revert "loleaflet: ensure visible element before getting bounds"
This reverts commit a759a01c7d.
2017-03-23 16:39:01 +05:30
Henry Castro
a759a01c7d loleaflet: ensure visible element before getting bounds
Change-Id: Iae66d8d52f4d97b61d861586e5a008c18d15e39d
2017-03-22 22:32:31 -04:00
Henry Castro
f3700400e6 loleaflet: fix the selection of the annotation object
Change-Id: I1bf6b669b768057b7b9943654db79b2966ca3ec3
2017-03-22 21:21:41 -04:00
Henry Castro
0107e0e0d9 loleaflet: handle annotation reply for writer documents
Change-Id: Iff95919d6f413b025ddb386150f458b9ecf2ce88
2017-03-22 21:11:53 -04:00
Henry Castro
e30bcdfcd8 loleaflet: add reply property to the annotation object
Change-Id: I58323dd35380e9cadf25661f85f38e080bbff026
2017-03-22 21:07:48 -04:00
Pranav Kant
064b2508a7 loleaflet: Slide sorter for draw documents
Change-Id: I4ad11236c0186561b5c7df1a3c634e54f8576c8c
2017-03-20 13:59:52 +05:30
Henry Castro
7bf2637872 loleaflet: use textRange property to select the text
Change-Id: Ie396b199b33ab322a015ce77272430fcf83ef17b
2017-03-19 23:16:34 -04:00
Henry Castro
caf55527d1 loleaflet: fix the date format of the annotation object
Change-Id: Idc323f51e610c784ddc2a4624c0ddf8881c8170c
2017-03-17 21:31:53 -04:00
Henry Castro
92a5320694 loleaflet: insert annotation now pops in the cursor position
Change-Id: I6bdfc0cd8a9603cf10685dc5562afd6d81d52162
2017-03-17 21:01:33 -04:00
Henry Castro
91649dc4b6 loleaflet: remove line arrow to replace the text selection
Change-Id: I20a85c65463930c3f60c47fc770b68d191887fda
2017-03-17 19:07:27 -04:00
Henry Castro
3190483d7c loleaflet: convert anchorPos to L.Bounds
Change-Id: I8fb648ec52e21a93a1f76fe44224e5481a697453
2017-03-17 17:35:05 -04:00
Pranav Kant
f57e412403 loleaflet: Tell WOPI host if document was ever modified by user
Change-Id: Ic99136168716d7a01d1388c4f5e1107ef9e64616
2017-03-17 15:42:10 +05:30
dewana-dewan
a3c1a685cd implemented zooming with Ctrl-<mousewheel>
Change-Id: I27e53715719fd84b3e22940cc5688e87ae1f0805
Reviewed-on: https://gerrit.libreoffice.org/35288
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-03-17 08:32:02 +00:00
Dewan
92ad94f259 display lokit and loolwsd version in admin panel
Change-Id: Ia5b89373bfd7e921597b73d5a84963268244b748
Reviewed-on: https://gerrit.libreoffice.org/35199
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-03-17 07:53:06 +00:00
Michael Meeks
97cb6597c8 Admin: don't set 'secure' on auth cookie for http.
Also tweak paths to accomodate bundlification, apparently un-necessary
in secure cookie mode, interestingly.
2017-03-16 16:44:27 +00:00
Henry Castro
63c7662508 loleaflet: fix annotations of each sheet
Change-Id: Ie3169a051523ea99a9d1108b5d921fd6c045ed3d
2017-03-15 23:26:07 -04:00
Aron Budea
4a99210f97 loleaflet: Don't clear ids in unoCmdToToolbarId(...)
Since 4030795584 spreadsheets
start with Undo/Redo/Doc. Repair buttons enabled, because
of this.

Change-Id: I20a22f483324289435825c3514894389176f57f3
Reviewed-on: https://gerrit.libreoffice.org/35056
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-03-15 05:18:23 +00:00
Henry Castro
00fb1aeddd loleaflet: fix annotations of each slide
Change-Id: I85a27aadad9b03c8a190d3a4b2af7bcb86550a01
2017-03-14 20:41:40 -04:00
Henry Castro
92d4ec64c3 loleaflet: fix the image author size of the annotation object
Change-Id: Ife0c6d497dd0a201b10a2f7e8729ae8cb2a22627
2017-03-13 20:58:05 -04:00
Andras Timar
e5fbdb2cde loleaflet: add new localizable files to Makefile.am and regenerate pot file
Change-Id: I6a91186eba13da6745c2cddb6e96b7b148d797dc
2017-03-13 13:03:19 +01:00
Pranav Kant
ffd00d8824 loleaflet: Allow keeping document always active via PostMessage
To instruct the loleaflet iframe to not dim the document, it needs to
send the message in following format :

{
 MessageId: 'Set_Settings',
 SendTime: 1329014075000,
 Values: {
	AlwaysActive: true
 }
}

Similarly, set AlwaysActive to false to active dimming the screen again.

Change-Id: Icb5d615268e4da2c3ed2f22df8c0f3e52f370a70
2017-03-10 16:37:34 +05:30
Pranav Kant
48977108be loleaflet: Allow not inactivating the screen
Change-Id: Iad6233e2855b9260732ce4449668c0fab1cd3804
2017-03-10 14:58:47 +05:30
Pranav Kant
6c333b154a Typo
Change-Id: Iba85f017321806649ab4723a88873894c1b349f3
2017-03-10 14:17:54 +05:30
Henry Castro
bd911ff9d5 loleaflet: rework Impress annotations
LO Impress does not have an anchor position of the annotation object

Change-Id: Ifaa08bb3f62f442f3ee58242e835b6377901a592
2017-03-09 23:01:33 -04:00
Pranav Kant
af3a9110ee loleaflet: Add trackchange flag when object is modified too
Change-Id: I0b1c67737088018e4f87b85b5b10f3c68233c56f
2017-03-09 17:41:41 +05:30
Pranav Kant
148e0f6832 loleaflet: Make caption text bold
Change-Id: I2dbfcf8e341703ba931466e00c269a4a5814c7f9
2017-03-09 17:41:15 +05:30
Pranav Kant
8b3267e32e loleaflet: Add change tracking captions
Use the redline descriptions, such as, "Insert 'text'" etc. as captions
in change tracking sidebar objects.

Change-Id: I6c99f3b45725620b8888da77b0b8b4ebcdda10d2
2017-03-09 17:20:15 +05:30
Pranav Kant
ab7fc23021 loleaflet: Bin comment on change tracking option in toolbar
... as one can now easily comment on the change using the new popped up
sidebar object that gets added to DOM when a new redline is added.

Change-Id: Icb048672b0b3fe2a0490b64e05539095ffcb3715
2017-03-09 17:12:37 +05:30
Pranav Kant
7c84478840 loleaflet: Allow accepting/rejecting a change from sidebar object
Change-Id: I309b33c4569bc74c69200298566734e16d08b305
2017-03-09 17:11:01 +05:30
Pranav Kant
88de8e97cc loleaflet: Handle change tracking comments in multiview
Change-Id: Ib7d10b96e7d58f7578fe9b6fd8605eb3cfe8232f
2017-03-09 14:08:34 +05:30