[dev] Basic Libraries and security

2005-08-12 Thread Peter Eberlein

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

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



[dev] A question about the view cursor in Calc

2005-08-12 Thread Michael Mi

Hi,

I want to make a program which can automatically move the current view 
cursor to a particular cell in Calc.


I checked the development guild, but found no clue.

Anybody can tell me what service/interface I should use?

Thanks

Michael

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



[dev] Translate MS Word From Command Line

2005-08-12 Thread Christopher Pryce
I'm new to Open Office, and a bit new to Command Line interfaces (I'm a 
Mac user).


If I had an OOo installation on a Linux box, can a I use a Perl
application to upload an MS Word file, and have this Perl application
call the shell to have Open Office translate the .doc file to an .swx
file?

I am building an online application to prepare construction
specifications for an engineering company. I need the flexibility in
this application for a user to upload a set a custom specs, portions
(or all of which) would be in the final constructions specification. I
anticipate that most users will want to use an existing Word Document
to upload, and that many would not follow instructions and convert them
to RTF or Text, and it would be a bonus if I could convert the uploaded
files with some formating information embedded

I would also like to return a Word Doc (or perhaps a PDF file) as the
final product. There are many solutions for creating an OOo document
from scratch, the most robust I've seen so far is a Perl Module that
would allow me to read and reassemble OOo documents. It deals in the
native swx file format, so I'd need a way to return the .swx to .doc or
PDF.

I can also create a PDF from scratch, so if I have to write the
application and specify that users must convert Word documents to RTF,
I will.


Any entry docs that will get me started would be appreciated.


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



Re: [dev] A question about the view cursor in Calc

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

Hi Michael,

 I want to make a program which can automatically move the current view
 cursor to a particular cell in Calc.

try ...

Sub Main

Dim oDocument as Object
Dim oView as Object
Dim oSheet as Object
Dim oCell as Object

oDocument = ThisComponent
oSheet = oDocument.getSheets().getByIndex(0)
oCell = oSheet.getCellByPosition(4, 3)

oView = oDocument.getCurrentController()
' select
oView.Select(oCell)
' deselect
oView.Select(null)

End Sub

HTH

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 Thunderbird - http://enigmail.mozdev.org

iD8DBQFC/MSPTiyrQM/QSkURAjJtAKDCr1me1AYLK69wChUfg2lA2oKqAgCfe/Za
QIup5vbe22/UNhVg+9nC12M=
=hJYA
-END PGP SIGNATURE-

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