summaryrefslogtreecommitdiff
path: root/sfx2/source/view/classificationhelper.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-05-19 20:15:53 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-20 07:04:08 +0000
commitcb69665923c819b9ab53ed7a634b3b698bdc7ea0 (patch)
tree2376737d386002615c25dee9d458bcf23eb11396 /sfx2/source/view/classificationhelper.cxx
parent7b704dfbdb23540ff6366fa60c73474bbda9dc26 (diff)
sfx2 classification toolbar: add select handler to all listboxes
And also fill them up. With this, it's possible to set all policy types in a document. UI still reacts to the first listbox only, but File -> Properties shows that the other types are also set correctly. Change-Id: Ibf41ad7ea54819a4d149bce8e5f4d72b02f8d635 Reviewed-on: https://gerrit.libreoffice.org/25176 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sfx2/source/view/classificationhelper.cxx')
-rw-r--r--sfx2/source/view/classificationhelper.cxx35
1 files changed, 17 insertions, 18 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 101933fd9a5e..eebe37c452fa 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -82,24 +82,6 @@ const OUString& PROP_PREFIX_NATIONALSECURITY()
return sProp;
}
-/// Converts a SfxClassificationPolicyType to a TSCP_BAILSv1 string value.
-const OUString& policyTypeToString(SfxClassificationPolicyType eType)
-{
- switch (eType)
- {
- case SfxClassificationPolicyType::ExportControl:
- return PROP_PREFIX_EXPORTCONTROL();
- break;
- case SfxClassificationPolicyType::NationalSecurity:
- return PROP_PREFIX_NATIONALSECURITY();
- break;
- default:
- break;
- }
-
- return SfxClassificationHelper::PROP_PREFIX_INTELLECTUALPROPERTY();
-}
-
/// Represents one category of a classification policy.
class SfxClassificationCategory
{
@@ -807,6 +789,23 @@ SfxClassificationPolicyType SfxClassificationHelper::stringToPolicyType(const OU
return SfxClassificationPolicyType::IntellectualProperty;
}
+const OUString& SfxClassificationHelper::policyTypeToString(SfxClassificationPolicyType eType)
+{
+ switch (eType)
+ {
+ case SfxClassificationPolicyType::ExportControl:
+ return PROP_PREFIX_EXPORTCONTROL();
+ break;
+ case SfxClassificationPolicyType::NationalSecurity:
+ return PROP_PREFIX_NATIONALSECURITY();
+ break;
+ case SfxClassificationPolicyType::IntellectualProperty:
+ break;
+ }
+
+ return PROP_PREFIX_INTELLECTUALPROPERTY();
+}
+
const OUString& SfxClassificationHelper::PROP_DOCHEADER()
{
static OUString sProp("Marking:document-header");