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

#include <toolbarsmenucontroller.hxx>

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

Classes

struct  ExecuteInfo
 

Public Member Functions

 ToolbarsMenuController (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~ToolbarsMenuController () override
 
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 setPopupMenu (const css::uno::Reference< css::awt::XPopupMenu > &PopupMenu) override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
virtual void SAL_CALL itemSelected (const css::awt::MenuEvent &rEvent) override
 
virtual void SAL_CALL itemActivated (const css::awt::MenuEvent &rEvent) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
 DECL_STATIC_LINK (ToolbarsMenuController, ExecuteHdl_Impl, void *, void)
 

Private Member Functions

virtual void initializeImpl (std::unique_lock< std::mutex > &rGuard, const css::uno::Sequence< css::uno::Any > &aArguments) override
 
void fillPopupMenu (css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu)
 
css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > getLayoutManagerToolbars (const css::uno::Reference< css::frame::XLayoutManager > &rLayoutManager)
 
css::uno::Reference< css::frame::XDispatch > getDispatchFromCommandURL (const OUString &rCommandURL)
 
void addCommand (css::uno::Reference< css::awt::XPopupMenu > const &rPopupMenu, const OUString &rCommandURL, const OUString &aLabel)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::container::XNameAccess > m_xPersistentWindowState
 
css::uno::Reference< css::ui::XUIConfigurationManager > m_xModuleCfgMgr
 
css::uno::Reference< css::ui::XUIConfigurationManager > m_xDocCfgMgr
 
bool m_bResetActive
 
std::vector< OUString > m_aCommandVector
 
IntlWrapper m_aIntlWrapper
 

Detailed Description

Definition at line 35 of file toolbarsmenucontroller.hxx.

Constructor & Destructor Documentation

◆ ToolbarsMenuController()

framework::ToolbarsMenuController::ToolbarsMenuController ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)

Definition at line 145 of file toolbarsmenucontroller.cxx.

◆ ~ToolbarsMenuController()

framework::ToolbarsMenuController::~ToolbarsMenuController ( )
overridevirtual

Definition at line 153 of file toolbarsmenucontroller.cxx.

Member Function Documentation

◆ addCommand()

void framework::ToolbarsMenuController::addCommand ( css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu,
const OUString &  rCommandURL,
const OUString &  aLabel 
)
private

◆ DECL_STATIC_LINK()

framework::ToolbarsMenuController::DECL_STATIC_LINK ( ToolbarsMenuController  ,
ExecuteHdl_Impl  ,
void *  ,
void   
)

◆ disposing()

void SAL_CALL framework::ToolbarsMenuController::disposing ( const css::lang::EventObject &  Source)
overridevirtual

◆ fillPopupMenu()

void framework::ToolbarsMenuController::fillPopupMenu ( css::uno::Reference< css::awt::XPopupMenu > const &  rPopupMenu)
private

◆ getDispatchFromCommandURL()

Reference< XDispatch > framework::ToolbarsMenuController::getDispatchFromCommandURL ( const OUString &  rCommandURL)
private

Definition at line 195 of file toolbarsmenucontroller.cxx.

References aTargetURL, m_xFrame, URL, and xFrame.

Referenced by addCommand().

◆ getImplementationName()

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

Definition at line 127 of file toolbarsmenucontroller.cxx.

◆ getLayoutManagerToolbars()

Sequence< Sequence< css::beans::PropertyValue > > framework::ToolbarsMenuController::getLayoutManagerToolbars ( const css::uno::Reference< css::frame::XLayoutManager > &  rLayoutManager)
private

◆ getSupportedServiceNames()

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

◆ initializeImpl()

void framework::ToolbarsMenuController::initializeImpl ( std::unique_lock< std::mutex > &  rGuard,
const css::uno::Sequence< css::uno::Any > &  aArguments 
)
overrideprivatevirtual

◆ itemActivated()

void SAL_CALL framework::ToolbarsMenuController::itemActivated ( const css::awt::MenuEvent &  rEvent)
overridevirtual

◆ itemSelected()

void SAL_CALL framework::ToolbarsMenuController::itemSelected ( const css::awt::MenuEvent &  rEvent)
overridevirtual

◆ setPopupMenu()

void SAL_CALL framework::ToolbarsMenuController::setPopupMenu ( const css::uno::Reference< css::awt::XPopupMenu > &  PopupMenu)
overridevirtual

Definition at line 703 of file toolbarsmenucontroller.cxx.

References fillPopupMenu(), m_aMutex, and m_xFrame.

◆ statusChanged()

void SAL_CALL framework::ToolbarsMenuController::statusChanged ( const css::frame::FeatureStateEvent &  Event)
overridevirtual

Definition at line 463 of file toolbarsmenucontroller.cxx.

References i, m_aMutex, nCount, and nId.

Referenced by itemActivated().

◆ supportsService()

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

Definition at line 132 of file toolbarsmenucontroller.cxx.

References sServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aCommandVector

std::vector< OUString > framework::ToolbarsMenuController::m_aCommandVector
private

Definition at line 84 of file toolbarsmenucontroller.hxx.

Referenced by addCommand(), fillPopupMenu(), and itemActivated().

◆ m_aIntlWrapper

IntlWrapper framework::ToolbarsMenuController::m_aIntlWrapper
private

Definition at line 85 of file toolbarsmenucontroller.hxx.

Referenced by fillPopupMenu().

◆ m_bResetActive

bool framework::ToolbarsMenuController::m_bResetActive
private

Definition at line 83 of file toolbarsmenucontroller.hxx.

Referenced by fillPopupMenu(), and itemActivated().

◆ m_xContext

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

Definition at line 79 of file toolbarsmenucontroller.hxx.

Referenced by disposing(), initializeImpl(), and itemSelected().

◆ m_xDocCfgMgr

css::uno::Reference< css::ui::XUIConfigurationManager > framework::ToolbarsMenuController::m_xDocCfgMgr
private

Definition at line 82 of file toolbarsmenucontroller.hxx.

Referenced by disposing(), fillPopupMenu(), and initializeImpl().

◆ m_xModuleCfgMgr

css::uno::Reference< css::ui::XUIConfigurationManager > framework::ToolbarsMenuController::m_xModuleCfgMgr
private

Definition at line 81 of file toolbarsmenucontroller.hxx.

Referenced by disposing(), fillPopupMenu(), and initializeImpl().

◆ m_xPersistentWindowState

css::uno::Reference< css::container::XNameAccess > framework::ToolbarsMenuController::m_xPersistentWindowState
private

Definition at line 80 of file toolbarsmenucontroller.hxx.

Referenced by fillPopupMenu(), initializeImpl(), and itemSelected().


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