LibreOffice Module framework (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
framework::PopupMenuDispatcher Class Referencefinal

#include <popupmenudispatcher.hxx>

Inheritance diagram for framework::PopupMenuDispatcher:
[legend]
Collaboration diagram for framework::PopupMenuDispatcher:
[legend]

Public Member Functions

 PopupMenuDispatcher (css::uno::Reference< css::uno::XComponentContext > xContext)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &sServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &lArguments) override
 
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch (const css::util::URL &aURL, const OUString &sTarget, sal_Int32 nFlags) override
 
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &lDescriptor) override
 
virtual void SAL_CALL dispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &seqProperties) override
 
virtual void SAL_CALL addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
 
virtual void SAL_CALL removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override
 
virtual void SAL_CALL frameAction (const css::frame::FrameActionEvent &aEvent) override
 
void SAL_CALL disposing (const css::lang::EventObject &aEvent) override
 

Private Member Functions

virtual ~PopupMenuDispatcher () override
 
void impl_RetrievePopupControllerQuery ()
 

Private Attributes

css::uno::WeakReference< css::frame::XFrame > m_xWeakFrame
 
css::uno::Reference< css::container::XNameAccess > m_xPopupCtrlQuery
 css::uno::WeakReference to frame (Don't use a hard css::uno::Reference. Owner can't delete us then!) More...
 
css::uno::Reference< css::uri::XUriReferenceFactory > m_xUriRefFactory
 reference to query for popup controller More...
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 reference to the uri reference factory More...
 
bool m_bAlreadyDisposed
 factory shared with our owner to create new services! More...
 
bool m_bActivateListener
 Protection against multiple disposing calls. More...
 

Detailed Description

Definition at line 54 of file popupmenudispatcher.hxx.

Constructor & Destructor Documentation

◆ PopupMenuDispatcher()

framework::PopupMenuDispatcher::PopupMenuDispatcher ( css::uno::Reference< css::uno::XComponentContext >  xContext)

Definition at line 47 of file popupmenudispatcher.cxx.

◆ ~PopupMenuDispatcher()

framework::PopupMenuDispatcher::~PopupMenuDispatcher ( )
overrideprivatevirtual

Definition at line 55 of file popupmenudispatcher.cxx.

Member Function Documentation

◆ addStatusListener()

void SAL_CALL framework::PopupMenuDispatcher::addStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)
overridevirtual

Definition at line 178 of file popupmenudispatcher.cxx.

◆ dispatch()

void SAL_CALL framework::PopupMenuDispatcher::dispatch ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  seqProperties 
)
overridevirtual

Definition at line 174 of file popupmenudispatcher.cxx.

◆ disposing()

void SAL_CALL framework::PopupMenuDispatcher::disposing ( const css::lang::EventObject &  aEvent)
override

◆ frameAction()

void SAL_CALL framework::PopupMenuDispatcher::frameAction ( const css::frame::FrameActionEvent &  aEvent)
overridevirtual

Definition at line 188 of file popupmenudispatcher.cxx.

References aEvent, and m_xPopupCtrlQuery.

◆ getImplementationName()

OUString SAL_CALL framework::PopupMenuDispatcher::getImplementationName ( )
overridevirtual

Definition at line 62 of file popupmenudispatcher.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL framework::PopupMenuDispatcher::getSupportedServiceNames ( )
overridevirtual

Definition at line 72 of file popupmenudispatcher.cxx.

References framework::SERVICENAME_PROTOCOLHANDLER.

◆ impl_RetrievePopupControllerQuery()

void framework::PopupMenuDispatcher::impl_RetrievePopupControllerQuery ( )
private

◆ initialize()

void SAL_CALL framework::PopupMenuDispatcher::initialize ( const css::uno::Sequence< css::uno::Any > &  lArguments)
overridevirtual

Definition at line 77 of file popupmenudispatcher.cxx.

References a, m_bActivateListener, m_xWeakFrame, and xFrame.

◆ queryDispatch()

css::uno::Reference< css::frame::XDispatch > SAL_CALL framework::PopupMenuDispatcher::queryDispatch ( const css::util::URL &  aURL,
const OUString &  sTarget,
sal_Int32  nFlags 
)
overridevirtual

◆ queryDispatches()

css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL framework::PopupMenuDispatcher::queryDispatches ( const css::uno::Sequence< css::frame::DispatchDescriptor > &  lDescriptor)
overridevirtual

Definition at line 158 of file popupmenudispatcher.cxx.

References i, nCount, and queryDispatch().

◆ removeStatusListener()

void SAL_CALL framework::PopupMenuDispatcher::removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)
overridevirtual

Definition at line 183 of file popupmenudispatcher.cxx.

◆ supportsService()

sal_Bool SAL_CALL framework::PopupMenuDispatcher::supportsService ( const OUString &  sServiceName)
overridevirtual

Definition at line 67 of file popupmenudispatcher.cxx.

References sServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_bActivateListener

bool framework::PopupMenuDispatcher::m_bActivateListener
private

Protection against multiple disposing calls.

Definition at line 111 of file popupmenudispatcher.hxx.

Referenced by disposing(), and initialize().

◆ m_bAlreadyDisposed

bool framework::PopupMenuDispatcher::m_bAlreadyDisposed
private

factory shared with our owner to create new services!

Definition at line 110 of file popupmenudispatcher.hxx.

Referenced by disposing().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > framework::PopupMenuDispatcher::m_xContext
private

reference to the uri reference factory

Definition at line 109 of file popupmenudispatcher.hxx.

Referenced by disposing(), and queryDispatch().

◆ m_xPopupCtrlQuery

css::uno::Reference< css::container::XNameAccess > framework::PopupMenuDispatcher::m_xPopupCtrlQuery
private

css::uno::WeakReference to frame (Don't use a hard css::uno::Reference. Owner can't delete us then!)

Definition at line 107 of file popupmenudispatcher.hxx.

Referenced by frameAction(), impl_RetrievePopupControllerQuery(), and queryDispatch().

◆ m_xUriRefFactory

css::uno::Reference< css::uri::XUriReferenceFactory > framework::PopupMenuDispatcher::m_xUriRefFactory
private

reference to query for popup controller

Definition at line 108 of file popupmenudispatcher.hxx.

Referenced by queryDispatch().

◆ m_xWeakFrame

css::uno::WeakReference< css::frame::XFrame > framework::PopupMenuDispatcher::m_xWeakFrame
private

The documentation for this class was generated from the following files: