LibreOffice Module sfx2 (master) 1
|
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 |
Helpers for easier access to NotebookBar via the sfx2 infrastructure.
Definition at line 41 of file SfxNotebookBar.hxx.
|
static |
Definition at line 195 of file SfxNotebookBar.cxx.
References CloseMethod(), SfxBindings::GetDispatcher_Impl(), SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), and SfxFrame::GetSystemWindow().
Referenced by CloseMethod(), and SfxObjectShell::PrepareClose().
|
static |
Definition at line 201 of file SfxNotebookBar.cxx.
References SystemWindow::CloseNotebookBar(), SfxViewFrame::Current(), SystemWindow::GetNotebookBar(), and ShowMenubar().
|
private |
|
static |
Function to be called from the sdi's ExecMethod.
Definition at line 293 of file SfxNotebookBar.cxx.
References SfxViewFrame::Current(), vcl::EnumContext::GetApplicationEnum(), SfxBindings::Invalidate(), lcl_setNotebookbarFileName(), SfxBindings::Update(), and xFrame.
|
static |
Definition at line 224 of file SfxNotebookBar.cxx.
References vcl::EnumContext::Any, SfxViewFrame::Current(), vcl::EnumContext::GetApplicationEnum(), comphelper::getBOOL(), utl::OConfigurationNode::getNodeNames(), utl::OConfigurationNode::getNodeValue(), comphelper::getString(), comphelper::LibreOfficeKit::isActive(), utl::OConfigurationNode::isValid(), lcl_getAppName(), m_bHide, utl::OConfigurationNode::openNode(), SAL_WARN, and xFrame.
Referenced by SfxViewFrame::ExecReload_Impl(), ReloadNotebookBar(), ToggleMenubar(), and SfxWorkWindow::UpdateObjectBars_Impl2().
|
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().
|
static |
Definition at line 544 of file SfxNotebookBar.cxx.
References SfxViewShell::Current(), SfxViewFrame::GetBindings(), SfxViewShell::GetViewFrame(), IsActive(), and StateMethod().
Referenced by SfxViewFrame::ExecReload_Impl(), and SfxViewFrame::Notify().
|
static |
Definition at line 426 of file SfxNotebookBar.cxx.
References SystemWindow::GetNotebookBar().
|
static |
Show menu bar in all frames of current application.
Definition at line 434 of file SfxNotebookBar.cxx.
References SfxViewFrame::Current(), vcl::EnumContext::GetApplicationEnum(), SfxViewFrame::GetFirst(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxViewFrame::GetNext(), comphelper::getProcessComponentContext(), lcl_getLayoutManager(), m_bLock, MENUBAR_STR, vcl::EnumContext::NONE, and xFrame.
Referenced by CloseMethod(), and ToggleMenubar().
|
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.
|
static |
Function to be called from the sdi's StateMethod.
Definition at line 315 of file SfxNotebookBar.cxx.
References SfxBindings::GetDispatcher_Impl(), SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxFrame::GetSystemWindow(), and StateMethod().
Referenced by ReloadNotebookBar(), and StateMethod().
|
static |
|
static |
Definition at line 509 of file SfxNotebookBar.cxx.
References utl::OConfigurationTreeRoot::commit(), SfxViewFrame::Current(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), IsActive(), lcl_getCurrentImplConfigNode(), lcl_getCurrentImplConfigRoot(), lcl_getLayoutManager(), MENUBAR_STR, utl::OConfigurationNode::setNodeValue(), ShowMenubar(), and xFrame.
Referenced by SfxApplication::MiscExec_Impl().
|
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().
|
staticprivate |
Definition at line 75 of file SfxNotebookBar.hxx.
Referenced by IsActive(), LockNotebookBar(), and UnlockNotebookBar().
|
staticprivate |
Definition at line 74 of file SfxNotebookBar.hxx.
Referenced by LockNotebookBar(), ShowMenubar(), and UnlockNotebookBar().
|
staticprivate |
Definition at line 78 of file SfxNotebookBar.hxx.