22#include <rtl/ustring.hxx>
41 Sequence<Any> *pRet =
nullptr;
47 pRet =
new Sequence<Any>(
nCount );
48 Any *pUnoArgs = pRet->getArray();
58 pUnoArgs[
i] <<=
static_cast<sal_Int16
>(pVar->
GetChar()) ;
61 pUnoArgs[
i] <<=
static_cast<sal_Int16
>(pVar->
GetUShort());
87 pArgs, pRet ? pRetValue :
nullptr );
89 if( pRet && SbxNULL < pRetValue->GetType() &&
102 std::unique_ptr<Sequence<Any> > pUnoArgs;
112 pUnoArgs.reset(
new Sequence< Any > (0));
117 Sequence< sal_Int16 > aOutArgsIndex;
118 Sequence< Any > aOutArgs;
123 rMacro.
GetMacName(), *pUnoArgs, aRet, aOutArgsIndex, aOutArgs);
138 switch( rCallEvent.
eType )
146 if( pFormatItem && rCallEvent.
PTR.
pINetAttr == pFormatItem )
171 pTable = &pSpz->GetMacro().GetMacroTable();
183 const ImageMap* pIMap = pSpz->GetURL().GetMap();
216 Sequence<Any> aUnoArgs;
219 Sequence< sal_Int16 > aOutArgsIndex;
220 Sequence< Any > aOutArgs;
225 rMacro.
GetMacName(), aUnoArgs, aRet, aOutArgsIndex, aOutArgs) ? 1 : 0;
const SvxMacroTableDtor & GetMacroTable() const
IMapObject * GetIMapObject(size_t nPos) const
size_t GetIMapObjectCount() const
SbxVariable * Get(sal_uInt32)
sal_Unicode GetChar() const
OUString GetOUString() const
sal_Int32 GetLong() const
sal_uInt16 GetUShort() const
virtual SbxDataType GetType() const override
virtual SbxDataType GetType() const override
ErrCode CallXScript(const OUString &rScriptURL, const css::uno::Sequence< css::uno::Any > &aParams, css::uno::Any &aRet, css::uno::Sequence< sal_Int16 > &aOutParamIndex, css::uno::Sequence< css::uno::Any > &aOutParam, bool bRaiseError=true, const css::uno::Any *aCaller=nullptr)
ErrCode CallBasic(std::u16string_view rMacro, std::u16string_view rBasicName, SbxArray *pArgs, SbxValue *pRet=nullptr)
bool IsKeyValid(SvMacroItemId nEvent) const
const SvxMacro * Get(SvMacroItemId nEvent) const
const OUString & GetMacName() const
ScriptType GetScriptType() const
const OUString & GetLibName() const
sal_uInt16 CallEvent(SvMacroItemId nEvent, const SwCallMouseEvent &rCallEvent, bool bChkPtr=false)
const SwAttrPool & GetAttrPool() const
const sw::FrameFormats< sw::SpzFrameFormat * > * GetSpzFrameFormats() const
void ExecMacro(const SvxMacro &rMacro, OUString *pRet, SbxArray *pArgs)
static Sequence< Any > * lcl_docbasic_convertArgs(SbxArray &rArgs)
constexpr TypedWhichId< SwFormatINetFormat > RES_TXTATR_INETFMT(51)
#define SAL_INFO(area, stream)
const IMapObject * pIMapObj
SwCallEventObjectType eType
union SwCallMouseEvent::@24 PTR
const SwFrameFormat * pFormat
const SwFormatINetFormat * pINetAttr
struct SwCallMouseEvent::@24::@25 IMAP