Re: [dev] gcj 4.1.2 and java component registration time

2007-02-26 Thread Jim Watson


On 23/02/2007, at 10:03 PM, Caolan McNamara wrote:

For some reason I'm seeing a failure at registration of java  
components

during the install.


Similar failure here for GNU/Linux SPARC in m203 using gcc4.3  
experimental gcj/ecj




And for some other bizarre reason I have a workaround, i.e. remove
xmerge.jar from @regcompjars in solenv/bin/modules/installer/ 
globals.pm


That does not help here.
But also in globals.pm, playing with javamaxservices=15, I find that  
any number < 11 works OK.


jim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Example Using OfficeBean

2007-02-26 Thread Dyego Souza Dantas Leal
Exists a example to "print a document" using the OfficeBean ( java 
language )


Using directly access is:

protected void printDocComponent(XComponent xDoc) throws 
java.lang.Exception {

   XPrintable xPrintable = (XPrintable)UnoRuntime.queryInterface(
   XPrintable.class, xDoc);
   PropertyValue[] printerDesc = new PropertyValue[1];
   printerDesc[0] = new PropertyValue();
   printerDesc[0].Name = "Name";
   printerDesc[0].Value = aPrinterName;

   xPrintable.setPrinter(printerDesc);   
  
   PropertyValue[] printOpts = new PropertyValue[1];

   printOpts[0] = new PropertyValue();
   printOpts[0].Name = "Pages";
   printOpts[0].Value = "1";   
  
   xPrintable.print(printOpts); 
   }



in OfficeBean case ... how to print a document ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OfficeBean

2007-02-26 Thread Cedric Bosdonnat
Dyego Souza Dantas Leal a écrit :
> I'm studing to put OpenOffice inside my applications... i need a power
> of writer processor in my softwares...
> 
> the question is: Is officebean a good start for this ? OR directly
> access of API is more insteristing ?

The Bean is more interesting for you IMHO.

> what is bad in OfficeBean ?

The problem of the office bean is that any changes done on the bean will
be kept for the true OOo instance run by the user... This is on the todo
list, but not for the moment.

Cedric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OfficeBean

2007-02-26 Thread Cedric Bosdonnat
Dyego Souza Dantas Leal a écrit :
> Cedric Bosdonnat escreveu:
>> The problem of the office bean is that any changes done on the bean will
>> be kept for the true OOo instance run by the user... This is on the todo
>> list, but not for the moment.
>>   
> Any example of this behavior ?

If the user shows up the stylist in the OOoBean, it will affect the OOo
normal instance. Same if you hide the menus or toolbars.

Cedric

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] OfficeBean

2007-02-26 Thread Dyego Souza Dantas Leal

Cedric Bosdonnat escreveu:

The problem of the office bean is that any changes done on the bean will
be kept for the true OOo instance run by the user... This is on the todo
list, but not for the moment.
  

Any example of this behavior ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] OfficeBean

2007-02-26 Thread Dyego Souza Dantas Leal
I'm studing to put OpenOffice inside my applications... i need a power 
of writer processor in my softwares...


the question is: Is officebean a good start for this ? OR directly 
access of API is more insteristing ?


what is bad in OfficeBean ?


my language ? Java 1.6

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[dev] Configure warnings under cygwin , plz help

2007-02-26 Thread Zaki
 Hi all,

I'm new to openoffice, i lanched ./Configure under cygwin, i have warnings :
Internal freetype2 does not support emboldening
Use of uninitialized value in substitution (s///) at ./oowintool line 66

can you help me

Thanks 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] Registry: default icon set change to crystal not working

2007-02-26 Thread Rodrigo Castro

Rodrigo Castro wrote:
I have two Linux systems with openoffice 2.0.3 and 2.1.0. My goal is 
to change my icon set to crystal as a default system value, so I added 
the property Misc/SymbolStyle to any of the following locations:


/usr/lib/openoffice/share/registry/data/org/openoffice/Office/Common.xcu
/usr/lib/openoffice/share/registry/modules/org/openoffice/Office/Common

But that only works in 2.0.3. In OpenOffice 2.1.0 it does not work at 
all. When I check the cache file (org.openoffice.Office.Common.dat) in 
2.1.0, I can see that SymbolStyle is always set to "auto" (its default 
value), no matter if I set it in the data or module directories. It 
seems to be ignoring my system configuration files.


Nevermind, it is not an issue with OO. This problem was related to the 
unionfs on my system with OO 2.1.0. For some reason, it is not working 
correctly and reading the read-only file (the default file from OO 
package) on the first partition, rather than the modified file with the 
SymbolStyle change on the second partition.


Rodrigo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] embedding BLOBs in ODT (and accessing them via UNO)

2007-02-26 Thread Peter Eberlein

Hi Matthias,
Matthias B. schrieb:

For those interested in our use case for this request: Our custom
component supports plugins (Java .class files) that do plausibility
checks on user input to forms. We want to be able to embed these
.class files inside the documents that use them and then load them via
a custom ClassLoader.

and why not putting them into a folder Scripts/Java and configuring the 
parcel-descriptor.xml?

See http://extensions.openoffice.org/servlets/ReadMsg?list=dev&msgNo=568

Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [dev] DisposedException when connecting to OpenOffice

2007-02-26 Thread Eric Charles | U-Mangate

Hi,
I had such an exception the second time I invoked my application.
I looked at 
http://api.openoffice.org/docs/common/ref/com/sun/star/lang/DisposedException.html


you will read:
"This exception occurs if the object behind this interface has been 
disposed before and can't uphold its method specification anymore."


I tough I had to free the resources I was using (in my case, the first 
time, it was perfectly working, the second, I had the DisposedException).


So I called dispose() method on my document.


_xDoc = _xComponentLoader.loadComponentFromURL(loadUrl, "_default", 0, 
_loadProps);



try {
// use methods on _xDoc.

}
finally {
// free _xDoc
_xDoc.dispose();
}


... and the second, third,...time, everything was working.

Kind regards,

Eric


Jan Pavelka wrote:

Hello everybody,
 
I'm using OpenOffice 2.1 on Solaris
 
I'm trying to connect to listening OpenOffice with my application.
 
I have a Xvfb started, so I use this command to start openoffice
 
soffice -invisible -display :0

"-accept=socket,host=localhost,port=6000;urp;StarOfficeServiceManager"

When I try to bootstrap the OO with given code:
 
OpenOfficeHost = "localhost";


OpenOfficePort = "6000";

String con = "socket,host="+OpenOfficeHost+",port="+OpenOfficePort;

xRemoteContext = Bootstrap.createInitialComponentContext(null);

XUnoUrlResolver urlResolver = UnoUrlResolver.create(xRemoteContext);

Object initialObject = urlResolver.resolve(

"uno:socket,host=" + OpenOfficeHost + ",port=" + OpenOfficePort +
";urp;StarOffice.ServiceManager");

xRemoteServiceManager = (XMultiComponentFactory)

UnoRuntime.queryInterface(XMultiComponentFactory.class,

initialObject);

XPropertySet xProperySet = (XPropertySet) UnoRuntime.queryInterface(

XPropertySet.class, xRemoteServiceManager);

Object oDefaultContext = xProperySet.getPropertyValue("DefaultContext");

xRemoteContext = (XComponentContext)

UnoRuntime.queryInterface(XComponentContext.class, oDefaultContext);

desktop = xRemoteServiceManager.createInstanceWithContext(

"com.sun.star.frame.Desktop", xRemoteContext);

 


I got the exception

com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=localhost,port=6000,localHost=localhost,localPort=35109,peer
Host=localhost,peerPort=6000
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispa
tcher.invoke(java_remote_bridge.java:237)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispa
tcher.run(java_remote_bridge.java:144)


at line

Object initialObject = urlResolver.resolve(

"uno:socket,host=" + OpenOfficeHost + ",port=" + OpenOfficePort +
";urp;StarOffice.ServiceManager");

Thanks for any help

Jan Pavelka


  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]