An automatically registered event observer for XlRegisterFunctions, which applies a function filter using the opt-in policy.
class CXllFunctionFilterEventHandlerOptIn : public CXlRegisterFunctionsEventStaticObserver |
This event observer should be declared at global scope as a static instance, as below:
CXllFunctionFilterEventHandlerOptIn theFunctionFilter;
During the XlRegisterFunctions event, the object's Update method will be called. As a result, an opt-in policy will be appied to the function filter (CXllFunctionFilter), using the following:
CXllFunctionFilter::Apply(*CXllApp::Instance(), true);
Header: xlpfunctionfilter.h
CXllFunctionFilterEventHandlerOptIn Methods | xlpfunctionfilter.h | CXllFunctionFilter class | CXllFunctionFilterEventHandlerOptOut class | CXlRegisterFunctionsEvent | Publishing and suppressing add-in functions (User Guide)