I replaced the hack with foreach.
Also added one more foreach for distinguishing the click events from keyboard events.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ibc1d955636ea4dde214c24b911c17c7b0de5f9e0
Don't show scrollbars for hidden content.
Affecting data -> Sort and data -> validity dialogs in calc
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I3124d921ef7819f274e9f583a605e63b66722388
When drawingarea is used as edit filed it is updated
on every kep press or mouse click. We need to setup unique
id for img also so focus later will be set for the same element
after we get update message. (focus is set based on previously focused
id)
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: I89021839177ab78fd0f2346cca2c58fac257af6b
When integrator shows dialog eg. for save as with the
input fields, keyboard appears resizing our frame.
We shouldn't then steal focus from input.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ifda6e7049b1b329fb051966e38fa854c93c05065
Empty api key string indicates that integrator supports
Zotero. When any functionality is accessed by the user
we show notification to integration so it will show a
popup for user with instructions.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Id7289097f245cd3c537ccf78cf818c1aa0d57231
When using Nextcloud with source file with spaces in the name
eg. "file name.docx" and we tried to export as PDF
then error appeared.
In the logs we had "SaveAs produced no output in '<...>file%20name.docx', producing blank url.
We need to decode file name similar to convert-to case.
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ic60cefefc4e20b53feee28b86443090c147bb66e
Probably due to core side changes. I needed to comment out the property checks.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I26683265b827447e676a6463b19b5cb84a0040fc
Signed-off-by: ChrisGlad <chris.gladman2004@gmail.com>
This code fixes the problem that elements in the Notebookbar will
not be correctly displayed as "selected" after changing the UI
mode.
Change-Id: I4f889f8593029c375a06e17dbf1062bb9b9f5efc
This adds a dark mode toggle to both user interface views (compact and tabbed view).
In addition, this code fixes the problem that the initial theme did not load properly
based on settings. Equally, the Toggle in Notebookbar will now appear
"selected" when pressed.
Signed-off-by: ChrisGlad <chris.gladman2004@gmail.com>
Change-Id: I0e0c282cec24d9bb7fbfc4131ba3875976cea5fd
This reverts commit a864d41c09.
Because we can now work in this WIP feature in its dedicated
feature branch.
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
- forcefully send unocommand when jsdialog popup is still open
- fix navigation using ArrowKeys in treeview
- fix console error ev.data is null
Signed-off-by: Rash419 <rashesh.padia@collabora.com>
Change-Id: I6dd75b8b576754513574749e1bd9675581caeabf
- instead of using /dev/[u]random devices, use
getrandom() and/or getentropy() to make direct
system calls if sys/random.h is available.
- if getrandom() fails, we need to fall back
to "/dev/[u]random" approach.
Signed-off-by: Bayram Çiçek <bayram.cicek@libreoffice.org>
Change-Id: Ied37d72feabf005725b615b02854912809236bbc
Behave the same as Contol.Menubar and never disable Paste toolbar
button. Native clients that run LibreOffice locally may send a
"statechanged: .uno:Paste=disabled" message when opening a document
if the system clipboard is empty, So, we ignore such messages or else
the current document's Paste toolbar button will never be enabled.
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ied2aaa49f1a9defe30541af49f4becda35df568b
Replace closeAll calls with uimanager.closeAll. It works for also mobile view.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: Ieaf11fc8f68390f789c18a29813a171d51c13a88
Mobile apps don't substitute these values so set them to zero length
strings.
Also, the iOS app sets the base text direction via the "dir" parameter
so add handling of that parameter in cool.html. TODO: check if the
Android and GTK apps need to implement the "dir" parameter to handle
RTL layout.
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Ied8268ec256011281961ef610d53baeee0efe9cd
The iOS app saves directly to local disk so, other than for
"view file extension" document types or other cases that
I am missing, we can assume the document is writable until
a write failure occurs.
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: Iacb1589eded18f0cb21a5dd8e4d91d295ae697fe
Limit escaping of non-ASCII text and splitting on the first newline to
only certain message types on iOS.
Also, fix mangled UTF-8 text on iOS in jsdialogs when using languages
like Greek and Japanese by only setting the image bytes for only the
same set of message types.
Signed-off-by: Patrick Luby <patrick.luby@collabora.com>
Change-Id: I9cd088509ba9724108da3c9457cd3d098b45723f