sw lok, .uno:SetDocumentProperties: expose value of custom document properties

Desktop / LibreOffice - Miklos Vajna [collabora.com] - 30 November 2022 07:13 UTC

LOK API clients currently have no knowledge about document properties.

Clients like Zotero that want to store custom properties on documents need a way to read and write such properties. This commit focuses on the reading side.

Add a getter for .uno:SetDocumentProperties that allows filtering for a certain prefix, this way the returned value can contain only the relevant information.

Rework doc_getCommandValues() and SwXTextDocument::getCommandValues() a bit, so adding new getters require less duplication.

Change-Id: I0c52cd2efcc8b1ea7307763c8252dd1e8ffdea2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143468

5e8f6dcb8ce0 sw lok, .uno:SetDocumentProperties: expose value of custom document properties
desktop/source/lib/init.cxx | 9 +++-
sw/qa/uibase/uno/uno.cxx | 37 ++++++++++++++-
sw/source/uibase/uno/unotxdoc.cxx | 94 +++++++++++++++++++++++++++++----------
3 files changed, 114 insertions(+), 26 deletions(-)

Upstream: cgit.freedesktop.org

  • Share