This adds a advanced classification dialog, which enables the user
to manually construct a header/footer message from classification
properties in cases where the user needs more control. All the
text is inserted as fields into the end document and can be changed
by changing the document properties. The simple classification
still functions as it did before, which is what most users will
want to use in this case.
The BAF policy has been extended with new xml extension elements:
- loext:Marking
- loext:IntellectualPropertyPart
- loext:IntellectualPropertyPartNumber
They are used to fill the values in the advanced classification
dialog.
Change-Id: Ie2d638d69b8a9b0799cff9c2b785eb789f8af1d5
Reviewed-on: https://gerrit.libreoffice.org/42474
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
The elements <baf:Scale> and <baf:Identifier> must match the values
set in sfx2/source/view/classificationhelper.cxx to work. I moved the
translated words to their proper place.
Change-Id: Id860a375654e371742ba15435d3e73506ef5ef0e
Reviewed-on: https://gerrit.libreoffice.org/26685
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
BAILS says the document metadata must mention this, BAF says that the
BusinessAuthorization has a policy name, but the published XSD doesn't
give a way to express this in the XML instance. Use this markup till we
figure out if there is a better way.
Change-Id: I8e3550c0445b2d143a1f7e0c69b39b6c759f468e
This one has 4 choices, it shows how a category can trigger a specific
header, footer or watermark. Also validate the XML file against the XSD
as part of the build.
Change-Id: Id6cf3de63e7fadd16366465c7721d6052c7c60ed
Reviewed-on: https://gerrit.libreoffice.org/22615
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
The classification infobar loads the classification value from the
document metadata. In order to add metadata to a document from the UI,
it's necessary to know what are the possible choices. Those choices can
be described in an XML file. The format of that XML is described using
this XSD schema. baf.xsd is the main file from
<https://www.tscp.org/wp-content/uploads/2013/08/TSCP_BAFv1.pdf>, the
rest are just the dependencies.
Change-Id: I6b22c0279031799cafa4fd6edd20ed1cdb09c8cc