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

2007-10-02 Thread Joachim Lingner

If you want to programmatically determine all types, you could use
the
com.sun.star.comp.stoc.RegistryTypeDescriptionProvider service.

For example the climaker uses it to create all cli types from UNO types. 
Have a look at cli_ure/source/climaker/climaker_app.cxx.


Eventually 
com.sun.star.reflection.XTypeDescriptionEnumeration.nextTypeDescription()


is used to iterate over all available types.


Hope that helps,
Joachim


Marten Feldtmann wrote:


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]



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



Re: [dev] open office writer enhancement

2007-10-02 Thread Mathias Bauer
Hi Cor,

Cor Nouws wrote:

 Hi Vikas,
 
 VIKAS JAIN schreef:
 how to import a writer file into impress in OPEN OFFICE
 
 Copy in Writer and Edit|Paste special in Impress.
 
 Also in Writer: File|Send|Outline to presentation
 (however this seems to crash in 2.3)

I think that was more a question about how to implement a filter.
As I brought up the idea let me put it into context: the original
question was how to implement a PPT export for Writer. I don't think
that this is a good idea as Writer is about flow text and PPT files use
slides, but let's put that aside for the moment. Unfortunately the OP
also didn't tell us why (he thinks that?) he needs this.

If you really wanted to have something like that it would be easier and
perhaps even less useless ;-) to do it the other way around and import
an odt file into Impress or first to load the Writer file as usual and
then copy its content into an impress document via API.

One could do it the hard way and implement a filter. But I'm afraid this
is something I can't explain in a few sentences in a mailing list. But
if Draw/Impress provided the internal clipboard API that Writer and
Calc already support I would do it the following way:

select some paragraphs or a whole page in a Writer document via API
retrieve this as a Transferable object (internal clipboard API)
create new slide in Impress document via API
paste Transferable object into the slide (internal clipboard API)
continue until end of Writer document

This process simulates what happens when you manually copy/paste the
stuff. It would be a simple and straightforward process that can work
quite well if you have a Writer document with simple text only and where
its text can be split into slide-compatible pieces. But for anything
else this functionality wouldn't make much sense anyway ...

Unfortunately first the Draw/Impress team needed to be convinced that it
is time to implement the missing interface. ;-)

That BTW would enable other developers to implement a nice multi
clipboard extension for OOo.

Ciao,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to [EMAIL PROTECTED].
I use it for the OOo lists and only rarely read other mails sent to it.

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



Re: [dev] Classic MS Word file format question

2007-10-02 Thread Caolan McNamara

On Thu, 2007-09-20 at 19:31 +0200, Timothy Parez wrote:
 Hi,
 
 I couldn't find anything, so I'm hoping some of the devs here might  
 know.
 Is there any value in the Office 2000/2004 doc file format that  
 contains the date when the file was originally created.
 I realize you can do this by looking at the properties in the  
 filesystem, but people can change this info.

Well, like all ole2 file formats there are some properties in the
SummaryInformationStream, i.e.
http://msdn2.microsoft.com/en-us/library/aa372045.aspx

And also there is dttmCreated in the Document Properties area of
the .doc, which is specific to msword. search for doc on wotsit.org to
get the file format and then search the resulting documentation for
dttmCreated.

The summary properties are the easiest to extract with either the
mswindows apis or libgsf for non-windows.

C.

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



Re: [dev] Proposed Thread / Process Lifecycle

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

Joerg,

Kay Ramme - Sun Germany - Hamburg wrote:
Certainly, going to rewrite the example suitable for use by shared 
libraries / components soon.

Done with POSIX and pthreads, please have a look at:
http://wiki.services.openoffice.org/wiki/User:Kr/A_Thread%27s_Life#Executable_and_Library_using_pthreads

Implementation for SAL threads is coming soon (there seem to be some 
oddities wrt SAL threads ;-) ...



 Kay


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



[dev] URGENT: serious bug in EIS removeModule

2007-10-02 Thread Bernd Eilers


Hi there!

A serious bug in the EIS removeModule feature has been discovered.
Removing a module from a CWS does currently not only remove it from that 
CWS only but from all which have it.


As a result please please check your open not yet integrated 
ChildWorkspaces wether they contain all modules you once have added. If 
a module is missing please drop me a note.


A bugfix is on the way. Please do not use RemoveModule feature until 
further notice!!!


Kind regards,
Bernd Eilers

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



Re: [dev] URGENT: serious bug in EIS removeModule

2007-10-02 Thread Bernd Eilers


Hi there!

affected module are:

svx, sch, jurt, rdbmaker, shell, external

If your CWS contained one of those modules it will likely be affected.
We will try our best to collect the CWSs which contained these modules
and try to fix the EIS database, stay tuned.

Kind regards,
Bernd Eilers

Bernd Eilers wrote:


Hi there!

A serious bug in the EIS removeModule feature has been discovered.
Removing a module from a CWS does currently not only remove it from that 
CWS only but from all which have it.


As a result please please check your open not yet integrated 
ChildWorkspaces wether they contain all modules you once have added. If 
a module is missing please drop me a note.


A bugfix is on the way. Please do not use RemoveModule feature until 
further notice!!!


Kind regards,
Bernd Eilers

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



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



[dev] Tinderbox moved

2007-10-02 Thread Hubert Figuiere
Hi,

I forgot, but tinderbox moved to http://tinderbox.go-oo.org/

There is a redirector on the old URL that should work with most HTTP
client (including wget, curl and Perl)

Please update if possible.

Hub

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



Re: [dev] Tinderbox moved

2007-10-02 Thread Bernd Eilers

Hubert Figuiere wrote:

Hi,



Hi there!


I forgot, but tinderbox moved to http://tinderbox.go-oo.org/



I noticed ;-)


There is a redirector on the old URL that should work with most HTTP
client (including wget, curl and Perl)



That redirectory didnĀ“t work well together with the feature in EIS of 
integrating the tinderbox status in the CWS overview pages which is 
using the apache HttpClient java library.


EIS has been adopted to use the new URL accordingly and now the feature 
works again.



Please update if possible.

Hub



Kind regards,
Bernd Eilers

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



Re: [dev] URGENT: serious bug in EIS removeModule

2007-10-02 Thread Bernd Eilers


Hi there!

EIS database entries have been fixed.
If you still think one of your CWS is missing a module please drop me an 
email.


Kind regards,
Bernd Eilers


Bernd Eilers wrote:


Hi there!

affected module are:

svx, sch, jurt, rdbmaker, shell, external

If your CWS contained one of those modules it will likely be affected.
We will try our best to collect the CWSs which contained these modules
and try to fix the EIS database, stay tuned.

Kind regards,
Bernd Eilers

Bernd Eilers wrote:


Hi there!

A serious bug in the EIS removeModule feature has been discovered.
Removing a module from a CWS does currently not only remove it from 
that CWS only but from all which have it.


As a result please please check your open not yet integrated 
ChildWorkspaces wether they contain all modules you once have added. 
If a module is missing please drop me a note.


A bugfix is on the way. Please do not use RemoveModule feature until 
further notice!!!


Kind regards,
Bernd Eilers

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



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



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



[dev] Re: PROBLEM WITH DATES CHANGED IN OPEN OFFICE CALC

2007-10-02 Thread NoOp
On 10/01/2007 01:02 AM, Kirill S. Palagin wrote:
 You are not alone - some members of Russian community are affected and
 many can repro this problem. See 
 http://www.openoffice.org/issues/show_bug.cgi?id=76623.
 I suggest voting for the issue.
 
 (I am also forwarding this message to developers of Spreadsheet, hoping
 for their attention).
 
 Regards,
 K. Palagin.

Kirill, I think that this must be a locales type of problem. If you look
for these recent posts:

Date Display Problem + Sudheer Satyanarayana
Date format + Clive Bowley

You'll find the same problem.

Last month Clive Bowley experienced the exact same problem using a
windows version (search the archives for Date format + Clive Bowley.
He sent me his spreadsheet of list and I was not able to reproduce in:

OOo 2.3 (linux): cannot reproduce
OOo 2.1 (linux): cannot reproduce
StarOffice 8 (linux): cannot reproduce
OOo 2.1 (Windows): cannot reproduce
StarOffice 8 (Windows): cannot reproduce
MS Excel 2002 SP3 (windows): cannot reproduce

I also was not able to reproduce Sudheer Satyanarayana's problem. As
mentioned in my post to Sudheer: Perhaps it's a locale problem? I am in
the US and use US locale's in OOo etc. Clive is in the UK so perhaps
this is a related regional bug.

I also just tried the spreadsheet in the bug report:
http://www.openoffice.org/nonav/issues/showattachment.cgi/48629/IZ_76623_format.ods
as was not able to reproduce in 2.3 (linux). So again, I think that it
must be a locale and/or possibly a language setting problem?

Can anyone else on the list from Europe test
http://www.openoffice.org/nonav/issues/showattachment.cgi/48629/IZ_76623_format.ods
and see if the dates change according to the bug? Jean  Sudheer can you
test?


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