Commit Graph

19 Commits (master)

Author SHA1 Message Date
Andras Timar a6456a1294 Editing of document templates does not work well currently
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I67c57be272f3b4818f9bcd3a9b3b6df61846cbdb
2022-03-15 14:05:12 +01:00
Tomaž Vajngerl 8d8f9f4dd3 Enable editing of ODG in discovery.xml
Change-Id: Ie019636a40f8a4ff712cca72a87258c87b51b775
Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
2021-01-21 10:22:58 +01:00
Andras Timar 2b6b9d897e Add support for .vsdx (Visio) files
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I277c6a2a85ac594f8af0525db4faf7861c1080e5
2020-11-03 08:50:34 +01:00
Mike Kaganski 8a661a1d38 Add favIconUrl to apps in discovery
Change-Id: If164b0c0b302eb8980f51cf4622377e96ba6d5f9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99796
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-09-29 09:52:21 +02:00
Mike Kaganski 05dba7ad86 Restructure discovery to have less apps
The apps are not meant to represent MIME types of respective
single file extensions; rather, they represent application/module
that handles several extensions. So this groups extensions under
modules (writer/calc/...). This is required for some WOPI hosts
that whitelist discovery data on per-app base.

The old list of MIME-type-based apps is kept for compatibility
with existing integrations, until they are fixed to use new-style
discovery. Extensions are removed from legacy part, to avoid
duplicating actions.

This also hardcodes content types, to avoid repeated parsing of
discovery.xml.

lint-discovery.py is updated to process new-style information
(ignores legacy part).

Change-Id: Ib8d3518f00510cd0788314d8a9da9a286a52e0ba
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99637
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-08-27 11:29:12 +02:00
Tomaž Vajngerl ca00470722 allow saving a PDF, add "view_comment" state
This adds a "view_comment" in addition to "view" and "edit" state
into discovery.xml. In case it is enabled, the filters let the
comment commands through to core.

In addition add "Save Comment" menu action to allow saving the
comments, which is enabled when in "read-only" with "view_comment"
mode.

Change-Id: I3ab3dbee93ee2167ae96adea7025fc0b385f8201
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/99473
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-07-27 16:40:12 +02:00
Andras Timar 68e5901a8d existing integrations prefer text/rtf
Change-Id: Ia85c198178d6c3f579d69bb7df3b131ffcaa4847
2020-06-26 10:59:12 +02:00
Mike Kaganski 2de5017e32 Remove duplicating extensions from discovery
Fixes the problem that binding with SharePoint using New-SPWOPIBinding
is only possible when specific extensions or applications are specified.
Trying to bind all information from discovery resulted in error:

    New-SPWOPIBinding : One or more of the WOPI bindings specified in
    New-SPWOPIBinding already exist. The operation has been cancelled.

Change-Id: I5675c4cee8b68b81b5c0971a5dc577f653a1ae5b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97063
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-06-25 12:27:15 +02:00
Mike Kaganski 82131e6a6c Mark actions as default in discovery
This allows to open the WOPI application by simple click on files
in SharePoint, instead of explicit use of "Edit in browser" menu.

Ref.: https://docs.microsoft.com/en-us/openspecs/office_protocols/ms-wopi/7ceea62b-4fb1-436b-af8b-fbf5a721fcba

Change-Id: Ieb535e0d85de050d5e01ba0bb8ccf39ffc5b0f7a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97030
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-06-24 17:01:31 +02:00
Andras Timar 435f9b9fe5 tabs to spaces
Change-Id: Ia9372a09b5cca059fa59e18b7e46cf08268745bd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89855
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-03-02 23:22:10 +01:00
Andras Timar d1992e0e62 Base documents and Extensions are not supported
Change-Id: I7fc728e9da03ad2b1f6811d7a03307f2d3876b31
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89812
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2020-03-02 21:21:21 +01:00
Andras Timar 2efdb2016a Remove Lotus WordPro support
... because lotuswordpro filter is not present in MPLv2-only core builds

Change-Id: I100e886273f8b7fd38887576c2d29fad4c69b2e7
Reviewed-on: https://gerrit.libreoffice.org/79683
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
(cherry picked from commit d781398991)
2019-10-25 14:39:29 +03:00
Aron Budea 2d182a3187 Make ODG view-only in discovery.xml
Change-Id: I09cc68f71ae432ba249dbf0940ea715fb6f8b7cf
Reviewed-on: https://gerrit.libreoffice.org/73692
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit a9aa9f316d)
Reviewed-on: https://gerrit.libreoffice.org/74565
Reviewed-by: Aron Budea <aron.budea@collabora.com>
Tested-by: Aron Budea <aron.budea@collabora.com>
2019-06-22 16:40:01 +02:00
Tamás Zolnai 0bb8b7c7a8 Add /hosting/capabilities endpoint to advertise online features
Add an entry to discovery.xml with the urlsrc where capabilities end
point can be found. Use json format to send back the feature list.

Change-Id: I390a53d956d53ca79e5a8090aead7f4131ec4ca0
2018-10-19 18:15:22 +02:00
Jan Holesovsky b12649d859 discovery: Add the binary MS filetypes.
Change-Id: I745471cc2c1febf6de70c7063197eee7b1672f2e
Reviewed-on: https://gerrit.libreoffice.org/40825
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-08-07 10:28:18 +02:00
Jan Holesovsky ca1b3e7ec7 discovery: Add bmp as read-only type too.
Change-Id: I42f21bab6f8d4ba24580f6d6e4a3a1dd5cd57811
Reviewed-on: https://gerrit.libreoffice.org/38782
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
2017-06-14 14:02:32 +02:00
Ashod Nakashian a15e32137f extend discovery.xml with pdf and image formats
Change-Id: I201eb276b4de29239c7dd99954abcc39e6027aff
Reviewed-on: https://gerrit.libreoffice.org/37430
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
2017-05-12 06:49:33 +02:00
Andras Timar 81ca552d36 add text/rtf and text/plain as supported MIME types
Change-Id: Ic46e8ccaeecc24ef2c6b6fce6b342c976c3ddc60
Reviewed-on: https://gerrit.libreoffice.org/32822
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2017-01-07 20:27:19 +00:00
Michael Meeks cca657c8f2 Apply the pre-branch rename script to re-organize the source. 2016-11-25 09:58:48 +00:00