| View previous topic :: View next topic |
| Author |
Message |
padmavyuha General User

Joined: 17 Mar 2004 Posts: 48 Location: Norwich, UK
|
Posted: Wed Nov 24, 2004 1:46 pm Post subject: Increase/decrease font size? |
|
|
Excuse me if this has already been addressed here - I searched through the forum but couldn't find anything here, but maybe I'm looking under the wrong headings...
What I'm after is a macro way to take the font size of selected text and down/up it by one (or do nothing if there's more than one font size in the selection, of course!).
There doesn't appear to be any direct built-in way to do this in Ooo.
- padmavyuha |
|
| Back to top |
|
 |
mterk General User

Joined: 05 Sep 2003 Posts: 40
|
Posted: Wed Nov 24, 2004 2:22 pm Post subject: |
|
|
Why a macro?
There are toolbar buttons (hidden by default) that will increase or decrease the font size of the selected text.
Right click the Object bar --> Visible buttons --> Check Increase Font Size / Decrese Font Size |
|
| Back to top |
|
 |
padmavyuha General User

Joined: 17 Mar 2004 Posts: 48 Location: Norwich, UK
|
Posted: Wed Nov 24, 2004 2:47 pm Post subject: |
|
|
Yes, but that's only available in Writer, not in Calc...
If anyone knows of a way to get Writer-specific options into the global options, that'd solve my problem, but at the moment, there's no direct way to do increase/reduce font in Calc.
- padmavyuha |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
padmavyuha General User

Joined: 17 Mar 2004 Posts: 48 Location: Norwich, UK
|
Posted: Wed Dec 01, 2004 8:07 am Post subject: |
|
|
Thanks very much...
| Code: | ' Select ALL of the text.
oCursor.gotoStart( False ) ' goto start of text
oCursor.gotoEnd( True ) ' goto end of text while holding down SHIFT key
' Change selected char's height
oCursor.CharHeight = oCursor.CharHeight + 1 |
is just what I needed!
- padmavyuha |
|
| Back to top |
|
 |
|