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

 SalMenu ()
 
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 ( )
inline

Definition at line 61 of file salmenu.hxx.

SalMenu::~SalMenu ( )
virtual

Definition at line 200 of file salvtables.cxx.

Member Function Documentation

bool SalMenu::AddMenuBarButton ( const SalMenuButtonItem )
virtual

Reimplemented in AquaSalMenu.

Definition at line 213 of file salvtables.cxx.

void SalMenu::ApplyPersona ( )
virtual

Reimplemented in GtkSalMenu.

Definition at line 232 of file salvtables.cxx.

Referenced by MenuBarWindow::ApplySettings().

virtual bool SalMenu::CanGetFocus ( ) const
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 84 of file salmenu.hxx.

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

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

Implemented in GtkSalMenu, AquaSalMenu, Qt5Menu, and WinSalMenu.

Referenced by Menu::CheckItem().

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

Implemented in GtkSalMenu, AquaSalMenu, Qt5Menu, and WinSalMenu.

Referenced by Menu::EnableItem().

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

Reimplemented in AquaSalMenu.

Definition at line 222 of file salvtables.cxx.

int SalMenu::GetMenuBarHeight ( ) const
virtual

Reimplemented in GtkSalMenu.

Definition at line 227 of file salvtables.cxx.

Referenced by MenuBar::GetMenuBarHeight().

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

Implemented in GtkSalMenu, Qt5Menu, AquaSalMenu, and WinSalMenu.

Referenced by Menu::GetSystemMenuData().

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

Implemented in GtkSalMenu, AquaSalMenu, Qt5Menu, and WinSalMenu.

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

void SalMenu::RemoveMenuBarButton ( sal_uInt16  nId)
virtual

Reimplemented in AquaSalMenu.

Definition at line 218 of file salvtables.cxx.

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

Implemented in GtkSalMenu, Qt5Menu, AquaSalMenu, and WinSalMenu.

Referenced by Menu::SetAccelKey().

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

Implemented in GtkSalMenu, AquaSalMenu, Qt5Menu, and WinSalMenu.

Referenced by MenuBarWindow::SetMenu().

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

Reimplemented in Qt5Menu.

Definition at line 71 of file salmenu.hxx.

Referenced by Menu::SetItemBits().

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

Implemented in GtkSalMenu, Qt5Menu, AquaSalMenu, and WinSalMenu.

Referenced by Menu::SetItemImage().

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

Implemented in GtkSalMenu, AquaSalMenu, Qt5Menu, and WinSalMenu.

Referenced by Menu::SetItemText().

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

Implemented in GtkSalMenu, AquaSalMenu, Qt5Menu, and WinSalMenu.

Referenced by Menu::SetPopupMenu().

void SalMenu::ShowCloseButton ( bool  bShow)
virtual

Reimplemented in GtkSalMenu, and Qt5Menu.

Definition at line 209 of file salvtables.cxx.

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

Reimplemented in GtkSalMenu, and Qt5Menu.

Definition at line 88 of file salmenu.hxx.

Referenced by Menu::ShowItem().

virtual void SalMenu::ShowMenuBar ( bool  )
inlinevirtual

Reimplemented in GtkSalMenu, and Qt5Menu.

Definition at line 66 of file salmenu.hxx.

Referenced by MenuBar::SetDisplayable().

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

Reimplemented in GtkSalMenu, and AquaSalMenu.

Definition at line 204 of file salvtables.cxx.

Referenced by PopupMenu::ImplExecute().

virtual bool SalMenu::TakeFocus ( )
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 85 of file salmenu.hxx.

Referenced by MenuBarWindow::GetFocus().

virtual void SalMenu::Update ( )
inlinevirtual

Reimplemented in GtkSalMenu.

Definition at line 82 of file salmenu.hxx.

Referenced by Menu::UpdateNativeMenu().

virtual bool SalMenu::VisibleMenuBar ( )
pure virtual

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