tdf#148806 doc vba: highest priority is ThisDocument AutoOpen V2
commit73911ed8d35294a9e15771d8aaa1e9121ef10309
authorJustin Luth <justin.luth@collabora.com>
Tue, 11 Oct 2022 16:14:34 +0000 (11 12:14 -0400)
committerJustin Luth <jluth@mail.com>
Tue, 11 Oct 2022 23:12:17 +0000 (12 01:12 +0200)
tree440bebcb650b937b048bababf9cd7c0975377e99
parentf518928c322d45cdec4163c0182b0008da0da729
tdf#148806 doc vba: highest priority is ThisDocument AutoOpen V2

A review by Stephan Bergmann made me re-think adding a separate
event for this. It really is only one event and not two
(or three as I initially imagined). In the end, I like this better
because it highlights the difference between Excel and Word
by keeping all the differentiating logic in one place.

The inability to properly document the purpose of these new events
was the impetus to redesign this. Thanks Stephan for the prompt.

Change-Id: Ic2d461c13c4a52e279224cb485d2b6c4a3c57b54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141233
Tested-by: Justin Luth <jluth@mail.com>
Reviewed-by: Justin Luth <jluth@mail.com>
offapi/com/sun/star/script/vba/VBAEventId.idl
sw/source/ui/vba/vbaeventshelper.cxx
sw/source/uibase/app/docsh2.cxx
vbahelper/source/vbahelper/vbaeventshelperbase.cxx