if( pRet && SbxNULL < pRetValue->GetType() &&
SbxVOID != pRetValue->GetType() )
{ // valid value, so set it
*pRet = pRetValue->GetOUString();
}
} break; case JAVASCRIPT: // ignore JavaScript calls break; case EXTENDED_STYPE:
{
std::optional<Sequence<Any> > oUnoArgs; if( pArgs )
{ // better to rename the local function to lcl_translateBasic2Uno and // a much shorter routine can be found in sfx2/source/doc/objmisc.cxx
oUnoArgs = lcl_docbasic_convertArgs( *pArgs );
}
if (!oUnoArgs)
{
oUnoArgs.emplace(0);
}
// TODO - return value is not handled
Any aRet;
Sequence< sal_Int16 > aOutArgsIndex;
Sequence< Any > aOutArgs;
SAL_INFO("sw", "SwDoc::ExecMacro URL is " << rMacro.GetMacName() );
sal_uInt16 SwDoc::CallEvent( SvMacroItemId nEvent, const SwCallMouseEvent& rCallEvent, bool bCheckPtr )
{ if( !mpDocShell ) // we can't do that without a DocShell! return0;
case EVENT_OBJECT_URLITEM: case EVENT_OBJECT_IMAGE:
{ constauto pSpz = static_cast<const sw::SpzFrameFormat*>(rCallEvent.PTR.pFormat); if( bCheckPtr )
{ if (GetSpzFrameFormats()->IsAlive(pSpz))
bCheckPtr = false; // misuse as a flag else // this shouldn't be possible now that SwCallMouseEvent // listens for dying format?
assert(false);
} if( !bCheckPtr )
pTable = &pSpz->GetMacro().GetMacroTable();
} break;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.