#include <eventsupplier.hxx>
|
static bool | isScriptURLAllowed (const OUString &aScriptURL) |
| Check if script URL whitelist exists, and if so, if current script url is part of it. More...
|
|
Definition at line 44 of file eventsupplier.hxx.
◆ SfxEvents_Impl()
SfxEvents_Impl::SfxEvents_Impl |
( |
SfxObjectShell * |
pShell, |
|
|
css::uno::Reference< css::document::XDocumentEventBroadcaster > const & |
xBroadcaster |
|
) |
| |
◆ ~SfxEvents_Impl()
SfxEvents_Impl::~SfxEvents_Impl |
( |
| ) |
|
|
overridevirtual |
◆ ConvertToMacro()
std::unique_ptr< SvxMacro > SfxEvents_Impl::ConvertToMacro |
( |
const css::uno::Any & |
rElement, |
|
|
SfxObjectShell * |
pDoc |
|
) |
| |
|
static |
Definition at line 335 of file eventsupplier.cxx.
References aProperties, eType, EXTENDED_STYPE, SfxShell::GetName(), JAVASCRIPT, NormalizeMacro(), PROP_EVENT_TYPE, PROP_LIBRARY, PROP_MACRO_NAME, PROP_SCRIPT, SAL_WARN, SfxGetpApp(), STAR_BASIC, STARBASIC, and SVX_MACRO_LANGUAGE_JAVASCRIPT.
Referenced by SfxEventConfiguration::ConvertToMacro().
◆ disposing()
void SAL_CALL SfxEvents_Impl::disposing |
( |
const css::lang::EventObject & |
Source | ) |
|
|
overridevirtual |
◆ documentEventOccured()
void SAL_CALL SfxEvents_Impl::documentEventOccured |
( |
const css::document::DocumentEvent & |
aEvent | ) |
|
|
overridevirtual |
◆ Execute()
void SfxEvents_Impl::Execute |
( |
css::uno::Sequence< css::beans::PropertyValue > const & |
aEventData, |
|
|
const css::document::DocumentEvent & |
aTrigger, |
|
|
SfxObjectShell * |
pDoc |
|
) |
| |
|
static |
Definition at line 183 of file eventsupplier.cxx.
References aProperties, aURL, SfxObjectShell::Current(), SfxViewFrame::GetFirst(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxObjectShell::GetModel(), SfxObjectShell::isScriptAccessAllowed(), isScriptURLAllowed(), SfxMacroLoader::loadMacro(), PROP_EVENT_TYPE, PROP_LIBRARY, PROP_MACRO_NAME, PROP_SCRIPT, SAL_WARN, STAR_BASIC, and SfxObjectShell::UnTrustedScript().
Referenced by documentEventOccured().
◆ getByName()
uno::Any SAL_CALL SfxEvents_Impl::getByName |
( |
const OUString & |
aName | ) |
|
|
overridevirtual |
◆ getElementNames()
uno::Sequence< OUString > SAL_CALL SfxEvents_Impl::getElementNames |
( |
| ) |
|
|
overridevirtual |
◆ getElementType()
uno::Type SAL_CALL SfxEvents_Impl::getElementType |
( |
| ) |
|
|
overridevirtual |
◆ hasByName()
sal_Bool SAL_CALL SfxEvents_Impl::hasByName |
( |
const OUString & |
aName | ) |
|
|
overridevirtual |
◆ hasElements()
sal_Bool SAL_CALL SfxEvents_Impl::hasElements |
( |
| ) |
|
|
overridevirtual |
◆ isScriptURLAllowed()
bool SfxEvents_Impl::isScriptURLAllowed |
( |
const OUString & |
aScriptURL | ) |
|
|
staticprivate |
Check if script URL whitelist exists, and if so, if current script url is part of it.
Definition at line 158 of file eventsupplier.cxx.
Referenced by Execute().
◆ NormalizeMacro() [1/2]
Definition at line 404 of file eventsupplier.cxx.
References SfxObjectShell::Current(), INetURLObject::decode(), SfxShell::GetName(), GetName(), SfxObjectShell::GetTitle(), PROP_EVENT_TYPE, PROP_LIBRARY, PROP_MACRO_NAME, PROP_SCRIPT, comphelper::NamedValueCollection::put(), SAL_WARN, SFX_TITLE_APINAME, SfxGetpApp(), STAR_BASIC, and INetURLObject::WithCharset.
◆ NormalizeMacro() [2/2]
static void SfxEvents_Impl::NormalizeMacro |
( |
const css::uno::Any & |
rIn, |
|
|
css::uno::Any & |
rOut, |
|
|
SfxObjectShell * |
pDoc |
|
) |
| |
|
static |
◆ replaceByName()
void SAL_CALL SfxEvents_Impl::replaceByName |
( |
const OUString & |
aName, |
|
|
const css::uno::Any & |
aElement |
|
) |
| |
|
overridevirtual |
Definition at line 57 of file eventsupplier.cxx.
References aName, comphelper::NamedValueCollection::canExtractFrom(), comphelper::NamedValueCollection::clear(), comphelper::NamedValueCollection::empty(), comphelper::findValue(), comphelper::NamedValueCollection::get(), comphelper::NamedValueCollection::getPropertyValues(), comphelper::NamedValueCollection::has(), SfxObjectShell::IsLoading(), maEventData, maEventNames, maMutex, mpObjShell, nIndex, NormalizeMacro(), PROP_EVENT_TYPE, SfxObjectShell::SetModified(), comphelper::NamedValueCollection::size(), and sType.
◆ maEventData
std::vector< css::uno::Sequence < css::beans::PropertyValue > > SfxEvents_Impl::maEventData |
|
private |
◆ maEventNames
css::uno::Sequence< OUString > SfxEvents_Impl::maEventNames |
|
private |
◆ maMutex
◆ mpObjShell
◆ mxBroadcaster
css::uno::Reference< css::document::XDocumentEventBroadcaster > SfxEvents_Impl::mxBroadcaster |
|
private |
The documentation for this class was generated from the following files: