diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-05-18 09:16:30 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-05-18 08:52:27 +0000 |
commit | ff42ad90bae398285eb630c34be230a4f0619d68 (patch) | |
tree | 0fe566cc0e1234a554c0678b38a224b1ca60a357 /sw/source/core/edit | |
parent | 433cb02f88c75428fe5a34ca090fd43ae1cc855d (diff) |
sfx2 classification: add Type parameter to the UNO command
So that sc/sd/sw doesn't have to hardcode
SfxClassificationPolicyType::IntellectualProperty.
Change-Id: Ib7c2376622ecaa8c7fc8401cec2ba16d12b8b8d2
Reviewed-on: https://gerrit.libreoffice.org/25078
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx index ee6d2428d340..0093c4006347 100644 --- a/sw/source/core/edit/edfcol.cxx +++ b/sw/source/core/edit/edfcol.cxx @@ -171,7 +171,7 @@ SwTextFormatColl& SwEditShell::GetTextFormatColl( sal_uInt16 nFormatColl) const return *((*(GetDoc()->GetTextFormatColls()))[nFormatColl]); } -void SwEditShell::SetClassification(const OUString& rName) +void SwEditShell::SetClassification(const OUString& rName, SfxClassificationPolicyType eType) { SwDocShell* pDocShell = GetDoc()->GetDocShell(); if (!pDocShell) @@ -182,7 +182,7 @@ void SwEditShell::SetClassification(const OUString& rName) bool bHadWatermark = !aHelper.GetDocumentWatermark().isEmpty(); // This updates the infobar as well. - aHelper.SetBACName(rName, SfxClassificationPolicyType::IntellectualProperty); + aHelper.SetBACName(rName, eType); bool bHeaderIsNeeded = aHelper.HasDocumentHeader(); bool bFooterIsNeeded = aHelper.HasDocumentFooter(); |