LibreOffice Module sd (master) 1
|
Classes | |
class | UpdateLockImplementation |
Public Member Functions | |
Implementation (ViewShellBase &rBase, std::shared_ptr< sd::tools::EventMultiplexer > pMultiplexer, const std::shared_ptr< ViewShellManager > &rpViewShellManager, const std::shared_ptr< ToolBarManager > &rpToolBarManager) | |
This constructor takes three arguments even though the ToolBarManager could be taken from the ViewShellBase. More... | |
~Implementation () | |
The order of statements is important. More... | |
void | SetValid (bool bValid) |
void | ResetToolBars (ToolBarGroup eGroup) |
void | ResetAllToolBars () |
void | AddToolBar (ToolBarGroup eGroup, const OUString &rsToolBarName) |
void | AddToolBarShell (ToolBarGroup eGroup, ShellId nToolBarId) |
void | RemoveToolBar (ToolBarGroup eGroup, const OUString &rsToolBarName) |
void | ReleaseAllToolBarShells () |
Release all tool bar shells and the associated framework tool bars. More... | |
void | ToolBarsDestroyed () |
void | RequestUpdate () |
void | PreUpdate () |
void | PostUpdate () |
void | Update (::std::unique_ptr< LayouterLock > pLayouterLock) |
Tell the XLayoutManager about the tool bars that we would like to be shown. More... | |
void | LockViewShellManager () |
void | LockUpdate () |
void | UnlockUpdate () |
ToolBarRules & | GetToolBarRules () |
Private Member Functions | |
bool | CheckPlugInMode (std::u16string_view rsName) const |
DECL_LINK (UpdateCallback, void *, void) | |
DECL_LINK (EventMultiplexerCallback, sd::tools::EventMultiplexerEvent &, void) | |
DECL_LINK (SetValidCallback, void *, void) | |
Static Private Member Functions | |
static OUString | GetToolBarResourceName (std::u16string_view rsBaseName) |
Private Attributes | |
mutable::osl::Mutex | maMutex |
ViewShellBase & | mrBase |
std::shared_ptr< sd::tools::EventMultiplexer > | mpEventMultiplexer |
bool | mbIsValid |
ToolBarList | maToolBarList |
ToolBarShellList | maToolBarShellList |
Reference< frame::XLayoutManager > | mxLayouter |
sal_Int32 | mnLockCount |
bool | mbPreUpdatePending |
bool | mbPostUpdatePending |
::std::unique_ptr< LayouterLock > | mpSynchronousLayouterLock |
The layouter locks manage the locking of the XLayoutManager. More... | |
::std::unique_ptr< LayouterLock > | mpAsynchronousLayouterLock |
::std::unique_ptr< ViewShellManager::UpdateLock, o3tl::default_delete< ViewShellManager::UpdateLock > > | mpViewShellManagerLock |
ImplSVEvent * | mnPendingUpdateCall |
ImplSVEvent * | mnPendingSetValidCall |
ToolBarRules | maToolBarRules |
Definition at line 238 of file ToolBarManager.cxx.
sd::ToolBarManager::Implementation::Implementation | ( | ViewShellBase & | rBase, |
std::shared_ptr< sd::tools::EventMultiplexer > | pMultiplexer, | ||
const std::shared_ptr< ViewShellManager > & | rpViewShellManager, | ||
const std::shared_ptr< ToolBarManager > & | rpToolBarManager | ||
) |
This constructor takes three arguments even though the ToolBarManager could be taken from the ViewShellBase.
This is so to state explicitly which information has to be present when this constructor is called. The ViewShellBase may not have been fully initialized at this point and must not be asked for this values.
Definition at line 498 of file ToolBarManager.cxx.
References LINK, mpEventMultiplexer, and mpEventMultiplexer.
sd::ToolBarManager::Implementation::~Implementation | ( | ) |
The order of statements is important.
First unregister listeners, which may post user events. Then remove pending user events.
Definition at line 521 of file ToolBarManager.cxx.
References LINK, mpEventMultiplexer, and Application::RemoveUserEvent().
void sd::ToolBarManager::Implementation::AddToolBar | ( | ToolBarGroup | eGroup, |
const OUString & | rsToolBarName | ||
) |
Definition at line 592 of file ToolBarManager.cxx.
References maMutex.
void sd::ToolBarManager::Implementation::AddToolBarShell | ( | ToolBarGroup | eGroup, |
ShellId | nToolBarId | ||
) |
Definition at line 622 of file ToolBarManager.cxx.
|
private |
Definition at line 860 of file ToolBarManager.cxx.
References SfxItemSet::GetItem(), SfxMedium::GetItemSet(), SfxObjectShell::GetMedium(), SfxBoolItem::GetValue(), and sd::ToolBarManager::msViewerToolBar.
|
private |
|
private |
|
private |
|
staticprivate |
Definition at line 854 of file ToolBarManager.cxx.
|
inline |
Definition at line 299 of file ToolBarManager.cxx.
References maToolBarRules.
void sd::ToolBarManager::Implementation::LockUpdate | ( | ) |
Definition at line 715 of file ToolBarManager.cxx.
References DBG_ASSERT, maMutex, and SAL_INFO.
Referenced by sd::ToolBarManager::Implementation::UpdateLockImplementation::UpdateLockImplementation().
void sd::ToolBarManager::Implementation::LockViewShellManager | ( | ) |
Definition at line 708 of file ToolBarManager.cxx.
void sd::ToolBarManager::Implementation::PostUpdate | ( | ) |
Definition at line 679 of file ToolBarManager.cxx.
void sd::ToolBarManager::Implementation::PreUpdate | ( | ) |
Definition at line 649 of file ToolBarManager.cxx.
void sd::ToolBarManager::Implementation::ReleaseAllToolBarShells | ( | ) |
Release all tool bar shells and the associated framework tool bars.
Typically called when the main view shell is being replaced by another, all tool bar shells are released. In that process the shells are destroyed anyway and without calling this method they would still be referenced.
Definition at line 634 of file ToolBarManager.cxx.
void sd::ToolBarManager::Implementation::RemoveToolBar | ( | ToolBarGroup | eGroup, |
const OUString & | rsToolBarName | ||
) |
Definition at line 608 of file ToolBarManager.cxx.
References maMutex, and sd::ToolBarManager::PreUpdate().
void sd::ToolBarManager::Implementation::RequestUpdate | ( | ) |
Definition at line 640 of file ToolBarManager.cxx.
References LINK, and Application::PostUserEvent().
void sd::ToolBarManager::Implementation::ResetAllToolBars | ( | ) |
Definition at line 585 of file ToolBarManager.cxx.
References i, sd::ToolBarManager::ResetToolBars(), and SAL_INFO.
void sd::ToolBarManager::Implementation::ResetToolBars | ( | ToolBarGroup | eGroup | ) |
Definition at line 575 of file ToolBarManager.cxx.
References maMutex.
void sd::ToolBarManager::Implementation::SetValid | ( | bool | bValid | ) |
Definition at line 539 of file ToolBarManager.cxx.
References Any, maMutex, sd::ToolBarManager::ResetAllToolBars(), and xFrame.
void sd::ToolBarManager::Implementation::ToolBarsDestroyed | ( | ) |
Definition at line 534 of file ToolBarManager.cxx.
void sd::ToolBarManager::Implementation::UnlockUpdate | ( | ) |
Definition at line 730 of file ToolBarManager.cxx.
References maMutex, SAL_INFO, and Update.
Referenced by sd::ToolBarManager::Implementation::UpdateLockImplementation::~UpdateLockImplementation().
void sd::ToolBarManager::Implementation::Update | ( | ::std::unique_ptr< LayouterLock > | pLayouterLock | ) |
Tell the XLayoutManager about the tool bars that we would like to be shown.
rpLayouterLock | This typically is the mpSynchronousLayouterLock that is used in this method and that is either released at its end or assigned to mpAsynchronousLock in order to be unlocked later. |
Definition at line 743 of file ToolBarManager.cxx.
References LINK, Application::PostUserEvent(), sd::ToolBarManager::PreUpdate(), and Application::RemoveUserEvent().
|
private |
Definition at line 302 of file ToolBarManager.cxx.
|
private |
Definition at line 306 of file ToolBarManager.cxx.
|
private |
Definition at line 322 of file ToolBarManager.cxx.
Referenced by GetToolBarRules().
|
private |
Definition at line 307 of file ToolBarManager.cxx.
|
private |
Definition at line 305 of file ToolBarManager.cxx.
|
private |
Definition at line 311 of file ToolBarManager.cxx.
|
private |
Definition at line 310 of file ToolBarManager.cxx.
|
private |
Definition at line 309 of file ToolBarManager.cxx.
|
private |
Definition at line 321 of file ToolBarManager.cxx.
|
private |
Definition at line 320 of file ToolBarManager.cxx.
|
private |
Definition at line 318 of file ToolBarManager.cxx.
|
private |
Definition at line 304 of file ToolBarManager.cxx.
Referenced by Implementation().
|
private |
The layouter locks manage the locking of the XLayoutManager.
The lock() and unlock() functions are not called directly because the (final) unlocking is usually done asynchronously after the list of requested toolbars is updated.
Definition at line 317 of file ToolBarManager.cxx.
|
private |
Definition at line 319 of file ToolBarManager.cxx.
|
private |
Definition at line 303 of file ToolBarManager.cxx.
|
private |
Definition at line 308 of file ToolBarManager.cxx.