Commit graph

3041 commits

Author SHA1 Message Date
Pranav Kant
d04a92fcf3 loleaflet: Check if clicked item is in toolbar-up-more
Change-Id: I8758f0195fcc9a2676597637c11efc9476d5093b
2016-05-26 14:31:01 +05:30
Pranav Kant
586b159902 loleaflet: Clean-up toolbar; fix en/dis-able button states
Use an object to keep track of enabled/disabled state of buttons.
This also prevents us looping all the format buttons everytime a
commandstatechanged is received, so better algorithmic
complexity.

For sessions in view-only mode, keep storing the state of these
buttons in this object, and use the stored states to
enable/disable buttons when edit lock is taken.

While enabling/disabling the toolbar buttons, also check in
toolbar-more.

Change-Id: I6555fde6669e1a8ba349c3213280a627a05d80b7
2016-05-26 14:31:01 +05:30
Henry Castro
39fe4e5580 loolwsd: test: add testFontList 2016-05-25 19:57:35 -04:00
Henry Castro
4379d2fc3b loleaflet: bccu#1798 Choice of styles in listbox limited to a few in presentation 2016-05-25 19:34:46 -04:00
Andras Timar
7f55c00df0 loleaflet: added translations (ca,cy,de,el,es,fr,hu,is,nb,nn,pt-br,sv) 2016-05-25 23:23:02 +02:00
Andras Timar
fdaae06f8b loleaflet: use browser language codes
Reference: http://www.metamodpro.com/browser-language-codes
I did not remove codes, that are not listed, e.g. ca-valencia,
kmr-Latn etc. They may be added in the future to browsers.
2016-05-25 22:57:27 +02:00
Pranav Kant
f8d36417d2 loleaflet: Regain focus after menubar selection
Change-Id: Ia0a5c81f5fe948a3552cfb36b82f9346f1b4969a
2016-05-25 17:20:50 +05:30
Pranav Kant
92aed1fffd bccu#1825: Make 'Editing'/'Viewing' text also sensitive
Change-Id: Ice52dd5d7a459127df18307aad0b7d8f2ef5825e
2016-05-25 16:47:32 +05:30
Pranav Kant
410cbf49f7 loleaflet: Sync debug/document/loleaflet.html with dist/loleaflet
Useful for debugging.

Change-Id: Ifeda2d061fcd8d98837da061c696e082a84c2850
2016-05-25 15:02:17 +05:30
Pranav Kant
f6ca0b08cb loleaflet: Replace gif spinner with html canvas
The gif spinner had a white background flashes in its frames, so
it always needed white background behind it. With this, we will
have no such restriction, can can have transparent background.

Change-Id: I1faffa326ae85114e52231cc4e33d84c7ac0675d
2016-05-25 14:58:48 +05:30
Pranav Kant
83e625e6e6 bccu#1811: Give the stolen focus back to map
Fallback from d104e82d74

Change-Id: I5885bd11cee9499a26165e6989bb652683c4645d
2016-05-25 14:25:39 +05:30
Henry Castro
bf1a4705e4 loolwsd: deallocates memory previously allocated by malloc 2016-05-25 00:33:33 -04:00
Jan Holesovsky
0545001add bccu#1833: Fix closing button in the help. 2016-05-24 14:27:04 +02:00
Jan Holesovsky
294bc98266 Fix non-ssl build. 2016-05-24 14:27:04 +02:00
Pranav Kant
d104e82d74 bccu#1811: Regain focus when inserting comment via context menu
Change-Id: Ic06d86f0ef991c04e9fe3c1be7119868fff4fdc3
2016-05-24 17:49:37 +05:30
Pranav Kant
3c077539a2 loleaflet: When no permission specified, switch to old 'edit'
After the introduction of editlock, old styled loleaflet's view
and edit permissions have become obsolete. By default, when
opening a new document, the user is in that old styled 'view'
mode unless specified in the url by permission=

Lets change the behavior and make document to be in 'edit' mode
by default unless specified.

Change-Id: Iebf0d8512ddc8f7ff549c12dbb366643ca207345
2016-05-24 17:16:52 +05:30
Pranav Kant
a029377519 bccu#1824 - Move closedoc button in line with menubar
Change-Id: I711e4a724ea5b886469f6f69aa27bd53d84ccebf
2016-05-24 16:13:22 +05:30
Pranav Kant
f95dbb177d bccu#1832: Increase z-index of context menu overlay
... so that it could come *over* the menubar when space is
scarce.

Change-Id: I218ec359d37f42174c5b7035a2d6da9a11da2cd1
2016-05-24 12:45:22 +05:30
Andras Timar
fa8acdc857 loleaflet: enable l10n of context menu items which come from src files from LO 2016-05-24 08:53:07 +02:00
Andras Timar
ea20a29007 loleaflet: l10n of submenus of context menus 2016-05-24 08:22:37 +02:00
Andras Timar
8f35af5821 loleaflet: unify casing of tooltips of toolbar buttons 2016-05-24 08:09:19 +02:00
Pranav Kant
37b71b2289 loleaflet: Leave 125px from left for branding logo
Change-Id: I92dbf92e4d140c8975198b14f6560c1d309202a8
2016-05-24 11:32:54 +05:30
Andras Timar
633598bf83 loleaflet: unify casing of menu items 2016-05-24 08:00:52 +02:00
Andras Timar
63cbf9e4bb loleaflet: enable l10n of 'Document saved' message 2016-05-24 07:38:58 +02:00
Andras Timar
131ed8420d loleaflet: Set font of editlock popup message 2016-05-24 07:24:29 +02:00
Ashod Nakashian
96dd4821e1 loleaflet: bccu#1827 Cursor does not blink in CS Writer under IE11
The animation name shouldn't be in quotes.

Change-Id: Ib2e4489e482dd1a22472588599df87cab55a6005
(cherry picked from commit 401e3b12778cc5c7883322e4543370acf270c479)
Reviewed-on: https://gerrit.libreoffice.org/25392
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-24 03:32:07 +00:00
Ashod Nakashian
dd4d2b026b loolwsd: test comment editing in Writer
Change-Id: I8449556960dedc2c66547016172acce688098cb3
(cherry picked from commit e96140b745283c0ae5e466001e0cf89cf945a398)
Reviewed-on: https://gerrit.libreoffice.org/25391
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-24 03:31:50 +00:00
Ashod Nakashian
d2ff39d296 loolwsd: test InsertAnnotation in Writer and Calc
Change-Id: I0f1b30467c3877316dc7c3122f04f3055b28cdd2
Reviewed-on: https://gerrit.libreoffice.org/25390
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-05-24 03:31:23 +00:00
Andras Timar
3946ebd6e7 loleaflet: add font styling to row/column context menus 2016-05-24 00:29:13 +02:00
Andras Timar
ec6e626952 loleaflet: define l10n _() function earlier 2016-05-24 00:17:44 +02:00
Andras Timar
58c65fbca4 loleaflet: add dist/errormessages.js 2016-05-23 23:53:32 +02:00
Andras Timar
240ce7e8e9 loleaflet: don't ignore errormessages.js 2016-05-23 23:53:08 +02:00
Andras Timar
3724fc1b66 loleaflet: bccu#1813 workaround for double encoding in cp-5.0 branch 2016-05-23 23:31:37 +02:00
Andras Timar
62896c66ea loleaflet: enable l10n of menus 2016-05-23 22:49:11 +02:00
Andras Timar
c90bd39b2e loleaflet: remove obsoleted dialog for menu:file:saveas 2016-05-23 22:40:30 +02:00
Andras Timar
55c77c6deb loleaflet: enable l10n of two error messages 2016-05-23 22:32:56 +02:00
Pranav Kant
d2a7be0b6e loleaflet: Enforce linting during make
Change-Id: I509b13cb9f70c6de66b1906b76c4a968e05322f4
2016-05-23 20:08:29 +05:30
Andras Timar
b946b3b8c2 Ctrl + Down Arrow in fact jumps to the beginning of next paragraph 2016-05-23 15:23:32 +02:00
Christian Lohmaier
2bc0f09a22 typo: horizontaly → horizontally 2016-05-23 15:12:00 +02:00
Andras Timar
b5ce034fde loleaflet: update translations (test) 2016-05-23 13:32:01 +02:00
Andras Timar
1af287e437 loleaflet: add --from-code=UTF-8 to xgettext call 2016-05-23 13:29:16 +02:00
Andras Timar
5271a91069 loleaflet: add l10n support to VIEVING/EDITING labels 2016-05-23 13:25:26 +02:00
Andras Timar
9fc6c56335 loleaflet: bccu#1818 position formula toolbar to left 2016-05-23 13:16:28 +02:00
Andras Timar
d173a21b28 loleaflet: hide 'Insert Table' for spreadsheets, get it right finally 2016-05-23 12:48:38 +02:00
Andras Timar
c3b55e40fa loleaflet: hide 'Insert Table' for spreadsheets, disable 'Insert Table' in view mode 2016-05-23 11:51:59 +02:00
Andras Timar
cb24e246cc loleaflet: hide 'Insert Table' for spreadsheets, disable 'Insert Table' in view mode 2016-05-23 11:30:14 +02:00
Andras Timar
7126135146 loleaflet: Enable l10n for 'take edit' note 2016-05-23 11:27:15 +02:00
Andras Timar
c091cd20eb loleaflet: Set font for table picker 2016-05-23 11:09:33 +02:00
Andras Timar
491a41933d loleaflet: Set font for zoom percentage 2016-05-23 10:59:04 +02:00
Pranav Kant
a2f9e2c255 loleaflet: Fix lint errors
Change-Id: Ib4447ebecf8e95cb1ac9432fcf8ca2f8b0859550
2016-05-23 14:24:26 +05:30