[dev] Re: Open Office API

2007-10-01 Thread Dale Amon
On Fri, Sep 28, 2007 at 09:57:38AM +0200, Juergen Schmidt - Sun Germany - ham02 
- Hamburg wrote:
 Hi Dale,
 
 this kind of questions are best asked on the [EMAIL PROTECTED] 
 mailing list (subscription necessary). You can implement a small program 
  (Java, C++ or Python) doing that. For Java and C++ are examples in the 
 OO.org SDK. And for these languages an easy UNO bootstrap mechanism is 
 available. But of course you always need an installed office on the 
 machine. Python should work as well but i am not really familiar with 
 Python.
 
 For Java i would suggest our OpenOffice.org API plugin for NetBeans that 
 helps to do it easily (UNO client program wizard). The plugin is 
 available over the normal update center of NetBeans (5.5 or 5.5.1, NB 6 
 is coming soon)
 
 Hope that helps
 
 Juergen

Well, my level of knowledge on open office API is about as
near zero as it is possible to get and I have hitherto been
a C, ObjC and Perl programmer mainly, although I am reading
the Python manual right now.

I'm sort of hoping I can just get a bit of example code that
I can make a simple change to in order to get the results I
want. Should not be anything very special required as all I
need is to load a ppt file and then export it as pdf and exit.

 
 Dale Amon wrote:
 Juergen:
 
 I've got what should be a simple problem to solve but
 I am not sure whether I have to scale a learning cliff
 to accomplish it.
 
 I have been asked to set up a means by which I can on
 the command line convert a ppt to pdf. I can do this via
 the openoffice GUI easily enough by opening the ppt and
 using the EXPORT-PDF menu option.
 
 I should think this would be an easy thing to do on the
 command line but documentation is rather sparse and 
 non-specific.
 
 Is there a simple way to do this? 
 
  someprogram input.ppt  output.pdf
  pdfimage -j output.pdf outputpages
 
 is all I really want (yes I need both pdf and jpegs at
 the end of the process)...
 
 

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



[dev] Error Compiling OOG680_m5 : vba

2007-10-01 Thread Maulik Gordhandas
Hi i am getting the attached error while compiling OOG680 with vba enabled!

Please help

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

[dev] Re: Error Compiling OOG680_m5 : vba

2007-10-01 Thread Maulik Gordhandas
I disabled vba and than i tried compiling again..

i got the following error:
vbaobj680mi.uno.dll file not found while making the setup!!

please help with the vba feature and also without!!

thanks
Maulik

On 9/30/07, Maulik Gordhandas [EMAIL PROTECTED] wrote:

 Hi i am getting the attached error while compiling OOG680 with vba
 enabled!

 Please help

 Thanks!





Re: [dev] Proposed Thread / Process Lifecycle

2007-10-01 Thread Philipp Lohmann

Hi,

the example given uses pthreads. While this may show the idea, could you 
please instead replace it with an axample using osl threads from sal ?


Just my 2 cents, pl

Kay Ramme - Sun Germany - Hamburg wrote:

Hi OOo developers,

once a while we face the situation, that it is unclear how a long a 
thread should live, if it should be cancellable, and when the containing 
process is going to terminate (e.g. 
http://udk.openoffice.org/issues/show_bug.cgi?id=80300).


Therefor I wrote a short proposal about controlling the life time, 
supplemented by some example code to illustrate the behavior.


If you are interested, please have a look at
  http://wiki.services.openoffice.org/wiki/User:Kr/A_Thread%27s_Life
and comment on the discussion page.

Ideally the proposal becomes a specification, being mandatory for thread 
implementors.


Thanks for your help and feedback


 Kay

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




--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
 -- Author unknown

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



Re: [dev] Proposed Thread / Process Lifecycle

2007-10-01 Thread Kay Ramme - Sun Germany - Hamburg

Jöerg,

Jörg Budischewski wrote:

Hi,

but your approach then won't solve the crash in regcomp with the pyuno 
bridge and its daemon thread.


The regcomp atexit join_daemons atexit handler would be called too late 
as the static objects within the pyuno bridge (and potentially within 
the whole office) would get destructed before.
this was only an example for illustration purposes of the concept ... 
sorry that I did not make that clear ;-)


The only safe way is too terminate these daemon threads before main() 
exits ...
Certainly, going to rewrite the example suitable for use by shared 
libraries / components soon.


Bye,

Joerg


 Kay


Kay Ramme - Sun Germany - Hamburg wrote:


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



Re: [dev] Proposed Thread / Process Lifecycle

2007-10-01 Thread Kay Ramme - Sun Germany - Hamburg

Hi Philipp,

Philipp Lohmann wrote:

Hi,

the example given uses pthreads. While this may show the idea, could you 
please instead replace it with an axample using osl threads from sal ?

yep certainly, I am one the way already :-)


Just my 2 cents, pl


Kay



Kay Ramme - Sun Germany - Hamburg wrote:


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



[dev] OLE, Source code generation and reflection ... the boring story ...

2007-10-01 Thread Marten Feldtmann
I'm still on a rather boring project here (actually I worked for this 
last year
also but stopped that working and now I'm looking at that problem again) 
...

I try to connect VASmalltalk to OpenOffice via OLE. My approach was to get
all the information from OpenOffice via reflection and then I try to 
produce Smalltalk
code, which can be pretty nice used to do OpenOffice programming at 
least under

Windows using OLE.

One of my first problems to get a list of all services, constants, enum 
etc ... there is
simply no way to get this via software control. Therefore I installed 
the SDK and
parsed all files below the directory classes and I got a list with 
more than 3000
items - fine. Via this method and some reflection I get around 176 
definitions for

enums, constants and so on.

Then I tried to get information about services and interfaces, but this 
sometimes

has success (e.g 'com.sun.star.chart2.Title'), but sometimes not a single
information can be retrieved (e.g. ''com.sun.star.chart2.DataPoint''). 
In the

later case I always get VtUnknown error from the OLE subsystem.

My attempts to get more meta information is either via the core reflection
service or via an instance via beans.introspection  but both classes 
can not

deliver valid informations on most interfaces and services.

Any idea how what the problem can be 


Marten




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