diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-16 14:30:28 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-16 18:41:47 +0200 |
commit | d8c0b63355af6caf3f0145dd1c10a93d63134a88 (patch) | |
tree | 7a4b312e9eb198400eef9ba045c364f97b6887d1 /writerfilter/inc | |
parent | e61caf4d2719ebf5f696df39c41497a452c9d606 (diff) |
tdf#122222: add DOCX import of resolved comments as "done"
Change-Id: Id596d18965de2d8c98853c281188fe8d749055f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114204
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'writerfilter/inc')
-rw-r--r-- | writerfilter/inc/dmapper/CommentProperties.hxx | 21 | ||||
-rw-r--r-- | writerfilter/inc/dmapper/resourcemodel.hxx | 4 | ||||
-rw-r--r-- | writerfilter/inc/ooxml/OOXMLDocument.hxx | 2 |
3 files changed, 26 insertions, 1 deletions
diff --git a/writerfilter/inc/dmapper/CommentProperties.hxx b/writerfilter/inc/dmapper/CommentProperties.hxx new file mode 100644 index 000000000000..1cba6930d4c6 --- /dev/null +++ b/writerfilter/inc/dmapper/CommentProperties.hxx @@ -0,0 +1,21 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +namespace writerfilter +{ +struct CommentProperties +{ + bool bDone; + // TODO: a reference to a parent comment (paraIdParent: [MS-DOCX] sect. 2.5.3.1 CT_CommentEx) +}; +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/writerfilter/inc/dmapper/resourcemodel.hxx b/writerfilter/inc/dmapper/resourcemodel.hxx index fce90839d520..1a525b12296f 100644 --- a/writerfilter/inc/dmapper/resourcemodel.hxx +++ b/writerfilter/inc/dmapper/resourcemodel.hxx @@ -54,6 +54,8 @@ typedef sal_uInt32 Id; namespace writerfilter { +struct CommentProperties; + /** Reference to a resource that generates events and sends them to a handler. @@ -297,6 +299,8 @@ public: /// Receives end mark for glossary document entry. virtual void endGlossaryEntry() = 0; + virtual void commentProps(const OUString& /*sId*/, const CommentProperties& /*rProps*/) {} + protected: ~Stream() override {} }; diff --git a/writerfilter/inc/ooxml/OOXMLDocument.hxx b/writerfilter/inc/ooxml/OOXMLDocument.hxx index 1110fa84b1e0..de0a8a7134de 100644 --- a/writerfilter/inc/ooxml/OOXMLDocument.hxx +++ b/writerfilter/inc/ooxml/OOXMLDocument.hxx @@ -72,7 +72,7 @@ class OOXMLStream : public virtual SvRefBase { public: enum StreamType_t { UNKNOWN, DOCUMENT, STYLES, WEBSETTINGS, FONTTABLE, NUMBERING, - FOOTNOTES, ENDNOTES, COMMENTS, THEME, CUSTOMXML, CUSTOMXMLPROPS, GLOSSARY, CHARTS, EMBEDDINGS, SETTINGS, VBAPROJECT, FOOTER, HEADER, VBADATA }; + FOOTNOTES, ENDNOTES, COMMENTS, COMMENTS_EXTENDED, THEME, CUSTOMXML, CUSTOMXMLPROPS, GLOSSARY, CHARTS, EMBEDDINGS, SETTINGS, VBAPROJECT, FOOTER, HEADER, VBADATA }; typedef tools::SvRef<OOXMLStream> Pointer_t; /** |