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

2007-10-06 Thread Marten Feldtmann

>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.

Yes, I tried that - but all I get are empty enumerations ... as an 
example an OOBASIC code trying to get

all services from the reflection module ...


REM Smalltalk Source code example 
REM typeCollection := OrderedCollection new.
REMtypeCollection add: OOCSSUnoTypeClass::SERVICE.
REMenumeration := anInstance
REMcreateTypeDescriptionEnumeration: 
'com.sun.star.reflection' 
REMtypes: (OSVariantarg 
fromIntegerCollection: typeCollection)
REMdepth: 
OOCSSReflectionTypeDescriptionSearchDepth::INFINITE .

REMaCollection := OrderedCollection new.
REM[ enumeration hasMoreElements ] whileTrue:[
REMaCollection add: enumeration nextTypeDescription   
REM].

REMaCollection

Sub MyReflectionTest
 Dim oTypeDescriptionProvider as Object
 Dim enumeration as Object
 Dim typeDescription as object
 dim valueArray(0) 


 valueArray(0) = com.sun.star.uno.TypeClass.SERVICE

 oTypeDescriptionProvider = CreateUnoService( 
"com.sun.star.reflection.XTypeDescriptionEnumeration" )

 if not IsNull(oTypeDescriptionProvider) then
   enumeration = 
oTypeDescriptionProvider.createTypeDescriptionEnumeration("com.sun.star.reflection", 
valueArray, -1)

   if not isNull(enumeration) then
 do while (enumeration.hasMoreElements)
   typeDescription = enumeration.nextTypeDescription
   MsgBox typeDescription.dbg_methods   
 loop


   endif
  
 endif


End Sub


Marten




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



[dev] Bug in TextSection implementation - Sections are enumerated incorrectly

2007-10-06 Thread ashok _
I found what seems to be an easily replicable bug in the TextSection
implementation :

I tried posting this earlier on API-DEV but didnt get a response, so i
decided to post it here:


I have a simple use case to duplicate the bug:

a) Create an empty writer document. (OOo 2.3 )
b) Insert a section, call it "Section1".
c) After this section, add a few paragraph breaks by hitting enter.
d) Insert a section, call it "Section2".
e) Now go to the space with line breaks between "Section1" and
"Section2", and insert another section called "Section3" there.
f) Finally click Format->Sections. and it displays the order of the
sections as :

Section1
Section2
Section3

When it should be:

Section1
Section3
Section2

The API also displays the order incorrectly:


Dim sections
sections = thisComponent.getTextSections().ElementNames
Dim i
Dim outStr
outStr = ""
For i=LBound(sections) to UBound(sections)
outStr = sections(i) + Chr(13)+Chr(10) + outStr
Next i
Msgbox outStr


if I save the document, and reopen it, the order is displayed correctly.

Is there any way to force the document to refresh itself to display
the correct order without saving it ? (refresh() and reformat() doesnt
work in this case)

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



[dev] wae4extensions: QA volunteer needed

2007-10-06 Thread eric b

Hi,

As the subject sugests, I need a volunteer to QA wae4extensions cws.

Builds already verified are :

- wntmsci10/.pro,
- unxlngi6/.pro
- unxsols4/.pro
- unxsoli4.pro,
- unxmacxi.pro  ( Aqua version on Mac OS X Intel )
- unxmacxp.pro  ( X11 version on Mac OS X PowerPC )


For more informations, please have a look at : http:// 
www.openoffice.org/issues/show_bug.cgi?id=81612



Thanks in advance :-)

Eric Bachard



[dev] Volunteers for QA on Linux PowerPC ?

2007-10-06 Thread eric.bachard

Hi,

Since some times, the demand for Linux PowerPC version is growing. At 
least for french version, and I found people willing to help for the QA 
(fr version).


FYI, I have uploaded personnal builds, not QA'ed of m231 (vanilla).
Means unofficial builds, only potential rc, nothing more.

The URL is : http://ftp.cusoo.org/LINUXPPC/m231/  and I propose fr and 
en-US (other locales on demand) in both .rpm and .deb formats (the 
archives do contain everything)


Please note:   .rpm are _untested_  , and I do use IBM jdk1.4.2 for the 
build ( 1.5.0 is untested )


My question is: are there people interested to contribute for Linux 
PowerPC QA ? If they are enough, maybe we could work together to propose 
2.4 version and maybe 3.0 ?


Thanks in advance for any help / feedback :-)

Eric Bachard


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