sfx2: introduce initial SfxClassificationHelper

Desktop / LibreOffice - Miklos Vajna [collabora.co.uk] - 17 February 2016 03:04 UTC

A document's metadata has predefinied keys like title, and has user-defined ones as well. The BAILS specification at describes a mechanism to use the generic user-defined key-value pairs to embed classification-related (read: is it public? is it internal only? etc) information in a standard way.

One approach in handling these in LO would be to let code here and there parse these user-defined key-value pairs again and again. An other one would be to handle these as first-class properties, even if the majority of the users would never need them. A middle between the above two approaches is this class: all these properties are still just user-defined properties, but if the document has them, then all related code is supposed to be implemented in this central class.

89b928d sfx2: introduce initial SfxClassificationHelper
include/sfx2/classificationhelper.hxx | 39 +++++++++++++
sfx2/Library_sfx.mk | 1 +
sfx2/source/view/classificationhelper.cxx | 87 +++++++++++++++++++++++++++++
3 files changed, 127 insertions(+)

Upstream: cgit.freedesktop.org


  • Share