OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Experienced Macro Open Office Basic Programmer Needed

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
strfle
Newbie
Newbie


Joined: 30 Oct 2010
Posts: 4
Location: Phoenix, AZ

PostPosted: Sun Oct 31, 2010 1:12 pm    Post subject: Experienced Macro Open Office Basic Programmer Needed Reply with quote

I have a project that involves a word sorting system. The Open Office spell checker would be utilized to determine if a string has words in it. For example, a string "dogdog" would pass because it contains two words in it and no extra characters. However, a string "dogeadog" would fail because it contains extra characters "ea". The Open Office spell checker returns "true" if a word is spelled correctly and "false" if it is not. I have the code that operates the spellchecker already completed. The programmer simply needs to link some code together, make several loops, and do some string manipulation. The code must be tightly coded and heavily commented for future functionality.

I have the whole algorithm ready plus examples, illustrations, and the spreadsheet already formatted to assist the programmer. Please PM or reply if interested. I will be paying the programmer through paypal. I think this project will take about 2 hours. And no, this is not a homework assignment.

It is a macro for Calc. Here is the spell checker code. Just looking for some help. I cannot do it on my own at this time.

Sub SpellCheckExample
Dim s() As Variant
Dim vReturn As Variant, i As Integer
Dim emptyArgs(0) As New com.sun.star.beans.PropertyValue
Dim aLocale As New com.sun.star.lang.Locale
aLocale.Language = "en"
aLocale.Country = "US"

s = Array("hello", "anesthesiologist", _
"PNEUMONOULTRAMICROSCOPICSILICOVOLCANOCONIOSIS", _
"Pitonyak", "misspell")

'*********Spell Check Example!
Dim vSpeller As Variant
vSpeller = createUnoService("com.sun.star.linguistic2.SpellChecker")
'Use vReturn = vSpeller.spell(s, aLocale, emptyArgs()) if you want options!
For i = LBound(s()) To UBound(s())
vReturn = vSpeller.isValid(s(i), aLocale, emptyArgs())
MsgBox "Spell check on " & s(i) & " returns " & vReturn
Next
End
End Sub
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group