Commit graph

7802 commits

Author SHA1 Message Date
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
Ashod Nakashian
ce3a22984e wsd: configure listboxes to limit the drop-down height
This is done to avoid bleeding the listbox/combobox
drop-down ouside the dialog in LOK, alas it doesn't
seem to work. A workaround is implemented in Core
to limit said height, but we should revert that
and use the config only.

Change-Id: I3f14092a8deb1a75bb780b716d778d5c2e9bdbce
2018-12-07 12:39:28 +01:00
Jan Holesovsky
c20487ce7e zoom: Limit Calc only to 100% and 200%, the rest does not look too well.
Change-Id: Iad80bb9f3178abeb011fa940d7ba2570e42d6478
2018-12-07 12:39:28 +01:00
Jan Holesovsky
edab85ab9b zoom: Sync the checkmark in the toorbar with the used value.
Change-Id: I4d129ea22731abd198fc6d08b052cfdb2543da31
2018-12-07 12:39:28 +01:00
Jan Holesovsky
32944f78bb zoom: Use only levels we can handle nicely.
Change-Id: Ibd09afceadde20835d3bccb5a80b78ccee91a207
2018-12-07 12:39:28 +01:00
Jan Holesovsky
93b0069918 impress menubar: Remove one level of menus in Format.
Change-Id: I1928d111c869f109feed32a253ff071c23f71f7b
2018-12-07 12:39:28 +01:00
Tamás Zolnai
1fbc05b864 Avoid moving the shape by rotation
Change-Id: I67c737b1712c4702d28cafe13942fda2634f8526
2018-12-07 12:39:28 +01:00
Andras Timar
4e111d5b60 Revert "Add File - Properties... menu"
This reverts commit 480b6ed0b5.

Change-Id: I326a78ce9c8f0d9c050c757df18bf6e3380e092c
2018-12-07 12:39:28 +01:00
Ashod Nakashian
aaacf1fb66 leaflet: don't resize the canvas when not necessary
Change-Id: I40b73e25f7fe51efad78b39f30193394f23e1c07
2018-12-07 12:39:28 +01:00
Ashod Nakashian
6f0672d923 leaflet: minHeight is dictated by the dialog height
Change-Id: I295b71346070005c6231943ec95e8f7a07e8f010
2018-12-07 12:39:28 +01:00
Ashod Nakashian
26188436a7 leaflet: the dialog open flag is not used
Change-Id: I3a1a4308df7f874e5b56fb24509a506f294d8bd2
2018-12-07 12:39:28 +01:00
Ashod Nakashian
33dd8a1651 leaflet: parse dialog dimentions and position once
Change-Id: I573db6f81f5bcd98cc0c97507ea49e89e9089769
2018-12-07 12:39:28 +01:00
Ashod Nakashian
f13b4a9346 leaflet: update the paint function.
Change-Id: I699a83468b4a240d05ad48467e931f3932d21373
2018-12-07 12:39:28 +01:00
Ashod Nakashian
bbf13162fe leaflet: dialog: factor out window event handling
Change-Id: Idddc405f9c85d0db144aedf5d6b41aa512578ed5
2018-12-07 12:39:28 +01:00
Ashod Nakashian
3a84f6d531 leaflet: dialog: factor out child window event handling
Change-Id: I07938d54b504f20f2508be9f8d50e59a3dcc82e8
2018-12-07 12:39:28 +01:00