Re: [api-dev] New verson of SnippetCreator

2005-05-18 Thread Jürgen Schmidt
Hi,
online again ;-) Thanks Paolo
Juergen
Paolo Mantovani wrote:
Alle 19:54, sabato 14 maggio 2005, Paolo Mantovani ha scritto:
Hi all,
I've finally updated the SnippetCreator utility.

eh.
I'm sorry but I've just noticed a small stupid bug ;-(
the wizard writes may work / can not work instead of may_work / 
can_not_work

here the fixed version:
http://www.paolo-mantovani.org/snippetcreator2005-05-17.uno.zip
If someone would fix himself the bug, instead of reinstall the package, should 
open the module DlgSnippet and change the line n. 272 in this way:

Array(tested,untested,may_work,can_not_work)
ciao
Paolo M
-
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: [api-dev] New verson of SnippetCreator

2005-05-17 Thread Kohei Yoshida
Hi Paolo,

On 5/14/05, Paolo Mantovani [EMAIL PROTECTED] wrote:
 Hi all,
 
 I've finally updated the SnippetCreator utility.
(snip) 
 any comments, criticism, suggestions, bug reports are welcome

Looks very nice.  I'm looking forward to using it for my next contribution.

Kohei

-- 
Kohei Yoshida
OpenOffice.org Calc contributor
http://kohei.us/

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



Re: [api-dev] New verson of SnippetCreator

2005-05-17 Thread Paolo Mantovani
Hi Kohei,

Alle 14:42, martedì 17 maggio 2005, Kohei Yoshida ha scritto:
[...]
 Looks very nice.  I'm looking forward to using it for my next contribution.

thank you! :-)

and here there's your snippet edited with the new version of the wizard
I added version  platform informations and some auto-IDL linking 


ciao
Paolo
?xml version=1.0?
!--
$RCSfile: $
last change: $Revision: $ $Author: $ $Date: $

(c)2003 by the copyright holders listed with the author-tags.
If no explicit copyright holder is mentioned with a certain author,
the author him-/herself is the copyright holder. All rights reserved.

Public Documentation License Notice:

The contents of this Documentation are subject to the
Public Documentation License Version 1.0 (the License);
you may only use this Documentation if you comply with
the terms of this License. A copy of the License is
available at http://www.openoffice.org/licenses/PDL.html

The Original Documentation can be found in the CVS archives
of openoffice.org at the place specified by RCSfile: in this header.

The Initial Writer(s) of the Original Documentation are listed
with the author-tags below.

The Contributor(s) are listed with the author-tags below
without the marker for being an initial author.

All Rights Reserved.
--

snippet language=OOBasic application=Calc

keywords
keywordbuilt-in function/keyword
keywordfunction/keyword
keywordmin/keyword
/keywords

authors
author id=kohei initial=true email=[EMAIL PROTECTED] 
copyright=Kohei YoshidaKohei Yoshida/author
author id=paolomantovani initial=false email=[EMAIL 
PROTECTED]Paolo Mantovani/author
/authors

question heading=Call built-in functions

/question

answer
pTo use Calcapos;s built-in functions in Basic macro, you need to first 
create a service object of [EMAIL PROTECTED] 
com.sun.star.sheet.FunctionAccess}, and call the method 
quot;callFunctionquot;.  Arguments are passed to this method as an array 
object even if there is only one argument.  If the argument is a cell range, a 
cell range object must first be created, and passed into an array object before 
it is injected into the callFunction method (see the example code)./p
listing
Sub callFunction

   svc = createUnoService( quot;[EMAIL PROTECTED] 
com.sun.star.sheet.FunctionAccess}quot; )

   apos; Calculate min of numbers.
   arg = array( 10, 23, 5, 345 )
   print svc.callFunction( quot;MINquot;, arg )

   apos; Calculate min of values in cell range A1:A17
   oSheet = ThisComponent.Sheets(0) apos; Get leftmost sheet
   oCellRange = oSheet.getCellRangeByPosition( 0, 0, 0, 16 ) apos;A1:A17
   arg = array( oCellRange )
   print svc.callFunction( quot;MINquot;, arg )

End Sub
/listing
/answer

versions
version number=1.0.x status=may_work/
version number=1.1.x status=tested/
version number=2.0.x status=may_work/
/versions

operating-systems
operating-system name=All/
/operating-systems

changelog
change author-id=kohei date=2005-04-26Initial version/change
change author-id=paolomantovani date=2005-05-17added 
platformamp;version informations and auto-IDL linking/change
/changelog

/snippet

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

Re: [api-dev] New verson of SnippetCreator

2005-05-17 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paolo Mantovani schrieb:
| Hi Kohei,
|
| Alle 14:42, martedì 17 maggio 2005, Kohei Yoshida ha scritto:
| [...]
|
|Looks very nice.  I'm looking forward to using it for my next
contribution.
|
|
| thank you! :-)
|
| and here there's your snippet edited with the new version of the wizard
| I added version  platform informations and some auto-IDL linking
|
|
| ciao
| Paolo
|
[...]
Great and online now.
Tom
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCigmnkVPeOFLgZFIRAhoXAJ9uaNgZYJ0wqfQ8aK5vuxYgvEUYlQCghlPY
OUW5V/YgN+h3vWIGYK3uzBs=
=IoXx
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]