diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-02 11:45:45 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-02 13:36:27 +0100 |
commit | bf1721917c3dd565c102fc14e977cfd3cab1fa0e (patch) | |
tree | 0b18d2776726ca688c824b6e1a0cef1c05866a89 /sfx2 | |
parent | a0cc0d2a45ae480e4e1f968b213360ec0b17fdee (diff) |
sfx2 classification: use SvtPathOptions
In preparation to be able to edit the policy path from SvxPathTabPage.
Change-Id: I7a8e03e9acf2e8096a5e00d1424c75fe31735c1d
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/classificationhelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx index cade650267e7..f086ade5ed00 100644 --- a/sfx2/source/view/classificationhelper.cxx +++ b/sfx2/source/view/classificationhelper.cxx @@ -22,7 +22,7 @@ #include <sfx2/objsh.hxx> #include <o3tl/make_unique.hxx> #include <comphelper/processfactory.hxx> -#include <rtl/bootstrap.hxx> +#include <unotools/pathoptions.hxx> #include <unotools/ucbstreamhelper.hxx> #include <unotools/streamwrap.hxx> #include <cppuhelper/implbase.hxx> @@ -311,8 +311,8 @@ SfxClassificationHelper::Impl::Impl(SfxObjectShell& rObjectShell) void SfxClassificationHelper::Impl::parsePolicy() { uno::Reference<uno::XComponentContext> xComponentContext = comphelper::getProcessComponentContext(); - OUString aPath = officecfg::Office::Common::Path::Current::Classification::get(xComponentContext); - rtl::Bootstrap::expandMacros(aPath); + SvtPathOptions aOptions; + OUString aPath = aOptions.GetClassificationPath(); SvStream* pStream = utl::UcbStreamHelper::CreateStream(aPath, StreamMode::READ); uno::Reference<io::XInputStream> xInputStream(new utl::OStreamWrapper(*pStream)); xml::sax::InputSource aParserInput; |