LibreOffice Module vcl (master) 1
Public Member Functions | List of all members
SalMenu Class Referenceabstract

#include <salmenu.hxx>

Inheritance diagram for SalMenu:
[legend]

Public Member Functions

virtual ~SalMenu ()
 
virtual bool VisibleMenuBar ()=0
 
virtual void ShowMenuBar (bool)
 
virtual void InsertItem (SalMenuItem *pSalMenuItem, unsigned nPos)=0
 
virtual void RemoveItem (unsigned nPos)=0
 
virtual void SetSubMenu (SalMenuItem *pSalMenuItem, SalMenu *pSubMenu, unsigned nPos)=0
 
virtual void SetFrame (const SalFrame *pFrame)=0
 
virtual void SetItemBits (unsigned, MenuItemBits)
 
virtual void CheckItem (unsigned nPos, bool bCheck)=0
 
virtual void EnableItem (unsigned nPos, bool bEnable)=0
 
virtual void SetItemText (unsigned nPos, SalMenuItem *pSalMenuItem, const OUString &rText)=0
 
virtual void SetItemImage (unsigned nPos, SalMenuItem *pSalMenuItem, const Image &rImage)=0
 
virtual void SetAccelerator (unsigned nPos, SalMenuItem *pSalMenuItem, const vcl::KeyCode &rKeyCode, const OUString &rKeyName)=0
 
virtual void GetSystemMenuData (SystemMenuData *pData)=0
 
virtual bool ShowNativePopupMenu (FloatingWindow *pWin, const tools::Rectangle &rRect, FloatWinPopupFlags nFlags)
 
virtual void ShowCloseButton (bool bShow)
 
virtual bool AddMenuBarButton (const SalMenuButtonItem &)
 
virtual void RemoveMenuBarButton (sal_uInt16 nId)
 
virtual void Update ()
 
virtual bool CanGetFocus () const
 
virtual bool TakeFocus ()
 
virtual void ShowItem (unsigned nPos, bool bShow)
 
virtual tools::Rectangle GetMenuBarButtonRectPixel (sal_uInt16 i_nItemId, SalFrame *i_pReferenceFrame)
 
virtual int GetMenuBarHeight () const
 
virtual void ApplyPersona ()
 

Detailed Description

Definition at line 58 of file salmenu.hxx.

Constructor & Destructor Documentation

◆ ~SalMenu()

SalMenu::~SalMenu ( )
virtual

Definition at line 216 of file salvtables.cxx.

Member Function Documentation

◆ AddMenuBarButton()

bool SalMenu::AddMenuBarButton ( const SalMenuButtonItem )
virtual

Reimplemented in AquaSalMenu, QtMenu, and GtkSalMenu.

Definition at line 225 of file salvtables.cxx.

◆ ApplyPersona()

void SalMenu::ApplyPersona ( )
virtual

Reimplemented in GtkSalMenu.

Definition at line 236 of file salvtables.cxx.

Referenced by MenuBarWindow::ApplySettings().

◆ CanGetFocus()

virtual bool SalMenu::CanGetFocus ( ) const
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 83 of file salmenu.hxx.

Referenced by MenuBarWindow::CanGetFocus(), and MenuBar::ImplHandleKeyEvent().

◆ CheckItem()

virtual void SalMenu::CheckItem ( unsigned  nPos,
bool  bCheck 
)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::CheckItem().

◆ EnableItem()

virtual void SalMenu::EnableItem ( unsigned  nPos,
bool  bEnable 
)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::EnableItem().

◆ GetMenuBarButtonRectPixel()

tools::Rectangle SalMenu::GetMenuBarButtonRectPixel ( sal_uInt16  i_nItemId,
SalFrame i_pReferenceFrame 
)
virtual

Reimplemented in AquaSalMenu, GtkSalMenu, and QtMenu.

Definition at line 229 of file salvtables.cxx.

◆ GetMenuBarHeight()

int SalMenu::GetMenuBarHeight ( ) const
virtual

Reimplemented in QtMenu, and GtkSalMenu.

Definition at line 234 of file salvtables.cxx.

Referenced by MenuBar::GetMenuBarHeight().

◆ GetSystemMenuData()

virtual void SalMenu::GetSystemMenuData ( SystemMenuData pData)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::GetSystemMenuData().

◆ InsertItem()

virtual void SalMenu::InsertItem ( SalMenuItem pSalMenuItem,
unsigned  nPos 
)
pure virtual

◆ RemoveItem()

virtual void SalMenu::RemoveItem ( unsigned  nPos)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::Deactivate(), and Menu::RemoveItem().

◆ RemoveMenuBarButton()

void SalMenu::RemoveMenuBarButton ( sal_uInt16  nId)
virtual

Reimplemented in AquaSalMenu, QtMenu, and GtkSalMenu.

Definition at line 227 of file salvtables.cxx.

◆ SetAccelerator()

virtual void SalMenu::SetAccelerator ( unsigned  nPos,
SalMenuItem pSalMenuItem,
const vcl::KeyCode rKeyCode,
const OUString &  rKeyName 
)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::SetAccelKey().

◆ SetFrame()

virtual void SalMenu::SetFrame ( const SalFrame pFrame)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by MenuBarWindow::SetMenu().

◆ SetItemBits()

virtual void SalMenu::SetItemBits ( unsigned  ,
MenuItemBits   
)
inlinevirtual

Reimplemented in QtMenu.

Definition at line 70 of file salmenu.hxx.

Referenced by Menu::SetItemBits().

◆ SetItemImage()

virtual void SalMenu::SetItemImage ( unsigned  nPos,
SalMenuItem pSalMenuItem,
const Image rImage 
)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::SetItemImage().

◆ SetItemText()

virtual void SalMenu::SetItemText ( unsigned  nPos,
SalMenuItem pSalMenuItem,
const OUString &  rText 
)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::SetItemText().

◆ SetSubMenu()

virtual void SalMenu::SetSubMenu ( SalMenuItem pSalMenuItem,
SalMenu pSubMenu,
unsigned  nPos 
)
pure virtual

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::SetPopupMenu().

◆ ShowCloseButton()

void SalMenu::ShowCloseButton ( bool  bShow)
virtual

Reimplemented in QtMenu, and GtkSalMenu.

Definition at line 223 of file salvtables.cxx.

◆ ShowItem()

virtual void SalMenu::ShowItem ( unsigned  nPos,
bool  bShow 
)
inlinevirtual

Reimplemented in QtMenu, and GtkSalMenu.

Definition at line 87 of file salmenu.hxx.

References nPos.

Referenced by Menu::ShowItem().

◆ ShowMenuBar()

virtual void SalMenu::ShowMenuBar ( bool  )
inlinevirtual

Reimplemented in QtMenu, and GtkSalMenu.

Definition at line 65 of file salmenu.hxx.

Referenced by MenuBar::SetDisplayable(), and MenuBarWindow::SetMenu().

◆ ShowNativePopupMenu()

bool SalMenu::ShowNativePopupMenu ( FloatingWindow pWin,
const tools::Rectangle rRect,
FloatWinPopupFlags  nFlags 
)
virtual

Reimplemented in AquaSalMenu, QtMenu, and GtkSalMenu.

Definition at line 218 of file salvtables.cxx.

Referenced by PopupMenu::Run().

◆ TakeFocus()

virtual bool SalMenu::TakeFocus ( )
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 84 of file salmenu.hxx.

Referenced by MenuBarWindow::GetFocus().

◆ Update()

virtual void SalMenu::Update ( )
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 81 of file salmenu.hxx.

Referenced by Menu::UpdateNativeMenu().

◆ VisibleMenuBar()

virtual bool SalMenu::VisibleMenuBar ( )
pure virtual

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