From 66c6b9c809b974a33415184e38ee63384b572fc1 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 11 Sep 2017 14:24:48 +0200 Subject: TSCP: Extend the BAF policy with marking and IP parts Change-Id: I0a30cd4eb31aefc778f4d14547a8c50c375217c3 --- include/sfx2/classificationhelper.hxx | 4 ++++ sfx2/classification/baf.xsd | 36 +++++++++++++------------------ sfx2/classification/baf_loext.xsd | 14 ++++++++++++ sfx2/classification/example.xml | 4 +++- sfx2/classification/example_sl-SI.xml | 2 ++ sfx2/source/view/classificationhelper.cxx | 27 +++++++++++++++++++++++ 6 files changed, 65 insertions(+), 22 deletions(-) create mode 100644 sfx2/classification/baf_loext.xsd diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index 3ad53c620259..f43fa07ed6c0 100644 --- a/include/sfx2/classificationhelper.hxx +++ b/include/sfx2/classificationhelper.hxx @@ -78,6 +78,10 @@ public: /// The selected category has some content for the document footer. bool HasDocumentFooter(); void UpdateInfobar(SfxViewFrame& rViewFrame); + + const std::vector GetMarkings(); + const std::vector GetIntellectualPropertyParts(); + /// Does a best-effort conversion of rType to SfxClassificationPolicyType. static SfxClassificationPolicyType stringToPolicyType(const OUString& rType); /// Returns the string representation of a SfxClassificationPolicyType element. diff --git a/sfx2/classification/baf.xsd b/sfx2/classification/baf.xsd index 778cfbec6036..02796eb29265 100644 --- a/sfx2/classification/baf.xsd +++ b/sfx2/classification/baf.xsd @@ -1,10 +1,10 @@ - + - + + + @@ -31,6 +31,8 @@ Business Authorization + + @@ -38,6 +40,8 @@ Business Authorization + + @@ -51,24 +55,20 @@ Business Authorization - + - - + + - + @@ -83,9 +83,7 @@ Impact Level - + @@ -127,9 +125,7 @@ Handling Rule - + @@ -141,9 +137,7 @@ Labeling Rule - + diff --git a/sfx2/classification/baf_loext.xsd b/sfx2/classification/baf_loext.xsd new file mode 100644 index 000000000000..2d4ee5bb21a8 --- /dev/null +++ b/sfx2/classification/baf_loext.xsd @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/sfx2/classification/example.xml b/sfx2/classification/example.xml index f2647f903a8c..5df86f9a9005 100644 --- a/sfx2/classification/example.xml +++ b/sfx2/classification/example.xml @@ -1,5 +1,5 @@ - + TSCP Example Policy Authority @@ -78,6 +78,8 @@ 3 + +