sw/source/uibase/docvw/PostItMgr.cxx | 1 + sw/source/uibase/uno/unotxdoc.cxx | 1 + 2 files changed, 2 insertions(+)
New commits: commit 55aed3396961031fc1fe5432a1a5b38fe75995ba Author: Paris Oplopoios <paris.oplopo...@collabora.com> AuthorDate: Tue Feb 14 19:06:29 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Feb 16 09:09:30 2023 +0000 Add paraIdParent to LOK notification attributes paraIdParent has to do with which comments are replies to other comments which differs from the parent attribute which has to do with which comments are in the same thread with other comments Change-Id: I27feba55eadeeff22d409f69d8df976ad85e0ba6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147070 Tested-by: Miklos Vajna <vmik...@collabora.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index cb07ee9c33a5..0e478d9bea6b 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -169,6 +169,7 @@ namespace { aAnnotation.put("id", pField->GetPostItId()); aAnnotation.put("parent", pWin->CalcParent()); + aAnnotation.put("paraIdParent", pField->GetParentId()); aAnnotation.put("author", pField->GetPar1().toUtf8().getStr()); aAnnotation.put("text", pField->GetPar2().toUtf8().getStr()); aAnnotation.put("resolved", pField->GetResolved() ? "true" : "false"); diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 26521c2ccf45..173340162d83 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3329,6 +3329,7 @@ void SwXTextDocument::getPostIts(tools::JsonWriter& rJsonWriter) auto commentNode = rJsonWriter.startStruct(); rJsonWriter.put("id", pField->GetPostItId()); rJsonWriter.put("parent", pWin->CalcParent()); + rJsonWriter.put("paraIdParent", pField->GetParentId()); rJsonWriter.put("author", pField->GetPar1()); rJsonWriter.put("text", pField->GetPar2()); rJsonWriter.put("resolved", pField->GetResolved() ? "true" : "false");