#include <sal/macros.h>
#include <sal/log.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/uno3.hxx>
#include <comphelper/proparrhlp.hxx>
#include <comphelper/propertycontainer.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <ooo/vba/XVBAToOOEventDescGen.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
#include <com/sun/star/beans/PropertyAttribute.hpp>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/util/XCloseListener.hpp>
#include <com/sun/star/util/XCloseBroadcaster.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/script/ScriptEventDescriptor.hpp>
#include <com/sun/star/script/provider/XScriptProviderSupplier.hpp>
#include <com/sun/star/container/XNamed.hpp>
#include <com/sun/star/drawing/XControlShape.hpp>
#include <com/sun/star/awt/XControl.hpp>
#include <com/sun/star/awt/XDialog.hpp>
#include <com/sun/star/awt/KeyEvent.hpp>
#include <com/sun/star/awt/MouseEvent.hpp>
#include <com/sun/star/awt/XFixedText.hpp>
#include <com/sun/star/awt/XTextComponent.hpp>
#include <com/sun/star/awt/XComboBox.hpp>
#include <com/sun/star/awt/XRadioButton.hpp>
#include <com/sun/star/awt/XListBox.hpp>
#include <sfx2/objsh.hxx>
#include <basic/basmgr.hxx>
#include <filter/msfilter/msvbahelper.hxx>
#include <vbahelper/vbareturntypes.hxx>
#include <com/sun/star/script/XScriptListener.hpp>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <comphelper/evtmethodhelper.hxx>
#include <vector>
#include <unordered_map>
Go to the source code of this file.
|
typedef Sequence< Any >(* | Translator) (const Sequence< Any > &) |
|
typedef std::unordered_map< OUString, std::vector< TranslateInfo > > | EventInfoHash |
|
typedef ::cppu::WeakImplHelper< container::XNameContainer > | NameContainer_BASE |
|
typedef ::cppu::WeakImplHelper< XScriptListener, util::XCloseListener, lang::XInitialization, css::lang::XServiceInfo > | EventListener_BASE |
|
|
static bool | isKeyEventOk (awt::KeyEvent &evt, const Sequence< Any > ¶ms) |
|
static bool | isMouseEventOk (awt::MouseEvent &evt, const Sequence< Any > ¶ms) |
|
static Sequence< Any > | ooMouseEvtToVBADblClick (const Sequence< Any > ¶ms) |
|
static Sequence< Any > | ooMouseEvtToVBAMouseEvt (const Sequence< Any > ¶ms) |
|
static Sequence< Any > | ooKeyPressedToVBAKeyPressed (const Sequence< Any > ¶ms) |
|
static Sequence< Any > | ooKeyPressedToVBAKeyUpDown (const Sequence< Any > ¶ms) |
|
static bool | ApproveAll (const ScriptEvent &evt, void const *pPara) |
|
static bool | ApproveType (const ScriptEvent &evt, void const *pPara) |
|
static bool | DenyType (const ScriptEvent &evt, void const *pPara) |
|
static bool | DenyMouseDrag (const ScriptEvent &evt, void const *pPara) |
|
static EventInfoHash & | getEventTransInfo () |
|
static bool | eventMethodToDescriptor (std::u16string_view rEventMethod, ScriptEventDescriptor &evtDesc, const OUString &sCodeName) |
|
bool | ApproveAll (SAL_UNUSED_PARAMETER const ScriptEvent &, SAL_UNUSED_PARAMETER void const *) |
|
static bool | FindControl (const ScriptEvent &evt, void const *pPara) |
|
bool | DenyMouseDrag (const ScriptEvent &evt, SAL_UNUSED_PARAMETER void const *) |
|
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | ooo_vba_EventListener_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &) |
|
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * | ooo_vba_VBAToOOEventDesc_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &) |
|
◆ EVENTLSTNR_PROPERTY_ID_MODEL
#define EVENTLSTNR_PROPERTY_ID_MODEL 1 |
◆ EventInfoHash
typedef std::unordered_map< OUString, std::vector< TranslateInfo > > EventInfoHash |
◆ EventListener_BASE
typedef ::cppu::WeakImplHelper< XScriptListener, util::XCloseListener, lang::XInitialization, css::lang::XServiceInfo > EventListener_BASE |
◆ NameContainer_BASE
◆ Translator
typedef Sequence< Any >(* Translator) (const Sequence< Any > &) |
◆ ApproveAll() [1/2]
static bool ApproveAll |
( |
const ScriptEvent & |
evt, |
|
|
void const * |
pPara |
|
) |
| |
|
static |
◆ ApproveAll() [2/2]
bool ApproveAll |
( |
SAL_UNUSED_PARAMETER const ScriptEvent & |
, |
|
|
SAL_UNUSED_PARAMETER void const * |
|
|
) |
| |
◆ ApproveType()
bool ApproveType |
( |
const ScriptEvent & |
evt, |
|
|
void const * |
pPara |
|
) |
| |
|
static |
◆ DenyMouseDrag() [1/2]
bool DenyMouseDrag |
( |
const ScriptEvent & |
evt, |
|
|
SAL_UNUSED_PARAMETER void const * |
|
|
) |
| |
◆ DenyMouseDrag() [2/2]
static bool DenyMouseDrag |
( |
const ScriptEvent & |
evt, |
|
|
void const * |
pPara |
|
) |
| |
|
static |
◆ DenyType()
bool DenyType |
( |
const ScriptEvent & |
evt, |
|
|
void const * |
pPara |
|
) |
| |
|
static |
◆ eventMethodToDescriptor()
static bool eventMethodToDescriptor |
( |
std::u16string_view |
rEventMethod, |
|
|
ScriptEventDescriptor & |
evtDesc, |
|
|
const OUString & |
sCodeName |
|
) |
| |
|
static |
◆ FindControl()
static bool FindControl |
( |
const ScriptEvent & |
evt, |
|
|
void const * |
pPara |
|
) |
| |
|
static |
◆ getEventTransInfo()
◆ isKeyEventOk()
static bool isKeyEventOk |
( |
awt::KeyEvent & |
evt, |
|
|
const Sequence< Any > & |
params |
|
) |
| |
|
static |
◆ isMouseEventOk()
static bool isMouseEventOk |
( |
awt::MouseEvent & |
evt, |
|
|
const Sequence< Any > & |
params |
|
) |
| |
|
static |
◆ ooKeyPressedToVBAKeyPressed()
static Sequence< Any > ooKeyPressedToVBAKeyPressed |
( |
const Sequence< Any > & |
params | ) |
|
|
static |
◆ ooKeyPressedToVBAKeyUpDown()
static Sequence< Any > ooKeyPressedToVBAKeyUpDown |
( |
const Sequence< Any > & |
params | ) |
|
|
static |
◆ ooMouseEvtToVBADblClick()
static Sequence< Any > ooMouseEvtToVBADblClick |
( |
const Sequence< Any > & |
params | ) |
|
|
static |
◆ ooMouseEvtToVBAMouseEvt()
static Sequence< Any > ooMouseEvtToVBAMouseEvt |
( |
const Sequence< Any > & |
params | ) |
|
|
static |
◆ ooo_vba_EventListener_get_implementation()
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * ooo_vba_EventListener_get_implementation |
( |
css::uno::XComponentContext * |
, |
|
|
css::uno::Sequence< css::uno::Any > const & |
|
|
) |
| |
◆ ooo_vba_VBAToOOEventDesc_get_implementation()
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * ooo_vba_VBAToOOEventDesc_get_implementation |
( |
css::uno::XComponentContext * |
, |
|
|
css::uno::Sequence< css::uno::Any > const & |
|
|
) |
| |
◆ aTranslatePropMap_Impl
TranslatePropMap aTranslatePropMap_Impl[] |
|
static |
◆ comboBoxList
◆ DELIM
constexpr std::u16string_view DELIM = u"::" |
|
constexpr |
◆ DELIMLEN
◆ EVENTLSTNR_PROPERTY_MODEL
constexpr OUStringLiteral EVENTLSTNR_PROPERTY_MODEL = u"Model" |
|
constexpr |
◆ fixedTextList
◆ listBoxList
◆ radioButtonList
◆ textCompList
◆ typeXComboBox
◆ typeXFixedText
◆ typeXListBox
◆ typeXRadioButton
◆ typeXTextComponent