https://bugs.documentfoundation.org/show_bug.cgi?id=144162

--- Comment #2 from Wolfgang Jäger <j...@psilosoph.de> ---
Created attachment 180375
  --> https://bugs.documentfoundation.org/attachment.cgi?id=180375&action=edit
containing local code and a tiny "Hello World" macro.

(In reply to Buovjaga from comment #1)
> I added a Calc Hello World macro to My Macros > Standard > Module1 and it
> works with View Created even with High macro security.
...
I did neither see reasons for using a recorded macro for the test nor for using
one specialized on Calc. It is expected to throw an error if a different
doctype has created its view.

The macro actually bound to onViewCreated by customization on my Win 10 system
currently working with LibO V 7.3.3.2 is:

Sub onViewCreated(pEvent)
showFileLocationInTitleBar(pEvent.Source, preferredPathStyle,
preferredLastModifiedFormat, queryPartContent)
End Sub

where the called macro does NOT call in turn any document macros. 
You will find every detail of probable interest in the attached example.
I do not attach, however, my complete buser profile. ;-)

If I open exactly this attached document on my customized install for which
macro security is set to 'Medium', I experience the originallky reported bug:

Having permitted the execution of dopcument macros I get all the additional
information I want to see in the titlke bar.
Having prohibited the execution of document macro no info is appeneded: The
onViewCreated() macro simply is not called.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to