Description of the following libraries in openoffice

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
ahmedqasim81
Posts: 9
Joined: Mon Jun 23, 2008 2:31 pm

Description of the following libraries in openoffice

Post by ahmedqasim81 »

Hi,
These libraries are in the /usr/lib/openoffice/program directory on my ubuntu openoffice installation.Where do I get information and description about these libraries and how do I know what they do in the whole structure.

Code: Select all

connector.uno.so
bridgefac.uno.so
implreg.uno.so
introspection.uno.so
invocadapt.uno.so
invocation.uno.so
libcppu.so.3
libcppuhelpergcc3.so.3
libgcc3_uno.so
libpyuno.so
libreg.so.3
librmcxt.so.3
libsal.so.3
libsalhelpergcc3.so.3
libstlport_gcc.so
libstore.so.3
libuno_cppu.so.3
libuno_cppuhelpergcc3.so.3
libuno_purpenvhelpergcc3.so.3
libuno_sal.so.3
libuno_salhelpergcc3.so.3
libunsafe_uno_uno.so
liburp_uno.so
nestedreg.uno.so
reflection.uno.so
regtypeprov.uno.so
remotebridge.uno.so
security.uno.so
servicemgr.uno.so
shlibloader.uno.so
simplereg.uno.so
typeconverter.uno.so
typemgr.uno.so
uuresolver.uno.so
acceptor.uno.so
basprov680li.uno.so
behelper.uno.so
cairocanvas.uno.so
canvasfactory.uno.so
cmdmail.uno.so
configmgr2.uno.so
deployment680li.uno.so
deploymentgui680li.uno.so
desktopbe1.uno.so
dlgprov680li.uno.so
fastsax.uno.so
fpicker.uno.so
fps_office.uno.so
fsstorage.uno.so
hatchwindowfactory.uno.so
i18npool.uno.so
i18nsearch.uno.so
javaloader.uno.so
javavm.uno.so
ldapbe2.uno.so
libacc680li.so
libaffine_uno_uno.so
libavmedia680li.so
libavmediagst.so
libbasctl680li.so
libbasegfx680li.so
libbib680li.so
libcached1.so
libcanvastools680li.so
libchartcontroller680li.so
libchartmodel680li.so
libcharttools680li.so
libchartview680li.so
libcollator_data.so
libcomphelp4gcc3.so
libcppcanvas680li.so
libctl680li.so
libcui680li.so
libdba680li.so
libdbtools680li.so
libdeploymentmisc680li.so
libdict_ja.so
libdict_zh.so
libdtransX11680li.so
libegi680li.so
libembobj.so
libemboleobj.so
libeme680li.so
libemp680li.so
libepb680li.so
libepg680li.so
libepp680li.so
libeps680li.so
libept680li.so
libera680li.so
libeti680li.so
libevoab1.so
libevtatt.so
libexlink680li.so
libexp680li.so
libfile680li.so
libfileacc.so
libfilterconfig1.so
libfrm680li.so
libfwe680li.so
libfwi680li.so
libfwk680li.so
libfwl680li.so
libfwm680li.so
libgo680li.so
libguesslang680li.so
libhyphen680li.so
libi18nisolang1gcc3.so
libi18nregexpgcc3.so
libi18nutilgcc3.so
libicd680li.so
libicg680li.so
libidx680li.so
libime680li.so
libindex_data.so
libipb680li.so
libipd680li.so
libips680li.so
libipt680li.so
libipx680li.so
libira680li.so
libitg680li.so
libiti680li.so
libj680li_g.so
libjava_uno.so
libjpipe.so
libjuh.so
libjuhx.so
libjvmaccessgcc3.so.3
libjvmfwk.so.3
liblng680li.so
liblnth680li.so
liblocaledata_en.so
liblocaledata_es.so
liblocaledata_euro.so
liblocaledata_others.so
liblog680li.so
libmcnttype.so
libnpsoplugin.so
liboffacc680li.so
liboox680li.so
libpackage2.so
libpcr680li.so
libpdffilter680li.so
libpl680li.so
libpreload680li.so
libprotocolhandler680li.so
libpsp680li.so
librecentfile.so
libres680li.so
libsax680li.so
libsb680li.so
libscn680li.so
libscriptframe.so
libsdbt680li.so
libsfx680li.so
libso680li.so
libsot680li.so
libspa680li.so
libspell680li.so
libspl680li.so
libspl_unx680li.so
libsrtrs1.so
libsts680li.so
libsvl680li.so
libsvt680li.so
libsvx680li.so
libtextcat.so
libtextconv_dict.so
libtextconversiondlgs680li.so
libtfu680li.so
libtk680li.so
libtl680li.so
libtvhlp1.so
libucb1.so
libucbhelper4gcc3.so
libucpchelp1.so
libucpdav1.so
libucpfile1.so
libucpftp1.so
libucphier1.so
libucppkg1.so
libunoxml680li.so
libupdchk680li.so
libutl680li.so
libuui680li.so
libvcl680li.so
libvclplug_gen680li.so
libvos3gcc3.so
libxcr680li.so
libxmlfa680li.so
libxmlfd680li.so
libxmlsec1-nss.so.1@
libxmlsec1-nss.so.1.2.6
libxmlsec1.so.1@
libxmlsec1.so.1.2.6
libxmlsecurity.so
libxmx680li.so
libxo680li.so
libxof680li.so
libxsec_fw.so
libxsec_xmlsec.so
libxsltdlg680li.so
libxsltfilter680li.so
libxstor.so
localebe1.uno.so
migrationoo2.uno.so
namingservice.uno.so
passwordcontainer.uno.so
productregistration.uno.so
proxyfac.uno.so
pythonloader.uno.so
sax.uno.so
simplecanvas.uno.so
streams.uno.so
stringresource680li.uno.so
sunjavaplugin.so
svtmisc.uno.so
sysmgr1.uno.so
syssh.uno.so
textinstream.uno.so
textoutstream.uno.so
ucpexpand1.uno.so
ucptdoc1.uno.so
updatefeed.uno.so
uriproc.uno.so
vclcanvas.uno.so
OOo 2.4.X on Ubuntu 7.x
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Description of the following libraries in openoffice

Post by Villeroy »

You find all details in the source code. http://user.services.openoffice.org/en/ ... f=5&t=7859
But I'm afraid you won't be able to use office libraries directly. You need a running office exporting it's Universal Network Objects as described in http://wiki.services.openoffice.org/wik ... anding_Uno
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
ahmedqasim81
Posts: 9
Joined: Mon Jun 23, 2008 2:31 pm

Re: Description of the following libraries in openoffice

Post by ahmedqasim81 »

thanks a lot villeroy.
I have another question. Is there a way to check what libraries are loaded when openoffice is started.
For example http://wiki.services.openoffice.org/wik ... /Libraries .. How to get the information of Necessary libraries.

I am working with only the openoffice.org-core and python-uno installed, some other necessary packages are installed as well. So not the whole openoffice. I just need to know which are the minimal libraries that I should have to make use of the service and convert documents from one format to the other.the task is also to have NO UI.

So if possible only conversion libraries should be could be enough. Is it possible to use only the conversation libraries in my code and not use openoffice service?
OOo 2.4.X on Ubuntu 7.x
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Description of the following libraries in openoffice

Post by Villeroy »

Simply install the whole thing in listening mode and feed it with documents.
Search this forum for "headless" as well as the API-forum and the Snippets-forum at http://www.oooforum.org/forum/search.phtml
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
ahmedqasim81
Posts: 9
Joined: Mon Jun 23, 2008 2:31 pm

Re: Description of the following libraries in openoffice

Post by ahmedqasim81 »

I just have the following packages installed.
python-uno openoffice.org-common openoffice.org-core openoffice.org-style-human
ttf-opensymbol

and then I run the service
soffice -headless -accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"

after that i have a python script.

Code: Select all

import getopt, sys
import uno
import os

from unohelper import Base, systemPathToFileUrl, absolutize
from os import getcwd
from os.path import splitext
from com.sun.star.beans import PropertyValue
from com.sun.star.uno import Exception as UnoException
from com.sun.star.io import IOException, XOutputStream

class OutputStream( Base, XOutputStream ):
    def __init__( self ):
        self.closed = 0
    def closeOutput(self):
        self.closed = 1
    def writeBytes( self, seq ):
        sys.stdout.write( seq.value )
    def flush( self ):
        pass


def main():
    retVal = 0
    doc = None
    stdout = False
    opts, args = getopt.getopt(sys.argv[1:], "hc:",
            ["help", "connection-string=" , "html", "pdf", "stdout" ])	

    try:
        url = "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext"
        filterName = "Text (Encoded)"
        extension  = "txt"
        filterName = "HTML (StarWriter)"
        extension  = "html"
	ctxLocal = uno.getComponentContext()
        smgrLocal = ctxLocal.ServiceManager

        resolver = smgrLocal.createInstanceWithContext(
                 "com.sun.star.bridge.UnoUrlResolver", ctxLocal )
        ctx = resolver.resolve( url )
        smgr = ctx.ServiceManager

        desktop = smgr.createInstanceWithContext("com.sun.star.frame.Desktop", ctx )

        cwd = systemPathToFileUrl( getcwd() )
        outProps = (
            PropertyValue( "FilterName" , 0, filterName , 0 ),
	    PropertyValue( "Overwrite" , 0, True , 0 ),
            PropertyValue( "OutputStream", 0, OutputStream(), 0)
	)
	    
        inProps = PropertyValue( "Hidden" , 0 , True, 0 ),
        for path in args:
            try:
                fileUrl = absolutize( cwd, systemPathToFileUrl(path) )
		print fileUrl
                doc = desktop.loadComponentFromURL( fileUrl , "_blank", 0, inProps )
                #print fileUrl
                if not doc:
                    raise UnoException( "Couldn't open stream for unknown reason", None )

		if not stdout:
		    #print getcwd()
		    if os.path.isdir("tmp"):
			os.rmdir("tmp")
		    os.makedirs("tmp")
                    (dest, ext) = splitext(path)
                    dest = dest + "." + extension
		    #dest = "/tmp/"+dest	
                    os.chdir("tmp");
		    cwd = systemPathToFileUrl( getcwd() )
                    print dest
                    destUrl = absolutize( cwd, systemPathToFileUrl(dest) )
                    #print destUrl
                    sys.stderr.write(destUrl + "\n")
                    doc.storeToURL(destUrl, outProps)
		else:
		    doc.storeToURL("private:stream",outProps)
	        pipe = os.popen2('{ ' + "firefox "+destUrl + '; } 2>&1', mode='t')
            except IOException, e:
                sys.stderr.write( "Error during conversion: " + e.Message + "\n" )
                retVal = 1
            except UnoException, e:
                sys.stderr.write( "Error ("+repr(e.__class__)+") during conversssion:" + e.Message + "\n" )
                retVal = 1
            if doc:
                doc.dispose()

    except UnoException, e:
        sys.stderr.write( "Error s("+repr(e.__class__)+") :" + e.Message + "\n" )
        retVal = 1
    except getopt.GetoptError,e:
        sys.stderr.write( str(e) + "\n" )
        
        retVal = 1

    sys.exit(retVal)
    


main() 


When I run this I get an error message.
Error (<class '__main__.com.sun.star.lang.IllegalArgumentException'>) during conversssion:URL seems to be an unsupported one.

But when I install writer then it works fine.
Questions:
1. What do you think is the problem?
2. Do I need to install writer for it to work or is there another way?
3. (IMPORTANT) I want to strip down the core part of open office and use only the filter that converts documents for me.What libraries are used for it and is there another short way of having some 25 MB of libraries installed and I am able to convert documents?

Thanks a lot Villeroy
OOo 2.4.X on Ubuntu 7.x
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Description of the following libraries in openoffice

Post by Villeroy »

I just need to know which are the minimal libraries that I should have to make use of the service and convert documents from one format to the other.the task is also to have NO UI.
Please, install literally everything the office has to offer (OK, you may skip "desktop integration"). You can not know for shure which part of the software is needed for which document content. It is one large, highly integrated application to generate office documents in general. When you install Writer alone, the disk load amounts to more than 80% of a full installation.
I always forget to mention this one: http://www.oooninja.com/2008/02/batch-c ... -with.html
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply