Re: [api-dev] Code snippets ....

2005-03-10 Thread Jürgen Schmidt
Hi Tom,
thanks for the extensison, i think it is very helpful to improve the 
navigation to the IDL reference and implicit to the DevGuide.

- Juergen
Tom Schindl wrote:
Jürgen Schmidt wrote:
Tom Schindl wrote:
Jürgen Schmidt wrote:
Hi,
we have started some time ago with our code snippet base where Tom 
Schindle did a great work and also Paolo Mantovani who created the 
code snippet wizard.
I would like to invite all of you to submit code snippets for often 
used API's or often asked questions. I think it so important to have 
a good base of code snippets which helps people to solve their 
problems fast or simple get started. I have promised that i will 
submit one snippet per week and i must apologize that i haven't 
reached my personal goal but i will work on it when i have time ;-)

The upcoming MS Office Developer Studio will come with a bunch of 
code snippets for often used API's. Everything is well integrated 
and the user have only to click here and there, fill in some gaps 
(controlled navigation from gap to gap) and has then a working macro.
We will probably not reach this kind of IDE integration but we can 
provide a good code snippet base. And of course it is possible to 
take this code snippets, convert them all to Java for example and 
create an extension for NetBeans or Eclipse. Any volunteers here?

I have added today 3 new snippets:
http://codesnippets.services.openoffice.org/Calc/Calc.SwitchPageSizeToDin.snip 

http://codesnippets.services.openoffice.org/Calc/Calc.SwitchOrientation.snip 

http://codesnippets.services.openoffice.org/Calc/Calc.AutoFormat.snip
And because I have been at it I added a new functionality to add links 
to IDL documentation.

The syntax is lend from javadoc:
* In Text-Sections one could use: [EMAIL PROTECTED] $IDL-Definition}
* In Code-Comments one could use: [EMAIL PROTECTED] $IDL-Definition}
$IDL-Definition means a fully qualified Class-name including the package 
e.g. com.sun.star.table.XAutoFormattable

An example usage could be seen in Calc.AutoFormat.snip
The search functionality is still on my list and I hope I can manage 
soon to implement it.

Tom
-
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] Code snippets ....

2005-03-10 Thread Thomas Schindl
I thought about automatically linking all imports or includes when we are
talking C++. We could even link all com.sun to the IDL?

What do you think about it?

Tom


 Hi Tom,
 
 thanks for the extensison, i think it is very helpful to improve the 
 navigation to the IDL reference and implicit to the DevGuide.
 
 - Juergen
 
 Tom Schindl wrote:
  Jürgen Schmidt wrote:
  
  Tom Schindl wrote:
 
  Jürgen Schmidt wrote:
 
  Hi,
 
  we have started some time ago with our code snippet base where Tom 
  Schindle did a great work and also Paolo Mantovani who created the 
  code snippet wizard.
  I would like to invite all of you to submit code snippets for often 
  used API's or often asked questions. I think it so important to have 
  a good base of code snippets which helps people to solve their 
  problems fast or simple get started. I have promised that i will 
  submit one snippet per week and i must apologize that i haven't 
  reached my personal goal but i will work on it when i have time ;-)
 
  The upcoming MS Office Developer Studio will come with a bunch of 
  code snippets for often used API's. Everything is well integrated 
  and the user have only to click here and there, fill in some gaps 
  (controlled navigation from gap to gap) and has then a working macro.
  We will probably not reach this kind of IDE integration but we can 
  provide a good code snippet base. And of course it is possible to 
  take this code snippets, convert them all to Java for example and 
  create an extension for NetBeans or Eclipse. Any volunteers here?
  
  
  I have added today 3 new snippets:
  
 

http://codesnippets.services.openoffice.org/Calc/Calc.SwitchPageSizeToDin.snip

  
 

http://codesnippets.services.openoffice.org/Calc/Calc.SwitchOrientation.snip

  
  http://codesnippets.services.openoffice.org/Calc/Calc.AutoFormat.snip
  
  And because I have been at it I added a new functionality to add links 
  to IDL documentation.
  
  The syntax is lend from javadoc:
  * In Text-Sections one could use: [EMAIL PROTECTED] $IDL-Definition}
  * In Code-Comments one could use: [EMAIL PROTECTED] $IDL-Definition}
  
  $IDL-Definition means a fully qualified Class-name including the package
  e.g. com.sun.star.table.XAutoFormattable
  
  An example usage could be seen in Calc.AutoFormat.snip
  
  The search functionality is still on my list and I hope I can manage 
  soon to implement it.
  
  Tom
  
  -
  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]
 

-- 
SMS bei wichtigen e-mails und Ihre Gedanken sind frei ...
Alle Infos zur SMS-Benachrichtigung: http://www.gmx.net/de/go/sms

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



Re: [api-dev] Code snippets ....

2005-03-10 Thread Jürgen Schmidt
yep, that is also a good idea. We should simplify the access to further 
information wherever we can. Important is that the snippets can be 
copied and used directly in the users prefered editor.

- Juergen
Thomas Schindl wrote:
I thought about automatically linking all imports or includes when we are
talking C++. We could even link all com.sun to the IDL?
What do you think about it?
Tom

Hi Tom,
thanks for the extensison, i think it is very helpful to improve the 
navigation to the IDL reference and implicit to the DevGuide.

- Juergen
Tom Schindl wrote:
Jürgen Schmidt wrote:

Tom Schindl wrote:

Jürgen Schmidt wrote:

Hi,
we have started some time ago with our code snippet base where Tom 
Schindle did a great work and also Paolo Mantovani who created the 
code snippet wizard.
I would like to invite all of you to submit code snippets for often 
used API's or often asked questions. I think it so important to have 
a good base of code snippets which helps people to solve their 
problems fast or simple get started. I have promised that i will 
submit one snippet per week and i must apologize that i haven't 
reached my personal goal but i will work on it when i have time ;-)

The upcoming MS Office Developer Studio will come with a bunch of 
code snippets for often used API's. Everything is well integrated 
and the user have only to click here and there, fill in some gaps 
(controlled navigation from gap to gap) and has then a working macro.
We will probably not reach this kind of IDE integration but we can 
provide a good code snippet base. And of course it is possible to 
take this code snippets, convert them all to Java for example and 
create an extension for NetBeans or Eclipse. Any volunteers here?

I have added today 3 new snippets:


http://codesnippets.services.openoffice.org/Calc/Calc.SwitchPageSizeToDin.snip


http://codesnippets.services.openoffice.org/Calc/Calc.SwitchOrientation.snip

http://codesnippets.services.openoffice.org/Calc/Calc.AutoFormat.snip
And because I have been at it I added a new functionality to add links 
to IDL documentation.

The syntax is lend from javadoc:
* In Text-Sections one could use: [EMAIL PROTECTED] $IDL-Definition}
* In Code-Comments one could use: [EMAIL PROTECTED] $IDL-Definition}
$IDL-Definition means a fully qualified Class-name including the package
e.g. com.sun.star.table.XAutoFormattable
An example usage could be seen in Calc.AutoFormat.snip
The search functionality is still on my list and I hope I can manage 
soon to implement it.

Tom
-
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]

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


Re: [api-dev] Code snippets ....

2005-03-10 Thread Marc Santhoff
Am Do, den 10.03.2005 schrieb Jürgen Schmidt um 15:50:
 Hi Tom,
 
 thanks for the extensison, i think it is very helpful to improve the 
 navigation to the IDL reference and implicit to the DevGuide.

I think so, too. I'd really love a list of all implementing classes
for interfaces and services like in java docs. That would help
navigating and searching very much.

Marc



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



Re: [api-dev] Code snippets ....

2005-03-10 Thread G. Jasper
Tom Schindl wrote:
The search functionality is still on my list and I hope I can manage 
soon to implement it.

Tom
Tom,
Do you mean a search functionality to be let loose on IDL documentation  
or  on a Calc sheet?
In the latter case I suggest you take a look at Andrew Pitonyak's  
OpenOffice.org Macro document http://www.pitonyak.org/AndrewMacro.sxw
( http://www.pitonyak.org/AndrewMacro.sxw ), section  6.24Searching 
a Calc document.
I think he has covered the subject very well. It, or rather he, helped 
me a lot.

In the former case  the same document, section 7.13. Search And Replace 
#7.13.Search%20And%20Replace%7Coutline (text), may provide some code.
I am not sure; I don't do much with text files.

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


Re: [api-dev] Code snippets ....

2005-03-10 Thread Tom Schindl
G. Jasper wrote:
Tom Schindl wrote:
The search functionality is still on my list and I hope I can manage 
soon to implement it.

Tom
Tom,
Do you mean a search functionality to be let loose on IDL documentation  
or  on a Calc sheet?
In the latter case I suggest you take a look at Andrew Pitonyak's  
OpenOffice.org Macro document http://www.pitonyak.org/AndrewMacro.sxw
( http://www.pitonyak.org/AndrewMacro.sxw ), section  6.24Searching 
a Calc document.
I think he has covered the subject very well. It, or rather he, helped 
me a lot.

In the former case  the same document, section 7.13. Search And Replace 
#7.13.Search%20And%20Replace%7Coutline (text), may provide some code.
I am not sure; I don't do much with text files.

No. With search functionality we/I mean a search engine for codesnippets 
homepage. All snippets have key words assigned and it should not be to 
much a problem to create a search-engine e.g. using Plucene or something 
like that. At the moment the only possibility to search the 
snippets-page is a common purpose search engine like google.

Tom
Sincerely,
Gerrit Jasper
-
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] Code snippets ....

2005-03-04 Thread Max Gilead
You can safely treat Duo project (http://sourceforge.net/projects/duo-wrapper)
as an integreated collection of code snippets. It's working code, tested
in actual use which solves a number of problems we encountered when
working with OO.org.

Hm, right, I should make a new file release :-)

Regards,
Max

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



Re: [api-dev] Code snippets ....

2005-03-04 Thread Christian Junker
Absolutely Jürgen,
as you know there are others that don't have much time, as well :(.
I also have the strong feeling of wanting to have one place where useful 
macros, that are asked a whole lot on oooforum.org periodically, are 
listed. Right now it seems like pieces can be found here and there, 
lying scattered around, which is confusing to many people, because they 
usually don't know all those sites.
This feeling gets stronger and stronger because I try to help people on 
oooforum but very often it's the same questions that are asked and I 
feel like a coffee machine producing the same coffee every single day.
quote
The upcoming MS Office Developer Studio will come with a bunch of code 
snippets for often used API's.
/quote
Is there someone here that will get this Studio or already has it? I 
think we could all gain from the competitor what kind of snippets they 
have.

Finally, I think UNO and OO API are very powerful buildings and one of 
the main strengths of the OpenOffice suite giving users an immense 
possibility of programmatic control - let's omit menu control right now  
- and in my opinion the OO API is far ahead of the MS Office API. Thus 
it's even more important to show the real strengths of OO to the people 
out there that think of switching to OpenOffice or that  will be 
impressed by how much automation can be put into OpenOffice.

Best Regards
Christian Junker
Jürgen Schmidt wrote:
Hi,
we have started some time ago with our code snippet base where Tom 
Schindle did a great work and also Paolo Mantovani who created the 
code snippet wizard.
I would like to invite all of you to submit code snippets for often 
used API's or often asked questions. I think it so important to have a 
good base of code snippets which helps people to solve their problems 
fast or simple get started. I have promised that i will submit one 
snippet per week and i must apologize that i haven't reached my 
personal goal but i will work on it when i have time ;-)

The upcoming MS Office Developer Studio will come with a bunch of code 
snippets for often used API's. Everything is well integrated and the 
user have only to click here and there, fill in some gaps (controlled 
navigation from gap to gap) and has then a working macro.
We will probably not reach this kind of IDE integration but we can 
provide a good code snippet base. And of course it is possible to take 
this code snippets, convert them all to Java for example and create an 
extension for NetBeans or Eclipse. Any volunteers here?

- Juergen
-
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]