4 Commits
Author SHA1 Message Date
Michael Stahl 88055a2f43 LOCRDT editeng: adapt to yrs v0.23.4 API change
Change-Id: I957cdaa770f34c48ca1283f6d0f3b89d66064f8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186902
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2025-06-24 19:06:42 +02:00
Michael Stahl 094480aefa LOCRDT sfx2,sw: Undo
Finally, add the comment id to SwPostItField too, so that undo actions
can recreate the comment with the same id.

Ensure that all inserted comments have an id (including via UNO API) so
that the Undo can record it (SwHistorySetTextField/SwUndoAttr).

Also this requires a more careful management of committing the
YTransaction, to distinguish between creating new Undo stack items and
extending the existing one.

Change-Id: I986264dee956ec4b219ab8c7148d44fee4bbfa2b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185866
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-06-20 18:44:16 +02:00
Michael Stahl d3235480c5 LOCRDT sfx2: only connect with env var YRSCONNECT
Change-Id: Icf5d5d0c647260febd2b3c8cee626ca50833aefe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185330
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-05-20 09:42:22 +02:00
Michael Stahl 8f8034177b LOCRDT editeng,sfx2,sw: experimental yrs collab
This can be enabled in configure via --with-yrs=...; see also README.yrs

Currently this is hardcoded to run over a local named pipe.

Everything related to editengine is implemented in EditDoc and made
accessible via its wrapper classes; everything related to communication
and accessing sw's comment is implemented in sw::DocumentStateManager.

The acceptor starts in SwView::SwView(), once SwPostItMgr exists.

There is a hack in SfxFrameLoader_Impl::load() to fetch the document
that the accepting soffice has loaded, and load it in the connecting
soffice as well.

Change-Id: I89476b5864b70f479bcf15989374c1c65b5da9ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175652
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-05-07 13:36:01 +02:00