Re: [dev] makecab locks up during installer creation

2005-08-15 Thread Volker Quetschke

Michael Thomsen wrote:

I've completed building m123 from CVS, but makecab has hung up during
the installer creation. It's just sitting there and it's been that way
for around 2 hours. Could someone tell me what's going on?


Unless you tell us which cygwin version you are using I assume
this is:

  http://qa.openoffice.org/issues/show_bug.cgi?id=51560


--
If you like my work consider:  http://www.scytek.de/donations.html
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D


Re: [dev] Basic Libraries and security

2005-08-15 Thread Peter Eberlein

Hi Andrew,
Andrew Douglas Pitonyak schrieb:

Peter Eberlein wrote:


Hi,

is there a way to move the standard library from the userprofile to 
the shared folder?

The reason (please correct me, if I'm wrong):
I've written some global macros as calc functions, and calc functions 
must be located in the standard library.

But I want to encrypt the code or make it readonly.
Is there a way to do so?

Regards

Peter



If you can not move standard, you could always place stubs in the 
standard library that call a non-standard library that is encrypted.


Of course, but what if the user changes or deletes the code in the 
standard library?
I think it's a design problem, I will submit a rfe. Thx to Christian for 
pointing the URL too.


Regards

Peter

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



[dev] cannot compile 1.1.5 (SRX645_m57)

2005-08-15 Thread Giuseppe Castagno
I realized I sent this same message to the wrong list, so here it it is, 
this time the right one.

Hi all,

I'm trying to build the 1.1.5-rc2 version (tag SRX645_m57) under Windows XP 
Pro.

The compilation stops with the following log:

guw.pl /cygdrive/c/PROGRA~1/MICROS~2/VC98/bin/cl.exe @/tmp/mkN15nWd
Command: /cygdrive/c/PROGRA~1/MICROS~2/VC98/bin/cl.exe
MutableAttrList.cxx 
l:\ooo-1.1.5-rc2\odfilter\source\MutableAttrList.cxx(102) : error C2974: 
'Reference' : invalid template argument for 'interface_type', type expected
 
l:\oo_115-rc2-solver\645\wntmsci9.pro\inc\com/sun/star/uno/Refer  
ence.h(441) : see declaration of 'Reference'
 l:\ooo-1.1.5-rc2\odfilter\source\MutableAttrList.cxx(102) : error C2511: 
'XMLMutableAttributeList::XMLMutableAttributeList' : overloaded member 
function 'void (const class com::sun::star::uno::Referenceint ,unsigned 
char)' not found in 'XMLMutableAttributeList'
 l:\ooo-1.1.5-rc2\odfilter\source\MutableAttrList.hxx(79) : see   
declaration of 'XMLMutableAttributeList'
l:\ooo-1.1.5-rc2\odfilter\source\MutableAttrList.cxx(255) : fatal error 
C1004: unexpected end of file found dmake:  Error code 2, while making 
'../wntmsci9.pro/slo/MutableAttrList.obj'
echo: No match.

ERROR: Error 65280 occurred while making 
/cygdrive/l/ooo-1.1.5-rc2/odfilter/source
dmake:  Error code 1, while making 'build_all'
echo: No match.

The configuration command was:

./configure --with-lang=ENUS,ITIT,ITAL \
--with-ant-home=/cygdrive/l/apache-ant-1.6.1 \
--with-asm-home=/cygdrive/c/MASM611/BIN \
--with-jdk-home=/cygdrive/l/j2sdk1.4.1_07 \
--with-use-shell=tcsh \
--with-local-solver=/cygdrive/l/oo_115-rc2-solver \
--with-mspdb-path='/cygdrive/c/Program Files/Microsoft Visual 
Studio/Common/MSDev98/Bin'

The only issue related to odfilter I found was 51389, I checked and I have 
it.

Can someone point me in the right direction ?

Thanx.

Regards,

Giuseppe.


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



[dev] Alternative for DocCloseListener_ ? - 1.9.122

2005-08-15 Thread Alexander Peters
Hello! 
Did someone know about any changes for the DocCloseListener_? In the
latest Snapshot 1.9.122 comes the Listener to late. 

My situation: i use the DocCloseListener_-Listener for a question when
the user close the document. If the user click yes the event saves the
document. This runs in older releases of the BETA really good. But know
the document is already disposed when the Listener is trigged and an
exception is comming, when i try to save. 

Is there an other Close Listener-Event?

Here my Listerer Code:
Sub StartCloseListening()
oEventListener  = CreateUnoListener( DocCloseListener_,
com.sun.star.lang.XEventListener )
ThisComponent.addEventListener( oEventListener  )
End Sub

Sub StopCloseListening()
If Not IsNull( oEventListener ) Then
ThisComponent.removeEventListener( oEventListener )
EndIf
End Sub

Sub DocCloseListener_disposing( oEvent )
AutoClose() -- in older versions, the document wasnt disposed
on this position.
End Sub

Thanks 
Alexander Peters

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



Re: [dev] makecab locks up during installer creation

2005-08-15 Thread Christian Junker
it most certainly is the problem that Volker pointed to.
In order to fix this, you need to download one of the snapshot
cygwin1.dlls on http://cygwin.com/snapshots/ or to downgrade cygwin
which means more work than just copying a single dll.

2005/8/15, Volker Quetschke [EMAIL PROTECTED]:
 Michael Thomsen wrote:
  I've completed building m123 from CVS, but makecab has hung up during
  the installer creation. It's just sitting there and it's been that way
  for around 2 hours. Could someone tell me what's going on?
 
 Unless you tell us which cygwin version you are using I assume
 this is:
 
http://qa.openoffice.org/issues/show_bug.cgi?id=51560
 
 
 --
 If you like my work consider:  http://www.scytek.de/donations.html
 PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
 key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D
 
 


-- 
Best Regards
Christian Junker

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



Re: [dev] [c++]openoffice exception handling

2005-08-15 Thread Stephan Bergmann

aditya kumar pandey wrote:

Hi

I have been writing programs using OpenOffice SDK (1.9.113) for a while 
now. I am not able to catch exceptions. So I wrote a small program. And 
even their exceptions are not caught!


I have tested this with OO 1.9.113 on a Red Hat Fedora Core 3, and a Red
Hat 9 machine.

Reference Example:
OpenOffice.org2.0_SDK/examples/cpp/counter

I added this code at the end of main function
try
{
throw (new com::sun::star::uno::Exception);
}
catch (com::sun::star::uno::Exception e)
{
}
catch (...)
{}

Am I doing something wrong?


The Linux x86 OOo 1.9.x versions built by Sun contain a problematic 
libgcc_s.so.1 which causes the problem you describe:  If some code is 
compiled with a GCC other than the exact version used inside Sun and 
then run in an environment where the problematic libgcc_s.so.1 is used, 
chances are high that exception handling within that code does not work. 
 See also http://gcc.gnu.org/ml/gcc/2005-05/msg00965.html.


The workaround is to use the libgcc_s.so.1 that comes with your GCC, 
either by replacing the file in the OOo program directory, or by using 
LD_PRELOAD.


By the way, the URE comes with a fixed libgcc_s.so.1 (and I currently 
cannot remember why we do not use the fixed libgcc_s.so.1 for OOo, too, 
but I will try to track that down again).


-Stephan

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



Re: [dev] Basic Libraries and security

2005-08-15 Thread Mathias Bauer
Peter Eberlein wrote:
 Hi,
 
 is there a way to move the standard library from the userprofile to the
 shared folder?
 The reason (please correct me, if I'm wrong):
 I've written some global macros as calc functions, and calc functions
 must be located in the standard library.
 But I want to encrypt the code or make it readonly.
 Is there a way to do so?

Did you try to change the path for Basic in the share/.../Common.xcu
(remove user part) *before* you create any user directory (doing this
afterwards seems to confuse OOo)?

I didn't test if this works but you could give this a try.

Ciao,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

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



Re: [dev] Alternative for DocCloseListener_ ? - 1.9.122

2005-08-15 Thread Mathias Bauer
Alexander Peters wrote:
 Hello! 
 Did someone know about any changes for the DocCloseListener_? In the
 latest Snapshot 1.9.122 comes the Listener to late. 
 
 My situation: i use the DocCloseListener_-Listener for a question when
 the user close the document. If the user click yes the event saves the
 document. This runs in older releases of the BETA really good. But know
 the document is already disposed when the Listener is trigged and an
 exception is comming, when i try to save. 
 
 Is there an other Close Listener-Event?
 
 Here my Listerer Code:
 Sub StartCloseListening()
   oEventListener  = CreateUnoListener( DocCloseListener_,
 com.sun.star.lang.XEventListener )
   ThisComponent.addEventListener( oEventListener  )
 End Sub
 
 Sub StopCloseListening()
   If Not IsNull( oEventListener ) Then
   ThisComponent.removeEventListener( oEventListener )
   EndIf
 End Sub
 
 Sub DocCloseListener_disposing( oEvent )
   AutoClose() -- in older versions, the document wasnt disposed
 on this position.
 End Sub

The document *never* is or was disposed when this call happened, but it
is not usable anymore (that's an important difference!). It was also
never intended nor guaranteed that in the disposing call you can do
anything useful with the document. I have no idea why it seemed to work
in older versions, I even can't believe it.

But anyway, if you want to place a query dialog before a document is
*closed* you must register as a document event listener and watch for
the OnPrepareUnload Event.

Ciao,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

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