LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
ScUnoAddInHelpIdGenerator Class Reference

Generates help IDs for standard Calc AddIns. More...

#include <addinhelpid.hxx>

Collaboration diagram for ScUnoAddInHelpIdGenerator:
[legend]

Public Member Functions

 ScUnoAddInHelpIdGenerator ()=delete
 Count of array entries. More...
 
 ScUnoAddInHelpIdGenerator (std::u16string_view rServiceName)
 
void SetServiceName (std::u16string_view rServiceName)
 Sets service name of the AddIn. More...
 
OUString GetHelpId (std::u16string_view rFuncName) const
 

Private Attributes

const ScUnoAddInHelpIdpCurrHelpIds
 
sal_uInt32 nArrayCount
 Array of function names and help IDs. More...
 

Detailed Description

Generates help IDs for standard Calc AddIns.

Definition at line 28 of file addinhelpid.hxx.

Constructor & Destructor Documentation

◆ ScUnoAddInHelpIdGenerator() [1/2]

ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator ( )
delete

Count of array entries.

◆ ScUnoAddInHelpIdGenerator() [2/2]

ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator ( std::u16string_view  rServiceName)

Definition at line 158 of file addinhelpid.cxx.

References SetServiceName().

Member Function Documentation

◆ GetHelpId()

OUString ScUnoAddInHelpIdGenerator::GetHelpId ( std::u16string_view  rFuncName) const
Returns
The help ID of the function with given built-in name or 0 if not found.

Definition at line 187 of file addinhelpid.cxx.

References o3tl::compareToAscii(), nArrayCount, pCurrHelpIds, ScUnoAddInHelpId::pFuncName, and ScUnoAddInHelpId::sHelpId.

Referenced by ScUnoAddInCollection::ReadConfiguration(), and ScUnoAddInCollection::ReadFromAddIn().

◆ SetServiceName()

void ScUnoAddInHelpIdGenerator::SetServiceName ( std::u16string_view  rServiceName)

Sets service name of the AddIn.

Has to be done before requesting help IDs.

Definition at line 163 of file addinhelpid.cxx.

References nArrayCount, pAnalysisHelpIds, pCurrHelpIds, pDateFuncHelpIds, pPricingFuncHelpIds, and u.

Referenced by ScUnoAddInHelpIdGenerator().

Member Data Documentation

◆ nArrayCount

sal_uInt32 ScUnoAddInHelpIdGenerator::nArrayCount
private

Array of function names and help IDs.

Definition at line 32 of file addinhelpid.hxx.

Referenced by GetHelpId(), and SetServiceName().

◆ pCurrHelpIds

const ScUnoAddInHelpId* ScUnoAddInHelpIdGenerator::pCurrHelpIds
private

Definition at line 31 of file addinhelpid.hxx.

Referenced by GetHelpId(), and SetServiceName().


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