Re: [dev] Custom data inside OpenDocument

2007-10-15 Thread Cor Nouws

Hi Robert,

Robert Vojta wrote (14-10-2007 23:28)

On 10/12/07, ashok _ [EMAIL PROTECTED] wrote:



to set a custom property :
ThisComponent.DocumentInfo.SetPropertyValue(aCustomProperty, a Custom Value)


This doesn't work in 2.2.1 version (I forgot to mention OpenOffice.org
version in my previous email). I tried this in StarBasic and in Java
before I sent my mail, but no success. Interesting thing is that no
exception is raised in Java.


The latter is indeed nasty.
SetPropertyValue only works if a property already exsists.
If not, you must use addProperty:

 If Not oDocSetInfo.hasPropertyByName(sName) Then
oDocInfo.addProperty (sName, 0, sValue)
 Else
ThisComponent.DocumentInfo.setPropertyValue( sName, sValue) 
 End If

Regards,
Cor

--

Cor Nouws
Arnhem - Netherlands
nl.OpenOffice.org - marketing contact

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



Re: [dev] Custom data inside OpenDocument

2007-10-15 Thread Mathias Bauer
Robert Vojta wrote:

 On 10/12/07, ashok _ [EMAIL PROTECTED] wrote:
 
 Hallo,
 
 to set a custom property :
 ThisComponent.DocumentInfo.SetPropertyValue(aCustomProperty, a Custom 
 Value)
 
 This doesn't work in 2.2.1 version (I forgot to mention OpenOffice.org
 version in my previous email). I tried this in StarBasic and in Java
 before I sent my mail, but no success. Interesting thing is that no
 exception is raised in Java.

You have to add the property before you can assign it a value:

 ThisComponent.DocumentInfo.AddProperty(aCustomProperty, 
 com.sun.star.beans.PropertyAttribute_REMOVABLE, defaultval)
 ThisComponent.DocumentInfo.SetPropertyValue(aCustomProperty, a Custom 
 Value)

It's important to use the REMOVABLE attribute so that it is
immediately discernible that this property is not a built-in one.

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] Custom data inside OpenDocument

2007-10-15 Thread Robert Vojta
On 10/15/07, Mathias Bauer [EMAIL PROTECTED] wrote:

Hallo,

 You have to add the property before you can assign it a value:

So, when I call setPropertyValue in Java and property wasn't added
previously, it should raise UnknownPropertyException exception. If
yes, this exception isn't raised here on my computer and I assume it's
a bug.

  ThisComponent.DocumentInfo.AddProperty(aCustomProperty, 
  com.sun.star.beans.PropertyAttribute_REMOVABLE, defaultval)
  ThisComponent.DocumentInfo.SetPropertyValue(aCustomProperty, a Custom 
  Value)

 It's important to use the REMOVABLE attribute so that it is
 immediately discernible that this property is not a built-in one.

It works in StarBasic, thanks. But where I can found addProperty in
Java? I can't find similiar method in XDocumentInfo, XPropertySet, ...

-- 
Robert Vojta

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



Re: [dev] Custom data inside OpenDocument

2007-10-15 Thread Marten Feldtmann
The method metioned below is part of the beansXPropertyContainer 
interface and should

be available under DocumentInfo 

Marten

Robert Vojta schrieb:

On 10/15/07, Mathias Bauer [EMAIL PROTECTED] wrote:

Hallo,

  

You have to add the property before you can assign it a value:



So, when I call setPropertyValue in Java and property wasn't added
previously, it should raise UnknownPropertyException exception. If
yes, this exception isn't raised here on my computer and I assume it's
a bug.

  

ThisComponent.DocumentInfo.AddProperty(aCustomProperty, 
com.sun.star.beans.PropertyAttribute_REMOVABLE, defaultval)
ThisComponent.DocumentInfo.SetPropertyValue(aCustomProperty, a Custom Value)
  

It's important to use the REMOVABLE attribute so that it is
immediately discernible that this property is not a built-in one.



It works in StarBasic, thanks. But where I can found addProperty in
Java? I can't find similiar method in XDocumentInfo, XPropertySet, ...

  


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



Re: [dev] building OOO on solaris 10 x86

2007-10-15 Thread Jens-Heiner Rechtien

Hi Gérard,

I'm wondering which version of Solaris x86 you are using? All my 
versions of  Solaris (Solaris 8, Solaris 9, OpenSolaris Develepor 
Edition 09/07) know about the -P switch of /usr/ccs/bin/as. It just 
preprocesses the file before assembling.


You could replace interlck_x86.s with a preprocessed file and remove -P 
from AFLAGS in solenv/inc/unxsoli4.mk


Heiner

Gérard Henry wrote:

hello all,
i'm trying to compile OOO on solaris machines.
Firstly, as i'm new to this process, i got OOG680_m5, but what's the 
difference with SRC680_m233?

I dowloaded these files:
ncftpget 
ftp://ftp.free.fr/mirrors/ftp.openoffice.org/stable/2.3.0/OOo_2.3.0_src_*.tar.bz2 


After setting paths and some variables, i did configure:
caiman-henry% ./configure --disable-mozilla 
--with-jdk-home=/usr/jdk/latest --with-mingwin=no 
--with-gnu-patch=/usr/bin/gpatch --with-gnu-cp=/opt/csw/bin/gcp 
CPPFLAGS=-I/opt/csw/include CC=cc CXX=CC |  tee CONFIG.LOG

then dmake ended with this error:
caiman-henry% dmake
...
adjustvisibility -p ../../unxsoli4.pro/slo/file_url.o
if ( -e ../../unxsoli4.pro/slo/file_url.o ) touch 
../../unxsoli4.pro/slo/file_url.obj

tr -d \015  asm/interlck_x86.s  ../../unxsoli4.pro/misc/interlck_x86.s
/usr/ccs/bin/as -P -o ../../unxsoli4.pro/slo/interlck.o 
../../unxsoli4.pro/misc/interlck_x86.s

/usr/ccs/bin/as: unrecognized option `-P'
dmake:  Error code 1, while making '../../unxsoli4.pro/slo/interlck.o'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making 
/home/henry/ooo/OOG680_m5/sal/osl/unx

dmake:  Error code 1, while making 'build_instsetoo_native'

I'm using SunStudio 12.

Anybody can help,

thanks in advance,

gerard

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




--
Jens-Heiner Rechtien
[EMAIL PROTECTED]

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



Re: [dev] building OOO on solaris 10 x86

2007-10-15 Thread Gérard Henry

Jens-Heiner Rechtien wrote:

Hi Gérard,

I'm wondering which version of Solaris x86 you are using? All my 


you're right, as is broken on my machine, an old modification.
Now it's ok for that, but another error:

caiman-henry% dmake clean
rm -rf */unxsoli4.pro
rm -rf solver/*/unxsoli4.pro
echo cleaning up dmake...
cleaning up dmake...
make -C dmake clean
Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S 
][ -t ]
 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ macro 
+=value... ]

make: Fatal error: Unknown option `-C'
caiman-henry% which make
/usr/ccs/bin/make




--
Gerard HENRY

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



Re: [dev] building OOO on solaris 10 x86

2007-10-15 Thread Jens-Heiner Rechtien

Hi,

looks like the top level makefile is broken for Solaris (looks like it 
wants a gmake).


Please place gmake in PATH before /usr/ccs/bin/make (can be found in 
/usr/sfw/bin nowadays)


Heiner




Gérard Henry wrote:

Jens-Heiner Rechtien wrote:

Hi Gérard,

I'm wondering which version of Solaris x86 you are using? All my 


you're right, as is broken on my machine, an old modification.
Now it's ok for that, but another error:

caiman-henry% dmake clean
rm -rf */unxsoli4.pro
rm -rf solver/*/unxsoli4.pro
echo cleaning up dmake...
cleaning up dmake...
make -C dmake clean
Usage : make [ -f makefile ][ -K statefile ]... [ -d ][ -dd ][ -D ][ -DD ]
 [ -e ][ -i ][ -k ][ -n ][ -p ][ -P ][ -q ][ -r ][ -s ][ -S 
][ -t ]
 [ -u ][ -w ][ -V ][ target... ][ macro=value... ][ macro 
+=value... ]

make: Fatal error: Unknown option `-C'
caiman-henry% which make
/usr/ccs/bin/make







--
Jens-Heiner Rechtien
[EMAIL PROTECTED]

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



Re: [dev] How to get the supported interfaces of an unknown object ?

2007-10-15 Thread Joachim Lingner

Marten Feldtmann wrote:

All I would like to have is a way to implement:

anObject.SupportsInterfacesNamed(com.sun.star.reflection.XTypeDescription) 



which may returns true or false  and this via UNO calls and not via
BASIC special calls (to use it under OLE).


XInterface.queryInterface is differently implemented depending on the 
language which one uses.


The interface to use in order to get information about implemented 
interfaces is com.sun.star.lang.XTypeProvider. So you need to query 
first for this interface.


XTypeProvider.getTypes	returns a sequencetype. The type object is 
different for the various language bindings.
For example, using the Automation bridge it is a IDispatch object which 
simply has a name property. Using C# it is a System.Type.


--Jochen




I thought, that perhaps queryInterface might help me, but I do not
understand type and how to get the type for a name like
com.sun.star.reflection.XTypeDescription ?




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]



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



Re: [dev] building OOO on solaris 10 x86

2007-10-15 Thread Gérard Henry

Jens-Heiner Rechtien wrote:

Hi,

looks like the top level makefile is broken for Solaris (looks like it 
wants a gmake).


Please place gmake in PATH before /usr/ccs/bin/make (can be found in 
/usr/sfw/bin nowadays)




ok, i did it, but got another error:

mv ./unxsoli4.pro/misc/build/libxml2-2.6.17//so_configured_so_libxml2 
./unxsoli4.pro/misc/build/so_configured_so_libxml2

mkdir ./unxsoli4.pro/misc/build/libxml2-2.6.17/
mkdir: Failed to make directory 
unxsoli4.pro/misc/build/libxml2-2.6.17/; File exists
cd ./unxsoli4.pro/misc/build/libxml2-2.6.17/  make -j1  touch 
/home/henry/ooo/OOG680_m5/libxml2/./unxsoli4.pro/misc/build/so_built_so_libxml2

make: Warning: Ignoring DistributedMake -j option
make: Fatal error: No dmake max jobs argument after -j flag
dmake:  Error code 1, while making 
'unxsoli4.pro/misc/build/so_built_so_libxml2'---* tg_merge.mk *---


ERROR: Error 65280 occurred while making /home/henry/ooo/OOG680_m5/libxml2
dmake:  Error code 1, while making 'build_instsetoo_native'


it is because dmake doesn't like -j1, he wants -j 1!


--
Gerard HENRY

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



[dev] Mirroring the OpenOffice CVS repository

2007-10-15 Thread Steven Swanson
I'm interested in creating a copy of the openoffice cvs repository  
for use in a research project.


We are studying storage systems and would like to use interaction  
with a large cvs repository as workload.


Is there a way that we could rsync or otherwise transfer the whole  
cvsroot to one of our servers?


Thanks.

-steve

==
Dr. Steven Swanson
Assistant Professor
University of California, San Diego
Computer Science  Engineering
9500 Gilman Drive #0404
La Jolla CA 92093-0404
http://www.cse.ucsd.edu/users/swanson/




On Oct 15, 2007, at 6:59 AM, Joachim Lingner wrote:


Marten Feldtmann wrote:

All I would like to have is a way to implement:
anObject.SupportsInterfacesNamed 
(com.sun.star.reflection.XTypeDescription) which may returns  
true or false  and this via UNO calls and not via

BASIC special calls (to use it under OLE).


XInterface.queryInterface is differently implemented depending on  
the language which one uses.


The interface to use in order to get information about implemented  
interfaces is com.sun.star.lang.XTypeProvider. So you need to query  
first for this interface.


XTypeProvider.getTypes	returns a sequencetype. The type object  
is different for the various language bindings.
For example, using the Automation bridge it is a IDispatch object  
which simply has a name property. Using C# it is a System.Type.


--Jochen



I thought, that perhaps queryInterface might help me, but I do not
understand type and how to get the type for a name like
com.sun.star.reflection.XTypeDescription ?
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]


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




Re: [dev] Mirroring the OpenOffice CVS repository

2007-10-15 Thread Martin Hollmichel
Generally it should be possible to use cvsup for mirroring the 
OpenOffice.org CVS Repository (cvsup.services.openoffice.org),


A supfile may look like this:
*default umask=2
*default host=cvsup.services.openoffice.org
*default base=.
*default prefix=.
*default release=cvs
*default delete use-rel-suffix
cvs

Martin

Steven Swanson wrote:
I'm interested in creating a copy of the openoffice cvs repository for 
use in a research project.


We are studying storage systems and would like to use interaction with 
a large cvs repository as workload.


Is there a way that we could rsync or otherwise transfer the whole 
cvsroot to one of our servers?


Thanks.

-steve

==
Dr. Steven Swanson
Assistant Professor
University of California, San Diego
Computer Science  Engineering
9500 Gilman Drive #0404
La Jolla CA 92093-0404
http://www.cse.ucsd.edu/users/swanson/




On Oct 15, 2007, at 6:59 AM, Joachim Lingner wrote:


Marten Feldtmann wrote:

All I would like to have is a way to implement:
anObject.SupportsInterfacesNamed(com.sun.star.reflection.XTypeDescription) 
which may returns true or false  and this via UNO calls and not via

BASIC special calls (to use it under OLE).


XInterface.queryInterface is differently implemented depending on the 
language which one uses.


The interface to use in order to get information about implemented 
interfaces is com.sun.star.lang.XTypeProvider. So you need to query 
first for this interface.


XTypeProvider.getTypesreturns a sequencetype. The type object 
is different for the various language bindings.
For example, using the Automation bridge it is a IDispatch object 
which simply has a name property. Using C# it is a System.Type.


--Jochen



I thought, that perhaps queryInterface might help me, but I do not
understand type and how to get the type for a name like
com.sun.star.reflection.XTypeDescription ?
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]


-
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] building ooo failed with sun studio 12

2007-10-15 Thread Gérard Henry

hello,
i'm trying to compile SRC680_m233 on a sparc machine (Solaris Express 
build 69), with Sun Studio 12 (fully patched):
CC -mt -library=%none,Crun -I. 
-I/home/ooo/build/SRC680_m233/stlport/unxsols4.pro/misc/build/STLport-4.0/src/../stlport/SC5 
-I/usr/include -D__SGI_STL_OWN_IOSTREAMS -O3 complex.cpp -c -o 
obj/SUN/Release/complex.o
/home/ooo/build/SRC680_m233/stlport/unxsols4.pro/misc/build/STLport-4.0/src/../stlport/SC5/stl/_stdio_file.h, 
line 95: Error: _file is not a member of const __FILE.

1 Error(s) detected.
*** Error code 1
make: Fatal error: Command failed for target `obj/SUN/Release/complex.o'
dmake:  Error code 1, while making 
'unxsols4.pro/misc/build/so_built_so_stlport'---* tg_merge.mk *---


ERROR: Error 65280 occurred while making /home/ooo/build/SRC680_m233/stlport
dmake:  Error code 1, while making 'build_instsetoo_native'

On a Solaris 10 machine, with Sun Studio 11, i dont see this problem.

Any idea?


gerard

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



[dev] Sample code

2007-10-15 Thread Nikos Trivlis
Dear friends,

I have a sample c-like code about how to improve the POW (power function) and 
you could maybe find it useful for calc.

// sample code start
double pow (double number,int exponent)
{
int i=0;
double result=0;

if (number=0) return 0;

if (exponent=0) return 1;

while (exponent)
{
if (exponent/2) result=result*number;
number=number*number;
exponent=exponent/2;
}

return result;
}
// sample code end

My sample code is just a Thank You! to all OpenOffice.org developers for this 
great piece of software.

Best Regards,

Nikos Trivlis
Hellas




   

Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/

[dev] mirroring the openoffice cvs repository

2007-10-15 Thread Steven Swanson
I'm interested in creating a copy of the openoffice cvs repository  
for use in a research project.


We are studying storage systems and would like to use interaction  
with a large cvs repository as workload.


Is there a way that we could rsync or otherwise transfer the whole  
cvsroot to one of our servers?


Thanks.

-steve

==
Dr. Steven Swanson
Assistant Professor
University of California, San Diego
Computer Science  Engineering
9500 Gilman Drive #0404
La Jolla CA 92093-0404
http://www.cse.ucsd.edu/users/swanson/





[dev] OLE, data type hyper and returned vt value !?

2007-10-15 Thread Marten Feldtmann

When running around in the reflection system of OpenOffice 2.x I came
across the following problem:

Some constants have adefined data type hyper, which means signed 64 
bit values. When I query the value for that constant I get a dispatched

(is this the right name) with a vt type = 14.

I ran around and looked for that definition: 14 and found in my 
development tool and some texts from Microsoft, that the value for

signed 64-bit values is 0x14 - which means 20 and not 14.

And by the way this is only supported by XP and later  ...



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