diff options
Diffstat (limited to 'sfx2/source/view/classificationhelper.cxx')
-rw-r--r-- | sfx2/source/view/classificationhelper.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx index eb9de5f9a3ff..24aaee5da8e5 100644 --- a/sfx2/source/view/classificationhelper.cxx +++ b/sfx2/source/view/classificationhelper.cxx @@ -100,6 +100,7 @@ public: std::vector<SfxClassificationCategory> m_aCategories; std::vector<OUString> m_aMarkings; std::vector<OUString> m_aIPParts; + std::vector<OUString> m_aIPPartNumbers; OUString m_aPolicyAuthorityName; bool m_bInPolicyAuthorityName = false; @@ -222,6 +223,11 @@ void SAL_CALL SfxClassificationParser::startElement(const OUString& rName, const OUString aName = xAttribs->getValueByName("Name"); m_aIPParts.push_back(aName); } + else if (rName == "loext:IntellectualPropertyPartNumber") + { + OUString aName = xAttribs->getValueByName("Name"); + m_aIPPartNumbers.push_back(aName); + } else if (rName == "baf:Scale") { m_aScale.clear(); @@ -333,6 +339,7 @@ public: std::vector<SfxClassificationCategory> m_aCategories; std::vector<OUString> m_aMarkings; std::vector<OUString> m_aIPParts; + std::vector<OUString> m_aIPPartNumbers; uno::Reference<document::XDocumentProperties> m_xDocumentProperties; @@ -387,6 +394,7 @@ void SfxClassificationHelper::Impl::parsePolicy() m_aCategories = xClassificationParser->m_aCategories; m_aMarkings = xClassificationParser->m_aMarkings; m_aIPParts = xClassificationParser->m_aIPParts; + m_aIPPartNumbers = xClassificationParser->m_aIPPartNumbers; } bool lcl_containsProperty(const uno::Sequence<beans::Property>& rProperties, const OUString& rName) @@ -561,7 +569,12 @@ const std::vector<OUString> SfxClassificationHelper::GetMarkings() const std::vector<OUString> SfxClassificationHelper::GetIntellectualPropertyParts() { - return m_pImpl->m_aMarkings; + return m_pImpl->m_aIPParts; +} + +const std::vector<OUString> SfxClassificationHelper::GetIntellectualPropertyPartNumbers() +{ + return m_pImpl->m_aIPPartNumbers; } const OUString& SfxClassificationHelper::GetBACName(SfxClassificationPolicyType eType) |