diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-13 09:06:52 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-16 18:41:21 +0200 |
commit | e61caf4d2719ebf5f696df39c41497a452c9d606 (patch) | |
tree | 5b31b950aa374cf127ba3ead4c91ead729e7611c /include | |
parent | ffc5d0fe1ab2453d267c6474c50f3b978df60a8b (diff) |
tdf#122222: add DOCX export of resolved comments as "done"
Since implementation of tdf#119228, Writer comments may have
"Resolved" state, which is the equivalent of Word's internal
"done" flag.
This relies on [MS-DOCX] extensions available since Word 2013.
DOCX import will be implemented in a follow-up commit.
[MS-DOCX]: https://docs.microsoft.com/en-us/openspecs/office_standards/ms-docx
Change-Id: I3be1e8a096bdec41c8268974fe81328480eb0704
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114023
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/token/relationship.hxx | 1 | ||||
-rw-r--r-- | include/sax/tools/converter.hxx | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/oox/token/relationship.hxx b/include/oox/token/relationship.hxx index fbba99768711..3f798b1b2529 100644 --- a/include/oox/token/relationship.hxx +++ b/include/oox/token/relationship.hxx @@ -23,6 +23,7 @@ enum class Relationship CHARTUSERSHAPES, COMMENTS, COMMENTAUTHORS, + COMMENTSEXTENDED, CONTROL, CTRLPROP, CUSTOMXML, diff --git a/include/sax/tools/converter.hxx b/include/sax/tools/converter.hxx index a01ee6e68170..6f330fa58400 100644 --- a/include/sax/tools/converter.hxx +++ b/include/sax/tools/converter.hxx @@ -23,6 +23,7 @@ #include <sal/config.h> #include <optional> +#include <type_traits> #include <sax/saxdllapi.h> @@ -284,6 +285,16 @@ public: OUStringBuffer& rsType , const css::uno::Any& rValue); + /** convert specified byte sequence to xsd:hexBinary string **/ + static void convertBytesToHexBinary(OUStringBuffer& rBuffer, const void* pBytes, + sal_Int32 nBytes); + + template <typename T, std::enable_if_t<std::is_arithmetic_v<T>, int> = 0> + static void convertNumberToHexBinary(OUStringBuffer& rBuffer, T n) + { + convertBytesToHexBinary(rBuffer, &n, sizeof(n)); + } + }; } |