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

--- Comment #2 from [email protected] ---
Full code (in Python) is as follows:

==============================================
import uno
import unohelper

g_ImplementationHelper = unohelper.ImplementationHelper()
g_ImplementationHelper.addImplementation(
None,"org.openoffice.script.MyImplementationForPythonScripts",
("org.openoffice.script.MyServiceForPythonScripts",),)

def properties_test(aaa=1):
    doc= XSCRIPTCONTEXT.getDocument()
   
doc.getDocumentProperties().getUserDefinedProperties().addProperty('MyProp', 0,
'LibreOffice is the best')
===============================================

To reproduce.

1. Run code
2. Look at file Properties (custom tab) --> no property there
3. Save and reload file.
4. Look at file Properties (custome tab) --> property is shown

tested on 7.2.7.2 Writer, Calc, Impress, Draw

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

Reply via email to