|
LibreOffice Module sfx2 (master) 1
|
Per context data for deck and panel descriptors. More...
#include <ContextList.hxx>
Classes | |
| class | Entry |
Public Member Functions | |
| ContextList () | |
| const Entry * | GetMatch (const Context &rContext) const |
| Return <TRUE> when the given context matches any of the stored contexts. More... | |
| Entry * | GetMatch (const Context &rContext) |
| void | AddContextDescription (const Context &rContext, const bool bIsInitiallyVisible, const OUString &rsMenuCommand) |
| void | ToggleVisibilityForContext (const Context &rContext, const bool bIsInitiallyVisible) |
| const ::std::vector< Entry > & | GetEntries () const |
Private Member Functions | |
| ::std::vector< Entry >::const_iterator | FindBestMatch (const Context &rContext) const |
Private Attributes | |
| ::std::vector< Entry > | maEntries |
Per context data for deck and panel descriptors.
Definition at line 30 of file ContextList.hxx.
| sfx2::sidebar::ContextList::ContextList | ( | ) |
Definition at line 24 of file ContextList.cxx.
| void sfx2::sidebar::ContextList::AddContextDescription | ( | const Context & | rContext, |
| const bool | bIsInitiallyVisible, | ||
| const OUString & | rsMenuCommand | ||
| ) |
Definition at line 70 of file ContextList.cxx.
References maEntries.
Referenced by sfx2::sidebar::ResourceManager::ReadContextList(), sfx2::sidebar::ResourceManager::ReadLegacyAddons(), and ToggleVisibilityForContext().
|
private |
Definition at line 46 of file ContextList.cxx.
References sfx2::sidebar::Context::EvaluateMatch(), maEntries, sfx2::sidebar::Context::NoMatch, and sfx2::sidebar::Context::OptimalMatch.
Referenced by GetMatch().
|
inline |
Definition at line 56 of file ContextList.hxx.
References maEntries.
| ContextList::Entry * sfx2::sidebar::ContextList::GetMatch | ( | const Context & | rContext | ) |
Definition at line 37 of file ContextList.cxx.
References FindBestMatch(), and maEntries.
| const ContextList::Entry * sfx2::sidebar::ContextList::GetMatch | ( | const Context & | rContext | ) | const |
Return <TRUE> when the given context matches any of the stored contexts.
Definition at line 28 of file ContextList.cxx.
References FindBestMatch(), and maEntries.
Referenced by sfx2::sidebar::ResourceManager::GetMatchingDecks(), sfx2::sidebar::ResourceManager::GetMatchingPanels(), and ToggleVisibilityForContext().
| void sfx2::sidebar::ContextList::ToggleVisibilityForContext | ( | const Context & | rContext, |
| const bool | bIsInitiallyVisible | ||
| ) |
Definition at line 81 of file ContextList.cxx.
References AddContextDescription(), sfx2::sidebar::Context::ApplicationWildcardMatch, bVisible, sfx2::sidebar::Context::ContextWildcardMatch, sfx2::sidebar::Context::EvaluateMatch(), GetMatch(), sfx2::sidebar::ContextList::Entry::maContext, sfx2::sidebar::ContextList::Entry::mbIsInitiallyVisible, and sfx2::sidebar::Context::OptimalMatch.
|
private |
Definition at line 59 of file ContextList.hxx.
Referenced by AddContextDescription(), FindBestMatch(), GetEntries(), and GetMatch().