Using a gap of 1 pixel (css or not) between frozen pane and movable pane
causes a unpainted gap lines. This was not apparent because we had thick
svg splitter line covering them.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I08573b590662e0e4199b1445c57d3a2917c7d99a
without the interaction capability which is currently not used.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If78e23490f49d2d9d6d17c350c89fa67ba6bfdab
We get a single exception during setup from setSelectionRange,
presumably when the textArea is not focused. That causes a leak
of _ignoreInputCount - which kills text input.
So catch and ignore the exception.
Change-Id: I3fdfff99344f53b03ebadec2e551d7ee70416334
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
ScrollSection.ts is the updated version of this file.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I484dcb7eafdc3ca62ba4d8ad864e0de711567d66
It was used for managing the mCustomScrollBar. Not needed anymore.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ibb1da1e69556f4af56353d2f8d326a3b9a56f059
wholeColumnSelected and wholeRowSelected variables need to be set before the command is sent to the server.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I302643d5dbaeb3a6919c51eef34a2523e5f9bfa0
All ts files were being compiled upon a change on one of them. Bug
solved.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I3137d07e7ddf43076bf8b55fbacba1caef6f19cd
This will avoid code duplications.
Middle handle and flat line handles will use the same function
Change-Id: I6fc3509147e3908a39692488305f89c6f8527a1f
Signed-off-by: mert <mert.tumer@collabora.com>
The implicit transformations done in tile drawing(from offscreen canvas)
must match the canvas transformation done for drawing the overlays.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: If434eb87be99754a2def290b19631a1970e83488
at the frame zoom level on the main canvas after tilesection is drawn
using off-screen canvas.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I45adafae4dc4eaaca27fb9b2d858186b04fb898e
Note that 'up' does not get fired after 'dragend', so the since
969f9f9860 window.IgnorePanning continues
to be true even after 'dragend' which disables panning for document
lifetime.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I76b03a0cd77cfdd36a932c2986d51e56007386ad
It was broken because of one of the previous changes.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ibcc1955d35227d2ac1b429245a97f20df669bfb0
When window is resized, sometimes header drawings aren't updated. This
patch solves that bug.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I1920435a49662c283e9b691bc02d32865ca401e8
Currently translated at 100.0% (370 of 370 strings)
Translated using Weblate (Croatian)
Currently translated at 70.0% (294 of 420 strings)
Translated using Weblate (Croatian)
Currently translated at 99.7% (369 of 370 strings)
Co-authored-by: Milo Ivir <mail@milotype.de>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/hr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/hr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I6cdad8accc1578505c9d54d2fc62f97ef80654b8
Currently translated at 100.0% (420 of 420 strings)
Translated using Weblate (Ukrainian)
Currently translated at 92.6% (389 of 420 strings)
Translated using Weblate (Ukrainian)
Currently translated at 86.6% (364 of 420 strings)
Translated using Weblate (Ukrainian)
Currently translated at 76.4% (321 of 420 strings)
Translated using Weblate (Ukrainian)
Currently translated at 100.0% (370 of 370 strings)
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/uk/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/uk/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I27556c55ad2c9e0cce5836f8dfa18cdc1ec41e11
Currently translated at 100.0% (420 of 420 strings)
Translated using Weblate (Turkish)
Currently translated at 100.0% (370 of 370 strings)
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/tr/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/tr/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Id1dd05d5a7713d67afd10acbd22ac88e3e8e9bd1
Currently translated at 100.0% (370 of 370 strings)
Translated using Weblate (Slovenian)
Currently translated at 100.0% (420 of 420 strings)
Translated using Weblate (Slovenian)
Currently translated at 99.7% (369 of 370 strings)
Co-authored-by: Martin Srebotnjak <miles@filmsi.net>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/sl/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/sl/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I1fac7b84b2c95d1851be3aaf3e8db7678977ebd3
Currently translated at 99.0% (416 of 420 strings)
Translated using Weblate (Catalan)
Currently translated at 100.0% (370 of 370 strings)
Co-authored-by: Joan Montané <joan@montane.cat>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ca/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ca/
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I5feebf884d7b777893a2fdf0fa16b92c54f9c084
Now, bound sections propagate events to the sections those are beneath
them. StopPropagation feature is also implemented.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: I54c886fea0e254d4b97c4d06585db8ed28d40ab9
from nav when in edit mode (keep margins when on readonly mode)
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I83923bbb34e34c20daa81e80c5832778faab8e1b
- Fix#1395
- This was also affecting iPad
- Overflow property doesn't apply to some table elements like table grouping and containers by default.
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I2e12c3cb1e5e2ced16748e79063774502c670946
Currently only the cell-cursor and document selections are part of the
canvas overlay. The others are still part of svg layer.
For now only the bounds of the canvas-overlay items are asserted. The
canvas overlay items update their bounds data as JSON text on cypress
only divs inside the overlay section div every time there is any change.
Unlike cell cursors, the selections need not be always a single
rectangle. To add tests for the more general cases, the json format of
test data is helpful.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I70e6328116c44317f31deb9c8bea62e781d8c421
Now, sections can be anchored to other sections's edges.
One does not need to set approximated initial positions for expandable sections any more.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ic012960dedbd937c19c7442cefefdfebdaffafd3
During zoom-animation, the map zoom is still the prezoom level hence the
painting will conflict with zoom-frame painting.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib0fc5a3e4ab5e1b5dfc8410af0beaca5b90036ab
This resolves a dependency on userName
(a.k.a. UserFriendlyName) that was a source
of issues when missing.
It turns out that when it's missing but
spellOnline is set, an edge-case caused
an exception that failed loading.
The spellOnline value, in its turn, was
incorrectly set to "null" when in fact
it was missing. This resulted in online
spell-checking being active by default.
Perhaps this was intentional, but here
we don't change this behavior at all.
Instead, we avoid sending "null" when
it's missing, and by default we always
enable online spell-checking, unless
it is explicitly set to "false".
This way, the exception is not thrown
and spellOnline doesn't have invalid
values, while preserving the current
behavior.
Change-Id: I4a09ac44ff5d6147c715afa0fb34af9650da4afd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
... and add a few test-cases for CPointSet.empty()
* The tests are written in TS and compiled to JS before Mocha framework
runs them using 'npm test' via 'make check'.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I16e28404af76754b6bbb67c6743ca7d0f2701233
when partial update creates bigger element than view
it might scroll down the content
Change-Id: I63cdfe9176d224594b4b737f0883ded8bdc6c878
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
TileLayer is not initialized when Macro Security warning
is shown - so move to the socket so it can be handled.
Change-Id: I16493d80386c7814ba11d5acc5fa6944f58accf8
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Standard buttons like help or cancel can be not
wrapped with jsdialog weld wrapper so click action
will be not performed correctly. For standard buttons
we have to send correct response to the dialog.
Change-Id: Ib4d42e53f4789bd12ad83404796f6d7a4ce19ef4
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
+ if jsdialog or tunneled dialog is open
don't steal focus by CellCursor state update
Change-Id: I425ee5e0a96521d8fbdc5dd235defe247f2cf9cb
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
When eg. Statistics -> Sampling dialog was opened
we received empty split position what caused to
setup NaN for split pos and no rendering at all
Change-Id: I4bd37778d23b15a01f1850459924c66f437f1570
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
It now detects and compiles ts files in specified directories.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia8a399650480001193be7177b05b5cbb195a98c7
original problem was when in read only mode document container
is not in focus and that is why keyboard shortcut events were
never triggered
This solution focuses the document for composed keys to trigger
shortcuts
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: I084635c5d3e61215a4e88d84271587186605133d
This is needed in cases where the tiles have transparent pixels in them.
For example in Writer's tiles, page borders use transparent pixels. In
this case if the tile section background is not white before we paint
tiles, the page border becomes darker.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id35cfe2e4b22efab8f1b1fb77c4f35dd46f0d1d2
Please do not remove even if unused. It can be useful in temporary
console.log() etc.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I2734efa3cffb8dd5e4a9923672ec179fcae3e12f
if windowId is not set it will use -1 what will
trigger sidebar refresh
Change-Id: I619d05d855a99ccf064d556463f5d8812b7b43c2
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Currently translated at 53.2% (57 of 107 strings)
Translated using Weblate (Japanese)
Currently translated at 53.2% (222 of 417 strings)
Translated using Weblate (Japanese)
Currently translated at 64.2% (234 of 364 strings)
Translated using Weblate (Japanese)
Currently translated at 53.2% (222 of 417 strings)
Translated using Weblate (Japanese)
Currently translated at 50.4% (54 of 107 strings)
Translated using Weblate (Japanese)
Currently translated at 64.0% (233 of 364 strings)
Co-authored-by: 日陰のコスモス <baffclan@yahoo.co.jp>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-app/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/ja/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ja/
Translation: Collabora Online/Android app
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I73fdd7c96e80288936281ec19aba2acef2036972
send click event for cancel button as there is no
better way to close this docking window...
Change-Id: Id5f30e3d823b154117e9da7dca6bbbdef2422591
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
to avoid any spillage of painting off the freeze panes if any active.
As of now the CPolyUtil.clipPolygon() does not work properly so there
the updatePoly() call will paint outside the specified region. So the
canvas clip helps.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2b0b9f767bb04cf504323e087cad456fe04eb5b0
Also add CPolyUtil based on L.PolyUtil that contains dependant
algorithms for polygon clipping.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I4d43fd208e47207116bd2253733fe6205fcd6c48
The overlay needs to be painted only for the tile area.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I725a6b656d8261a90e6debbea0478a0581822b40
is updated and not do them every time updatePath() is called.
Also compute both rings and bounds in a single pass over point-set.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I718f33d3ecd97da333fab0dd1fd3312d16ea6aa9
CLineUtil.ts is also introduced from L.LineUtil which has
implementations of dependant line algorithms.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ff24c8daf0391553c45db74d6f512ccc80fcc97
.. since the subclasses of CPath need to use it for clipping the
contents to visible area mainly for performance reasons.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I86c7a46e498b69b55990a8b4423cbf1da5efae71
as CPath's subclasses need to access it.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I04b42e9b867d308855a62a7e1b82650dc75c57a1
and use that in CanvasOverlay and CPath.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Id3cf0418396dc72b47aeeadf22e78ce3aa1fff4e
The generated js for CPath.ts is added to the generated CanvasOver.js
for now using
/// <reference path="CPath.ts" />
as there is no support for modules in ES5.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I72bf2ab6f299641925c72b484f63e755ba4e61d4
The overlay section will need access to tile section manager to make it
paint over the regions it wishes to "erase" before painting the updated
paths/objects. When overlay's objects are updated, their paint will not
be via onDraw, so tiles are not painted beforehand.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9ea142af69675ee6e0da7132ee36f399facb8ead
Row and column group controls' plus & minus signs were not hairline. It is fixed.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I964f0e3916df91b110ba17e819c24d589c6bd3cd
When column groups is used, document was badly aligned.
This commit fixes it.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If572735a935fae1db2a94b66711b0a9080490a37
coordinates.
Record the last cursor position before any transformation
to (lat,lng) coordinates
Change-Id: I183c55da5cd0f9e3338c411382708afc4b945c01
Signed-off-by: Henry Castro <hcastro@collabora.com>
* on classic
* on notebookbar
* allow it in readonly mode
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I29ed6ed40810ba0e59cdb4d55b9898d016653678
Without this, when joining an editing session of a spreadsheet, you
don't see the cell cursor of another participant until they move the
cell cursor.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I87b8ad584d57bce52b39706fa9f0bbf56a59082a
Row and column groups share some of the functions. They are moved into a file.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I268daf2c293f0cac150587a23001f873e23b4dfc
More comments are added.
Early exits are used.
Unused functions are deleted.
Some functions are renamed for better explanation.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: If835fbb9bbae6898c4847b2c428a3e36f042b60a
Remove "spreadsheet-row-column-frame" div. Since row & column headers and groups are drawn onto the same canvas with tiles, that div shouldn't exist.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
This reverts commit 284e8ce308.
We have to disable panning handler to avoid panning when resizing
the selection using handles.
Change-Id: I9994b3e9ba32bc3e43567d43e547eada311c050e
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
We have a dummy spreadsheet document with a column of cells each in a
different font size. The font size of the current cell is displayed in
the sidebar.
In the test we step through the cells first downwards and then back.
Thus the sidebar image that contains the font size will be updated as
we step through the cells. At first nothing will be found in cache,
but when returning, the images should be found in the cache. If the
cache in the JS client is not consistent with that in the server we
will throw an exception.
Change-Id: I439263c7923d985679fafa0125cd2d7f635e0995
Signed-off-by: Tor Lillqvist <tml@collabora.com>
references.html has been replaced by 2 files with content LOLeaflet
and PostMessage setions respectively.
Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: Id095da5f1ab11c96d090bceab921d74b4fe68482
If the client cache seems to be inconsistent with what the server
thinks, send an ERROR message to the server that will be logged.
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ic7f9d7fb15b2c34f7a6cd2decbacaa7745ac9389
Signed-off-by: Tor Lillqvist <tml@collabora.com>
it is not necessary fire 'updatemaxbounds',
because the association map <-> document layer
1:1
Change-Id: Ic41ab328f7d3d331624107a13acf9f1fdd4c46df
Signed-off-by: Henry Castro <hcastro@collabora.com>
Taping on the selected slide's preview should open the mobile
wizard with the slide properties. To achive this also with
a selected shape on the slide we reset the selection first
and open the mobile wizard after that.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ie60ec9bff01d143e6ca79fe4e32849b2a4fb3bc6