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

#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, weld::Placement ePlace=weld::Placement::Under) 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
virtual OString popup_at_rect (weld::Widget *pParent, const tools::Rectangle &rRect, Placement ePlace=Placement::Under)=0
 
void connect_activate (const Link< const OString &, void > &rLink)
 
virtual void set_sensitive (const OString &rIdent, bool bSensitive)=0
 
virtual bool get_sensitive (const OString &rIdent) const =0
 
virtual void set_label (const OString &rIdent, const OUString &rLabel)=0
 
virtual OUString get_label (const OString &rIdent) const =0
 
virtual void set_active (const OString &rIdent, bool bActive)=0
 
virtual bool get_active (const OString &rIdent) const =0
 
virtual void set_visible (const OString &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 remove (const OString &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 OString get_id (int pos) const =0
 
virtual ~Menu ()
 

Private Member Functions

 DECL_DLLPRIVATE_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 &, void > m_aActivateHdl
 

Detailed Description

Definition at line 136 of file salvtables.hxx.

Constructor & Destructor Documentation

◆ SalInstanceMenu()

SalInstanceMenu::SalInstanceMenu ( PopupMenu pMenu,
bool  bTakeOwnership 
)

◆ ~SalInstanceMenu()

SalInstanceMenu::~SalInstanceMenu ( )
overridevirtual

Member Function Documentation

◆ clear()

void SalInstanceMenu::clear ( )
overridevirtual

Implements weld::Menu.

Definition at line 922 of file salvtables.cxx.

References Menu::Clear(), and m_xMenu.

◆ DECL_DLLPRIVATE_LINK()

SalInstanceMenu::DECL_DLLPRIVATE_LINK ( SelectMenuHdl  ,
::Menu ,
bool   
)
private

◆ get_active()

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

Implements weld::Menu.

Definition at line 906 of file salvtables.cxx.

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

◆ get_id()

OString SalInstanceMenu::get_id ( int  pos) const
overridevirtual

Implements weld::Menu.

Definition at line 941 of file salvtables.cxx.

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

◆ get_label()

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

Implements weld::Menu.

Definition at line 914 of file salvtables.cxx.

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

◆ get_sensitive()

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

Implements weld::Menu.

Definition at line 898 of file salvtables.cxx.

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

◆ getMenu()

PopupMenu * SalInstanceMenu::getMenu ( ) const

◆ insert()

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 923 of file salvtables.cxx.

References m_nLastId, m_xMenu, and pos.

◆ insert_separator()

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

Implements weld::Menu.

Definition at line 931 of file salvtables.cxx.

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

◆ n_children()

int SalInstanceMenu::n_children ( ) const
overridevirtual

Implements weld::Menu.

Definition at line 940 of file salvtables.cxx.

References Menu::GetItemCount(), and m_xMenu.

◆ popup_at_rect()

OString SalInstanceMenu::popup_at_rect ( weld::Widget pParent,
const tools::Rectangle rRect,
weld::Placement  ePlace = weld::Placement::Under 
)
overridevirtual

◆ remove()

void SalInstanceMenu::remove ( const OString &  rId)
overridevirtual

Implements weld::Menu.

Definition at line 936 of file salvtables.cxx.

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

◆ set_active()

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

Implements weld::Menu.

Definition at line 902 of file salvtables.cxx.

References Menu::CheckItem(), and m_xMenu.

◆ set_label()

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

Implements weld::Menu.

Definition at line 910 of file salvtables.cxx.

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

◆ set_sensitive()

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

Implements weld::Menu.

Definition at line 894 of file salvtables.cxx.

References Menu::EnableItem(), and m_xMenu.

◆ set_visible()

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

Implements weld::Menu.

Definition at line 918 of file salvtables.cxx.

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

Member Data Documentation

◆ m_bTakeOwnership

bool SalInstanceMenu::m_bTakeOwnership
private

Definition at line 141 of file salvtables.hxx.

Referenced by ~SalInstanceMenu().

◆ m_nLastId

sal_uInt16 SalInstanceMenu::m_nLastId
private

Definition at line 142 of file salvtables.hxx.

Referenced by insert(), and SalInstanceMenu().

◆ m_xMenu

VclPtr<PopupMenu> SalInstanceMenu::m_xMenu
private

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