[dev] remote connection disposes using XStandaloneDocumentInfo (oo 2.0.1)

2005-12-26 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I am using XStandaloneDocumentInfo to retrieve information from oo files via 
a remote connection
(uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager).
I have no problems to do so using oo 1.1.5, but with oo 2.0.1 the remote 
connection always disposes
if i try to call the following method for a *second* file ... the call for the 
first file always
works ...

using XDocumentInfo after loading the whole document instead always works,
but it's pretty slow ... :-(

here is my code:

private XDocumentInfo loadStandaloneDocInfo(String loadUrl)
throws Exception {

Object oObj = xComponentContext.getServiceManager()
.createInstanceWithContext(
com.sun.star.document.StandaloneDocumentInfo,
xComponentContext);

XStandaloneDocumentInfo xStandaloneDocumentInfo = 
(XStandaloneDocumentInfo) UnoRuntime
.queryInterface(XStandaloneDocumentInfo.class, oObj);

xStandaloneDocumentInfo.loadFromURL(loadUrl);

XDocumentInfo xDocumentInfo = (XDocumentInfo) UnoRuntime
.queryInterface(XDocumentInfo.class, xStandaloneDocumentInfo);

   return xDocumentInfo;
}

any hints ?

Oliver

- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDr6yGTiyrQM/QSkURAnGuAKC92e/pPJlrSo9h5742vpqs4MgSsQCeKg2b
WYiOKn0RHLM1EM/nhXRpid8=
=+UIW
-END PGP SIGNATURE-

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



[dev] Text Box Form Control proposation

2005-12-26 Thread Nick Ignatushko

Dear developers.
I'm Nick, web-programmer. I'm trying create Form Processing application 
through web.
I've found very disturbing thing in OO Writer with Text Box control. It 
is made similar to
HTML text input field. But it is so frustrating when you trying create 
professional looking form
with text fields. These text fields are to be merged on server side and 
then downloaded by user.
1. Text Boxes in OOW can not be simply inserted between two words and 
have similar font, size, style.
For example in MS Word it can be done very easily. Text fields in MS 
Word becomes part of text with

same format and style.
2. Text Boxes in OOW are fixed size. If text is bigger it just not 
printed. Too frustrating.


At this moment I found that Input Field 
(Insert-Fields-Other-Functions-Input Field) works similar to what we 
need.

But they cant be posted to web and are not visible while editing document.

Can I and our company hope that OOW will have friendly text fields?

Nick Ignatushko




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



Re: [dev] OOo Add-on Howto.

2005-12-26 Thread Mathias Bauer
Gautham Kasinath wrote:
 Hello, 
 
  
 
 I am a newbie to the OOo world. And I am looking at writing some add-ons
 that will check the integrity of a document, in some way (like well
 formattedness) before the same is loaded into OOo Writer. Browsing the dev
 mailing list, I figured out that writing an add-on was one of the best ways
 (esp. for a guy like me that lives and dies Java). 
 
 However, I haven't found any mention or HowTo on writing add-ons in the Dev
 guide. 
 
 Can someone point me a direction to look? 
 
  
 
 Thanks a bunch. 

Please don't crosspost. Your question is more appropriate to the other
list you have used (dev@api.openoffice.org) so I post my answer there.

Best regards,
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]