summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-12-19 14:44:10 +0100
committerDavid Tardon <dtardon@redhat.com>2011-12-22 13:24:47 +0100
commitb80d9acb3e0c3caf7d760b9ee3f5cfaf07bb32cd (patch)
tree481534da9555f1f6b7a60089c3ca9fda02ce9c5c /vcl/generic
parentee1eb926550028da6e5e44089d4706798f94e0bb (diff)
use officecfg/Office/Common.hxx directly
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/app/gensys.cxx63
1 files changed, 0 insertions, 63 deletions
diff --git a/vcl/generic/app/gensys.cxx b/vcl/generic/app/gensys.cxx
index f7d3f0a8b43a..ddde4a152fa6 100644
--- a/vcl/generic/app/gensys.cxx
+++ b/vcl/generic/app/gensys.cxx
@@ -181,67 +181,4 @@ rtl::OString SalGenericSystem::getFrameResName( SalExtStyle nStyle )
return aBuf.makeStringAndClear();
}
-bool
-SalGenericSystem::enableExperimentalFeatures()
-{
- bool bEnable = true;
- try
- {
- // get service provider
- uno::Reference<lang::XMultiServiceFactory> const xSMgr(vcl::unohelper::GetMultiServiceFactory());
- // create configuration hierachical access name
- if (xSMgr.is())
- {
- try
- {
- uno::Reference<lang::XMultiServiceFactory> const xConfigProvider(
- uno::Reference<lang::XMultiServiceFactory>(
- xSMgr->createInstance(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
- "com.sun.star.configuration.ConfigurationProvider"))),
- uno::UNO_QUERY))
- ;
- if (xConfigProvider.is())
- {
- uno::Sequence<uno::Any> aArgs(1);
- beans::PropertyValue aVal;
- aVal.Name = rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("nodepath"));
- aVal.Value <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.Common/Misc"));
- aArgs.getArray()[0] <<= aVal;
- uno::Reference<container::XNameAccess> const xConfigAccess(
- uno::Reference<container::XNameAccess>(
- xConfigProvider->createInstanceWithArguments(
- rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.configuration.ConfigurationAccess")),
- aArgs),
- uno::UNO_QUERY))
- ;
- if (xConfigAccess.is())
- {
- try
- {
- sal_Bool bValue = sal_False;
- uno::Any const aAny(xConfigAccess->getByName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ExperimentalMode"))));
- if (aAny >>= bValue)
- bEnable = bValue;
- }
- catch (container::NoSuchElementException const&)
- {
- }
- catch (lang::WrappedTargetException const&)
- {
- }
- }
- }
- }
- catch (uno::Exception const&)
- {
- }
- }
- }
- catch (lang::WrappedTargetException const&)
- {
- }
-
- return bEnable;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */