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
 SalMenu ()
 
virtual ~SalMenu ()
 
virtual void ShowMenuBar (bool)
 
virtual void SetItemBits (unsigned, MenuItemBits)
 
virtual void ShowCloseButton (bool bShow)
 
virtual void Update ()
 
virtual bool CanGetFocus () const
 
virtual bool TakeFocus ()
 
virtual void ShowItem (unsigned nPos, bool bShow)
 
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 ( bool  bMenuBar)
virtual AquaSalMenu::~AquaSalMenu ( )
overridevirtual

Member Function Documentation

static void AquaSalMenu::addFallbackMenuItem ( NSMenuItem *  NewItem)
static
virtual bool AquaSalMenu::AddMenuBarButton ( const SalMenuButtonItem )
overridevirtual

Reimplemented from SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

static void AquaSalMenu::enableMainMenu ( bool  bEnable)
static
MenuBarButtonEntry* AquaSalMenu::findButtonItem ( sal_uInt16  i_nItemId)
private
const std::vector< MenuBarButtonEntry >& AquaSalMenu::getButtons ( ) const
inline

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

References maButtons.

const AquaSalFrame* AquaSalMenu::getFrame ( ) const
int AquaSalMenu::getItemIndexByPos ( sal_uInt16  nPos) const
virtual tools::Rectangle AquaSalMenu::GetMenuBarButtonRectPixel ( sal_uInt16  i_nItemId,
SalFrame i_pReferenceFrame 
)
overridevirtual

Reimplemented from SalMenu.

virtual void AquaSalMenu::GetSystemMenuData ( SystemMenuData pData)
overridevirtual

Implements SalMenu.

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

Implements SalMenu.

static void AquaSalMenu::removeFallbackMenuItem ( NSMenuItem *  pOldItem)
static
virtual void AquaSalMenu::RemoveItem ( unsigned  nPos)
overridevirtual

Implements SalMenu.

virtual void AquaSalMenu::RemoveMenuBarButton ( sal_uInt16  nId)
overridevirtual

Reimplemented from SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

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

Reimplemented from SalMenu.

static void AquaSalMenu::statusLayout ( )
staticprivate
static void AquaSalMenu::unsetMainMenu ( )
static
virtual bool AquaSalMenu::VisibleMenuBar ( )
overridevirtual

Implements SalMenu.

Member Data Documentation

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

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

Referenced by getButtons().

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

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

bool AquaSalMenu::mbMenuBar

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

const AquaSalFrame* AquaSalMenu::mpFrame

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

NSMenu* AquaSalMenu::mpMenu

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

AquaSalMenu* AquaSalMenu::mpParentSalMenu

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

VclPtr<Menu> AquaSalMenu::mpVCLMenu

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

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: