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 (const css::uno::Reference< css::ucb::XCommandEnvironment > &rxEnv, 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 (const OUString &rName, css::ucb::CommandInfo &rCommand)
 
bool queryCommand (sal_Int32 nHandle, css::ucb::CommandInfo &rCommand)
 

Private Attributes

css::uno::Reference< css::ucb::XCommandEnvironment > m_xEnv
 
std::unique_ptr< css::uno::Sequence< css::ucb::CommandInfo > > m_pCommands
 
osl::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 86 of file contentinfo.hxx.

Constructor & Destructor Documentation

ucbhelper::CommandProcessorInfo::CommandProcessorInfo ( const css::uno::Reference< css::ucb::XCommandEnvironment > &  rxEnv,
ContentImplHelper pContent 
)

Definition at line 179 of file contentinfo.cxx.

ucbhelper::CommandProcessorInfo::~CommandProcessorInfo ( )
overridevirtual

Definition at line 189 of file contentinfo.cxx.

Member Function Documentation

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

Definition at line 245 of file contentinfo.cxx.

References queryCommand().

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

Definition at line 232 of file contentinfo.cxx.

References queryCommand().

uno::Sequence< css::ucb::CommandInfo > SAL_CALL ucbhelper::CommandProcessorInfo::getCommands ( )
overridevirtual
sal_Bool SAL_CALL ucbhelper::CommandProcessorInfo::hasCommandByHandle ( sal_Int32  Handle)
overridevirtual

Definition at line 265 of file contentinfo.cxx.

References queryCommand().

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

Definition at line 256 of file contentinfo.cxx.

References queryCommand().

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

Definition at line 307 of file contentinfo.cxx.

References getCommands(), m_aMutex, m_pCommands, n, and nCount.

void ucbhelper::CommandProcessorInfo::reset ( )

Definition at line 275 of file contentinfo.cxx.

References m_aMutex, and m_pCommands.

Member Data Documentation

osl::Mutex ucbhelper::CommandProcessorInfo::m_aMutex
private

Definition at line 93 of file contentinfo.hxx.

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

std::unique_ptr<css::uno::Sequence< css::ucb::CommandInfo > > ucbhelper::CommandProcessorInfo::m_pCommands
private

Definition at line 92 of file contentinfo.hxx.

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

ContentImplHelper* ucbhelper::CommandProcessorInfo::m_pContent
private

Definition at line 94 of file contentinfo.hxx.

Referenced by getCommands().

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

Definition at line 90 of file contentinfo.hxx.

Referenced by getCommands().


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