[udk-dev] Re: [extensions-dev] uno.pkg and (external) jars

2007-12-03 Thread Joachim Lingner

Hi,
I suppose the Extension Manager was designed in a way that all extension 
content is in fact contained in one and the same place. There are 
certainly pros and cons for allowing to reference external jars from 
within an extension. So one needs to investigate this a bit deeper. But 
feel free to submit an enhancement so that this idea do not get lost.


Joachim


Rene Engelhard wrote:

Hi,

prompted by http://www.openoffice.org/issues/show_bug.cgi?id=83346 and
http://www.openoffice.org/issues/show_bug.cgi?id=83751 I packaged
writer2latex 0.5 (including the uno.pkg) and have a question how to handle
the jar. As the jar already is present in the system (libwriter2latex-java)
the package for the uno.pkg (openoffice.org-writer2latex) doesn't need to
contain it a second time. 


So I tried to patch it out using this (or a similar) patch for
writer2latex' manifest:

--- writer2latex-0.5~/source/package/META-INF/manifest.xml  2006-10-05 
11:47:48.0 +0200
+++ writer2latex-0.5/source/package/META-INF/manifest.xml   2007-11-20 
23:26:51.0 +0100
@@ -2,7 +2,7 @@
 !DOCTYPE manifest:manifest PUBLIC -//OpenOffice.org//DTD Manifest 1.0//EN 
Manifest.dtd
 manifest:manifest
 manifest:file-entry
- manifest:full-path=writer2latex.jar
+ manifest:full-path=file:///usr/share/java/writer2latex.jar
  manifest:media-type=application/vnd.sun.star.uno-component;type=Java/

 manifest:file-entry
@@ -13,4 +13,4 @@
  manifest:full-path=w2l_filters.xcu
  manifest:media-type=application/vnd.sun.star.configuration-data/
 /manifest:manifest

The problem is that regardless of what I use there, the value there is taken
verbatim and the full thing is searched under the package dir - so
cache_dir/usr/share/java/writer2latex.jar or even 
cache_dir/file:///usr/share/java/writer2latex.jar.

How do I make it to make it use the normal jar. Is this even possible for
uno.pkgs? (For the report-designer I used
http://svn.gnome.org/viewvc/ooo-build/branches/ooo-build-2-3/patches/src680/debian-system-jfreereport.diff?revision=10735view=markup
which seems to work...

Regards,

Rene


-
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: [udk-dev] what is class Type used for?

2007-12-03 Thread Stephan Bergmann

Cynthia Qu wrote:

Hi,all,

May you have a nice holiday season! And Merry Christmas!  ^_^

Could anybody of the list tell me what the class Type  which is
defined in cppu/inc/com/sun/star/uno/Type.h is used only for C++
UNO or both of C UNO and C++ UNO ? What does it used for? I just got
know it does something between types of IDL and UNO. I am not sure if
I should move it out of cppu or not, for I thought it has something
to do with C UNO. I need your support! Thank you in advance!  :-)


It is only used for C++.  Typically, it is not included directly, but 
indirectly via com/sun/star/uno/Type.hxx (which defines the relevant 
inline functions of class com::sun::star::uno::Type).  The class 
com::sun::star::uno::Type is the representation in the C++ UNO language 
binding of the UNO type TYPE (just as for example the class 
com::sun::star::uno::Any is the representation in the C++ UNO language 
binding of the UNO type ANY, or sal_Int32 is the representation in the 
C++ UNO language binding of the UNO type LONG).


-Stephan

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