LibreOffice Module sfx2 (master) 1
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
sfx2::SfxNotebookBar Class Reference

Helpers for easier access to NotebookBar via the sfx2 infrastructure. More...

#include <SfxNotebookBar.hxx>

Static Public Member Functions

static void CloseMethod (SfxBindings &rBindings)
 
static void CloseMethod (SystemWindow *pSysWindow)
 
static bool IsActive (bool bConsiderSingleToolbar=false)
 
static void ExecMethod (SfxBindings &rBindings, const OUString &rUIName)
 Function to be called from the sdi's ExecMethod. More...
 
static bool StateMethod (SfxBindings &rBindings, std::u16string_view rUIFile, bool bReloadNotebookbar=false)
 Function to be called from the sdi's StateMethod. More...
 
static bool StateMethod (SystemWindow *pSysWindow, const css::uno::Reference< css::frame::XFrame > &xFrame, std::u16string_view rUIFile, bool bReloadNotebookbar=false)
 
static void LockNotebookBar ()
 Method temporarily blocks showing of the NotebookBar. More...
 
static void UnlockNotebookBar ()
 Method restores normal behaviour of the Notebookbar. More...
 
static void RemoveListeners (SystemWindow const *pSysWindow)
 
static void ShowMenubar (bool bShow)
 Show menu bar in all frames of current application. More...
 
static void ShowMenubar (SfxViewFrame const *pViewFrame, bool bShow)
 Show menu bar only in current frame. More...
 
static void ToggleMenubar ()
 
static void ReloadNotebookBar (std::u16string_view sUIPath)
 

Private Member Functions

 DECL_DLLPRIVATE_STATIC_LINK (SfxNotebookBar, VclDisposeHdl, const SfxViewShell *, void)
 

Static Private Attributes

static bool m_bLock = false
 
static bool m_bHide = false
 
static std::map< const SfxViewShell *, std::shared_ptr< WeldedTabbedNotebookbar > > m_pNotebookBarWeldedWrapper
 

Detailed Description

Helpers for easier access to NotebookBar via the sfx2 infrastructure.

Definition at line 41 of file SfxNotebookBar.hxx.

Member Function Documentation

◆ CloseMethod() [1/2]

void SfxNotebookBar::CloseMethod ( SfxBindings rBindings)
static

◆ CloseMethod() [2/2]

void SfxNotebookBar::CloseMethod ( SystemWindow pSysWindow)
static

◆ DECL_DLLPRIVATE_STATIC_LINK()

sfx2::SfxNotebookBar::DECL_DLLPRIVATE_STATIC_LINK ( SfxNotebookBar  ,
VclDisposeHdl  ,
const SfxViewShell ,
void   
)
private

◆ ExecMethod()

void SfxNotebookBar::ExecMethod ( SfxBindings rBindings,
const OUString &  rUIName 
)
static

◆ IsActive()

bool SfxNotebookBar::IsActive ( bool  bConsiderSingleToolbar = false)
static

◆ LockNotebookBar()

void SfxNotebookBar::LockNotebookBar ( )
static

Method temporarily blocks showing of the NotebookBar.

Definition at line 212 of file SfxNotebookBar.cxx.

References m_bHide, and m_bLock.

Referenced by SfxViewFrame::MiscExec_Impl().

◆ ReloadNotebookBar()

void SfxNotebookBar::ReloadNotebookBar ( std::u16string_view  sUIPath)
static

◆ RemoveListeners()

void SfxNotebookBar::RemoveListeners ( SystemWindow const *  pSysWindow)
static

Definition at line 426 of file SfxNotebookBar.cxx.

References SystemWindow::GetNotebookBar().

◆ ShowMenubar() [1/2]

void SfxNotebookBar::ShowMenubar ( bool  bShow)
static

◆ ShowMenubar() [2/2]

void SfxNotebookBar::ShowMenubar ( SfxViewFrame const *  pViewFrame,
bool  bShow 
)
static

Show menu bar only in current frame.

Definition at line 484 of file SfxNotebookBar.cxx.

References SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), lcl_getLayoutManager(), m_bLock, MENUBAR_STR, and xFrame.

◆ StateMethod() [1/2]

bool SfxNotebookBar::StateMethod ( SfxBindings rBindings,
std::u16string_view  rUIFile,
bool  bReloadNotebookbar = false 
)
static

◆ StateMethod() [2/2]

static bool sfx2::SfxNotebookBar::StateMethod ( SystemWindow pSysWindow,
const css::uno::Reference< css::frame::XFrame > &  xFrame,
std::u16string_view  rUIFile,
bool  bReloadNotebookbar = false 
)
static

◆ ToggleMenubar()

void SfxNotebookBar::ToggleMenubar ( )
static

◆ UnlockNotebookBar()

void SfxNotebookBar::UnlockNotebookBar ( )
static

Method restores normal behaviour of the Notebookbar.

Definition at line 218 of file SfxNotebookBar.cxx.

References m_bHide, and m_bLock.

Referenced by SfxViewFrame::MiscExec_Impl().

Member Data Documentation

◆ m_bHide

bool SfxNotebookBar::m_bHide = false
staticprivate

Definition at line 75 of file SfxNotebookBar.hxx.

Referenced by IsActive(), LockNotebookBar(), and UnlockNotebookBar().

◆ m_bLock

bool SfxNotebookBar::m_bLock = false
staticprivate

Definition at line 74 of file SfxNotebookBar.hxx.

Referenced by LockNotebookBar(), ShowMenubar(), and UnlockNotebookBar().

◆ m_pNotebookBarWeldedWrapper

std::map< const SfxViewShell *, std::shared_ptr< WeldedTabbedNotebookbar > > SfxNotebookBar::m_pNotebookBarWeldedWrapper
staticprivate

Definition at line 78 of file SfxNotebookBar.hxx.


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