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

#include <Qt5Menu.hxx>

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

Public Member Functions

 Qt5Menu (bool bMenuBar)
 
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
 
const Qt5FrameGetFrame () const
 
virtual void ShowMenuBar (bool bVisible) override
 
Qt5MenuGetTopLevel ()
 
virtual void SetItemBits (unsigned nPos, MenuItemBits nBits) override
 
virtual void CheckItem (unsigned nPos, bool bCheck) override
 
virtual void EnableItem (unsigned nPos, bool bEnable) override
 
virtual void ShowItem (unsigned nPos, bool bShow) 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 void ShowCloseButton (bool bShow) override
 
void SetMenu (Menu *pMenu)
 
MenuGetMenu ()
 
unsigned GetItemCount ()
 
Qt5MenuItemGetItemAtPos (unsigned nPos)
 
- Public Member Functions inherited from SalMenu
 SalMenu ()
 
virtual ~SalMenu ()
 
virtual bool ShowNativePopupMenu (FloatingWindow *pWin, const tools::Rectangle &rRect, FloatWinPopupFlags nFlags)
 
virtual bool AddMenuBarButton (const SalMenuButtonItem &)
 
virtual void RemoveMenuBarButton (sal_uInt16 nId)
 
virtual void Update ()
 
virtual bool CanGetFocus () const
 
virtual bool TakeFocus ()
 
virtual tools::Rectangle GetMenuBarButtonRectPixel (sal_uInt16 i_nItemId, SalFrame *i_pReferenceFrame)
 
virtual int GetMenuBarHeight () const
 
virtual void ApplyPersona ()
 

Private Slots

static void slotMenuTriggered (Qt5MenuItem *pQItem)
 
static void slotMenuAboutToShow (Qt5MenuItem *pQItem)
 
static void slotMenuAboutToHide (Qt5MenuItem *pQItem)
 
void slotCloseDocument ()
 

Private Member Functions

void DoFullMenuUpdate (Menu *pMenuBar)
 
void InsertMenuItem (Qt5MenuItem *pSalMenuItem, unsigned nPos)
 
void ReinitializeActionGroup (unsigned nPos)
 
void ResetAllActionGroups ()
 
void UpdateActionGroupItem (Qt5MenuItem *pSalMenuItem)
 

Static Private Member Functions

static void NativeItemText (OUString &rItemText)
 

Private Attributes

std::vector< Qt5MenuItem * > maItems
 
VclPtr< MenumpVCLMenu
 
Qt5MenumpParentSalMenu
 
Qt5FramempFrame
 
bool mbMenuBar
 
QMenuBar * mpQMenuBar
 
QMenu * mpQMenu
 
QPushButton * mpCloseButton
 
QMetaObject::Connection maCloseButtonConnection
 

Detailed Description

Definition at line 27 of file Qt5Menu.hxx.

Constructor & Destructor Documentation

Qt5Menu::Qt5Menu ( bool  bMenuBar)

Member Function Documentation

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

Implements SalMenu.

void Qt5Menu::DoFullMenuUpdate ( Menu pMenuBar)
private
virtual void Qt5Menu::EnableItem ( unsigned  nPos,
bool  bEnable 
)
overridevirtual

Implements SalMenu.

const Qt5Frame* Qt5Menu::GetFrame ( ) const
Qt5MenuItem* Qt5Menu::GetItemAtPos ( unsigned  nPos)
inline

Definition at line 78 of file Qt5Menu.hxx.

unsigned Qt5Menu::GetItemCount ( )
inline

Definition at line 77 of file Qt5Menu.hxx.

Menu* Qt5Menu::GetMenu ( )
inline

Definition at line 76 of file Qt5Menu.hxx.

References mpVCLMenu.

virtual void Qt5Menu::GetSystemMenuData ( SystemMenuData pData)
overridevirtual

Implements SalMenu.

Qt5Menu* Qt5Menu::GetTopLevel ( )
virtual void Qt5Menu::InsertItem ( SalMenuItem pSalMenuItem,
unsigned  nPos 
)
overridevirtual

Implements SalMenu.

void Qt5Menu::InsertMenuItem ( Qt5MenuItem pSalMenuItem,
unsigned  nPos 
)
private
static void Qt5Menu::NativeItemText ( OUString &  rItemText)
staticprivate
void Qt5Menu::ReinitializeActionGroup ( unsigned  nPos)
private
virtual void Qt5Menu::RemoveItem ( unsigned  nPos)
overridevirtual

Implements SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

virtual void Qt5Menu::SetItemBits ( unsigned  nPos,
MenuItemBits  nBits 
)
overridevirtual

Reimplemented from SalMenu.

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

Implements SalMenu.

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

Implements SalMenu.

void Qt5Menu::SetMenu ( Menu pMenu)
inline

Definition at line 75 of file Qt5Menu.hxx.

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

Implements SalMenu.

virtual void Qt5Menu::ShowCloseButton ( bool  bShow)
overridevirtual

Reimplemented from SalMenu.

virtual void Qt5Menu::ShowItem ( unsigned  nPos,
bool  bShow 
)
overridevirtual

Reimplemented from SalMenu.

virtual void Qt5Menu::ShowMenuBar ( bool  bVisible)
overridevirtual

Reimplemented from SalMenu.

void Qt5Menu::slotCloseDocument ( )
privateslot
static void Qt5Menu::slotMenuAboutToHide ( Qt5MenuItem pQItem)
staticprivateslot
static void Qt5Menu::slotMenuAboutToShow ( Qt5MenuItem pQItem)
staticprivateslot
static void Qt5Menu::slotMenuTriggered ( Qt5MenuItem pQItem)
staticprivateslot
void Qt5Menu::UpdateActionGroupItem ( Qt5MenuItem pSalMenuItem)
private
virtual bool Qt5Menu::VisibleMenuBar ( )
overridevirtual

Implements SalMenu.

Member Data Documentation

QMetaObject::Connection Qt5Menu::maCloseButtonConnection
private

Definition at line 39 of file Qt5Menu.hxx.

std::vector<Qt5MenuItem*> Qt5Menu::maItems
private

Definition at line 31 of file Qt5Menu.hxx.

bool Qt5Menu::mbMenuBar
private

Definition at line 35 of file Qt5Menu.hxx.

QPushButton* Qt5Menu::mpCloseButton
private

Definition at line 38 of file Qt5Menu.hxx.

Qt5Frame* Qt5Menu::mpFrame
private

Definition at line 34 of file Qt5Menu.hxx.

Qt5Menu* Qt5Menu::mpParentSalMenu
private

Definition at line 33 of file Qt5Menu.hxx.

QMenu* Qt5Menu::mpQMenu
private

Definition at line 37 of file Qt5Menu.hxx.

QMenuBar* Qt5Menu::mpQMenuBar
private

Definition at line 36 of file Qt5Menu.hxx.

VclPtr<Menu> Qt5Menu::mpVCLMenu
private

Definition at line 32 of file Qt5Menu.hxx.

Referenced by GetMenu().


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