Commit graph

17694 commits

Author SHA1 Message Date
andreas kainz
957ab5b862 Sidebar calc default layout Alignment fix
All widget at the default sidebar in calc are aligned

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I87ffd679b672412436f7433c4f9e2c025eef1a3f
2022-02-22 07:13:23 +01:00
andreas kainz
4f1f6d5b80 Sidebar Alignment fix #4260
Indent vertical widget alignment

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I9737bbbd8f96936b0af73faf50e9cc007a2ca34f
2022-02-22 07:13:23 +01:00
andreas kainz
38ea9a666b Sidebar Table Paragraph vertical alignment commands next row
when you insert an table there is in the sidebar paragraph section
alignment horizontal LtR RtL and alignment vertical
overall there are 9 command
which are to much for the sidebar width

therefore if there is alignment-vertical available,
it was moved to the next row with display: table-row

as the new command for writer work also for impress and draw
the setting for impress/draw only was removed

for prefext alignment padding: 2px was added

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ic030cab180921e238c44a4fb62962e69542beee5
2022-02-21 19:36:50 +01:00
Tor Lillqvist
8b4be1d5df Bump version to match configure.ac
Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: Ife767090ed2b20b2a0111554980af6cfd23f0554
2022-02-21 19:19:54 +02:00
Michael Meeks
0678082db4 Detect trace replay errors & exit and cleanup traces.
Change-Id: I15c04eb9eef02f3f6002c35dc5701b7dbe9a1398
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-02-21 15:37:05 +00:00
Pedro Pinto Silva
eab146c511 CI: Add build status badges
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: Iacaff7a6c78eccf556224b7fa14ca5b0e7adabaf
2022-02-21 15:14:28 +01:00
Pranam Lashkari
d48fe4a5e7 draw: added more details in the draw status bar
Signed-off-by: Pranam Lashkari <lpranam@collabora.com>
Change-Id: Iff349ec26139ce4f561ce2e38a2492bda1e56780
2022-02-21 11:05:26 +01:00
Gleb Popov
cec1a927c2 cleanupJails: Postpone removing tmp directory until the end.
Otherwise, coolmount refuses to unmount devfs hierarchy on FreeBSD, because
the tmp/dev directory doesn't exist anymore.

Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I412f6947c4e1f3c04c2504e6cd88ca5645219878
2022-02-21 10:20:01 +01:00
Gleb Popov
34574724b4 Teach coolmount to mount devfs on FreeBSD.
Use it to create /dev/{u}random devices instead of calling mknod().

Signed-off-by: Gleb Popov <6yearold@gmail.com>
Change-Id: I6ae7842c89255f3f43a8ac7f082a275d5496690a
2022-02-21 10:20:01 +01:00
andreas kainz
f4cde4a18c Save icon use text color and primary-color for feedback
All save icons are now gray,
like the print icon or the hamburger menu icon.

The gray color is the color-main-text as the icon
is next to text, it's not so visible.

Indicators like saveas or modified use color-primary
in the icons and in the .css file

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I7311b71dff356d2c9aaf9d03d97f33a8ae9fb830
2022-02-21 10:12:28 +01:00
andreas kainz
a45570024a CSS Var: dropdown menu use var colors
added variables for dropdown container

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ifa350d6c0a65f31135d39da49f583c5c589614d8
2022-02-20 16:01:21 +01:00
Andras Timar
2c458b1e28 Bump package version to 21.11.2.2
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: Iaf1b0e6707c383385c2edc298de134fd035c23c7
2022-02-19 23:41:43 +01:00
Michael Meeks
0b76383346 Send error on failed load and/or exception during document load
This avoids an endless spinner for the loading mobile app in this case.

Change-Id: I047797cbdb066a236afc40337d2eba08f9c0c84b
2022-02-19 22:15:46 +00:00
andreas kainz
6b8177eae4 CSS Var: Toolbar widget dropdown arrow use text color
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I081abd676f97da26a928a87d6997179acea1c42d
2022-02-19 19:36:24 +01:00
andreas kainz
fc726e6e97 CSS Var: fix for toolbar dropdown menu border radius
the border-radius was needed at .select2.container--default and
.select2.selection--single and __rendered to have nice borders

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I6ae386d65f45c49f221a3c987b101132eb4d56c7
2022-02-19 10:33:38 +01:00
andreas kainz
ace84edba0 Sidebar select and hover 1px border as everywhere
the borders are ordinary 1px so it was update for
jsdialog.cell.sidebar to be also 1px border size.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ie85a82fecd608edd25d5c3314e70a8b91c0a31bb
2022-02-18 21:51:10 +01:00
Mert Tumer
c095a37415 android: fix slideshow displays black background
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I473d9d8fcd658ba8259feba9e393059b3757ef36
2022-02-18 17:59:59 +03:00
Mert Tumer
c30d8cafba android: Fix ppt files are not saved
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I432abf87b6638bb81878dd2fb611d4f26af59500
2022-02-18 17:59:59 +03:00
Mert Tumer
22ed644e0c android: fix xls files are not saved
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ida85063885fb0537191aa84712e9df1c6837ecb6
2022-02-18 17:59:59 +03:00
Mert Tumer
9d1b4e95ca android: fix uncaught exception documentSigningUrl
use empty string in mobile app since it is not used

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I699c348c01ad06b7e720499a615e2c9a27bbf630
2022-02-18 17:41:15 +03:00
Michael Meeks
96b15bd704 Count and report on various internal exceptions.
An initial set of seven of these, easy to add more as/when needed.

Change-Id: I6c65e052d00f9eaa10adee3c9464043e4c594848
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2022-02-18 13:51:41 +00:00
Pedro Pinto Silva
6a4f634630 PostMessage examples: Improve form formatting
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I3bc508600c1ad6531cd88bf5c4ef972d21f10fae
2022-02-18 14:34:46 +01:00
Pedro Pinto Silva
a84f6a96a7 PostMessage examples: Add Insert_Button example
fixes: #4039

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I82e8ec731efd392d720103527e1a3719c8685c63
2022-02-18 14:34:46 +01:00
Alexandru Vlăduţu
307472875c browser: support inserting remote image via postMessage
Signed-off-by: Alexandru Vlăduţu <alexandru.vladutu@1and1.ro>
Change-Id: I1b1acee0770b1d650afad12b54c62ccace63a696
2022-02-18 11:49:37 +01:00
andreas kainz
b91d75b321 document-logo use 16px app icons
update the menubar.css file to make the icon size 16 x 16px
add 16px x-office-* icons so that no scaling is needed.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: If6d84218920e8200e644fa8ded5c950f61c02197
2022-02-18 08:34:21 +01:00
andreas kainz
bab1d1ec7d Menubar use var for background-color at dropdown menues from the menubar
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I82565cd811bc4b0b71c39670a88e0fe21fa91d70
2022-02-18 08:32:52 +01:00
andreas kainz
820c365479 Toolbar Dropdown Widget arrow use --color-main-text
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: I5cc8e47148df5b5a68fed75d4b0298ee930b7792
2022-02-18 08:32:36 +01:00
andreas kainz
55a5c8a743 Spinfield use now --color-text-dark cause it also use the select background
Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: If250f52c7b21f5683ee6223466107addf01f4acc
2022-02-18 08:32:20 +01:00
Ashod Nakashian
52f2600cf9 wsd: test: embue all tests with a name and unify logs
Now the remaining tests that didn't have a name
get one and the logs are unified between old-
and new-style tests. Mostly.

This makes sure that all logs and assertions
properly log the test name and make test
failures easier to debug and fix.

Change-Id: Id159ffacc81642a6ec594c5143498408adab67cf
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
74cf0857d9 wsd: test: CPPUNIT_ASSERT -> LOK_ASSERT
Reduce direct dependency on CPPUNIT further.

Change-Id: I9ca39c20a9c64f983aed1a6488446e0b7f21cffe
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
df98f0c4f0 wsd: test: modernize UnitWOPIVersionRestore
Change-Id: I94d271b055d6666b59188284eee0b9bc0bd18744
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
c92fb35309 wsd: test: dump DocBroker state when tests fail
Change-Id: Idc98847d6b54ff8057a232022fa62531a2bb3ced
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
f8b05a0f83 wsd: support unattended runs
With --unattended, do not wait for a debugger
upon seg-faulting. This avoids the unnecessary wait
that prolongs failed unit-tests in automated runs.
Now run_unit.sh and Cypress Makefile set this flag.

Note that the wait only happens when in debug
builds, or when envar COOL_DEBUG is set. This
prevents us from waiting when running a debug
build where we can't see the output, or indeed
the run is on a CI build machine.

This flag can also be used by devs when reproducing
failures where there is no interest in attaching
a debugger. The logs are shorter and more
readable, too. At least in trace level.

Change-Id: Ice15482c6724abc47f5955402295198eb7f671ee
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
5d10e27fee wsd: test: move DocBroker events to UnitWSD
Change-Id: I233b5f95265458b5e13347e8061c019847e1ca4d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
17ef1a4b80 wsd: test: more consistent test logging
And some include cleanup.

Change-Id: I3807553bf2abe6d36c5cc521bc82e5b089ae91ea
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
4fcd07b172 make: silence chmod failure on missing path
Change-Id: I38d302377a26f2ebe4a734b5f16286613e762891
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
08702df63f wsd: add getSystemClockAsString helper
Change-Id: If6cfa07b48d0d08060987f831fa926f5cf9214a7
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
4369d14c14 wsd: test: terminate promptly when tests finish
No need to wait for a 'clean' shutdown when
a test finishes, regardless of the results.

Change-Id: Ie242d716ad681506a1272c8dd2e8cf1a2b91e69c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
3d04a857bd wsd: test: improved and simplify test logging
Build-time unit-test output is now only
displayed when the test fails. This is to
reduce noise while building when not helpful.

Change-Id: I273d97dae192a24e9a1ae9f662b0fcd7ff555b75
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
2b8944b96e wsd: test: add more DocBroker test events
Change-Id: I89df4709049184e90be21882053b8adfdcbaa868
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
6bf5771376 wsd: test: track wopi operations
Change-Id: Ibd65d3cc29e665510379e72abd7ff1e0f214cc91
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
11dc26b9dc wsd: test: make WopiTestServer less public
Change-Id: Idf28f0a93cab0abcfdf3e518fa08bb06d6eaedd6
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
39e29cf3dc wsd: test: remove inherited logic from UnitWOPIDocumentConflict
Change-Id: I433d0aaa661ad607fc029a52989d806e8364d037
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Ashod Nakashian
44796fc6c9 wsd: test: improvements
Change-Id: I2ed744f8d1a8a472645e5db46789226d6d3ba04a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-02-17 18:52:48 -05:00
Andreas_K
8ffea18007 Revert "Update Save icon to use cloud icon instead of floppy disk"
This reverts commit 3d25bad4e7.

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Ifd288eb7499ff9b789baaff614996704f8cf27c7
2022-02-17 17:00:25 +01:00
Mert Tumer
85310c888c fix sidebar can be visible on pdf
it appears that sidebar callback can arrive before
docloaded message when it is already loaded in the background
Also app.file.fileBasedView parameter is set after docloaded
so it wasnt a correct fix. perm: message arrives before document
initialization and we can hide sidebar unless the arrived messsage is
not 'edit'. if the user have edit mode, it will be up to the users preference

Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: Ifb220d8bb8baad0078bcd32f71ee6853d31adfb8
2022-02-16 15:27:14 +03:00
Tor Lillqvist
41cab506b0 Turn ctrl-left-click into right-click for browsers on macOS
Not sure why the browser doesn't do it automatically. Ctrl-left-click
works on normal webpages just fine, it is equivalent to a tap with two
fingers on a trackpad. (Which, I think, is what Mac users most often
use. That is equivalent to a right-click.)

Signed-off-by: Tor Lillqvist <tml@collabora.com>
Change-Id: I1f0daf0929b41e25a58456bd995f1463c873c42c
2022-02-16 13:04:49 +02:00
Pedro Pinto Silva
b79b8d3b28 Remove border color from #toolbar-up on mobile except calc
improvement upon d9e766c19a
- On calc we need that border since we have the formula bar component

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I7d4c255654bf570a2fa4ac11a9df978f36f22971
2022-02-16 10:41:52 +01:00
andreas kainz
9793882e01 Notebookbar shortcutbar layout update
Notebookbar

 -   Updated save and burger menu in the
    shortcuts-bar color follow --color-main-text
 - savemodified use var color and modifier was added to save
   icon in the file tab

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: If12b9cf5e294982298c4ef392eeac9e12d0ef800
2022-02-16 08:55:48 +01:00
andreas kainz
8f69c5b2b8 Hamburger icon update
icon
 - hamburger menu use --color-main-text
 - so all stuff in the header area use the same color

Signed-off-by: andreas kainz <kainz.a@gmail.com>
Change-Id: Id3361c0f58d5ce12bd1d312bd7aa303fe2071282
2022-02-16 08:55:36 +01:00