LibreOffice Module svx (master) 1
|
describes the interface implemented by a component which handles scripting requirements in a form/control environment. More...
#include <fmscriptingenv.hxx>
Public Member Functions | |
FormScriptingEnvironment (FmFormModel &_rModel) | |
FormScriptingEnvironment (const FormScriptingEnvironment &)=delete | |
FormScriptingEnvironment & | operator= (const FormScriptingEnvironment &)=delete |
void | registerEventAttacherManager (const css::uno::Reference< css::script::XEventAttacherManager > &_rxManager) |
registers an XEventAttacherManager whose events should be monitored and handled More... | |
void | revokeEventAttacherManager (const css::uno::Reference< css::script::XEventAttacherManager > &_rxManager) |
registers an XEventAttacherManager whose events should not be monitored and handled anymore More... | |
void | dispose () |
disposes the scripting environment instance More... | |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Member Functions | |
void | impl_registerOrRevoke_throw (const css::uno::Reference< css::script::XEventAttacherManager > &_rxManager, bool _bRegister) |
void | doFireScriptEvent (const css::script::ScriptEvent &_rEvent, css::uno::Any *_pSynchronousResult) |
Private Attributes | |
std::mutex | m_aMutex |
rtl::Reference< FormScriptListener > | m_pScriptListener |
FmFormModel & | m_rFormModel |
bool | m_bDisposed |
Friends | |
class | FormScriptListener |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
describes the interface implemented by a component which handles scripting requirements in a form/control environment.
Definition at line 39 of file fmscriptingenv.hxx.
|
explicit |
Definition at line 752 of file fmscriptingenv.cxx.
References FormScriptListener, m_bDisposed, and m_pScriptListener.
|
delete |
void svxform::FormScriptingEnvironment::dispose | ( | void | ) |
disposes the scripting environment instance
Definition at line 917 of file fmscriptingenv.cxx.
References m_aMutex, m_bDisposed, and m_pScriptListener.
|
private |
Definition at line 836 of file fmscriptingenv.cxx.
References Any, DBG_ASSERT, SfxApplication::GetBasicManager(), FmFormModel::GetObjectShell(), tools::SvRef< typename T >::is(), m_aMutex, m_bDisposed, and m_rFormModel.
Referenced by svxform::FormScriptListener::impl_doFireScriptEvent_nothrow().
|
private |
Definition at line 761 of file fmscriptingenv.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, m_aMutex, m_bDisposed, and m_pScriptListener.
Referenced by registerEventAttacherManager(), and revokeEventAttacherManager().
|
delete |
void svxform::FormScriptingEnvironment::registerEventAttacherManager | ( | const css::uno::Reference< css::script::XEventAttacherManager > & | _rxManager | ) |
registers an XEventAttacherManager whose events should be monitored and handled
_rxManager | the XEventAttacherManager to monitor. Must not be <NULL>. |
css::lang::IllegalArgumentException | if <arg>_rxManager</arg> is <NULL> |
css::lang::DisposedException | if the instance is already disposed |
css::uno::RuntimeException | if attaching as script listener to the manager fails with a RuntimeException itself |
Definition at line 785 of file fmscriptingenv.cxx.
References impl_registerOrRevoke_throw().
void svxform::FormScriptingEnvironment::revokeEventAttacherManager | ( | const css::uno::Reference< css::script::XEventAttacherManager > & | _rxManager | ) |
registers an XEventAttacherManager whose events should not be monitored and handled anymore
_rxManager | the XEventAttacherManager which was previously registered. Must not ne <NULL>. |
css::lang::IllegalArgumentException | if <arg>_rxManager</arg> is <NULL> |
css::lang::DisposedException | if the instance is already disposed |
css::uno::RuntimeException | if removing as script listener from the manager fails with a RuntimeException itself |
Definition at line 791 of file fmscriptingenv.cxx.
References impl_registerOrRevoke_throw().
|
friend |
Definition at line 41 of file fmscriptingenv.hxx.
Referenced by FormScriptingEnvironment().
|
private |
Definition at line 82 of file fmscriptingenv.hxx.
Referenced by dispose(), doFireScriptEvent(), and impl_registerOrRevoke_throw().
|
private |
Definition at line 85 of file fmscriptingenv.hxx.
Referenced by dispose(), doFireScriptEvent(), and impl_registerOrRevoke_throw().
|
private |
Definition at line 83 of file fmscriptingenv.hxx.
Referenced by dispose(), FormScriptingEnvironment(), and impl_registerOrRevoke_throw().
|
private |
Definition at line 84 of file fmscriptingenv.hxx.
Referenced by doFireScriptEvent().