LibreOffice Module vcl (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
weld::Menu Class Referenceabstract

#include <weld.hxx>

Inheritance diagram for weld::Menu:
[legend]
Collaboration diagram for weld::Menu:
[legend]

Public Member Functions

virtual OUString popup_at_rect (weld::Widget *pParent, const tools::Rectangle &rRect, Placement ePlace=Placement::Under)=0
 
void connect_activate (const Link< const OUString &, void > &rLink)
 
virtual void set_sensitive (const OUString &rIdent, bool bSensitive)=0
 
virtual bool get_sensitive (const OUString &rIdent) const =0
 
virtual void set_label (const OUString &rIdent, const OUString &rLabel)=0
 
virtual OUString get_label (const OUString &rIdent) const =0
 
virtual void set_active (const OUString &rIdent, bool bActive)=0
 
virtual bool get_active (const OUString &rIdent) const =0
 
virtual void set_visible (const OUString &rIdent, bool bVisible)=0
 
virtual void insert (int pos, const OUString &rId, const OUString &rStr, const OUString *pIconName, VirtualDevice *pImageSurface, const css::uno::Reference< css::graphic::XGraphic > &rImage, TriState eCheckRadioFalse)=0
 
virtual void set_item_help_id (const OUString &rIdent, const OUString &rHelpId)=0
 
virtual void remove (const OUString &rId)=0
 
virtual void clear ()=0
 
virtual void insert_separator (int pos, const OUString &rId)=0
 
void append_separator (const OUString &rId)
 
void append (const OUString &rId, const OUString &rStr)
 
void append_check (const OUString &rId, const OUString &rStr)
 
void append_radio (const OUString &rId, const OUString &rStr)
 
void append (const OUString &rId, const OUString &rStr, const OUString &rImage)
 
void append (const OUString &rId, const OUString &rStr, VirtualDevice &rImage)
 
virtual int n_children () const =0
 
virtual OUString get_id (int pos) const =0
 
virtual ~Menu ()
 

Protected Member Functions

void signal_activate (const OUString &rIdent)
 

Private Attributes

Link< const OUString &, void > m_aActivateHdl
 

Detailed Description

Definition at line 2395 of file weld.hxx.

Constructor & Destructor Documentation

◆ ~Menu()

virtual weld::Menu::~Menu ( )
inlinevirtual

Definition at line 2457 of file weld.hxx.

Member Function Documentation

◆ append() [1/3]

void weld::Menu::append ( const OUString &  rId,
const OUString &  rStr 
)
inline

Definition at line 2431 of file weld.hxx.

References TRISTATE_INDET.

◆ append() [2/3]

void weld::Menu::append ( const OUString &  rId,
const OUString &  rStr,
const OUString &  rImage 
)
inline

Definition at line 2443 of file weld.hxx.

References TRISTATE_INDET.

◆ append() [3/3]

void weld::Menu::append ( const OUString &  rId,
const OUString &  rStr,
VirtualDevice rImage 
)
inline

Definition at line 2447 of file weld.hxx.

References TRISTATE_INDET.

◆ append_check()

void weld::Menu::append_check ( const OUString &  rId,
const OUString &  rStr 
)
inline

Definition at line 2435 of file weld.hxx.

References TRISTATE_TRUE.

◆ append_radio()

void weld::Menu::append_radio ( const OUString &  rId,
const OUString &  rStr 
)
inline

Definition at line 2439 of file weld.hxx.

References TRISTATE_FALSE.

◆ append_separator()

void weld::Menu::append_separator ( const OUString &  rId)
inline

Definition at line 2429 of file weld.hxx.

◆ clear()

virtual void weld::Menu::clear ( )
pure virtual

Implemented in SalInstanceMenu.

◆ connect_activate()

void weld::Menu::connect_activate ( const Link< const OUString &, void > &  rLink)
inline

Definition at line 2407 of file weld.hxx.

◆ get_active()

virtual bool weld::Menu::get_active ( const OUString &  rIdent) const
pure virtual

Implemented in SalInstanceMenu.

◆ get_id()

virtual OUString weld::Menu::get_id ( int  pos) const
pure virtual

Implemented in SalInstanceMenu.

◆ get_label()

virtual OUString weld::Menu::get_label ( const OUString &  rIdent) const
pure virtual

Implemented in SalInstanceMenu.

◆ get_sensitive()

virtual bool weld::Menu::get_sensitive ( const OUString &  rIdent) const
pure virtual

Implemented in SalInstanceMenu.

◆ insert()

virtual void weld::Menu::insert ( int  pos,
const OUString &  rId,
const OUString &  rStr,
const OUString *  pIconName,
VirtualDevice pImageSurface,
const css::uno::Reference< css::graphic::XGraphic > &  rImage,
TriState  eCheckRadioFalse 
)
pure virtual

Implemented in SalInstanceMenu.

◆ insert_separator()

virtual void weld::Menu::insert_separator ( int  pos,
const OUString &  rId 
)
pure virtual

Implemented in SalInstanceMenu.

◆ n_children()

virtual int weld::Menu::n_children ( ) const
pure virtual

Implemented in SalInstanceMenu.

◆ popup_at_rect()

virtual OUString weld::Menu::popup_at_rect ( weld::Widget pParent,
const tools::Rectangle rRect,
Placement  ePlace = Placement::Under 
)
pure virtual

Implemented in SalInstanceMenu.

◆ remove()

virtual void weld::Menu::remove ( const OUString &  rId)
pure virtual

Implemented in SalInstanceMenu.

◆ set_active()

virtual void weld::Menu::set_active ( const OUString &  rIdent,
bool  bActive 
)
pure virtual

Implemented in SalInstanceMenu.

◆ set_item_help_id()

virtual void weld::Menu::set_item_help_id ( const OUString &  rIdent,
const OUString &  rHelpId 
)
pure virtual

Implemented in SalInstanceMenu.

◆ set_label()

virtual void weld::Menu::set_label ( const OUString &  rIdent,
const OUString &  rLabel 
)
pure virtual

Implemented in SalInstanceMenu.

◆ set_sensitive()

virtual void weld::Menu::set_sensitive ( const OUString &  rIdent,
bool  bSensitive 
)
pure virtual

Implemented in SalInstanceMenu.

◆ set_visible()

virtual void weld::Menu::set_visible ( const OUString &  rIdent,
bool  bVisible 
)
pure virtual

Implemented in SalInstanceMenu.

◆ signal_activate()

void weld::Menu::signal_activate ( const OUString &  rIdent)
inlineprotected

Definition at line 2400 of file weld.hxx.

References Link< typename Arg, typename Ret >::Call().

Member Data Documentation

◆ m_aActivateHdl

Link<const OUString&, void> weld::Menu::m_aActivateHdl
private

Definition at line 2397 of file weld.hxx.


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