LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SalInstanceMenu Class Reference

#include <salvtables.hxx>

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 bool get_sensitive (const OString &rIdent) const 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 OUString get_label (const OString &rIdent) const 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, const css::uno::Reference< css::graphic::XGraphic > &rImage, TriState eCheckRadioFalse) override
 
virtual void insert_separator (int pos, const OUString &rId) override
 
virtual void remove (const OString &rId) override
 
virtual OString get_id (int pos) const override
 
virtual int n_children () const 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_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 ~Menu ()
 

Private Member Functions

 DECL_LINK (SelectMenuHdl,::Menu *, bool)
 

Private Attributes

VclPtr< PopupMenum_xMenu
 
bool 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 135 of file salvtables.hxx.

Constructor & Destructor Documentation

SalInstanceMenu::SalInstanceMenu ( PopupMenu pMenu,
bool  bTakeOwnership 
)
SalInstanceMenu::~SalInstanceMenu ( )
overridevirtual

Member Function Documentation

void SalInstanceMenu::clear ( )
overridevirtual

Implements weld::Menu.

Definition at line 780 of file salvtables.cxx.

References Menu::Clear(), and m_xMenu.

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

Implements weld::Menu.

Definition at line 764 of file salvtables.cxx.

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

OString SalInstanceMenu::get_id ( int  pos) const
overridevirtual

Implements weld::Menu.

Definition at line 799 of file salvtables.cxx.

References Menu::GetItemId(), Menu::GetItemIdent(), and m_xMenu.

OUString SalInstanceMenu::get_label ( const OString &  rIdent) const
overridevirtual

Implements weld::Menu.

Definition at line 772 of file salvtables.cxx.

References Menu::GetItemId(), Menu::GetItemText(), and m_xMenu.

bool SalInstanceMenu::get_sensitive ( const OString &  rIdent) const
overridevirtual

Implements weld::Menu.

Definition at line 756 of file salvtables.cxx.

References Menu::GetItemId(), Menu::IsItemEnabled(), and m_xMenu.

PopupMenu * SalInstanceMenu::getMenu ( ) const
void SalInstanceMenu::insert ( int  pos,
const OUString &  rId,
const OUString &  rStr,
const OUString *  pIconName,
VirtualDevice pImageSurface,
const css::uno::Reference< css::graphic::XGraphic > &  rImage,
TriState  eCheckRadioFalse 
)
overridevirtual

Implements weld::Menu.

Definition at line 781 of file salvtables.cxx.

References m_nLastId, and m_xMenu.

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

Implements weld::Menu.

Definition at line 789 of file salvtables.cxx.

References Menu::InsertSeparator(), m_xMenu, and MENU_APPEND.

int SalInstanceMenu::n_children ( ) const
overridevirtual

Implements weld::Menu.

Definition at line 798 of file salvtables.cxx.

References Menu::GetItemCount(), and m_xMenu.

OString SalInstanceMenu::popup_at_rect ( weld::Widget pParent,
const tools::Rectangle rRect 
)
overridevirtual
void SalInstanceMenu::remove ( const OString &  rId)
overridevirtual

Implements weld::Menu.

Definition at line 794 of file salvtables.cxx.

References Menu::GetItemId(), Menu::GetItemPos(), m_xMenu, and Menu::RemoveItem().

void SalInstanceMenu::set_active ( const OString &  rIdent,
bool  bActive 
)
overridevirtual

Implements weld::Menu.

Definition at line 760 of file salvtables.cxx.

References Menu::CheckItem(), and m_xMenu.

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

Implements weld::Menu.

Definition at line 768 of file salvtables.cxx.

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

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

Implements weld::Menu.

Definition at line 752 of file salvtables.cxx.

References Menu::EnableItem(), and m_xMenu.

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

Implements weld::Menu.

Definition at line 776 of file salvtables.cxx.

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

Member Data Documentation

bool SalInstanceMenu::m_bTakeOwnership
private

Definition at line 140 of file salvtables.hxx.

Referenced by ~SalInstanceMenu().

sal_uInt16 SalInstanceMenu::m_nLastId
private

Definition at line 141 of file salvtables.hxx.

Referenced by insert(), and SalInstanceMenu().

VclPtr<PopupMenu> SalInstanceMenu::m_xMenu
private

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