On Wed, 2005-02-02 at 13:06, James W.Greenidge wrote:
> I can't find a method to create a function bar icon that will perform a 
> Format - Character - Font Effects operation that will pop up a menu on 
> highlighted text with options to capitalize, enlarge, reduce font 
> without opening up the whole Font Effects panel. Neither does it seem 
> to lend itself as a macro. Any sage suggestions out there?

A suggestion (don't know about sage) is to create a custom toolbar with
the commands that you want. For instructions on customizing a toolbar
see:
http://documentation.openoffice.org/manuals/oooauthors/CustomizingOOo.sxw

There are commands already (in the format category) for:
Uppercase
Lowercase
Increase font size
Reduce font size
Reset font attributes

You may want a command for title case (I couldn't find a command for
that) so here is a simple macro to do the job:

sub TitleCase
oDoc = thisComponent
oVC = oDoc.currentController.viewCursor
oVC.CharCaseMap = com.sun.star.style.CaseMap.TITLE
end sub

To create a macro for small caps simply change TITLE to SMALLCAPS.

I think I have seen a macro for sentence case - if you want that.

Thanks, Ian Laurenson


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

Reply via email to