sw/source/uibase/docvw/PostItMgr.cxx |    1 +
 sw/source/uibase/uno/unotxdoc.cxx    |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit a36be102d6e94fd4b2a379a1bbfe2aefd0614d6b
Author:     Paris Oplopoios <paris.oplopo...@collabora.com>
AuthorDate: Tue Feb 14 19:06:29 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Feb 15 14:43:29 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/+/147021
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/uibase/docvw/PostItMgr.cxx 
b/sw/source/uibase/docvw/PostItMgr.cxx
index 8e72ad7b1e1e..e0ceb396fc81 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 effdfcd30f63..e752a659b2ee 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3327,6 +3327,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");

Reply via email to