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 OUString popup_at_rect (weld::Widget *pParent, const tools::Rectangle &rRect, weld::Placement ePlace=weld::Placement::Under) override
 
virtual void set_sensitive (const OUString &rIdent, bool bSensitive) override
 
virtual bool get_sensitive (const OUString &rIdent) const override
 
virtual void set_active (const OUString &rIdent, bool bActive) override
 
virtual bool get_active (const OUString &rIdent) const override
 
virtual void set_label (const OUString &rIdent, const OUString &rLabel) override
 
virtual OUString get_label (const OUString &rIdent) const override
 
virtual void set_visible (const OUString &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 set_item_help_id (const OUString &rIdent, const OUString &rHelpId) override
 
virtual void remove (const OUString &rId) override
 
virtual OUString 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 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 ()
 

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 OUString &rIdent)
 

Detailed Description

Definition at line 145 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 949 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 OUString &  rIdent) const
overridevirtual

Implements weld::Menu.

Definition at line 933 of file salvtables.cxx.

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

◆ get_id()

OUString SalInstanceMenu::get_id ( int  pos) const
overridevirtual

Implements weld::Menu.

Definition at line 975 of file salvtables.cxx.

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

◆ get_label()

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

Implements weld::Menu.

Definition at line 941 of file salvtables.cxx.

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

◆ get_sensitive()

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

Implements weld::Menu.

Definition at line 925 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 950 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 958 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 974 of file salvtables.cxx.

References Menu::GetItemCount(), and m_xMenu.

◆ popup_at_rect()

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

◆ remove()

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

Implements weld::Menu.

Definition at line 970 of file salvtables.cxx.

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

◆ set_active()

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

Implements weld::Menu.

Definition at line 929 of file salvtables.cxx.

References Menu::CheckItem(), and m_xMenu.

◆ set_item_help_id()

void SalInstanceMenu::set_item_help_id ( const OUString &  rIdent,
const OUString &  rHelpId 
)
overridevirtual

Implements weld::Menu.

Definition at line 965 of file salvtables.cxx.

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

◆ set_label()

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

Implements weld::Menu.

Definition at line 937 of file salvtables.cxx.

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

◆ set_sensitive()

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

Implements weld::Menu.

Definition at line 921 of file salvtables.cxx.

References Menu::EnableItem(), and m_xMenu.

◆ set_visible()

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

Implements weld::Menu.

Definition at line 945 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 150 of file salvtables.hxx.

Referenced by ~SalInstanceMenu().

◆ m_nLastId

sal_uInt16 SalInstanceMenu::m_nLastId
private

Definition at line 151 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: