23#include <osl/diagnose.h>
25#include <com/sun/star/lang/XComponent.hpp>
26#include <com/sun/star/configuration/theDefaultProvider.hpp>
41 css::uno::Reference< css::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
42 css::uno::Reference< css::lang::XComponent > xCfg(
43 css::configuration::theDefaultProvider::get( xContext ),
44 css::uno::UNO_QUERY_THROW );
45 xCfg->addEventListener(
static_cast< css::lang::XEventListener*
>(
this));
47 catch(
const css::uno::RuntimeException&)
52 catch(
const css::uno::Exception&)
54 static bool bMessage =
true;
62 catch(css::uno::Exception&){}
76 pHolder->impl_addItem(eItem);
88 std::scoped_lock aLock(
m_aLock);
90 for (
auto const & rInfo :
m_lItems )
92 if (rInfo.eItem == eItem)
97 aNewItem.
eItem = eItem;
100 m_lItems.emplace_back(std::move(aNewItem));
106 std::vector<TItemInfo> items;
108 std::scoped_lock aLock(
m_aLock);
120 case EItem::AccessibilityOptions :
124 case EItem::ColorConfig :
125 rItem.
pItem.reset( new ::svtools::ColorConfig() );
128 case EItem::MiscOptions :
#define TOOLS_WARN_EXCEPTION(area, stream)
std::unique_ptr< utl::detail::Options > pItem