LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | List of all members
dbaui::IContextMenuProvider Class Referenceabstract

#include <callbacks.hxx>

Inheritance diagram for dbaui::IContextMenuProvider:
[legend]

Public Member Functions

virtual OUString getContextMenuResourceName () const =0
 returns the context menu resource name for the control More...
 
virtual IControllergetCommandController ()=0
 returns the controller which is responsible for providing states of certain features, and executing them. More...
 
virtual ::comphelper::OInterfaceContainerHelper2getContextMenuInterceptors ()=0
 returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception More...
 
virtual css::uno::Any getCurrentSelection (weld::TreeView &rControl) const =0
 returns the current selection in the given control More...
 
virtual vcl::WindowgetMenuParent () const =0
 
virtual void adjustMenuPosition (const weld::TreeView &rControl, ::Point &rPos) const =0
 adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent More...
 

Protected Member Functions

 ~IContextMenuProvider ()
 

Detailed Description

Definition at line 72 of file callbacks.hxx.

Constructor & Destructor Documentation

◆ ~IContextMenuProvider()

dbaui::IContextMenuProvider::~IContextMenuProvider ( )
inlineprotected

Definition at line 107 of file callbacks.hxx.

Member Function Documentation

◆ adjustMenuPosition()

virtual void dbaui::IContextMenuProvider::adjustMenuPosition ( const weld::TreeView rControl,
::Point rPos 
) const
pure virtual

adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent

Implemented in dbaui::OApplicationController, and dbaui::SbaTableQueryBrowser.

◆ getCommandController()

virtual IController & dbaui::IContextMenuProvider::getCommandController ( )
pure virtual

returns the controller which is responsible for providing states of certain features, and executing them.

Implemented in dbaui::OApplicationController, and dbaui::SbaTableQueryBrowser.

◆ getContextMenuInterceptors()

virtual ::comphelper::OInterfaceContainerHelper2 * dbaui::IContextMenuProvider::getContextMenuInterceptors ( )
pure virtual

returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception

Implemented in dbaui::OApplicationController, and dbaui::SbaTableQueryBrowser.

◆ getContextMenuResourceName()

virtual OUString dbaui::IContextMenuProvider::getContextMenuResourceName ( ) const
pure virtual

returns the context menu resource name for the control

Supposed to be a valid name from uiconfig/<module>/popupmenu folder.

Implemented in dbaui::OApplicationController, and dbaui::SbaTableQueryBrowser.

◆ getCurrentSelection()

virtual css::uno::Any dbaui::IContextMenuProvider::getCurrentSelection ( weld::TreeView rControl) const
pure virtual

returns the current selection in the given control

This selection is used for filling a ContextMenuExecuteEvent event for the given control.

Implemented in dbaui::OApplicationController, and dbaui::SbaTableQueryBrowser.

◆ getMenuParent()

virtual vcl::Window * dbaui::IContextMenuProvider::getMenuParent ( ) const
pure virtual

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