Hi Hal,
Thnks for posting back.
Your proposed solution looks OK. When you have the final version, I'll
try to take a closer look. Maybe you can post it as extension on the
extension site?
Regards - Cor
Hal Vaughan wrote (26-6-2009 17:19)
I may have a solution that's a bit different than what's been suggested,
but thanks to both Cor and Fernand because what they wrote gave me the
idea. I still have to code this and be sure it's what I want. A quick
check tells me that if I have one character at the beginning, once I
move the cursor over that character, I can keep trying oCurse.goLeft(),
but the length of the string in the selection (sKey in this case) does
not change. So I think I can just keep track of the length of the
selected string. If I try goLeft() and the string length doesn't
change, that should tell me I can't go left anymore and I'm at the
beginning.
If this works, I'll post a fixed version. I think I also exported this
or was going to so other people could use them as well. If I haven't
done it already, I will. I like it because it's a lot like AutoCorrect,
but I can define new key phrases and replacement texts in a hurry and
they are stored in the document, but can be exported to a text file and
imported in another document, so they are document specific but can be
transferred.
--
Cor Nouws - nl.OpenOffice.org marketing contact
Ontwikkelaar? Join! http://council.openoffice.org/developers.html
Gevoel niet vrij te zijn? Zie www.nieuwsteversie.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]