Commit graph

7666 commits

Author SHA1 Message Date
Tor Lillqvist
2768d8b9fd Bump CFBundleVersion
Change-Id: I0278c745924787fdf5f258bb7d334fa6eef14fc0
2018-12-07 15:28:11 +02:00
Jan Holesovsky
26db5646ed Some compilers do not like this and complain about shadowing the methods.
Change-Id: Iabdc790a9c2c37eccbcb4245a48d564c69ea5d19
2018-12-07 13:39:10 +01:00
Szymon Kłos
b23d72a868 Slide switching buttons in mobile
Change-Id: Idf30f53dc8e1a68d0c99dfef484ea9796ee40550
2018-12-07 12:39:28 +01:00
Szymon Kłos
d68d6cda4a WOPI: Action_RemoveView
Change-Id: Ie8160b70b94c5cb9012560fde64e7e4e9eb079cf
2018-12-07 12:39:28 +01:00
Ashod Nakashian
3bcc198483 leaflet: check status change by comparing payloads only
Since we have two status message commands, we need
to store and compare just the payloads, lest we
unnecessarily re-process the document state when
nothing has changed (except we got status: vs statusupdate:
or vice versa).

Change-Id: I8506fc4ced3e7677ccc6725893b5ad8eeb8e9f9d
2018-12-07 12:39:28 +01:00
Ashod Nakashian
76a14c8eb0 wsd: document forced autosave and why isAutosave=false
Change-Id: I5bb35898bb917f6768327b264e87dd9000a10ecc
2018-12-07 12:39:28 +01:00
Henry Castro
95042c1889 loleaflet: restore original preserveAspectRatio attribute
Change-Id: Ia34deb90c958e3d633d098b63c49adfd5bc3bdac
2018-12-07 12:39:28 +01:00
Szymon Kłos
1df7208956 Enable undo & redo after enterEditMode
Change-Id: I275f16613eafe74539a8ddd939a8db9979174e6d
2018-12-07 12:39:28 +01:00
Szymon Kłos
facbffb072 Enable buttons after read-only mode exit
Change-Id: Ic6680d53d07ba0d3a026ae0e17ba5ba812e60e32
2018-12-07 12:39:28 +01:00
Szymon Kłos
e71bbfcbc0 Reload menubar on permissions change
Change-Id: I156315982cea806de9f0cd21ef45e018be0b3c52
2018-12-07 12:39:28 +01:00
Jan Holesovsky
867ca0129c mobile view mode: Don't show the 'edit' button on the desktop.
Change-Id: Ia7f3fa5036c0f47fb9da51042b5cfe673871e432
2018-12-07 12:39:28 +01:00
Jan Holesovsky
ca6437f417 mobile view mode: More screen space for Writer and Calc.
Change-Id: Ia754aad59d09254d538480619aec1020f4eb4943
2018-12-07 12:39:28 +01:00
Jan Holesovsky
da29205ea4 mobile view mode: Don't hide the content of the upper toolbar when read-only.
Change-Id: I7d3cf8f5f1946f05254cc22d7ea6fedfe872e225
2018-12-07 12:39:28 +01:00
Jan Holesovsky
499a488b5a mobile: Fix the naming confusion also for toolbar-down.
Change-Id: I717d1364926a788a15ac9b5e89c4e5fe28a8cac3
2018-12-07 12:39:28 +01:00
Jan Holesovsky
131f3e9b6b mobile: Fix confusion between <div> naming and w2ui naming.
Both were using toolbar-up, but the <div> was always up, but the actual
w2ui toolbar (named toolbar-up) was at the bottom.

Change-Id: Ic3ff80f68bfb878d2ed77e98e5be10ca96d64987
2018-12-07 12:39:28 +01:00
Jan Holesovsky
b647f6b1cd mobile view mode: Start with the read-only mode, upgrade to edit when needed.
Change-Id: I268bf89465aac871b83238b8e7c534ef80428e88
2018-12-07 12:39:28 +01:00
Jan Holesovsky
a710a8fafd mobile view mode: Add the floating action button.
The icon comes from the Material Design pages: https://material.io

Change-Id: I59acf7bfb6c65030721605ead057c8854f529a3b
2018-12-07 12:39:28 +01:00
Marco Cecchetti
13cfe2be30 loleaflet: shape scaling rework
Now shape scaling is handled through the transform dialog instead of
    simulating a drag and drop event in core.

For performing a uniform scaling when the shape/image is rotated we
    need to inform the client about the rotation angle for the
selected    graphic object that has been achieved but appending an
angle argument
to the graphic selection callback.

The client check if the angle is divisible by 90 in order to decide if
uniform scaling should be used or it doesn't.

Moreover now it is also possible to reverse shapes/images through
negative scaling.

Change-Id: Iadb93f5883ac403313c1358cb3d8cc9db78338fd
2018-12-07 12:39:28 +01:00
Szymon Kłos
286d13e077 Zooming dialogs: per instance, not global
Change-Id: Id5a0baac745018a2d450ce4cb930849105452563
2018-12-07 12:39:28 +01:00
Jan Holesovsky
0d2e61c45f menubar: The temporary one should not be disabled & jump to the new position.
Also don't use the hover frame for the 'Last modification', it is not a
real menubar enttry.

Change-Id: Iccaf8ff2b7a882e7d5bbf56d5dc19422a93457fe
2018-12-07 12:39:28 +01:00
Henry Castro
dfeabd9810 loleaflet: show/hide embedded SVG when it is transformed
Change-Id: I89b10a8bc36520a1224701835b0a66e4b781109e
2018-12-07 12:39:28 +01:00
Henry Castro
d2b9f24ab5 loleaflet: set display to none of an embedded svg element
Change-Id: I6827dd60e3ed6959cabf623f153e73cafed2107a
2018-12-07 12:39:28 +01:00
Szymon Kłos
0eb1bcb8ce Zoom & move LOKDialogs using gestures
Change-Id: I313ef0ed1b801d8a3d3aadfca7c2eb001499e7db
2018-12-07 12:39:28 +01:00
Henry Castro
ef52ba01a4 loleaflet: set opacity 0.5 to a group element
Change-Id: I2f3e7f275e0b217041fd2e4c83a1360cdced738a
2018-12-07 12:39:28 +01:00
Szymon Kłos
d2a4e1677f Introduced tablet mode
* by reducing small device screen size limit to 767px
  tablets like iPad are not switched to the simple ui

* tablet is a mobile device without simple ui

* created global methods to detect ui mode
  window.mode.isTablet() / isMobile() / isDesktop()

* menubar / toolbar items can have 'tablet' property

* modification indicator is hidden in the tablet mode
  to allow layout menubar correctly in the vertical mode

* tablet mode has the menubar folded by default and
  hamburger menu icon to unfold it

* menubar hidden by default needed fix for calc due to
  additional row with formulas

Change-Id: I0d89427f6bfde015c645c597cb741c69b9031178
2018-12-07 12:39:28 +01:00
Henry Castro
5822737a84 loleaflet: remove the bounding rectangle when the hook is removed
Change-Id: I9475c2297882fb848010996087374af5dde3d214
2018-12-07 12:39:28 +01:00
Szymon Kłos
1c191865ec More modern look of the user list
Change-Id: Ie23b0b214992c5d8425ee86eb6e5897f680b65bd
2018-12-07 12:39:28 +01:00
Henry Castro
7831995ca7 loleaflet: ensure to remove listeners when the hook is removed
Change-Id: If6c1044ee95957c1e58c6a5d2d835b25f9a4443e
2018-12-07 12:39:28 +01:00
Henry Castro
bdf5aa187a loleaflet: set no mouse interactive to the bounding rectangle
Change-Id: Ifbc67bd6c144ec45a3cb4effa67f24f90486d97b
2018-12-07 12:39:28 +01:00
Henry Castro
7aa417d0df loleaflet: set no clipping for L.SVGGroup
Change-Id: I1565e6643bdf97de692cfe3a0da36918dd21a05a
2018-12-07 12:39:28 +01:00
Tamás Zolnai
1fcf34ecf5 Make the presentation toolbar completely hidden
Change-Id: I7f70fbc86f6e38f952c65d14e43da6ac45e25bb9
2018-12-07 12:39:28 +01:00
Szymon Kłos
51a51bf8c3 Fix close button on mobile
Change-Id: I87e08454e81c7198a52151af831d0be1d97022e0
2018-12-07 12:39:28 +01:00
Szymon Kłos
a3b723b2ec Make popups look more unified
Change-Id: Idd40ca937f18592ea2c17f9db91f1871a51c7db6
2018-12-07 12:39:28 +01:00
Szymon Kłos
650f91de1f Remove shadow under ruler
Change-Id: I8b67ec54780931a18aa3a4aecb9287dd6848ba9b
2018-12-07 12:39:28 +01:00
Jan Holesovsky
b15c81087d toolbar: Make the spreadsheet toolbars completely hidden (Writer, Impress).
Change-Id: I5ee3955d3cc4883153b9811b05e61d3c78dd8884
2018-12-07 12:39:28 +01:00
Jan Holesovsky
afa3012022 toolbar: This delimiter should start in hidden state.
Otherwise we start with 2 delimiters next to each other, which looks
strange.

Change-Id: I51dd5f39aee59275fc8255231df50a84e0e873c9
2018-12-07 12:39:28 +01:00
Jan Holesovsky
c8999fa33e toolbar: No need to start Bold / Italic / ... in the disabled state.
Change-Id: I2d3d5d93ecbaa902f82236836f58cde09033c83f
2018-12-07 12:39:28 +01:00
Tamás Zolnai
0c8993644e Hide component specific toolbar items by default
Show them later, when we get to know the document type

Change-Id: I5096773a9c9fc1067962c75f112dfa2ac9e1cb38
2018-12-07 12:39:28 +01:00
Tamás Zolnai
6bbc4ddaef Hide component specific toolbars by initialization
Show them later, when we get to know the document type.

Change-Id: I27a4af62edbff134de40551cab2d477e8d28617b
2018-12-07 12:39:28 +01:00
Henry Castro
4680707166 loleaflet: introduce onShapeSelectionContent function
Change-Id: I45bfc7df83242c5291276999e99f0d75ecf221ca
2018-12-07 12:39:28 +01:00
Henry Castro
a604d6697f loleaflet: fix onRemove event of layer L.SVGGroup
Change-Id: I8404419d9f51b750bd550826499f81e555ff8be3
2018-12-07 12:39:28 +01:00
Henry Castro
d06244086f loleaflet: add/remove embedded SVG functions
Change-Id: Ibbdf819f1148b366f5ff782775d8684936a1ffc1
2018-12-07 12:39:28 +01:00
Henry Castro
660b8ef82b loleaflet: fix wrong calling function
Change-Id: I717ced723c7101739b450f23a5b09854dffbdc95
2018-12-07 12:39:28 +01:00
Henry Castro
8f98ddd76e loleaflet: transforms points for L.SVGGroup
Change-Id: I6017427422abe44a359a4f3efc0a5e85d9eb1ee8
2018-12-07 12:39:28 +01:00
Henry Castro
042047d445 loleaflet: create a group element for SVG renderer
Change-Id: Ia3e8c64013b13732bb550dca4cfa249c2da2afe2
2018-12-07 12:39:28 +01:00
Henry Castro
3cf98bc264 loleaflet: add initHook to L.SVGGroup
Change-Id: Ic42c5f2c96c2e35e94da242be1f97a67caabaacb
2018-12-07 12:39:28 +01:00
Henry Castro
dde070eef4 loleaflet: insert new layer svg from string
Change-Id: I34192d7c885f816003aece1b92d90f0e2c83e150
2018-12-07 12:39:28 +01:00
Marco Cecchetti
01da836df8 loleaflet: removing debug code polluting console output
Change-Id: I10a0ad04154dc05c015a482320d53109ccf54601
2018-12-07 12:39:28 +01:00
Jan Holesovsky
8ac65b2f0e Fix --disable-debug build.
Change-Id: I0101bc31f4bcb49b34cf4b837fe27ed9a1e89a55
2018-12-07 12:39:28 +01:00
Jan Holesovsky
7a53dd6af4 impress: Hide some leftover separators.
Change-Id: I15bae27f51ae13b6782bc0e47b7318eb2d28d6a1
2018-12-07 12:39:28 +01:00