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 HasNativeMenuBar ()=0
 Return true, if the implementation supports a native menu bar (or wants to suppress LO's menu bar, like on Mac). More...
 
virtual int GetMenuBarHeight () const
 Return the height of the native menu bar. More...
 
virtual void ShowMenuBar (bool)
 Change visibility of the native menu bar. More...
 
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 void ApplyPersona ()
 

Detailed Description

Definition at line 58 of file salmenu.hxx.

Constructor & Destructor Documentation

◆ ~SalMenu()

SalMenu::~SalMenu ( )
virtual

Definition at line 218 of file salvtables.cxx.

Member Function Documentation

◆ AddMenuBarButton()

bool SalMenu::AddMenuBarButton ( const SalMenuButtonItem )
virtual

Reimplemented in AquaSalMenu, QtMenu, and GtkSalMenu.

Definition at line 227 of file salvtables.cxx.

◆ ApplyPersona()

void SalMenu::ApplyPersona ( )
virtual

Reimplemented in GtkSalMenu.

Definition at line 240 of file salvtables.cxx.

Referenced by MenuBarWindow::ApplySettings().

◆ CanGetFocus()

virtual bool SalMenu::CanGetFocus ( ) const
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 92 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 231 of file salvtables.cxx.

◆ GetMenuBarHeight()

int SalMenu::GetMenuBarHeight ( ) const
virtual

Return the height of the native menu bar.

Must return 0, if it's hidden.

Reimplemented in QtMenu.

Definition at line 236 of file salvtables.cxx.

Referenced by MenuBar::GetMenuBarHeight(), and MenuBarWindow::LayoutChanged().

◆ GetSystemMenuData()

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

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

Referenced by Menu::GetSystemMenuData().

◆ HasNativeMenuBar()

virtual bool SalMenu::HasNativeMenuBar ( )
pure virtual

Return true, if the implementation supports a native menu bar (or wants to suppress LO's menu bar, like on Mac).

You might need to implement the matching SalFrame::SetMenu.

Implemented in AquaSalMenu, QtMenu, GtkSalMenu, and WinSalMenu.

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

◆ 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 229 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 79 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 225 of file salvtables.cxx.

◆ ShowItem()

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

Reimplemented in QtMenu, and GtkSalMenu.

Definition at line 96 of file salmenu.hxx.

References nPos.

Referenced by Menu::ShowItem().

◆ ShowMenuBar()

void SalMenu::ShowMenuBar ( bool  )
virtual

Change visibility of the native menu bar.

Reimplemented in QtMenu, and GtkSalMenu.

Definition at line 238 of file salvtables.cxx.

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

Referenced by PopupMenu::Run().

◆ TakeFocus()

virtual bool SalMenu::TakeFocus ( )
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 93 of file salmenu.hxx.

Referenced by MenuBarWindow::GetFocus().

◆ Update()

virtual void SalMenu::Update ( )
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 90 of file salmenu.hxx.

Referenced by Menu::UpdateNativeMenu().


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