Mihai Varga
9369b59e25
loleaflet: use the parent window for printing in chrome
...
We need this because the otherwise created object is not available in
the parent window where the pdf is rendered in the print dialog
2015-10-30 13:09:37 +02:00
Andrzej Hunt
b394f337c7
loleaflet: tdf#94609 Support triple and quadruple click selection
...
Currently probably only supported on desktop (clicking) browsers.
2015-10-29 16:43:38 +01: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
Andrzej Hunt
a7269e40c3
loleaflet: Cleanup dblclick handling
...
We only seem to need to send the dblclick event (nCount = 2)
and not an enclosing single click (nCount = 1) too - the single
click is effectively overridden by the double click.
The buttonup calls also had an erronous additional parameter, which
seems to have been added accidentally in:
14dca89150
2015-10-29 16:43:38 +01:00
László Németh
97ac6736f8
tdf#94608 PgUp/PgDown support and some new shortcuts
...
Ctrl-Home Jump to the start of the document
Ctrl-End Jump to the end of the document
Ctrl-Shift-Home Select from the start of document
Ctrl-Shift-End Select to end of document
Ctrl-Up arrow Jump to the previous paragraph
Ctrl-Down arrow Jump to the next paragraph
Ctrl-Alt-D Insert Endnote
2015-10-29 16:38:44 +01:00
Andras Timar
cd787d50f8
loleaflet: bump version after tarball
2015-10-29 15:50:15 +01:00
Andras Timar
4f750e8b29
loleaflet: bump version before tarball
2015-10-29 15:49:44 +01:00
László Németh
2eaf45351c
tdf#94608 Ctrl-Shift-Up/Down for paragraph start/end selections
2015-10-29 10:03:40 +01:00
László Németh
15812c889c
tdf#94608 add Ctrl-Shift-Left/Right shortcuts for word selection
2015-10-28 23:53:54 +01:00
László Németh
519084aa37
tdf#94608 add more keyboard shortcuts
...
Ctrl-0 Text Body
Ctrl-1 Heading 1
Ctrl-2 Heading 2
Ctrl-3 Heading 3
Ctrl-4 Heading 4
Ctrl-5 Heading 5
Ctrl-, or Ctrl-Shift-b Subscript
Ctrl-. or Ctrl-Shift-p Superscript
Ctrl-Space or Ctrl-m Clear direct formatting
Ctrl-Alt-F Insert footnote
Ctrl-Alt-m or Ctrl-Alt-c Insert comment
2015-10-28 19:33:10 +01:00
Andrzej Hunt
acb39fc057
fdo#94610 autoscroll document for selection
...
This works for both the selection "handles"/cursors, and also
for normal (desktop-like?) click+drag selection.
2015-10-28 11:27:02 +01:00
Andrzej Hunt
c249317743
Implement scrollvelocity
...
This is needed for e.g. fdo#94610
2015-10-28 11:27:02 +01:00
Andrzej Hunt
c10713fac2
Make currently dragged cursor follow map scroll
...
Previously the cursor would become offset from the mouse position
if the window was scrolled during dragging.
Related: fdo#94610
2015-10-28 11:27:02 +01:00
László Németh
b7b9f76007
tdf#94245 fix refused resizing of pictures anchored as characters
2015-10-28 10:12:11 +01:00
Miklos Vajna
094f07af7f
loleaflet: add undo/redo buttons to the toolbar
2015-10-27 15:41:15 +01:00
Miklos Vajna
e0409ad20f
loleaflet: document the source of icons
2015-10-27 15:10:21 +01:00
Miklos Vajna
8dffdaf949
loleaflet: fix pasting in firefox, too
2015-10-27 14:42:26 +01:00
Mihai Varga
6cd136d526
loleaflet: fixed copying in firefox
2015-10-27 15:38:28 +02:00
Miklos Vajna
3588a2c260
loleaflet: map JS paste to loolwsd paste message
2015-10-27 12:16:33 +01:00
Andrzej Hunt
8ab0b88550
loleaflet: onScrollBy: add support for horizontal scrolling too
2015-10-26 10:36:51 +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
e5d1d856aa
loleaflet: getchildid msg handler
2015-10-22 18:36:38 +03:00
Mihai Varga
e6ce519f1c
loleaflet: added a map.print() method
...
Also renamed the print handler so that it does not interfere with the
new method
2015-10-21 18:49:45 +03:00
Mihai Varga
0fa8f60094
loleaflet: stick the parts preview to the left
2015-10-21 18:49:45 +03:00
Miklos Vajna
011b9092bb
loleaflet: fix copying non-ASCII content
2015-10-21 14:51:16 +02:00
Miklos Vajna
71ce604adb
loolwsd: add initial reference.txt to document HTTP POST API
2015-10-20 18:10:40 +02:00
Mihai Varga
7785694d64
loleaflet: downloadAs unit test
2015-10-20 11:54:23 +03:00
Mihai Varga
4ebcc3d2d2
loleaflet: remove event listeners after each test
2015-10-20 11:54:23 +03:00
Mihai Varga
701f0a1ea2
loleaflet: better handle map.remove()
2015-10-20 11:54:23 +03:00
Mihai Varga
7d1918e367
loleaflet: add id paramater to downloadAs method
2015-10-20 11:54:22 +03:00
Mihai Varga
0f9263d76f
loleaflet: if window's protocol is file: add http: to download url
2015-10-20 11:54:22 +03:00
Mihai Varga
80c34db3d1
loleaflet: removed unused variable from unit test
2015-10-20 11:54:22 +03:00
Mihai Varga
9b06a0df77
loleaflet: removed the old unit test
2015-10-20 11:54:22 +03:00
Mihai Varga
03ffa4e740
loleaflet: search unit tests
2015-10-20 11:54:22 +03:00
Mihai Varga
7143b86849
loleaflet: parse the integer in the search result message
2015-10-20 11:54:22 +03:00
Mihai Varga
38718c1915
loleaflet: parts and pages unit tests
2015-10-20 11:54:22 +03:00
Mihai Varga
285e625acc
loleaflet: initialize the part/page rectangles arrays
2015-10-20 11:54:22 +03:00
Mihai Varga
e5ba1f3860
loleaflet: permissions unit tests
2015-10-20 11:54:22 +03:00
Mihai Varga
62184cffb4
loleaflet: documented the print event
2015-10-19 11:31:20 +03:00
Mihai Varga
05e81a0edb
loleaflet: allow the disabling of the print handler
2015-10-19 11:24:30 +03:00
Mihai Varga
ed35ac63f6
loleaflet: searchAll method
2015-10-19 10:44:54 +03:00
Mihai Varga
a666eb248f
loleaflet: [more] rectangles to pixel bounds method
2015-10-19 10:29:53 +03:00
Mihai Varga
9deebf4f87
loleaflet: directly load the presentation in an iframe
...
We now export the presentation document to a single svg document which
can be loaded in an iframe and displayed in fullscreen
2015-10-16 19:35:31 +03:00
Mihai Varga
d7ceedac54
drop 'part' from downloadas protocol as it is no longer needed
2015-10-16 19:35:31 +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
b518046a59
loleaflet: don't scroll based on the selection, but based on the cursor
2015-10-16 14:07:45 +03:00
Mihai Varga
1588dd5f5d
loleaflet: map.getPageSizes - returns the size of each page
...
In twips and pixels
2015-10-15 19:33:37 +03:00
Mihai Varga
3ba0bd6aeb
loleaflet: mention reference.html in README
2015-10-15 19:33:37 +03:00
Mihai Varga
4d8169fa3b
loleaflet: mention that some parameters are in twips
2015-10-15 19:33:37 +03:00
Mihai Varga
113a312023
loleaflet: we now have getPreview and getCustomPreview methods
...
getPreview can be used to request a preview of a page or a part while
getCustomPreview can be used to get a preview of a user defined section
of the document
2015-10-15 19:33:37 +03:00
Mihai Varga
21028a7500
loleaflet: updated and reorganized the html documentation
2015-10-15 19:33:37 +03:00
Mihai Varga
0708e4440f
added a part parameter to the 'downloadas' command
...
We need it to export a specific slide to svg
2015-10-13 20:58: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
ee3687d738
loleaflet: presentation button
2015-10-13 20:58:45 +03:00
Mihai Varga
602e535bb2
loleaflet: fixed the slides preview
2015-10-13 13:41:08 +03:00
Mihai Varga
aeed62cd6b
loleaflet: have a 2 layer toolbar
2015-10-13 13:27:45 +03:00
Mihai Varga
51505e1934
add an ID parameter to the downloadas command
...
We need it to know wheter the user wants to download the file or just
print it, etc
2015-10-09 17:20:18 +03:00
Mihai Varga
9dee045776
loleaflet: use the window's protocl for downloading
2015-10-09 17:00:37 +03:00
Mihai Varga
cf089ccf2a
tdf#94607 downloadAs command handler
...
We use a hidden iframe to download the document. Once we have the url
for it, we set iframr.src = url
Also added map.downloadAs(name, format, options) method
2015-10-09 16:14:38 +03:00
Mihai Varga
d8fa9d708b
handle LOK_CALLBACK_SEARCH_RESULT_SELECTION callback
2015-10-06 18:05:44 +03:00
Mihai Varga
fd7d03a8c7
loleaflet: twips rectangle to pixel bounds method
2015-10-06 17:32:39 +03:00
Mihai Varga
029fab5d1c
loleaflet: some ctrl+key shortcuts #tdf94608
2015-10-05 20:02:35 +03:00
Mihai Varga
886cdc80df
search result count callback handler
2015-10-05 16:44:40 +03:00
Mihai Varga
14dca89150
We now send the mouse button that has been pressed and also they key
...
modifiers for actions such as ctrl+click or shift+click
2015-10-05 15:04:19 +03:00
Mihai Varga
a5757736e9
loleaflet: goToPage without having a LOK instance
...
Knowing the page dimension, we can scroll to the desired page
without requesting sending the 'setpage' command to the server
2015-09-30 13:43:12 +03:00
Mihai Varga
07a305df80
loleaflet: partpagerectangles command integration
...
An event is fired with the page dimensions.
Also the current page number is updated based on which page contains
the current view's center
2015-09-30 13:29:10 +03:00
Mihai Varga
1c9d9bb94d
loleaflet: twipsToPixels and back methods
2015-09-30 13:10:48 +03:00
Mihai Varga
584f6075b4
loleaflet: fit document horizontally when resizing the window
2015-09-29 17:50:08 +03:00
Mihai Varga
229740d18b
loleaflet: update unoKeyCode when we change keyCode
2015-09-29 14:44:55 +03:00
Mihai Varga
0ee3c64dd8
loleaflet: don't pan horiz/vertic when doc fits viewing area
2015-09-29 13:12:30 +03:00
Mihai Varga
8b3b16d6e1
loleaflet: fix undefined variable
2015-09-29 12:21:34 +03:00
Mihai Varga
6ead2c072f
loleaflet: handle shift + arrow keys selection
2015-09-29 10:31:24 +03:00
Mihai Varga
f32b19eb39
loleaflet: updated unit test's description
2015-09-21 23:06:59 +02:00
Mihai Varga
f9a6048b03
loleaflet: added the new methods to the html documentation
2015-09-18 17:53:08 +03:00
Mihai Varga
d8311e72b0
loleaflet: mention version in documentation
2015-09-18 11:50:41 +03:00
Mihai Varga
d8f26465e5
loleaflet: fit presentation slide to screen size
2015-09-17 19:38:12 +03:00
Mihai Varga
c31a1a1276
loleaflet: add an offset of 2 pixels to selection handles
...
Without this, grabbing a selection handle causes the selection to jump
a line below
2015-09-17 18:39:11 +03:00
Mihai Varga
5da3288a4a
loleaflet: reworked selection handles
...
Selection handles are now positioned relative to the text selection
starting and ending points. So the start handle will alwasy be the one
near the text selection start, while the end handle will be at the end,
near the cursor
2015-09-17 18:32:53 +03:00
Mihai Varga
4f3028637e
loleaflet: revert changes to Icon.js and use divIcon instead
2015-09-16 20:57:47 +03:00
Mihai Varga
eca5a95ecf
Bump 'minor' number in version
2015-09-16 18:40:37 +03:00
Mihai Varga
c164163a8c
loleaflet: load test update
2015-09-16 12:57:33 +03:00
Mihai Varga
12b1bf2b6e
loleaflet: loadtest.html fix
2015-09-16 12:51:16 +03:00
Mihai Varga
7d43fbeaa5
loleaflet: empty font size when selecting multiple font sizes
2015-09-16 12:05:25 +03:00
Mihai Varga
efaba387ad
loleaflet: handle multiple a multiple font selection
2015-09-16 11:57:11 +03:00
Mihai Varga
2e726e4a01
loleaflet: html documentation - mentioned the public events
2015-09-15 19:34:38 +03:00
Mihai Varga
fc5d617737
loleaflet: renamed remaining currentPart to selectedPart
2015-09-15 17:53:27 +03:00
Mihai Varga
cd648ed119
loleaflet: refocus document after changing styles/fonts
2015-09-15 16:33:48 +03:00
Mihai Varga
bc6bbf2c93
loleaflet: handle invalidatetiles:EMPTY
2015-09-15 15:26:21 +03:00
Mihai Varga
d511290c7c
loleaflet: default permission is 'view'
2015-09-15 15:14:52 +03:00
Mihai Varga
41a83b88cf
loleaflet: html documentation
...
This is the clean version from the leaflet repository as seen at
http://leafletjs.com/reference.html
Changes will gradually be made to this to reflect the new API and the
changes in the code.
2015-09-15 15:06:51 +03:00
Mihai Varga
aa6b70f574
loleaflet: fixed the font size select
...
Sizes were not updated correctly
2015-09-15 13:44:38 +03:00
Mihai Varga
d6652930fd
loleaflet: fixed js lint errors
2015-09-15 11:56:32 +03:00
Mihai Varga
bc72dcc329
loleaflet: renamed unoCmd to commandName
2015-09-15 11:52:55 +03:00
Mihai Varga
fc96bad0de
loleaflet: toogleCommandState with uno
2015-09-15 10:05:51 +03:00
Mihai Varga
5fa9c364c8
loleaflet: font / style feedback
2015-09-14 20:15:08 +03:00
Mihai Varga
f58eeaf319
loleaflet: numbering and bullets buttons
2015-09-14 13:06:21 +03:00
Mihai Varga
7259d00349
loleaflet: search bar ui tweak
2015-09-14 09:29:23 +03:00
Mihai Varga
e8f3ea678b
loleaflet: remove pause between tests
2015-09-14 09:07:35 +03:00
Mihai Varga
5c99a3f132
loleaflet: fixed the unit test
2015-09-11 13:21:37 +03:00
Mihai Varga
61531c88ce
loleaflet: request toolbar items in this order
...
The other way around causes LOK to crash
TODO - this needs fixing
2015-09-11 13:20:39 +03:00
Mihai Varga
41fd4783ad
loleaflet: round the scroll offset
2015-09-11 13:20:29 +03:00
Mihai Varga
612400dcf2
loleaflet: automated loading test
...
run: make load-test
It generates the necessary 500 documents under spec/data/load-test and
spawns 20 nodejs clients
2015-09-11 10:41:23 +03:00
Mihai Varga
85127f19c2
loleaflet: removed lorem.odt and added other documents
2015-09-10 15:29:05 +03:00
Mihai Varga
76b15ea303
loleaflet: increase/decrease indent buttons
2015-09-10 12:57:11 +03:00
Mihai Varga
9a23b7abb9
loleaflet: renamed setStyle to applyStyle
2015-09-10 11:29:19 +03:00
Mihai Varga
87fae7f854
loleaflet: fonts control
2015-09-10 11:26:47 +03:00
Mihai Varga
d7251aabef
loleaflet: show styles depending on docType
2015-09-10 10:24:40 +03:00
Mihai Varga
c904486115
loleaflet: use the commandvalues server cmd
2015-09-10 09:48:33 +03:00
Mihai Varga
3fc7766d7d
loleaflet: fixed typo
2015-09-09 19:54:32 +03:00
Mihai Varga
c10b6da7a1
loleaflet: only set the style in editing mode
2015-09-09 19:48:10 +03:00
Mihai Varga
a9f5209f5a
loleaflet: uno command alias for the toolbar
2015-09-09 19:46:39 +03:00
Mihai Varga
abe296c0b9
loleaflet: buttons for enabiling editing / selection mode
...
Use those instead of the checkboxes to save some space in the toolbar
2015-09-09 19:36:11 +03:00
Mihai Varga
f735791f4e
loleaflet: method for getting the permission & mouse selection status
2015-09-09 19:34:59 +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
d57100db3b
loleaflet: test document
2015-09-08 12:01:59 +03:00
Mihai Varga
241d38dd02
lolealfet: don't prefetch if map is undefined
...
This happens when the map is removed and some hooks still remain
2015-09-07 17:21:00 +03:00
Mihai Varga
12da97f394
loleaflet: mention about removePreviewUpdate
2015-09-07 17:20:20 +03:00
Mihai Varga
ee34470c73
loleaflet: mention about tilepreview event
2015-09-07 17:20:10 +03:00
Mihai Varga
d7a1ffbe26
loleaflet: 20s timeout for loadtest
2015-09-07 10:24:30 +03:00
Mihai Varga
159e668b01
loleaflet: hide selection when switching thorugh cached parts
2015-09-03 10:33:20 +03:00
Mihai Varga
722257508f
loleaflet: don't handle mouse events before the doc is loaded
2015-09-03 09:49:55 +03:00
Mihai Varga
5b19c9231c
loleaflet: don't prefetch in tilebench
2015-09-03 09:34:16 +03:00
Mihai Varga
d82488f0ce
loleaflet: remove the scrollbar from tilebench
2015-09-02 20:53:20 +03:00
Mihai Varga
009e9e3337
loleaflet: moved img decoding in L.Socket
...
This gives a better tile loading time by 10ms
2015-09-02 20:00:42 +03:00
Mihai Varga
c15819cbe6
loleaflet: fixed typo and removed return value
2015-09-02 19:50:24 +03:00
Mihai Varga
da1992103d
loleaflet: sometimes the graphic marker is not created
...
It was reported to me but I couldn't reproduce. I suspect some invalid
coordinates
2015-09-02 18:16:59 +03:00
Mihai Varga
91b295fca5
loleaflet: updated the tests to reflect the new map initialization
2015-09-02 18:09:08 +03:00
Mihai Varga
c7672438f0
loleaflet: autoupdate previews from the preview control
2015-09-02 17:23:33 +03:00
Mihai Varga
dc617eb700
loleaflet: impress preview invalidation
2015-09-02 17:21:35 +03:00
Mihai Varga
5e843d2381
loleaflet: writer preview invalidation
2015-09-02 17:21:19 +03:00
Mihai Varga
2a2eb14532
loleaflet: option for automatically updating the previews
2015-09-02 17:20:27 +03:00
Mihai Varga
f8aab94e49
loleaflet: setPart msg is now handled separately
2015-09-02 15:14:00 +03:00
Mihai Varga
58862970c3
loleaflet: the status msg is handled now separately
2015-09-02 14:28:02 +03:00
Mihai Varga
bbc65ebeb0
loleaflet: fixed typo
2015-09-02 14:27:29 +03:00
Mihai Varga
7d1625e938
loleaflet: tile invalidation is now handled in the 3 components
2015-09-02 13:57:34 +03:00
Mihai Varga
6bf8a7dee0
loleaflet: renamed 'currentPart' to 'selectedPart'
2015-09-02 12:28:37 +03:00
Mihai Varga
e28da7e12e
loleaflet: alphabetically ordered the server commands
2015-09-02 12:04:13 +03:00
Mihai Varga
c927aec306
loleaflet: modularized the onMessage method
2015-09-02 11:59:38 +03:00
Mihai Varga
ad756ec257
loleaflet: first splitting of TileLayer into 3 components
2015-09-02 10:56:24 +03:00
Mihai Varga
ccffd33a3b
loleaflet: README update
2015-09-01 18:15:43 +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
ccd3fb16e1
loleaflet: set the correct part when prefetching
2015-09-01 13:24:40 +03:00
Mihai Varga
97fcf892c2
loleaflet: modifiable selection handles
2015-08-31 15:10:21 +03:00
Mihai Varga
1987d3850d
loleaflet: fixed coding style errors reported by js lint
2015-08-31 13:32:04 +03:00
Henry Castro
0dc7dca0df
loleaflet: update images loaded asynchronously
2015-08-28 01:40:55 -04:00
Henry Castro
6da0b93e16
loleaflet: update part= optional parameter
2015-08-27 00:25:14 -04:00
Henry Castro
f109da69e4
loleaflet: add timestamp when trying to ...
...
re-establish dropped connection.
2015-08-26 22:09:11 -04:00
Henry Castro
b7bd11f58a
loleaflet: re-establish the connection
...
Based on a patch by Mihai Varga.
2015-08-26 00:28:11 -04:00