[dev] embedding BLOBs in ODT (and accessing them via UNO)

2007-02-21 Thread Matthias B.

We have a custom OOo component and we'd like to store additional data
inside a document that this component can access. So far we've encoded
the data as text and then stored it in notes, but this is quite
hackish. What we would like to do is to put an extra binary file into
the ODT file (which after all is just a ZIP archive) and to read this
file in our custom component. Does UNO have interfaces for accessing
arbitrary data stored in the document's ODT file?

Matthias

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



[dev] Re: download open office 210

2007-02-21 Thread Marko Moeller
Hi Shaun,
Shaun McDonald wrote:
[...]
 
 Since the German builds are already on the mirror network, including on
 http builds, there is no problem getting it added to the bouncer. To add
 the builds to the bouncer, all you do is in the issue that you state for
 the builds to be added to be distributed to the mirror network, is ask
 for the builds to be added to the bouncer. You will then receive bouncer
 links. This is usually done in less than 24-48 hours. This is around the
 same time that it takes for all the mirrors to get the builds, thus when
 they are added at the same time, there is effectively no extra delay
 whit the builds becoming available.
Ask whom? where? That's the problem! On the last release date bouncer
was not actual for about 12 ours (after the release note).
I believe, the problem was, that no one with bouncer access could change
the database because they are not reachable.


 
 That's why we don't use bouncer at the moment an why You'll find a hint
 You will be downloading the US English1 version of OpenOffice.org. You
 might be interested in the German version.
 on the head of:
 http://download.openoffice.org/2.1.0/index.html?focus=download

 At the moment we try to solve this problems in order to use bouncer for
 the German builts too.
 
 I currently see no problem with adding the German builds to the bouncer.
 All you need to do is create an issue for getting the builds that are on
 the mirror network to be added to the bouncer.
 
See above. I really want to use bouncer too, but not if we have to
involve other persons to update our download-links.

The worst case for every release are not working download links!
Then You will ever have some kind of specialist posting direct links to
the servers (also on the great IT-portals) and comments like look, they
are not able to publish there own download links, do You want to trust
such a team or its product?

I say it again, if there is a way to change the links for bouncer
without help, I'll be happy. And that's what we try to solve at the moment.

 Regards
 Marko Moeller

 is there any possibility to get this latest version in german or
 is it not yet available?


 It's available via the german website
 http://de.openoffice.org/downloads/quick.html?version=2.1.0.
 Simply select Mac OS X PPC.
 
 You can have localised download pages too, other NLCs use the bouncer too.
Yes, because they have not such a lot of qa'd stuff or an existing
download tool like de.
 
Regards
Marko

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



Re: [dev] Reasons why OpenOffice encounters error

2007-02-21 Thread Steffen Grund

Hi,

well, what Java version do you use and do you get some kind of error 
message you can post?


-Steffen


mellannie rachelle reyes wrote:

Good day sir/mam

I just want to know what are the possible reasons that unexpected error
will occur and OpenOffice will crash.
I am trying to integrate an add-on (Filipino Grammar Checker) and 
whenever i

try to test our code the error occurs.

thank you very much!!!

OS using: windows
Procedure of integration: call a java class(where our code is)



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



[dev] DisposedException when connecting to OpenOffice

2007-02-21 Thread Jan Pavelka
Hello everybody,
 
I'm using OpenOffice 2.1 on Solaris
 
I'm trying to connect to listening OpenOffice with my application.
 
I have a Xvfb started, so I use this command to start openoffice
 
soffice -invisible -display :0
-accept=socket,host=localhost,port=6000;urp;StarOfficeServiceManager

When I try to bootstrap the OO with given code:
 
OpenOfficeHost = localhost;

OpenOfficePort = 6000;

String con = socket,host=+OpenOfficeHost+,port=+OpenOfficePort;

xRemoteContext = Bootstrap.createInitialComponentContext(null);

XUnoUrlResolver urlResolver = UnoUrlResolver.create(xRemoteContext);

Object initialObject = urlResolver.resolve(

uno:socket,host= + OpenOfficeHost + ,port= + OpenOfficePort +
;urp;StarOffice.ServiceManager);

xRemoteServiceManager = (XMultiComponentFactory)

UnoRuntime.queryInterface(XMultiComponentFactory.class,

initialObject);

XPropertySet xProperySet = (XPropertySet) UnoRuntime.queryInterface(

XPropertySet.class, xRemoteServiceManager);

Object oDefaultContext = xProperySet.getPropertyValue(DefaultContext);

xRemoteContext = (XComponentContext)

UnoRuntime.queryInterface(XComponentContext.class, oDefaultContext);

desktop = xRemoteServiceManager.createInstanceWithContext(

com.sun.star.frame.Desktop, xRemoteContext);

 

I got the exception

com.sun.star.lang.DisposedException: java.io.IOException:
com.sun.star.io.IOException: EOF reached -
socket,host=localhost,port=6000,localHost=localhost,localPort=35109,peer
Host=localhost,peerPort=6000
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispa
tcher.invoke(java_remote_bridge.java:237)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispa
tcher.run(java_remote_bridge.java:144)


at line

Object initialObject = urlResolver.resolve(

uno:socket,host= + OpenOfficeHost + ,port= + OpenOfficePort +
;urp;StarOffice.ServiceManager);

Thanks for any help

Jan Pavelka



[dev] VCL performance , feature improvements for Sommer of Code?

2007-02-21 Thread Clemens Eisserer

Hello,

What do you think about writing out a summer-of-code slot this year
for enhancing VCL.
VCL itself is a great toolkit and I guess because of
not-existing-manpower it will be used for another couple of years, but
I think it lacks some features of modern toolkits.

Some areas which could be improved:
- Performance. Sometimes slow, sometimes bad feeling. E.g. menus in
OpenOffice, Support for doublebuffering
- Layout Managers. Implement Layout-Managers (already existing?) and
adopt important dialogs to use them.
- I am not a VCL experts but maybe there are additional things to be done?

lg Clemens

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



Re: [dev] embedding BLOBs in ODT (and accessing them via UNO)

2007-02-21 Thread Mathias Bauer
Matthias B. wrote:

 We have a custom OOo component and we'd like to store additional data
 inside a document that this component can access. So far we've encoded
 the data as text and then stored it in notes, but this is quite
 hackish. What we would like to do is to put an extra binary file into
 the ODT file (which after all is just a ZIP archive) and to read this
 file in our custom component. Does UNO have interfaces for accessing
 arbitrary data stored in the document's ODT file?

Yes. You must put your stream into a folder that you assign a MediaType to.
Here's some (untested) C++ code that illustrates this:

using namespace com::sun::star;
void StoreMyData( sal_Int8* pData, sal_Int32 nDataLen )
{
  Reference document::XStorageBasedDocument xDoc( xTextDocument,
uno::UNO_QUERY );

  if (!xStore.is())
return;

  Reference embed::XStorage  xStg( xDoc-getDocumentStorage() );
  Reference embed::XStorage  xSubStg = xStg-
openStorageElement( sStorName, embed::ElementModes::READWRITE );
  ::rtl::OUString MyMediaType(...); // whatever you like
  ::rtl::OUString MyStgName(...); // whatever you like
  xSubStg-setPropertyValue(myStgName, makeAny(myMediaType));
  Reference io::XStream  xStream = xSubStg-openStreamElement(
myStreamName, embed::ElementModes::READWRITE );
  Reference io::XOutputStream  xOut = xStream-getOutputStream();

  uno::Sequence  sal_Int8  aData( pData, nDataLen );
  xOut-writeBytes( aData, nDataLen );
  xOut-closeOutput();
  xSubStg-commit();
}

I recommend to use a MediaType that points to your own name space.

As an example, I would use vnd.sun.star.MyComponent.MyData (as I am
working for Sun/StarOffice).

So if you are a working on the component Blob for the company
BlobFactory perhaps vnd.BlobFactory.Blob.BlobData would be a good
idea. The name for your storage should probably also use this namespace
while the name of the stream is not important as only your own component
will access your sub storage.

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] VCL performance , feature improvements for Sommer of Code?

2007-02-21 Thread Pavel Janík

Hi,


What do you think about writing out a summer-of-code slot this year
for enhancing VCL.


good idea - can you please write it to [EMAIL PROTECTED]
--
Pavel Janík


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



Re: [dev] VCL performance , feature improvements for Sommer of Code?

2007-02-21 Thread Philipp Lohmann - Sun Germany

Clemens Eisserer wrote:

What do you think about writing out a summer-of-code slot this year
for enhancing VCL.
VCL itself is a great toolkit and I guess because of
not-existing-manpower it will be used for another couple of years, but
I think it lacks some features of modern toolkits.


Ah, a diplomat :-)


Some areas which could be improved:
- Performance. Sometimes slow, sometimes bad feeling. E.g. menus in
OpenOffice, Support for doublebuffering


Both valid. The menu thing may extend to framework, though.


- Layout Managers. Implement Layout-Managers (already existing?) and
adopt important dialogs to use them.


A long term wish of mine. There even were two attempts at writing 
Layouting code, one by mmeeks, one by cmc. Both had already progressed 
to a demo dialog. However there was no resolution about which way to go 
finally.



- I am not a VCL experts but maybe there are additional things to be done?


Doing the above things could easily fill a summer :-)

As pavel mentioned we should continue any discussion about this in [EMAIL 
PROTECTED]

Kind regards, pl

--
If you give someone a program, you will frustrate them for a day;
if you teach them how to program, you will frustrate them for a lifetime.
 -- Author unknown

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



[dev] Reasons why OpenOffice encounters error

2007-02-21 Thread mellannie rachelle reyes

HI im mellanne again, we are using JCreator for our coding in JAVA...the
openoffice can read our code and execute what is needed but after execution
it will automatically start its recovery of the file, it says that it
encountered an error that is why OOo crashes...

thank you very much!!!