12#include <com/sun/star/configuration/theDefaultProvider.hpp>
13#include <com/sun/star/lang/XComponent.hpp>
14#include <com/sun/star/util/XFlushable.hpp>
15#include <com/sun/star/frame/Desktop.hpp>
37 css::uno::Reference<css::uno::XComponentContext> context;
40 }
catch (css::uno::RuntimeException &) {}
45 css::uno::Reference<css::lang::XMultiServiceFactory>
config;
47 config = css::configuration::theDefaultProvider::get(context);
48 }
catch (css::uno::DeploymentException &) {}
51 css::uno::Reference<css::util::XFlushable>(
52 config, css::uno::UNO_QUERY_THROW)->flush();
56 css::uno::Reference<css::frame::XDesktop> xDesktop;
59 }
catch (css::uno::DeploymentException &) {}
62 xDesktop->terminate();
63 }
catch (css::uno::DeploymentException &) {}
65 css::uno::Reference<css::lang::XComponent>(
66 context, css::uno::UNO_QUERY_THROW)->dispose();
76 if (getenv(
"LO_TEST_LOCALE") !=
nullptr)
77 locale = OUString::fromUtf8(getenv(
"LO_TEST_LOCALE"));
static void setDeInitHook(Link< LinkParamNone *, void > const &hook)
static void EnableHeadlessMode(bool dialogsAreFatal)
LanguageType getLanguageType(bool bResolveSystem=true) const
static void setConfiguredSystemLanguage(LanguageType nLang)
static void setConfiguredSystemUILanguage(LanguageType nLang)
void SetLocaleConfigString(const OUString &rStr)
void SetUILocaleConfigString(const OUString &rStr)
static void storeConfigItems()
#define LINK(Instance, Class, Member)
#define DECL_STATIC_LINK(Class, Member, ArgType, RetType)
void setProcessServiceFactory(const Reference< XMultiServiceFactory > &xSMgr)
Reference< XComponentContext > getProcessComponentContext()
OOO_DLLPUBLIC_TEST_SETUPVCL void setUpVcl(bool forceHeadless=false)
VCL_DLLPUBLIC bool InitVCL()
IMPL_STATIC_LINK_NOARG(SwSyncBtnDlg, BtnHdl, weld::Button &, void)