LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SalInstanceMenu Class Reference
Inheritance diagram for SalInstanceMenu:
[legend]
Collaboration diagram for SalInstanceMenu:
[legend]

Public Member Functions

 SalInstanceMenu (PopupMenu *pMenu, bool bTakeOwnership)
 
virtual OString popup_at_rect (weld::Widget *pParent, const tools::Rectangle &rRect) override
 
virtual void set_sensitive (const OString &rIdent, bool bSensitive) override
 
virtual void set_active (const OString &rIdent, bool bActive) override
 
virtual bool get_active (const OString &rIdent) const override
 
virtual void set_label (const OString &rIdent, const OUString &rLabel) override
 
virtual void set_visible (const OString &rIdent, bool bShow) override
 
virtual void clear () override
 
virtual void insert (int pos, const OUString &rId, const OUString &rStr, const OUString *pIconName, VirtualDevice *pImageSurface, bool bCheck) override
 
virtual void insert_separator (int pos, const OUString &rId) override
 
PopupMenugetMenu () const
 
virtual ~SalInstanceMenu () override
 
- Public Member Functions inherited from weld::Menu
void connect_activate (const Link< const OString &, void > &rLink)
 
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 (const OUString &rId, const OUString &rStr, const OUString &rImage)
 
void append (const OUString &rId, const OUString &rStr, VirtualDevice &rImage)
 
virtual ~Menu ()
 

Private Member Functions

 DECL_LINK (SelectMenuHdl,::Menu *, bool)
 

Private Attributes

VclPtr< PopupMenum_xMenu
 
bool const m_bTakeOwnership
 
sal_uInt16 m_nLastId
 

Additional Inherited Members

- Protected Member Functions inherited from weld::Menu
void signal_activate (const OString &rIdent)
 
- Protected Attributes inherited from weld::Menu
Link< const OString &, voidm_aActivateHdl
 

Detailed Description

Definition at line 859 of file salvtables.cxx.

Constructor & Destructor Documentation

SalInstanceMenu::SalInstanceMenu ( PopupMenu pMenu,
bool  bTakeOwnership 
)
inline

Definition at line 869 of file salvtables.cxx.

References Menu::GetItemCount(), Menu::GetItemId(), LINK, and Menu::SetSelectHdl().

virtual SalInstanceMenu::~SalInstanceMenu ( )
inlineoverridevirtual

Member Function Documentation

virtual void SalInstanceMenu::clear ( )
inlineoverridevirtual

Implements weld::Menu.

Definition at line 904 of file salvtables.cxx.

References Menu::Clear().

SalInstanceMenu::DECL_LINK ( SelectMenuHdl  ,
::Menu ,
bool   
)
private
virtual bool SalInstanceMenu::get_active ( const OString &  rIdent) const
inlineoverridevirtual

Implements weld::Menu.

Definition at line 892 of file salvtables.cxx.

References Menu::GetItemId(), and Menu::IsItemChecked().

PopupMenu* SalInstanceMenu::getMenu ( ) const
inline

Definition at line 918 of file salvtables.cxx.

References VclPtr< reference_type >::get().

Referenced by SalInstanceToolbar::set_item_menu().

virtual void SalInstanceMenu::insert ( int  pos,
const OUString &  rId,
const OUString &  rStr,
const OUString *  pIconName,
VirtualDevice pImageSurface,
bool  bCheck 
)
inlineoverridevirtual

Implements weld::Menu.

Definition at line 908 of file salvtables.cxx.

virtual void SalInstanceMenu::insert_separator ( int  pos,
const OUString &  rId 
)
inlineoverridevirtual

Implements weld::Menu.

Definition at line 913 of file salvtables.cxx.

References Menu::InsertSeparator(), and MENU_APPEND.

virtual OString SalInstanceMenu::popup_at_rect ( weld::Widget pParent,
const tools::Rectangle rRect 
)
inlineoverridevirtual
virtual void SalInstanceMenu::set_active ( const OString &  rIdent,
bool  bActive 
)
inlineoverridevirtual

Implements weld::Menu.

Definition at line 888 of file salvtables.cxx.

References Menu::CheckItem().

virtual void SalInstanceMenu::set_label ( const OString &  rIdent,
const OUString &  rLabel 
)
inlineoverridevirtual

Implements weld::Menu.

Definition at line 896 of file salvtables.cxx.

References Menu::GetItemId(), and Menu::SetItemText().

virtual void SalInstanceMenu::set_sensitive ( const OString &  rIdent,
bool  bSensitive 
)
inlineoverridevirtual

Implements weld::Menu.

Definition at line 884 of file salvtables.cxx.

References Menu::EnableItem().

virtual void SalInstanceMenu::set_visible ( const OString &  rIdent,
bool  bShow 
)
inlineoverridevirtual

Implements weld::Menu.

Definition at line 900 of file salvtables.cxx.

References Menu::GetItemId(), and Menu::ShowItem().

Member Data Documentation

bool const SalInstanceMenu::m_bTakeOwnership
private

Definition at line 864 of file salvtables.cxx.

sal_uInt16 SalInstanceMenu::m_nLastId
private

Definition at line 865 of file salvtables.cxx.

VclPtr<PopupMenu> SalInstanceMenu::m_xMenu
private

Definition at line 862 of file salvtables.cxx.


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