22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <com/sun/star/container/XNameAccess.hpp>
24#include <com/sun/star/ui/UIElementType.hpp>
25#include <com/sun/star/frame/ModuleManager.hpp>
26#include <com/sun/star/util/URLTransformer.hpp>
49 css::uno::Reference< css::uno::XComponentContext > xContext
52 m_bRefreshPopupControllerCache( true ),
65 css::lang::EventObject
aEvent( xThis );
66 m_aListenerContainer.disposeAndClear(
aEvent );
72 m_xConfigSource.clear();
73 m_xConfigData.clear();
85 throw DisposedException();
90 OUString aModuleIdentifier;
94 if ( !(
xFrame.is() && m_xConfigSource.is()) )
108 aModuleIdentifier = xModuleManager->identify(
xFrame );
117 xTrans.set( URLTransformer::create(
m_xContext) );
118 m_xConfigData = m_xConfigSource->getSettings( m_aResourceURL,
false );
119 if ( m_xConfigData.is() )
126 catch (
const NoSuchElementException& )
130 bool bMenuOnly(
false );
133 PropertyValue aPropValue;
134 if ( rArg >>= aPropValue )
136 if ( aPropValue.Name ==
"MenuOnly" )
137 aPropValue.Value >>= bMenuOnly;
160 m_xMenuBar =
new VCLXMenuBar( pVCLMenuBar );
169 throw DisposedException();
174 if ( m_xConfigSource.is() && m_bPersistent )
180 m_xConfigData = m_xConfigSource->getSettings( m_aResourceURL,
false );
181 if ( m_xConfigData.is() )
184 catch (
const NoSuchElementException& )
188 else if ( !m_bPersistent )
198 if ( pMenuBarManager )
207 if ( pMenuBarManager )
225 throw DisposedException();
233 const OUString& aName )
238 throw DisposedException();
244 throw container::NoSuchElementException();
246 uno::Reference< frame::XDispatchProvider > xDispatchProvider = pIter->second.m_xDispatchProvider;
247 return uno::Any( xDispatchProvider );
255 throw DisposedException();
263 const OUString& aName )
268 throw DisposedException();
283 throw DisposedException();
static VclPtr< reference_type > Create(Arg &&... arg)
css::uno::Type const & get()
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
css::uno::Reference< css::uno::XComponentContext > m_xContext
Sequence< PropertyValue > aArguments
css::uno::Sequence< typename M::key_type > mapKeysToSequence(M const &map)
cppu::ImplInheritanceHelper< UIConfigElementWrapperBase, css::container::XNameAccess > MenuBarWrapper_Base
Reference< XFrame > xFrame