23#include <osl/diagnose.h>
25#include <com/sun/star/lang/XComponent.hpp>
26#include <com/sun/star/configuration/theDefaultProvider.hpp>
36 css::uno::Reference< css::uno::XComponentContext > xContext = ::comphelper::getProcessComponentContext();
37 css::uno::Reference< css::lang::XComponent > xCfg( css::configuration::theDefaultProvider::get(xContext), css::uno::UNO_QUERY_THROW );
38 xCfg->addEventListener(
static_cast< css::lang::XEventListener*
>(
this));
40 catch(
const css::uno::RuntimeException&)
45 catch(
const css::uno::Exception&)
47 static bool bMessage =
true;
55 catch(css::uno::Exception&){}
67 pHolder->impl_addItem(eItem);
77 std::scoped_lock aLock(
m_aLock);
79 for (
auto const & rInfo :
m_lItems )
81 if (rInfo.eItem == eItem)
86 aNewItem.
eItem = eItem;
89 m_lItems.emplace_back(std::move(aNewItem));
94 std::vector< TItemInfo > items;
96 std::scoped_lock aLock(
m_aLock);
107 case EItem::CTLOptions :
void impl_releaseAllItems()
void impl_addItem(EItem eItem)
std::vector< TItemInfo > m_lItems
virtual ~ItemHolder2() override
static void impl_newItem(TItemInfo &rItem)
virtual void SAL_CALL disposing(const css::lang::EventObject &aEvent) override
static void holdConfigItem(EItem eItem)
#define TOOLS_WARN_EXCEPTION(area, stream)
std::unique_ptr< utl::detail::Options > pItem