Commit graph

7211 commits

Author SHA1 Message Date
Michael Meeks
a0f83bd9b9 Convert-to - cleanup after ourselves.
Change-Id: I85de9721ac1b33d053b59fc36fc7c307206a0888
2018-11-08 02:36:08 +00:00
Michael Meeks
9f31063bd6 Don't sniff the inside of SSL sockets for SSL headers.
We might find a websocket we don't like.

Change-Id: Id13628252e01501d6cc209f4d572d8da16a7a658
2018-11-08 02:12:02 +00:00
Michael Meeks
fa74404019 Add a time limit for badly behaved / huge document load / conversions.
Also improve debug printing of load times in dumpstate.

Change-Id: Ib3fd70dffb57588cd90bd928c4be9890cee8bc65
2018-11-08 01:27:40 +00:00
Tor Lillqvist
802cb3bd24 Move initailisation of 'now' variable back after the poll where it should be
Was moved before the poll in my
75438baa70.

Change-Id: I0ec99c0c1433d2e5d631720f003905cbd18206aa
Reviewed-on: https://gerrit.libreoffice.org/63052
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
2018-11-07 23:16:49 +01:00
Andras Timar
2bf384cac0 Convert wsd/reference.txt to Markdown format
Change-Id: I393a74337293e376b6458a9cc05ba1d8b748e0d3
2018-11-07 21:25:25 +01:00
Andras Timar
a9cf1ab45f Convert wsd/reference.txt to Markdown format
Change-Id: I93b36c7136a9ea77ecf381fb1c57913c283821b6
2018-11-07 21:22:33 +01:00
Michael Meeks
d00aa78c9b Don't name parameter after a local method.
Change-Id: I06929d23009b851cf3fb20da5bfe66d9795dcdd9
2018-11-07 17:37:25 +00:00
Michael Meeks
738abc1de7 Respond to SSL/TLS over http - when we don't expect it.
Change-Id: I48c7607cd4e1416fb4ac28c552c2cd96b51d60a6
2018-11-07 17:36:18 +00:00
Michael Meeks
5ba1dec1f8 Avoid synchronous re-layout of comments / red-lines on each modification.
Change-Id: I698c6d47a58cfab2096900e01d19c8f4d4693fc4
2018-11-07 14:17:35 +00:00
Tor Lillqvist
adbcc28273 If we skipped all tiles, don't bother sending an empty tilecombine: message
It would just be ignored later anyway, and produce the warning "WRN
Dropping empty tilecombine response".

Change-Id: I6d92367262dc306369f2ca6c2e1964b5d151acc1
Reviewed-on: https://gerrit.libreoffice.org/63013
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2018-11-07 14:19:02 +01:00
Andras Timar
51fdcdb424 configure: undefined option is "" not "no"
Change-Id: I39cba79aa98b7e0d13a53b37cba0833c5a5267a8
2018-11-07 12:39:47 +01:00
Miklos Vajna
175ddd4c40 DeltaData: make members private 2018-11-07 09:09:12 +01:00
Andras Timar
2581da3b5d Updated Slovenian translation
Change-Id: If68650b9d9994db93736db7b1849c33827c19e24
2018-11-07 07:03:21 +01:00
Tor Lillqvist
34eb014e2b Drop the spaces from "Local Host #0" xauthor parameter
That "name" will be passed as the xauthor parameter in a message like:

child-01b9 load url=file:///.../x.odt?permission=edit jail=file:///.../x.odt xjail=file:///.../x.odt authorid=localhost1 xauthorid=localhost1 author=Local%20Host%20#1 xauthor=Local Host #1 readonly=0 lang=en-US

and that is parsed into space-separated tokens. Which leads to warning
messages like:

WRN  Unexpected doc options token [Host]. Skipping.| common/Session.cpp:94
WRN  Unexpected doc options token [#1]. Skipping.| common/Session.cpp:94

So use "LocalHost#0" etc instead.

Change-Id: I01ce8c4fb8309a7a9d3395e4fd874e469475d44c
2018-11-06 23:16:43 +02:00
Andras Timar
20fdc35811 loleaflet: update UI pot file
Change-Id: Id2c96a91ec81d7c6326563ea19aefc00d29f2aec
2018-11-06 22:02:12 +01:00
Tor Lillqvist
91ef673444 Change NSLog() calls to Online's LOG_TRC() etc macros
Possibly we should make LOG_ERR and worse on iOS also do a NSLog()
call, to get such messages into the log the system collects?

Change-Id: Ie3be490966da9133286440c1de90b72befba773a
2018-11-06 17:41:44 +02:00
Tor Lillqvist
d07d0517f1 Look for "LOOL_LOGLEVEL" environment variable, Default to "warning"
Change-Id: I83d8cf7eeeed63de3789b5fe8bcb88abeed68a67
2018-11-06 17:41:44 +02:00
Tor Lillqvist
495a4ee609 Define LOSRCDIR in the Relase configuration, too
Change-Id: Ida42481637270d5a8c4f5f0c2a1603a0248f8bdc
2018-11-06 17:41:44 +02:00
Miklos Vajna
0fb89bc4d0 wsd: remove the last nested #ifndef
Found by the new readability-redundant-pp tool from dev-tools.git.
2018-11-06 09:09:35 +01:00
Tor Lillqvist
baa331fa93 Add source files from sc for easier breakpoint setting before running
Change-Id: I6c646f995f26e26ed2e8bea32497d86f05846864
2018-11-05 17:08:54 +02:00
Miklos Vajna
af22ebbbc0 CacheEntry: make members private 2018-11-05 10:04:22 +01:00
Tor Lillqvist
c4552a943e Fix accidental capitalisation of "sw"
Change-Id: Ica5f7f4f6d39f715b0412bf191ffed4407cc98b9
2018-11-05 11:02:13 +02:00
Ashod Nakashian
87299bad4d leaflet: correct dialog width
Change-Id: I28f80f8f309986d562e84b6797d9dbbbbd40bd20
2018-11-04 13:19:06 +02:00
Tor Lillqvist
2c5893edfa Revert the addition of the --with-lo-srcdir option
Sadly, it did not work as expected. Even if the LibreOffice core
source that are mentioned in project.pbxproh, and referred to using
the losrcdir-symlink, did show up in Xcode, setting breakpoints in
them did not work. A pathname to such a source file would include
"losrcdir-symlink" which woul not match the pathname actually compiled
in the corresponding binary. Or something like that. So we are back at
requiring manual editing of the LO core source directory path in
project.pbxproj.

This commit reverts part of 5f2a6f6aa3.

Change-Id: I15fb7363e287fdf4942ac9d362a7151202d0ee9d
2018-11-04 12:58:30 +02:00
Tor Lillqvist
b6e76b1cca Add source files from vcl/source/window
But... sadly I now notice that the clever symlink trick from yesterday
doesn't actually work fully. Source files from core, present in the
project file as pathnames that go through the losrcdir-symlink
symbolic link, do show up in Xcode. But if I set a breakpoint in such
a file, it doesn't work.

(Xcode uses the pathname to the source file that includes the symlink
in it when recording the breakpoint, but the object file as compiled
contains its real path. So Xcode (or lldb) doesn't understand that
they are the same file. Or something.)

Being able to set breakpoints in these files in advance is the very
reason why I want them to be present in the Xcode project. Sigh...
Probably I will revert the symlink magic commit at least partially,
and go back to manually editing the project.pbsproj file to point to
the actual real paths of the core source files.

Change-Id: I2f7983cb95b65135ebf2d87b42614b35c902f986
2018-11-03 01:59:31 +02:00
Michael Meeks
33ecef7791 cleanup and simplify.
Change-Id: If90f8ccef4f223ae783363e9fc3a3e9fed644c24
2018-11-02 16:19:54 +00:00
Tor Lillqvist
e41ae35594 Differentiate the case of using --enable-iosapp on Linux from using it on macOS
On Linux, you use it just to process the JS bits, for copying them
over to the Mac where you build the app. (Because setting up npm and
whatnot on my Mac, from unknown 3rd parties, with unknown side
effects, semed a bit scary.)
2018-11-02 18:13:08 +02:00
Tor Lillqvist
e47ebb4e86 Use consistent Title Case for the document type names
Change-Id: I0122d55415dfd9aaf06c46691283967846759169
2018-11-02 17:21:22 +02:00
Tor Lillqvist
8faba4929b Sort types in order of "importance" and add a few comments
Change-Id: I869031776ef5e571a84ceafabd3e419d9a41cb7b
2018-11-02 17:19:15 +02:00
Tor Lillqvist
44e639a5fd Add .ppt
Change-Id: Ifc399ce956b3fc915083f3306e315b4e006497db
2018-11-02 17:11:03 +02:00
Tor Lillqvist
1b9eee01e0 Add .xls
It seems to work to add this only as an element under
CFBundleDocumentTypes, without adding anything under
UTExportedTypeDeclarations or UTImportedTypeDeclarations. Or is that
just because my iPad happens to have some other app installed that
already as associated the .xls extension with the UTI (as under
LSItemContentType) of "com.microsoft.excel.xls"? Or is that a
system-declared one? Sigh, I wish I understood this stuff
completely... or that I could find some up-to-date good documentation.

Hmm,
https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html
does say that com.microsoft.excel.xls indeed is a system-declared one.

Change-Id: Ibf807b12a2d44077fd983cbb37d00e83b47b45b9
2018-11-02 17:06:35 +02:00
Tor Lillqvist
c261804532 Add .pptx
Change-Id: I53f3f0f571b51d093bce59333ab33cec02f2769b
2018-11-02 16:53:57 +02:00
Tor Lillqvist
a028598509 Add .docx
Change-Id: I229ec9c2d5353f1654075854a98de9549c156c1b
2018-11-02 16:48:14 +02:00
Tor Lillqvist
331579421d Add .odp
Change-Id: If1e863f2e2208a6804a974fc04ca47e27e9973fb
2018-11-02 16:34:00 +02:00
Tor Lillqvist
2d1c865dd5 Use std::memcpy() here for consistency
Change-Id: I295b1db38333935ccf6efc4c2232bc2db8e84dd5
2018-11-02 16:20:49 +02:00
Tor Lillqvist
4a24055a74 Bin one case of nested #ifndef MOBILEAPP
(Might be more. Is there some tool to automatically detect this?)
2018-11-02 12:39:11 +02:00
Tor Lillqvist
d381540db5 Update Mobile/README to match new configury mechanism for the iOS app
Change-Id: I7d7f1d53823f0215024537fa65f00a163c7b61e5
2018-11-02 01:13:17 +02:00
Tor Lillqvist
5f2a6f6aa3 Avoid need for manual editing of the iOS app Xcode project file
Since some days, you need to run the configure script in a tree where
you are going to build the iOS app anyway (to set the app's
user-visible name). Use the configure script to set up a couple of
symbolic links pointing to the LibreOffice core source and build
directories and the Poco installation. Use those symbolic links in the
project file.

Also, now a vendor-specific app icon set can be given with the
--with-iosapp-appicon option.

Change-Id: Ib936388a4cc680bd97ca6ef95a91e3296ab04d18
2018-11-02 01:08:37 +02:00
Michael Meeks
698b806e23 gtk: compile fixes for socket latency and version display.
Change-Id: I4ff4bcb54d8c1227feeb19b281c38e1769ed83e7
2018-11-01 21:23:15 +00:00
Michael Meeks
647150427e gtk: compile with older WebKit JS interface too.
Change-Id: I62ce96932b77ea8051cfb2862cb4f617d2804c1d
2018-11-01 21:23:12 +00:00
Michael Meeks
52dace9d29 Disable SSL when configuring for mobile.
Change-Id: Ia337cde9f183849088d3712dd339f21b7d290fd7
2018-11-01 21:23:08 +00:00
Tor Lillqvist
f8a0fb4c32 WaE: -Werror=unused-parameter
Change-Id: Icadfcb19ce1fff2b5009d42acf33297cda6e36f2
2018-11-01 21:34:16 +02:00
Tor Lillqvist
9a0decc406 WaE: -Werror=sign-compare
Change-Id: Iaac48bd91864d44ce9442dd68aa26ec74fb5507a
2018-11-01 21:30:16 +02:00
Tor Lillqvist
aff35c9281 Add some source files from sw
I got a crash report from SwDocShell::Edit. Let's see if adding those
source files to the Xcode project (but not to be compiled by Xcode)
means that Xcode will be able to show the actual crash location based
on such a report. (At least for crashes in the code that Xcode itself
compiles, I assume it works perfectly. But LibreOffice core code is
not built by Xcode.)

Change-Id: I1b6bf34e35a0e5652081a6dca40ba04312fbe20b
2018-11-01 18:56:24 +02:00
Tor Lillqvist
6e121365b2 Bump CFBundleVersion to 4
Change-Id: I92e21fc3e2ab6a037812561b7326b0bc3aa5f3ee
2018-11-01 18:48:00 +02:00
Tor Lillqvist
c3ad73830b Actually we call this version 0.1
Change-Id: I52551a05a78da3caab4578b379da7ef728a80b26
2018-11-01 18:45:05 +02:00
Tor Lillqvist
2a12bf3371 Add xlsx to Info.plis(.in)
Added it to UTImportedTypeDeclarations, seemed to work. Not sure what
document types should be in UTImportedTypeDeclarations and what in
UTExportedTypeDeclarations. The documentation for document type
association is sadly rather vague.

I remember that some month ago I had horrible problems with this stuff
(see 26323fb92b), but now adding xlsx
went without a hitch. Not sure if I was just lucky, or whether iOS
12.1 has some bug fix related to this...

Change-Id: I75483719bd20496e8b44f935c788455148655a88
2018-11-01 18:34:14 +02:00
Tor Lillqvist
1fd5abc782 Add Emacs mode line and untabify
Change-Id: I9995a78cf59104e546f289dbaf685d70f9ba302e
2018-11-01 18:34:14 +02:00
Tor Lillqvist
b52456aeee Use non-empty dummy values of 'jailId' and 'pid'
Just in case some code checks them for being non-empty.

Change-Id: I6e595272f3fb6d3c2e57a31c291a89b0fb02563a
2018-11-01 18:34:14 +02:00
Andras Timar
9c0ab72155 typo: missing backslash
Change-Id: I194420d64a2541000e6bc7eb52d3cec8883e32d4
2018-11-01 17:25:44 +01:00