LibreOffice Module vcl (master) 1
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
AquaSalMenu Class Reference

#include <salmenu.h>

Inheritance diagram for AquaSalMenu:
[legend]
Collaboration diagram for AquaSalMenu:
[legend]

Classes

struct  MenuBarButtonEntry
 

Public Member Functions

 AquaSalMenu (bool bMenuBar)
 
virtual ~AquaSalMenu () override
 
virtual bool VisibleMenuBar () override
 
virtual void InsertItem (SalMenuItem *pSalMenuItem, unsigned nPos) override
 
virtual void RemoveItem (unsigned nPos) override
 
virtual void SetSubMenu (SalMenuItem *pSalMenuItem, SalMenu *pSubMenu, unsigned nPos) override
 
virtual void SetFrame (const SalFrame *pFrame) override
 
virtual void CheckItem (unsigned nPos, bool bCheck) override
 
virtual void EnableItem (unsigned nPos, bool bEnable) override
 
virtual void SetItemText (unsigned nPos, SalMenuItem *pSalMenuItem, const OUString &rText) override
 
virtual void SetItemImage (unsigned nPos, SalMenuItem *pSalMenuItem, const Image &rImage) override
 
virtual void SetAccelerator (unsigned nPos, SalMenuItem *pSalMenuItem, const vcl::KeyCode &rKeyCode, const OUString &rKeyName) override
 
virtual void GetSystemMenuData (SystemMenuData *pData) override
 
virtual bool ShowNativePopupMenu (FloatingWindow *pWin, const tools::Rectangle &rRect, FloatWinPopupFlags nFlags) override
 
virtual bool AddMenuBarButton (const SalMenuButtonItem &) override
 
virtual void RemoveMenuBarButton (sal_uInt16 nId) override
 
virtual tools::Rectangle GetMenuBarButtonRectPixel (sal_uInt16 i_nItemId, SalFrame *i_pReferenceFrame) override
 
int getItemIndexByPos (sal_uInt16 nPos) const
 
const AquaSalFramegetFrame () const
 
void setMainMenu ()
 
const std::vector< MenuBarButtonEntry > & getButtons () const
 
- Public Member Functions inherited from 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 ()
 

Static Public Member Functions

static void unsetMainMenu ()
 
static void setDefaultMenu ()
 
static void enableMainMenu (bool bEnable)
 
static void addFallbackMenuItem (NSMenuItem *NewItem)
 
static void removeFallbackMenuItem (NSMenuItem *pOldItem)
 

Public Attributes

bool mbMenuBar
 
NSMenu * mpMenu
 
VclPtr< MenumpVCLMenu
 
const AquaSalFramempFrame
 
AquaSalMenumpParentSalMenu
 

Static Public Attributes

static const AquaSalMenupCurrentMenuBar
 

Private Member Functions

MenuBarButtonEntryfindButtonItem (sal_uInt16 i_nItemId)
 

Static Private Member Functions

static void statusLayout ()
 

Private Attributes

std::vector< AquaSalMenuItem * > maItems
 
std::vector< MenuBarButtonEntrymaButtons
 

Detailed Description

Definition at line 34 of file osx/salmenu.h.

Constructor & Destructor Documentation

◆ AquaSalMenu()

AquaSalMenu::AquaSalMenu ( bool  bMenuBar)

◆ ~AquaSalMenu()

virtual AquaSalMenu::~AquaSalMenu ( )
overridevirtual

Member Function Documentation

◆ addFallbackMenuItem()

static void AquaSalMenu::addFallbackMenuItem ( NSMenuItem *  NewItem)
static

◆ AddMenuBarButton()

virtual bool AquaSalMenu::AddMenuBarButton ( const SalMenuButtonItem )
overridevirtual

Reimplemented from SalMenu.

◆ CheckItem()

virtual void AquaSalMenu::CheckItem ( unsigned  nPos,
bool  bCheck 
)
overridevirtual

Implements SalMenu.

◆ EnableItem()

virtual void AquaSalMenu::EnableItem ( unsigned  nPos,
bool  bEnable 
)
overridevirtual

Implements SalMenu.

◆ enableMainMenu()

static void AquaSalMenu::enableMainMenu ( bool  bEnable)
static

◆ findButtonItem()

MenuBarButtonEntry * AquaSalMenu::findButtonItem ( sal_uInt16  i_nItemId)
private

◆ getButtons()

const std::vector< MenuBarButtonEntry > & AquaSalMenu::getButtons ( ) const
inline

Definition at line 85 of file osx/salmenu.h.

References maButtons.

◆ getFrame()

const AquaSalFrame * AquaSalMenu::getFrame ( ) const

◆ getItemIndexByPos()

int AquaSalMenu::getItemIndexByPos ( sal_uInt16  nPos) const

◆ GetMenuBarButtonRectPixel()

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

Reimplemented from SalMenu.

◆ GetSystemMenuData()

virtual void AquaSalMenu::GetSystemMenuData ( SystemMenuData pData)
overridevirtual

Implements SalMenu.

◆ InsertItem()

virtual void AquaSalMenu::InsertItem ( SalMenuItem pSalMenuItem,
unsigned  nPos 
)
overridevirtual

Implements SalMenu.

◆ removeFallbackMenuItem()

static void AquaSalMenu::removeFallbackMenuItem ( NSMenuItem *  pOldItem)
static

◆ RemoveItem()

virtual void AquaSalMenu::RemoveItem ( unsigned  nPos)
overridevirtual

Implements SalMenu.

◆ RemoveMenuBarButton()

virtual void AquaSalMenu::RemoveMenuBarButton ( sal_uInt16  nId)
overridevirtual

Reimplemented from SalMenu.

◆ SetAccelerator()

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

Implements SalMenu.

◆ setDefaultMenu()

static void AquaSalMenu::setDefaultMenu ( )
static

◆ SetFrame()

virtual void AquaSalMenu::SetFrame ( const SalFrame pFrame)
overridevirtual

Implements SalMenu.

◆ SetItemImage()

virtual void AquaSalMenu::SetItemImage ( unsigned  nPos,
SalMenuItem pSalMenuItem,
const Image rImage 
)
overridevirtual

Implements SalMenu.

◆ SetItemText()

virtual void AquaSalMenu::SetItemText ( unsigned  nPos,
SalMenuItem pSalMenuItem,
const OUString &  rText 
)
overridevirtual

Implements SalMenu.

◆ setMainMenu()

void AquaSalMenu::setMainMenu ( )

◆ SetSubMenu()

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

Implements SalMenu.

◆ ShowNativePopupMenu()

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

Reimplemented from SalMenu.

◆ statusLayout()

static void AquaSalMenu::statusLayout ( )
staticprivate

◆ unsetMainMenu()

static void AquaSalMenu::unsetMainMenu ( )
static

◆ VisibleMenuBar()

virtual bool AquaSalMenu::VisibleMenuBar ( )
overridevirtual

Implements SalMenu.

Member Data Documentation

◆ maButtons

std::vector< MenuBarButtonEntry > AquaSalMenu::maButtons
private

Definition at line 50 of file osx/salmenu.h.

Referenced by getButtons().

◆ maItems

std::vector< AquaSalMenuItem* > AquaSalMenu::maItems
private

Definition at line 36 of file osx/salmenu.h.

◆ mbMenuBar

bool AquaSalMenu::mbMenuBar

Definition at line 87 of file osx/salmenu.h.

◆ mpFrame

const AquaSalFrame* AquaSalMenu::mpFrame

Definition at line 90 of file osx/salmenu.h.

◆ mpMenu

NSMenu* AquaSalMenu::mpMenu

Definition at line 88 of file osx/salmenu.h.

◆ mpParentSalMenu

AquaSalMenu* AquaSalMenu::mpParentSalMenu

Definition at line 91 of file osx/salmenu.h.

◆ mpVCLMenu

VclPtr<Menu> AquaSalMenu::mpVCLMenu

Definition at line 89 of file osx/salmenu.h.

◆ pCurrentMenuBar

const AquaSalMenu* AquaSalMenu::pCurrentMenuBar
static

Definition at line 93 of file osx/salmenu.h.


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