LibreOffice Module svx (master)
1
|
implements the XScriptListener interface, is used by FormScriptingEnvironment More...
Public Member Functions | |
FormScriptListener (FormScriptingEnvironment *pScriptExecutor) | |
virtual void SAL_CALL | firing (const ScriptEvent &aEvent) override |
virtual Any SAL_CALL | approveFiring (const ScriptEvent &aEvent) override |
virtual void SAL_CALL | disposing (const EventObject &Source) override |
void | dispose () |
Protected Member Functions | |
virtual | ~FormScriptListener () override |
Private Member Functions | |
bool | impl_isDisposed_nothrow () const |
determines whether the instance is already disposed More... | |
void | impl_doFireScriptEvent_nothrow (::osl::ClearableMutexGuard &_rGuard, const ScriptEvent &_rEvent, Any *_pSynchronousResult) |
fires the given script event in a thread-safe manner More... | |
DECL_LINK (OnAsyncScriptEvent, void *, void) | |
Static Private Member Functions | |
static bool | impl_allowAsynchronousCall_nothrow (const OUString &_rListenerType, const OUString &_rMethodName) |
determines whether calling a given method at a given listener interface can be done asynchronously More... | |
Private Attributes | |
::osl::Mutex | m_aMutex |
FormScriptingEnvironment * | m_pScriptExecutor |
implements the XScriptListener interface, is used by FormScriptingEnvironment
Definition at line 73 of file fmscriptingenv.cxx.
|
explicit |
Definition at line 132 of file fmscriptingenv.cxx.
|
overrideprotectedvirtual |
Definition at line 138 of file fmscriptingenv.cxx.
|
overridevirtual |
Definition at line 709 of file fmscriptingenv.cxx.
References Any, impl_doFireScriptEvent_nothrow(), impl_isDisposed_nothrow(), and m_aMutex.
Definition at line 727 of file fmscriptingenv.cxx.
References m_aMutex, and m_pScriptExecutor.
|
overridevirtual |
Definition at line 721 of file fmscriptingenv.cxx.
|
overridevirtual |
Definition at line 688 of file fmscriptingenv.cxx.
References impl_allowAsynchronousCall_nothrow(), impl_doFireScriptEvent_nothrow(), impl_isDisposed_nothrow(), LINK, m_aMutex, and Application::PostUserEvent().
|
staticprivate |
determines whether calling a given method at a given listener interface can be done asynchronously
_rListenerType | the name of the UNO type whose method is to be checked |
_rMethodName | the name of the method at the interface determined by _rListenerType |
oneway
, i.e. can be called asynchronously Definition at line 143 of file fmscriptingenv.cxx.
Referenced by firing().
|
private |
fires the given script event in a thread-safe manner
This methods calls our script executor's doFireScriptEvent, with previously releasing the given mutex guard, but ensuring that our script executor is not deleted between this release and the actual call.
_rGuard | a clearable guard to our mutex. Must be the only active guard to our mutex. |
_rEvent | the event to fire |
_pSynchronousResult | a place to take a possible result of the script call. |
m_pScriptExecutor is not <NULL>.
Definition at line 679 of file fmscriptingenv.cxx.
References svxform::FormScriptingEnvironment::doFireScriptEvent(), and m_pScriptExecutor.
Referenced by approveFiring(), and firing().
|
inlineprivate |
determines whether the instance is already disposed
Definition at line 109 of file fmscriptingenv.cxx.
References m_pScriptExecutor.
Referenced by approveFiring(), and firing().
|
private |
Definition at line 76 of file fmscriptingenv.cxx.
Referenced by approveFiring(), dispose(), and firing().
|
private |
Definition at line 77 of file fmscriptingenv.cxx.
Referenced by dispose(), impl_doFireScriptEvent_nothrow(), and impl_isDisposed_nothrow().