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

Per context data for deck and panel descriptors. More...

#include <ContextList.hxx>

Classes

class  Entry
 

Public Member Functions

 ContextList ()
 
const EntryGetMatch (const Context &rContext) const
 Return <TRUE> when the given context matches any of the stored contexts. More...
 
EntryGetMatch (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< EntrymaEntries
 

Detailed Description

Per context data for deck and panel descriptors.

Definition at line 30 of file ContextList.hxx.

Constructor & Destructor Documentation

◆ ContextList()

sfx2::sidebar::ContextList::ContextList ( )

Definition at line 24 of file ContextList.cxx.

Member Function Documentation

◆ AddContextDescription()

void sfx2::sidebar::ContextList::AddContextDescription ( const Context rContext,
const bool  bIsInitiallyVisible,
const OUString &  rsMenuCommand 
)

◆ FindBestMatch()

std::vector< ContextList::Entry >::const_iterator sfx2::sidebar::ContextList::FindBestMatch ( const Context rContext) const
private

◆ GetEntries()

const ::std::vector< Entry > & sfx2::sidebar::ContextList::GetEntries ( ) const
inline

Definition at line 56 of file ContextList.hxx.

References maEntries.

◆ GetMatch() [1/2]

ContextList::Entry * sfx2::sidebar::ContextList::GetMatch ( const Context rContext)

Definition at line 37 of file ContextList.cxx.

References FindBestMatch(), and maEntries.

◆ GetMatch() [2/2]

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().

◆ ToggleVisibilityForContext()

void sfx2::sidebar::ContextList::ToggleVisibilityForContext ( const Context rContext,
const bool  bIsInitiallyVisible 
)

Member Data Documentation

◆ maEntries

::std::vector<Entry> sfx2::sidebar::ContextList::maEntries
private

Definition at line 59 of file ContextList.hxx.

Referenced by AddContextDescription(), FindBestMatch(), GetEntries(), and GetMatch().


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