From c9a2cb806cfbdb8a74ee4374e67773b801b5d941 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 11 Sep 2017 23:52:18 +0200 Subject: TSCP: Add IP Part Numbers to BAF Policy and update the Dialog Change-Id: I1d67b9449752d351b7dd154d664801bc9d2bb32c --- include/sfx2/classificationhelper.hxx | 1 + include/svx/ClassificationDialog.hxx | 3 +-- sfx2/classification/baf.xsd | 2 ++ sfx2/classification/baf_loext.xsd | 5 +++++ sfx2/classification/example.xml | 5 ++++- sfx2/classification/example_sl-SI.xml | 5 ++++- sfx2/source/view/classificationhelper.cxx | 15 ++++++++++++++- svx/source/dialog/ClassificationDialog.cxx | 11 ++++++++--- svx/uiconfig/ui/classificationdialog.ui | 11 ----------- 9 files changed, 39 insertions(+), 19 deletions(-) diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index f43fa07ed6c0..9cda08768a87 100644 --- a/include/sfx2/classificationhelper.hxx +++ b/include/sfx2/classificationhelper.hxx @@ -81,6 +81,7 @@ public: const std::vector GetMarkings(); const std::vector GetIntellectualPropertyParts(); + const std::vector GetIntellectualPropertyPartNumbers(); /// Does a best-effort conversion of rType to SfxClassificationPolicyType. static SfxClassificationPolicyType stringToPolicyType(const OUString& rType); diff --git a/include/svx/ClassificationDialog.hxx b/include/svx/ClassificationDialog.hxx index 3556439407e2..319ae1e65175 100644 --- a/include/svx/ClassificationDialog.hxx +++ b/include/svx/ClassificationDialog.hxx @@ -39,8 +39,7 @@ private: DECL_LINK(ButtonClicked, Button*, void); DECL_LINK(SelectClassificationHdl, ListBox&, void); DECL_LINK(SelectMarkingHdl, ListBox&, void); - - DECL_LINK(SelectIPPartHdl, ListBox&, void); + DECL_LINK(SelectIPPartNumbersHdl, ListBox&, void); DECL_LINK(DoubleClickIPPartHdl, ListBox&, void); public: diff --git a/sfx2/classification/baf.xsd b/sfx2/classification/baf.xsd index 02796eb29265..a0bae6cc9ff1 100644 --- a/sfx2/classification/baf.xsd +++ b/sfx2/classification/baf.xsd @@ -33,6 +33,7 @@ + @@ -42,6 +43,7 @@ + diff --git a/sfx2/classification/baf_loext.xsd b/sfx2/classification/baf_loext.xsd index 2d4ee5bb21a8..593eb01173d5 100644 --- a/sfx2/classification/baf_loext.xsd +++ b/sfx2/classification/baf_loext.xsd @@ -11,4 +11,9 @@ + + + + + diff --git a/sfx2/classification/example.xml b/sfx2/classification/example.xml index 5df86f9a9005..82098031ff91 100644 --- a/sfx2/classification/example.xml +++ b/sfx2/classification/example.xml @@ -79,7 +79,10 @@ - + + + +