summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-17 10:30:41 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-17 05:11:13 +0100
commit85f2a1e3eb21228ba932b27dbe375aa241e242bf (patch)
treef33e1ad5584c04f189bb63c64cf28a4848f530eb /svx
parent9da4b3ee827e83b816514e4eb071e5322cb5ad01 (diff)
TSCP: disable toolbar pop-up if category was set with dialog
In addition move reading of origin to classificationhelper as we need to read it there. Change-Id: I472b073587e68e6896f915477603a25db9b310d3 Reviewed-on: https://gerrit.libreoffice.org/44848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/ClassificationCommon.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/svx/source/dialog/ClassificationCommon.cxx b/svx/source/dialog/ClassificationCommon.cxx
index 53200046d3e5..779fac5490c8 100644
--- a/svx/source/dialog/ClassificationCommon.cxx
+++ b/svx/source/dialog/ClassificationCommon.cxx
@@ -118,18 +118,6 @@ void insertCreationOrigin(uno::Reference<beans::XPropertyContainer> const & rxPr
addOrInsertDocumentProperty(rxPropertyContainer, rKeyCreator.makeCreationOriginKey(), sValue);
}
-sfx::ClassificationCreationOrigin getCreationOriginProperty(uno::Reference<beans::XPropertyContainer> const & rxPropertyContainer,
- sfx::ClassificationKeyCreator const & rKeyCreator)
-{
- OUString sValue = getProperty(rxPropertyContainer, rKeyCreator.makeCreationOriginKey());
- if (sValue.isEmpty())
- return sfx::ClassificationCreationOrigin::NONE;
-
- return (sValue == "BAF_POLICY")
- ? sfx::ClassificationCreationOrigin::BAF_POLICY
- : sfx::ClassificationCreationOrigin::MANUAL;
-}
-
}
} // end svx::classification namespace