girllmka.blogg.se

Create container field in openoffice base
Create container field in openoffice base





create container field in openoffice base

OCoreReflection = self.getCoreReflection() Self.oCoreReflection = self.createUnoService( ".CoreReflection" ) Self.StarDesktop = self.createUnoService( ".Desktop" ) """An easy way to obtain the Desktop object from a running OOo. OObj = oServiceManager.createInstance( cClass ) OServiceManager = self.getServiceManager() """A handy way to create a global objects within the running OOo. """Get the ServiceManager from the running. # Danny's stuff to make programming less convenient. # The component must have a ctor with the component context as argument.ĭef DannysUnoBaseClass_init( self, oContext ): # stuff to support the XTypeProvider interface. G_ImplementationHelper = unohelper.ImplementationHelper() For instance, in OOo Basic, you can simply do. Remove the Dann圜omponentTest2004052217.py file from your uno_components folder.Īfter installing the component, you have two new data structure services that can be instantiated from any language which can access UNO components.Run the command "pkgchk" in your OOo\programs folder.(New edit : It may in fact be important now on ALL platforms to make sure that the ".py" file of python source has its line endings separated by linefeeds only with NO carriage returns!) Otherwise the component will not install properly!) (Note on Linux, be sure that when you copy the python program that it has no carriage returns, but instead has unix linefeeds. The user folder on Linux is contained within a folder in your home directory with a name like 1.1.1. The user folder on Windows is probably the folder named "user" under your OOo installation. Put the file Dann圜omponentTest2004052217.py into the uno_components folder of your "user" folder.Put it into a file named "Dann圜omponentTest2004052217.py".Copy the text of the following python source code.Here is how you install the new component. This message is intended as an update on what I have learned and am experimenting with.Īs a first experiment, here is a single python component program which implements two services. I have been dabbling with creating components in Python.







Create container field in openoffice base