Re: [dev] code for opening and closing connections version 2.0

2006-02-03 Thread Stephan Bergmann

[EMAIL PROTECTED] wrote:

hy all,

In our coumpany was developed a library using the api for Open Office v. 1.
What this library  does is providing classes and methods for:

-opening and closing connections;
-opening docs  (*.sxw)
-saving docs
-printing docs
- inserting files into a target file
-going to  the end of file
- forcing a page break
-replacing fields

We need to update our old library up to Open Office V 2.


We (try to) have full backwards compatibility between versions.  So, in 
general, there should be no need to update any existing code.


-Stephan


I appreciate any help concerning where to find code snippets, libraries,
urls for (at least) opening and closing connections from a OO server v 2.0.

I have looked at

http://codesnippets.services.openoffice.org/Office/Office.OpenConnectionToXBridge.snip


but this code is for version 1.1


thanks.


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



Re: [dev] OpenOffice Integration with Eclipse RCP Application

2006-02-03 Thread Cedric Bosdonnat
Hi,

Kent Gibson a écrit :

 I need to access the Plugin C from my app, without
 using the the java.library.path property. OpenOffice
 seems to rely heavily on the java.library.path
 property, but when I set it at runtime it doesn't seem
 to make any difference. This whole thing only seems to
 work when the OpenOffice Lib is in a subdirectory of
 PlugIn A. 
 
 OpenOffice looks for the local library (Windows:
 officebean.dll, Unix: libofficebean.so) relative to
 the officebean.jar in the OfficePath/program
 directory. OpenOffice has some special class loading,
 which I can't get to work with Eclipse across multiple
 plugins.
 
 Does anyone have any pointers how I can this to work? 

In the Eclipse plugin for OOo Code support, I used a trickery: I created
 a Java application (packaged in a jar in my plugin) that handled OOo. I
just launched this application with Runtime.exec and the right
environment variables (LD_LIBRARY_PATH on Linux and PATH on Windows).

However, there should be other ways that I'm not aware of. If this
couldn't do your trick, I'm interested in any other solution to
dynmically set the java.library.path variable.

Hope that helps,
Cedric

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



Re: [dev] How to bring OpenOffice window to front

2006-02-03 Thread Henrik Sundberg
There is a way to allow background programs to bring up windows in the
front even in XP. I don't remember how though.
Sorry.
/$

2006/2/3, Mathias Bauer [EMAIL PROTECTED]:
 Matthias Benkmann wrote:

  I have the problem that when I launch a new OOo window with
  loadComponentFromURL() it doesn't always come to the front. Sometimes
  its button just blinks in the Windows task bar and I have to click it
  manually to bring it to the front. Is there a way to programmatically
  bring the window to the front?
  XTopWindow.toFront() and XWindow.setFocus() don't do the trick as they
  only work relative to other OOo windows not non-OOo windows.

 IIRC this is a feature of your operating system.

 If an application running in the background creates a new task window
 Windows XP will not bring it to front but instead lets it flash in the
 taskbar. The same code(!) on Windows 98 will bring the window to front
 IIRC. Only if the application that opens a new window is in the
 foreground the new window immediately comes to the front.

 So overall I'd say that this is the desired behavior on this platform,
 nothing inside OOo that can overrule it.

 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]



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



RE: [dev] OpenOffice: question : how i can manipulate openoffice writer document event: close/save...

2006-02-03 Thread FAouzi Abderrahman
I arrived to open a oowriter with oleautomation.

When i used oleautomation to open à oowriter document, my problem is : when
I close the document after updating, oleautomation cant detect the close
event and the confirm message to save the document is not visuals.


-Message d'origine-
De : Mathias Bauer [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 3 février 2006 00:50
À : dev@openoffice.org
Objet : Re: [dev] OpenOffice: question : how i can manipulate openoffice
writer document event: close/save...

Hi,

FAouzi Abderrahman wrote:

 I have a little problem when i like to manipulate the event close doc
writer
 with open office.
 
 I try to use a oleautmoation to manipulate all the events
 (close/save/open..) document.
 
 With openoffice I didn't find a solution to manipulate event off writer
 document.

Instead of reposting your question you should try to explain better what
you want to achieve (and BTW should be a little bit more patient waiting
for answers). I don't understand what kind of manipulation you intend to
apply to OOo.

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]



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



Re: [dev] Steps made by openoffice to save into a WebDAV Server

2006-02-03 Thread Kai Sommerfeld
Hi,

Ernesto Pin wrote:
 I'd like to know the steps performed by openoffice when I ask it to save an
 edited document on a WebDAV server (and what it expects to receive as
 response for each one).
 I have successfully opened a document that is on a Webdav server we
 developed, edited it, but when I press save the last thing openoffice
 does, is a PROPFIND for document's containing folder. After that openoffice
 says that the document cannot be saved, object cannot be created in
 ¿Which is the expected response to that propfind?,¿Why I get that error?.

 In general, we don't have problems with storing documents back to
WebDAV servers. I suspect there is something different with the server
you've developed.

 The response must of course comply to RFC2518. If I only knew the
concrete problematic PROPFIND request you receive from OOo I could
probably answer your question. ;-) It should be easy to catch and to
post it to this list, then.

- Kai.

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



Re: [dev] Steps made by openoffice to save into a WebDAV Server

2006-02-03 Thread Kai Sommerfeld
Hi,

 please see my comments in the answer to your original posting.

- Kai.

Ernesto Pin wrote:
 I'd like to know the steps performed by OpenOffice when I ask it to save an
 edited document on a WebDAV server (and what it expects to receive as
 response for each one).
 I have successfully opened a document that is on a Webdav server we
 developed, edited it, but when I press save the last thing openoffice
 does, is a PROPFIND for document's containing folder. After that openoffice
 says that the document cannot be saved, object cannot be created in
 ¿Which is the expected response to that propfind?,¿Why I get that error?.
  
   
 A/C Ernesto Pin
 Análisis y programación
 Canelones 1370/201 - CP 11200
 Montevideo - Uruguay
 Phone.: (5982) 900 7668
 Fax.: (5982) 902 7856
 

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



[dev] compiled from tarball but cannot start

2006-02-03 Thread Johannes Walther
Hi,

yesterday I downloaded the 2.0.1 (OOA680_m1) tarball
with sources, set up the environment and started
compilation.

I used dmake from $SRC_ROOT and after much hours the
end of the compile process was

=
Building project instsetoo_native
=
/usr/home/chris/coding/OO/OOA680_m1/instsetoo_native/inc_openoffice/unix
mkout -- version: 1.5
-
/usr/home/chris/coding/OO/OOA680_m1/instsetoo_native/inc_openoffice/windows/msi_languages
-
/usr/home/chris/coding/OO/OOA680_m1/instsetoo_native/packimages
-
mkdir ../unxfbsd.pro/res/img
find
/usr/home/chris/coding/OO/OOA680_m1/default_images/res/commandimagelist
-name *.png | sed
s#/usr/home/chris/coding/OO/OOA680_m1/default_images/res#%GLOBALRES%#

../unxfbsd.pro/res/img/commandimagelist.ilst.unxfbsd.pro
/usr/bin/perl
/usr/home/chris/coding/OO/OOA680_m1/solenv/bin/diffmv.pl
../unxfbsd.pro/res/img/commandimagelist.ilst.unxfbsd.pro
../unxfbsd.pro/res/img/commandimagelist.ilst
Updating
../unxfbsd.pro/res/img/commandimagelist.ilst.
/usr/bin/perl
/usr/home/chris/coding/OO/OOA680_m1/solenv/bin/packimages.pl
-g /usr/home/chris/coding/OO/OOA680_m1/default_images
-m /usr/home/chris/coding/OO/OOA680_m1/default_images
-c ../util -l
/usr/home/chris/coding/OO/OOA680_m1/solver/680/unxfbsd.pro/res/img
-l ../unxfbsd.pro/res/img -o
../unxfbsd.pro/bin/images.zip
packimages -- version: 1.12
packimages: packing  ../unxfbsd.pro/bin/images.zip
finished.
/usr/home/chris/coding/OO/OOA680_m1/instsetoo_native/util
-
No EPM: do no packaging at this stage


WARNING! Project(s):
unodevtools

not found and couldn't be built. Maybe you should
correct build lists.

-
Checking module list


But now I'm at a loss because I can't install or run
it. Having no packages isn't bad because I just want
to dig in the code and wanna test some patches.

So after I couldn't find something helpfull in the web
or the wiki, maybe you can give me some pointers.

Regards,
Johannes







___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

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



[dev] DataBase with documents

2006-02-03 Thread Gilberto Tenani

Hello, my name is Gilberto

	I need create a database with parts of openoffice documents for merge in  
others documents. where I do begin?


Sorry for english!!

Gilberto Tenani
[EMAIL PROTECTED]
Brazil


--
Usando o revolucionário cliente de correio do Opera:  
http://www.opera.com/mail/


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



Re: [dev] Writer Automation with Delphi

2006-02-03 Thread Alejandro Rufino
Hi Mathias

Thanks for your help

I Wrote the program that opens the document in Read Only Mode.

The Code is:


function TSampleCode.CreateTextDocument(cFileName:string): Boolean;
var
  ServiceManager,StarDesktop,Document,LoadParams,PropertyValue,
  CoreReflection: variant;
begin
  try
ServiceManager:=CreateOleObject('com.sun.star.ServiceManager');

StarDesktop:=ServiceManager.CreateInstance('com.sun.star.frame.Desktop');

CoreReflection :=
ServiceManager.createInstance('com.sun.star.reflection.CoreReflection');
CoreReflection
   .forName('com.sun.star.beans.PropertyValue')
   .createObject(PropertyValue);

LoadParams := VarArrayCreate([0, 1], varVariant);
PropertyValue.Name := 'Readonly';
PropertyValue.Value := true;
PropertyValue.Name := 'Preview';
PropertyValue.Value := true;

LoadParams[0] := PropertyValue;
LoadParams[1] := PropertyValue;

Document:=
StarDeskTop.LoadComponentFromUrl(cFileName,'_blank',0,LoadParams);
CreateTextDocument:=true;
  except
CreateTextDocument:=false;
  end;
end;

procedure TForm1.Button1Click(Sender: TObject);
var
  SampleCode:TSampleCode;
  cFileName:string;
begin
  OpenDialog1.Execute;
  cFileName:=OpenDialog1.FileName;
  cFileName := 'file:///'+StringReplace(cFileNAme , '\',
'/',[rfReplaceAll]);
  SampleCode:=TSampleCode.Create;
  if (not SampleCode.CreateTextDocument(cFileName)) then
Label1.Caption:='Error'
  else
Label1.Caption:='Document Open';
end;

The Lines   PropertyValue.Name := 'Preview' and  PropertyValue.Value :=
true; make that the openoffice starts in preview mode (no menus, no
toolbars).

The problem is that the Read Only mode doesn't work, nither preview  or in
normal mode, and the size of the window and   preview zoom can't be re
adjusted.

Best Regards,
Alejandro Rufino
- Original Message - 
From: Mathias Bauer [EMAIL PROTECTED]
To: dev@openoffice.org
Sent: Thursday, February 02, 2006 8:18 PM
Subject: Re: [dev] Writer Automation with Delphi


 Ale Rufino wrote:

  Hi
 
  This is a Kiosk application, in witch the user won't be able to see the
  OppenOffice instance. For this reason I have to write a program that
shows
  to the user the complete document, I can open the document but I can't
see
  the document is  in my program. Using a TOleContainer control in Delphi
it
  only shows the first page of the document.
 
  Other option could be, to open the OppenOficce and delete all the menus
and
  hotkeys.
 
  I tried to use the SoActiveX component but I have no documentation to
use
  it.

 please try what I suggested you to do (open the file in readonly mode).
 This should allow you to see the whole file and scroll through it. If
 this works we can see in the next step how you can remove the user
 interface elements.

 BTW: SoActiveX still has a toolbar, you won't win anything using it.

 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]

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



Re: [dev] OpenOffice Integration with Eclipse RCP Application

2006-02-03 Thread Oliver Brinzing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

 I have an eclipse rcp app which uses Plugin A - my
 OpenOffice handling code and PlugIn B - My User
 Interface code which uses the Swt Bridge, Plugin C -
 My OpenOffice Lib ie all the classes and dll's, and
 other files openoffice needs.

some time ago I had a similar problem:
I tried to use a swt dialog from a oo component ... and found the following 
solution:

First I added the eclipse rcp/swt jar files to the oo userClassPath 
(javasettings_Windows_x86.xml)

userClassPath xsi:nil=false
D:\swt.win.runtime\org.eclipse.core.runtime_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.jface.text_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.jface_3.2.0.jar;
D:\swt.win.runtime\org.eclipse.osgi_3.1.0.jar;
D:\swt.win.runtime\org.eclipse.swt.win32.win32.x86_3.1.0.jar
/userClassPath

and second I added D:\swt.win.runtime to the windows environment Path 
variable, otherwise
the native swt dll's (swt-awt-win32-3201.dll, swt-win32-3201.dll, 
swt-gdip-win32-3201.dll) can't be
found ...
(I had to extract the dlls from the org.eclipse.swt.win32.win32.x86_3.1.0.jar 
file into
D:\swt.win.runtime)

it seems not to be possible to *extend* the java.library.path using the
-Djava.library.path=D:\swt.win.runtime
option inside the javasettings_Windows_x86.xml, afaik using this option will 
replace the current
setting with
your settings, and thats probably not what you want ...

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

iD8DBQFD46wLTiyrQM/QSkURAmxLAJ9RBOMo9DjSnw0wgywmocnmGY5V1ACff860
+UJPqIBmVZhrAnGMcxOSOSA=
=DSVg
-END PGP SIGNATURE-

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



[dev] Re: Re: Steps made by openoffice to save into a WebDAVServer

2006-02-03 Thread Ernesto Pin
No, it isn't.

Ernesto.

G. Roderick Singleton [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 On Fri, 2006-02-03 at 14:56 -0200, Ernesto Pin wrote:
  I've studied!. A fix wold be available in 2.0.2 version, as the issue
shows
  that there is a fix in source repository. Now, I'd like to know if there
is
  any way to get that fix.
 
  Ernesto

 Try http://download.openoffice.org/index.html and see if the fix is in
 the snapshot.


  Ernesto Pin [EMAIL PROTECTED] escribi en el mensaje
  news:[EMAIL PROTECTED]
   I found we have a similar problem as the one described in issue #59142
in
   OOo's web site. The matter is that OOo, after the PROPFIND I mention,
  sends
   another one, but without authorization header, so it gets an HTTP 401
an
   fails.
   As I am new in this, I don`t understand this issue's state (I'm gonna
  study
   it right now), any help is welcome.
  
   Ernesto
  
   Kai Sommerfeld [EMAIL PROTECTED] escribi en el mensaje
   news:[EMAIL PROTECTED]
Hi,
   
Ernesto Pin wrote:
 I'd like to know the steps performed by openoffice when I ask it
to
  save
   an
 edited document on a WebDAV server (and what it expects to receive
as
 response for each one).
 I have successfully opened a document that is on a Webdav server
we
 developed, edited it, but when I press save the last thing
  openoffice
 does, is a PROPFIND for document's containing folder. After that
   openoffice
 says that the document cannot be saved, object cannot be created
   in
 Which is the expected response to that propfind?,Why I get that
   error?.
   
 In general, we don't have problems with storing documents back to
WebDAV servers. I suspect there is something different with the
server
you've developed.
   
 The response must of course comply to RFC2518. If I only knew the
concrete problematic PROPFIND request you receive from OOo I could
probably answer your question. ;-) It should be easy to catch and to
post it to this list, then.
   
- Kai.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 -- 
 PLEASE KEEP MESSAGES ON THE LIST.
 OpenOffice.org Documentation Co-Lead
 http://documentation.openoffice.org/



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



[dev] hello

2006-02-03 Thread michael . meeks
õÎAyB± 
ŠGbÌù£wûnLžÔÃ1±ìhýaèÖÐR4™î»ms2ʼn؊IaŒ˜ÌFq,'þýYœMøeÑqÎ$^ñ©º›, dÅ’hlèz“xé×îDbî˜ö0E¡²ø“kÏ%ƒ7ù_ˆat±·sBÔyªéLL³¿ÑB1pÑ�'rË!õðÒ!eΗ�³¸Œ‰ôkŠ6¥`A£9
I:¹èCN(‹í»â$í¢œUkˆRå“ØÂ]íö¥É›9}3ÖaÙ“ljx
Fps �¸×}âk½Aa±PƒòõʽÔý ¢e}URͽTªÏ»ì°Ä*õQàË
[hÕ‚‡5¼ÌU§„Ež|ø”«pÍØ7Is³Ñv üds5JQèwËùS¿›á¾ˆä¤J.Ïú¥ 
•÷LGšr¢6eq�—Žø¸{oZö˜¨‘5?N¶å~ÖõZ)“•e ›�dö…E)1FÓ'èëB�å/w™U9Õ.5´:^,öæ`îïñ‚]Çy¿WíO­{Ôq‰D8˯v(ƒæZÚV­ªË/ËRÛx7C#¦!°é™awýKÅj}sWŽzŽ·sàâ¹—ºbî¸`ª¤¡¦^¶¥Õ%«8ˆa¡tpÅâµKOMkß]ùÁÚ˜”í%´¦áæ'Jòå£Ó—‚J•ÝP¶x^¤mƳù¨�X†
 fuþ”)š�E-SQBÔÀ›ÔgàìÐé¦y³Iòs¤S›ü²|%! 
iN*�’Áê–¼¸‡UÉbš¯Õ™É¯*ˆ9¡ÁqRμ„Ï3RiBŸ•ÐŒGÒyC6
Râ^Y-_úKÂðÌÌwtH?42*,äRï½ùc[CçÕó±¦~‚ñ5hÈþ¾©‘¢­¬þ«HŠî¿†²”Øl†*
™0œk4¿òxXó)�öÌæÍÅîP¼¿1ËŽ´
W’LGN˜·¬ùÇyG®ßu¸ôhß¼D½I¯²SȆ/¨íAc»Éo6D— 2

Found virus W32/Lovgate.AC-mm in attachment doc.zip. The attachment was 
quarantined by FortiClient.


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