LibreOffice Module ucbhelper (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ucbhelper::CommandProcessorInfo Class Reference

This class provides a command info ( the complete implementation of the interface XCommandInfo ) for an object derived from class ucb::ContentImplHelper. More...

#include <contentinfo.hxx>

Inheritance diagram for ucbhelper::CommandProcessorInfo:
[legend]
Collaboration diagram for ucbhelper::CommandProcessorInfo:
[legend]

Public Member Functions

 CommandProcessorInfo (css::uno::Reference< css::ucb::XCommandEnvironment > xEnv, ContentImplHelper *pContent)
 
virtual ~CommandProcessorInfo () override
 
virtual css::uno::Sequence< css::ucb::CommandInfo > SAL_CALL getCommands () override
 
virtual css::ucb::CommandInfo SAL_CALL getCommandInfoByName (const OUString &Name) override
 
virtual css::ucb::CommandInfo SAL_CALL getCommandInfoByHandle (sal_Int32 Handle) override
 
virtual sal_Bool SAL_CALL hasCommandByName (const OUString &Name) override
 
virtual sal_Bool SAL_CALL hasCommandByHandle (sal_Int32 Handle) override
 
void reset ()
 

Private Member Functions

bool queryCommand (std::u16string_view rName, css::ucb::CommandInfo &rCommand)
 
bool queryCommand (sal_Int32 nHandle, css::ucb::CommandInfo &rCommand)
 
const css::uno::Sequence< css::ucb::CommandInfo > & getCommandsImpl ()
 

Private Attributes

css::uno::Reference< css::ucb::XCommandEnvironment > m_xEnv
 
std::optional< css::uno::Sequence< css::ucb::CommandInfo > > m_xCommands
 
std::mutex m_aMutex
 
ContentImplHelperm_pContent
 

Detailed Description

This class provides a command info ( the complete implementation of the interface XCommandInfo ) for an object derived from class ucb::ContentImplHelper.

Definition at line 82 of file contentinfo.hxx.

Constructor & Destructor Documentation

◆ CommandProcessorInfo()

ucbhelper::CommandProcessorInfo::CommandProcessorInfo ( css::uno::Reference< css::ucb::XCommandEnvironment >  xEnv,
ContentImplHelper pContent 
)

Definition at line 168 of file contentinfo.cxx.

◆ ~CommandProcessorInfo()

ucbhelper::CommandProcessorInfo::~CommandProcessorInfo ( )
overridevirtual

Definition at line 178 of file contentinfo.cxx.

Member Function Documentation

◆ getCommandInfoByHandle()

css::ucb::CommandInfo SAL_CALL ucbhelper::CommandProcessorInfo::getCommandInfoByHandle ( sal_Int32  Handle)
overridevirtual

Definition at line 231 of file contentinfo.cxx.

References Handle, and queryCommand().

◆ getCommandInfoByName()

css::ucb::CommandInfo SAL_CALL ucbhelper::CommandProcessorInfo::getCommandInfoByName ( const OUString &  Name)
overridevirtual

Definition at line 218 of file contentinfo.cxx.

References Name, and queryCommand().

◆ getCommands()

uno::Sequence< css::ucb::CommandInfo > SAL_CALL ucbhelper::CommandProcessorInfo::getCommands ( )
overridevirtual

Definition at line 187 of file contentinfo.cxx.

References getCommandsImpl(), and m_aMutex.

◆ getCommandsImpl()

const uno::Sequence< css::ucb::CommandInfo > & ucbhelper::CommandProcessorInfo::getCommandsImpl ( )
private

◆ hasCommandByHandle()

sal_Bool SAL_CALL ucbhelper::CommandProcessorInfo::hasCommandByHandle ( sal_Int32  Handle)
overridevirtual

Definition at line 251 of file contentinfo.cxx.

References Handle, and queryCommand().

◆ hasCommandByName()

sal_Bool SAL_CALL ucbhelper::CommandProcessorInfo::hasCommandByName ( const OUString &  Name)
overridevirtual

Definition at line 242 of file contentinfo.cxx.

References Name, and queryCommand().

◆ queryCommand() [1/2]

bool ucbhelper::CommandProcessorInfo::queryCommand ( sal_Int32  nHandle,
css::ucb::CommandInfo &  rCommand 
)
private

Definition at line 293 of file contentinfo.cxx.

References getCommandsImpl(), m_aMutex, m_xCommands, n, nCount, and nHandle.

◆ queryCommand() [2/2]

bool ucbhelper::CommandProcessorInfo::queryCommand ( std::u16string_view  rName,
css::ucb::CommandInfo &  rCommand 
)
private

◆ reset()

void ucbhelper::CommandProcessorInfo::reset ( )

Definition at line 261 of file contentinfo.cxx.

References m_aMutex, and m_xCommands.

Member Data Documentation

◆ m_aMutex

std::mutex ucbhelper::CommandProcessorInfo::m_aMutex
private

Definition at line 89 of file contentinfo.hxx.

Referenced by getCommands(), queryCommand(), and reset().

◆ m_pContent

ContentImplHelper* ucbhelper::CommandProcessorInfo::m_pContent
private

Definition at line 90 of file contentinfo.hxx.

Referenced by getCommandsImpl().

◆ m_xCommands

std::optional<css::uno::Sequence< css::ucb::CommandInfo > > ucbhelper::CommandProcessorInfo::m_xCommands
private

Definition at line 88 of file contentinfo.hxx.

Referenced by getCommandsImpl(), queryCommand(), and reset().

◆ m_xEnv

css::uno::Reference< css::ucb::XCommandEnvironment > ucbhelper::CommandProcessorInfo::m_xEnv
private

Definition at line 86 of file contentinfo.hxx.

Referenced by getCommandsImpl().


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