Commit graph

1236 commits

Author SHA1 Message Date
Ashod Nakashian
a06247fa5d loolwsd: Log level and warnings
Log level can be set from LOOL_LOGLEVEL
environment variable (values are those
supported by Poco::Logger::setLevel).

Added warning logging via warn function.

Change-Id: I450511d5132893b93391b287fa5b3d6f522f4744
Reviewed-on: https://gerrit.libreoffice.org/20928
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-25 03:30:03 +00:00
Ashod Nakashian
37c7f2f325 loolwsd: fixes to loolmap
Change-Id: I58ce3dbbd6bbd1e3eb860ba6c3044ba4a61e281d
Reviewed-on: https://gerrit.libreoffice.org/20909
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:23:48 +00:00
Henry Castro
9d7fbec138 loolwsd: Merged improved lifecycle prototype
Enabled the broker and kit processes.

Change-Id: I9afedbccac35732ffe846494cae8135d306e6311
Reviewed-on: https://gerrit.libreoffice.org/20907
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:23:40 +00:00
Ashod Nakashian
ea0ddcf738 loolwsd: Nominal logger and fixes
Nominal logging interface and a fix to using Poco
Application from LOOLKit, which is not a Poco App,
which caused core dump.

Logs now include process name.
Added logs to strategic places and some cleanups.

Change-Id: Ib7dcc4f1033dddf7c87cd2e786a91f5b482fb312
Reviewed-on: https://gerrit.libreoffice.org/20906
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:23:10 +00:00
Henry Castro
ef9313e3a9 loolwsd: deligating to loolbroker and loolkit
Change-Id: I8499540630373a1bee12a5f58fca3ed701ff6404
Reviewed-on: https://gerrit.libreoffice.org/20904
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:22:22 +00:00
Ashod Nakashian
ab5253ba1e loolwsd: Refactored the PRNG
Moved the PRNG into utility namespace and interface
that internally manages seeding (once per process)
and thread-safety.

Change-Id: I78f0ef2c3a01aa6c6aefc8e4b07f3802f2421c68
Reviewed-on: https://gerrit.libreoffice.org/20901
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:18:16 +00:00
Henry Castro
1bd85bc641 loolwsd: merged loolmap
Change-Id: I43845ce5f45c01a67db32ab136ad96b70bc31217
Reviewed-on: https://gerrit.libreoffice.org/20908
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:11:44 +00:00
Henry Castro
2c1e44d218 loolwsd: LOOLBroker process added
Change-Id: Ia7332761766026599b8ef415652874371938d311
Reviewed-on: https://gerrit.libreoffice.org/20903
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:11:23 +00:00
Henry Castro
4af013e87e loolwsd: LOOLKit process added
Change-Id: I91e8a131b4959a78e43b29faede477d39150c97c
Reviewed-on: https://gerrit.libreoffice.org/20902
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:10:50 +00:00
Henry Castro
03f33c71d9 loolwsd: Multiple views in ChildProcessSession
Change-Id: I07359c97acc1e5e48dbbd35dc21ed08471c0697e
Reviewed-on: https://gerrit.libreoffice.org/20899
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:10:13 +00:00
Henry Castro
e0241b1825 loolwsd: Added remove_if to MessageQueue
Change-Id: If4e72796eb39ee66e7604cf67688329fc94d9539
Reviewed-on: https://gerrit.libreoffice.org/20900
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:09:48 +00:00
Henry Castro
4a5277cb95 loolwsd: merged systemplate-setup
Change-Id: Id066b02e405246d6a0a268aa1b29e09cd7730642
Reviewed-on: https://gerrit.libreoffice.org/20905
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:09:24 +00:00
Henry Castro
961f853d6d loolwsd: Added FIFO utils.
Change-Id: Ifc4e3dafce669c615d5f0d156227f31fcf959936
Reviewed-on: https://gerrit.libreoffice.org/20896
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2015-12-23 17:06:57 +00:00
Ashod Nakashian
30e1bbba14 loolwsd: const and cleanups
Change-Id: I2fff14407c35a3c6119f44fbee1b4c458b7eac16
Reviewed-on: https://gerrit.libreoffice.org/20897
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:06:26 +00:00
Henry Castro
2d375f3eba loolwsd: FIFO
Change-Id: I4694e45ab8006e8287011000bc5e2797bc9ecd48
Reviewed-on: https://gerrit.libreoffice.org/20898
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-23 17:05:37 +00:00
Henry Castro
1f43e99ac7 loolwsd: Refactored ChildProcessSession
ChildProcessSession class now moved to own files.

Change-Id: Ic67c8563ada51f23c83e06631ad913af610d395c
Reviewed-on: https://gerrit.libreoffice.org/20895
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2015-12-23 17:03:43 +00:00
Henry Castro
894ab66d8c loolwsd: Refactored MasterProcessSession
MasterProcessSession class now moved to own files.

Change-Id: Ic1a980295b9bb4b28ec9e205de1544fb98ad98f8
Reviewed-on: https://gerrit.libreoffice.org/20893
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Henry Castro <hcastro@collabora.com>
2015-12-23 17:02:57 +00:00
Ashod Nakashian
e6c916fe6d .gitignore: ignore dot files, /systemplate, and cscope
Change-Id: Ibdecd9e58160829208a0ba51f050b6010ad9b3f9
Reviewed-on: https://gerrit.libreoffice.org/20894
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-12-23 16:13:43 +00:00
Ozcan Esen
e78d65c199 loleaflet: add presentation controls
Change-Id: Ied2c8d0700d95ad628ad9634b1736839c90bd313
2015-12-22 14:58:18 +02:00
Mihai Varga
7e44e639d8 loleaflet: better document the unit tests 2015-12-21 17:18:59 +02:00
Henry Castro
d70280fff8 loolwsd: when no available child sessions, pre spawns more children 2015-12-18 16:51:08 -04:00
Henry Castro
8c4421d681 loolwsd: clean up unnecessary code 2015-12-18 16:45:30 -04:00
Mihai Varga
896b12d253 loleaflet: ccu#1347 - row/column headers can be < than the map 2015-12-18 18:52:23 +02:00
Mihai Varga
fe7ae3cc2a fire the commandresult when the saveAs command has finished 2015-12-18 15:40:03 +02:00
Mihai Varga
6ae4bdf2a1 loleaflet: allow specifying the starting zoom level 2015-12-18 14:40:46 +02:00
Mihai Varga
d7b37ea25a loleaflet: map.fitWidthZoom(maxZoom) method
I've also added an initialization parameter that controls whether the
document should automatically call fitWidthZoom on resize.
2015-12-18 12:50:07 +02:00
Jan Holesovsky
1fb94f0abb loolwsd: We want to build and link with -pthread. 2015-12-17 18:50:00 +01:00
Jan Holesovsky
dacd176c84 loolwsd: We wanted to call the _impl() version.
This was in preparation for a more complex Queue; maybe we should just remove
the non-needed _impl() versions again (?)
2015-12-17 18:50:00 +01:00
Mihai Varga
0d655ca7ac Bump the minor version number 2015-12-16 20:55:30 +02:00
Mihai Varga
f789928419 loleaflet: specify the toolbar container + don't add empty controls 2015-12-16 19:57:55 +02:00
Mihai Varga
84347b2b2e loleaflet: remove edit/readOnly map init options, add permission
And permission can be 'view', 'edit' or 'readonly'
2015-12-16 18:47:12 +02:00
Mihai Varga
1970ab4a2e loleaflet: scroll to [0, 0] after creating the tab control
Creating the tab control offset the document a bit so we need to reset
it.
2015-12-16 16:15:39 +02:00
Mihai Varga
3a13f2bea4 loleaflet: document the current initialization methods 2015-12-15 18:58:05 +02:00
Mihai Varga
b75a80b78b loleaflet: fixed coding style issues in leaflet.css 2015-12-15 15:47:42 +02:00
Mihai Varga
d9d201e74e loleaflet: individual css files for our additions to leaflet 2015-12-15 15:41:15 +02:00
Mihai Varga
fbbf364aa9 loolwsd: initialize the tile to transparent 2015-12-14 15:55:34 +02:00
Ozcan Esen
449022730b change the border style of the selected preview
Change-Id: I0d163c0a68dbc532db08ed8735a4cdb7107ec8e5
2015-12-14 15:27:58 +02:00
Mihai Varga
a0d6f7d6d5 loleaflet: always use fillRow/fillColumn
This avoid the case in which the row/column headers are just resized
but they are empty or invalid
2015-12-14 14:55:28 +02:00
Mihai Varga
a3084d5235 loleaflet: fixed a typo and removed some comments 2015-12-14 14:51:35 +02:00
Mihai Varga
803c89a43f loolwsd: only cache font/style command values
This fixes a bug where row/column headers were cached too
2015-12-14 14:38:05 +02:00
Mihai Varga
30f1f85e08 loolwsd: bump version after tarball 2015-12-11 15:04:15 +02:00
Mihai Varga
d2f593c9b3 loolwsd: bump version before tarball 2015-12-11 15:04:00 +02:00
Mihai Varga
b1dd7ee10c loleaflet: bump version after tarball 2015-12-11 15:03:33 +02:00
Mihai Varga
f497d32adb loleaflet: bump version before tarball 2015-12-11 15:02:06 +02:00
Mihai Varga
152ad884e2 Revert "loleaflet: Change !(... >= 0) to ... < 0 for readability."
This reverts commit 00d7ab3519.
_currentPage can also be undefined so in that case
!(this._currentPage >= 0) will be evaluated to true
while
this._currentPage < 0 will be false (as it should be)
2015-12-11 14:50:51 +02:00
Mihai Varga
35a505d35e loleaflet: allow specifing the document container as a map option 2015-12-11 14:47:46 +02:00
Mihai Varga
7f36d5be8a loleaflet: refactor the row column header
Now it works as a detachable control
2015-12-11 14:47:46 +02:00
Mihai Varga
3f7de82ef9 loleaflet: don't reference our scrollbars 2015-12-11 14:47:45 +02:00
Mihai Varga
2d883a2dbe loleaflet: fixed indentation 2015-12-11 14:47:45 +02:00
Mihai Varga
3b2ee2c0ac don't initialize the tabs control in calc layer 2015-12-11 14:47:45 +02:00