LibreOffice Module sc (master) 1
|
#include <addincol.hxx>
Public Member Functions | |
ScUnoAddInCall (ScDocument &rDoc, ScUnoAddInCollection &rColl, const OUString &rName, tools::Long nParamCount) | |
~ScUnoAddInCall () | |
bool | NeedsCaller () const |
void | SetCaller (const css::uno::Reference< css::uno::XInterface > &rInterface) |
void | SetCallerFromObjectShell (const SfxObjectShell *pSh) |
bool | ValidParamCount () |
ScAddInArgumentType | GetArgType (tools::Long nPos) |
void | SetParam (tools::Long nPos, const css::uno::Any &rValue) |
void | ExecuteCall () |
void | SetResult (const css::uno::Any &rNewRes) |
FormulaError | GetErrCode () const |
bool | HasString () const |
bool | HasMatrix () const |
bool | HasVarRes () const |
double | GetValue () const |
const OUString & | GetString () const |
const ScMatrixRef & | GetMatrix () const |
const css::uno::Reference< css::sheet::XVolatileResult > & | GetVarRes () const |
Private Member Functions | |
void | ExecuteCallWithArgs (css::uno::Sequence< css::uno::Any > &rCallArgs) |
Private Attributes | |
const ScUnoAddInFuncData * | pFuncData |
css::uno::Sequence< css::uno::Any > | aArgs |
css::uno::Sequence< css::uno::Any > | aVarArg |
css::uno::Reference< css::uno::XInterface > | xCaller |
ScDocument & | mrDoc |
bool | bValidCount |
FormulaError | nErrCode |
bool | bHasString |
double | fValue |
OUString | aString |
ScMatrixRef | xMatrix |
css::uno::Reference< css::sheet::XVolatileResult > | xVarRes |
Definition at line 195 of file addincol.hxx.
ScUnoAddInCall::ScUnoAddInCall | ( | ScDocument & | rDoc, |
ScUnoAddInCollection & | rColl, | ||
const OUString & | rName, | ||
tools::Long | nParamCount | ||
) |
Definition at line 1353 of file addincol.cxx.
References aArgs, aVarArg, bValidCount, eType, ScUnoAddInFuncData::GetArgumentCount(), ScUnoAddInFuncData::GetArguments(), ScUnoAddInCollection::GetFuncData(), i, NoCode, pFuncData, and SC_ADDINARG_VARARGS.
ScUnoAddInCall::~ScUnoAddInCall | ( | ) |
Definition at line 1392 of file addincol.cxx.
void ScUnoAddInCall::ExecuteCall | ( | ) |
Definition at line 1458 of file addincol.cxx.
References aArgs, aVarArg, eType, ExecuteCallWithArgs(), ScUnoAddInFuncData::GetArgumentCount(), ScUnoAddInFuncData::GetArguments(), ScUnoAddInFuncData::GetCallerPos(), nCount, pFuncData, SC_ADDINARG_VARARGS, SC_CALLERPOS_NONE, and xCaller.
Referenced by ScInterpreter::ScExternal().
|
private |
Definition at line 1501 of file addincol.cxx.
References ScUnoAddInFuncData::GetFunction(), ScUnoAddInFuncData::GetObject(), nErrCode, pFuncData, and SetResult().
Referenced by ExecuteCall().
ScAddInArgumentType ScUnoAddInCall::GetArgType | ( | tools::Long | nPos | ) |
Definition at line 1397 of file addincol.cxx.
References eType, ScAddInArgDesc::eType, ScUnoAddInFuncData::GetArgumentCount(), ScUnoAddInFuncData::GetArguments(), nCount, nPos, pFuncData, SC_ADDINARG_VALUE_OR_ARRAY, and SC_ADDINARG_VARARGS.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 232 of file addincol.hxx.
References nErrCode.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 238 of file addincol.hxx.
References xMatrix.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 237 of file addincol.hxx.
References aString.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 236 of file addincol.hxx.
References fValue.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 240 of file addincol.hxx.
References xVarRes.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 234 of file addincol.hxx.
References xMatrix.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 233 of file addincol.hxx.
References bHasString.
Referenced by ScInterpreter::ScExternal().
|
inline |
Definition at line 235 of file addincol.hxx.
References xVarRes.
Referenced by ScInterpreter::ScExternal().
bool ScUnoAddInCall::NeedsCaller | ( | ) | const |
Definition at line 1414 of file addincol.cxx.
References ScUnoAddInFuncData::GetCallerPos(), pFuncData, and SC_CALLERPOS_NONE.
Referenced by ScInterpreter::ScExternal().
void ScUnoAddInCall::SetCaller | ( | const css::uno::Reference< css::uno::XInterface > & | rInterface | ) |
Definition at line 1419 of file addincol.cxx.
References xCaller.
Referenced by ScInterpreter::ScExternal(), and SetCallerFromObjectShell().
void ScUnoAddInCall::SetCallerFromObjectShell | ( | const SfxObjectShell * | pSh | ) |
Definition at line 1424 of file addincol.cxx.
References SfxObjectShell::GetBaseModel(), and SetCaller().
Referenced by ScInterpreter::ScExternal().
void ScUnoAddInCall::SetParam | ( | tools::Long | nPos, |
const css::uno::Any & | rValue | ||
) |
Definition at line 1433 of file addincol.cxx.
References aArgs, aVarArg, eType, ScUnoAddInFuncData::GetArgumentCount(), ScUnoAddInFuncData::GetArguments(), nCount, nPos, pFuncData, and SC_ADDINARG_VARARGS.
Referenced by ScInterpreter::ScExternal().
void ScUnoAddInCall::SetResult | ( | const css::uno::Any & | rNewRes | ) |
Definition at line 1559 of file addincol.cxx.
References aString, bHasString, ScApiTypeConversion::ConvertAnyToDouble(), ScSequenceToMatrix::CreateMixedMatrix(), fValue, svl::SharedString::getEmptyString(), ScDocument::GetSharedStringPool(), svl::SharedStringPool::intern(), lcl_GetMaxColCount(), mrDoc, nErrCode, xMatrix, and xVarRes.
Referenced by ExecuteCallWithArgs(), and ScInterpreter::ScExternal().
|
inline |
Definition at line 224 of file addincol.hxx.
References bValidCount.
Referenced by ScInterpreter::ScExternal().
|
private |
Definition at line 199 of file addincol.hxx.
Referenced by ExecuteCall(), ScUnoAddInCall(), and SetParam().
|
private |
Definition at line 208 of file addincol.hxx.
Referenced by GetString(), and SetResult().
|
private |
Definition at line 200 of file addincol.hxx.
Referenced by ExecuteCall(), ScUnoAddInCall(), and SetParam().
|
private |
Definition at line 206 of file addincol.hxx.
Referenced by HasString(), and SetResult().
|
private |
Definition at line 203 of file addincol.hxx.
Referenced by ScUnoAddInCall(), and ValidParamCount().
|
private |
Definition at line 207 of file addincol.hxx.
Referenced by GetValue(), and SetResult().
|
private |
Definition at line 202 of file addincol.hxx.
Referenced by SetResult().
|
private |
Definition at line 205 of file addincol.hxx.
Referenced by ExecuteCallWithArgs(), GetErrCode(), and SetResult().
|
private |
Definition at line 198 of file addincol.hxx.
Referenced by ExecuteCall(), ExecuteCallWithArgs(), GetArgType(), NeedsCaller(), ScUnoAddInCall(), and SetParam().
|
private |
Definition at line 201 of file addincol.hxx.
Referenced by ExecuteCall(), and SetCaller().
|
private |
Definition at line 209 of file addincol.hxx.
Referenced by GetMatrix(), HasMatrix(), and SetResult().
|
private |
Definition at line 210 of file addincol.hxx.
Referenced by GetVarRes(), HasVarRes(), and SetResult().