| View previous topic :: View next topic |
| Author |
Message |
natediesel Newbie

Joined: 24 Jul 2009 Posts: 2 Location: Seoul
|
Posted: Fri Jul 24, 2009 11:06 pm Post subject: Change Highlighted Text to Red - Shortcut Creation for Dummy |
|
|
Hi,
I've searched for this but I can't figure out how to do it. Font Color doesn't work for me for some reason.
If someone could walk me through step by step how to create a shortcut that would change the text I highlight to red, that would be great.
I went to Tools, Customize, Keyboard tab and created a shortcut easily for Strikethrough.
I am doing editing and also need to quickly change text I highlight to red and back to black.
Help appreciated!
Ctrl+L is set to Red but that doesn't seem to do anything. I set ctrl+shift+S to Font Color but that does nothing either...
Creating a shortcut to change highlighted text color to red for dummies!  |
|
| Back to top |
|
 |
JohnV Administrator

Joined: 07 Mar 2003 Posts: 8982 Location: Lexinton, Kentucky, USA
|
Posted: Sat Jul 25, 2009 8:16 am Post subject: |
|
|
Here's a macro I simply recorded. Once you save it you can find it at Tools > Customise > Keyboard tab - it should be in the Category window near the bottom in OOoMacros.
BTW, Ctrl+L, by default, is assigned to Align Left.
| Code: | Sub SelectedToRed
dim document as object
dim dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FontColor"
args1(0).Value = 16711680
dispatcher.executeDispatch(document, ".uno:FontColor", "", 0, args1())
End Sub |
If you don't know what to do with the macro see here.
http://www.oooforum.org/forum/viewtopic.phtml?t=7995 |
|
| Back to top |
|
 |
natediesel Newbie

Joined: 24 Jul 2009 Posts: 2 Location: Seoul
|
Posted: Sat Jul 25, 2009 6:23 pm Post subject: |
|
|
Ah I tried but the macro thing is over my head. Hopefully this advice will help someone else out. Thanks.
I thought font color or Red would do the trick, but I don't know what setting a shortcut to those things does exactly...
Might have to do it the slow way then go hunt for my MSO cd haha |
|
| Back to top |
|
 |
BillP Super User

Joined: 07 Jan 2006 Posts: 2702
|
Posted: Sun Jul 26, 2009 5:43 am Post subject: |
|
|
I'm not sure what "Red" does, but think it's related to graphics. Another way to do this is to create a character style which will change the font color to red, then set a keyboard shortcut to apply the character style.
To create the character style, select a single word in a paragraph and change the font color to red. Leaving the word selected, open the Styles and Formatting Window (F11). Click the second (Character style) icon, then click the last icon and select New Style from Selection. Give the style a name and click OK. It should now appear in the list of character styles. You can then assign it to a keyboard shortcut using Tools > Customize > Keyboard. |
|
| Back to top |
|
 |
idlehands General User

Joined: 09 Dec 2008 Posts: 11
|
Posted: Wed Jan 20, 2010 1:52 pm Post subject: |
|
|
I stumbled on this thread and am hoping to get some help
Will a style let me change only the text color?
i'm used to lotus notes where i can go
shift-home/end to highlight a line
and then alt-t-color
which basically brings up the text menu, and then a set of 6-8 colors coded to letters.
like k for black, or r for red...
i'd love to be able to do that in oo.... i do'nt want to change the whole text style though.. |
|
| Back to top |
|
 |
jrkrideau Super User

Joined: 08 Aug 2005 Posts: 6733 Location: Kingston ON Canada
|
Posted: Thu Jan 21, 2010 3:17 pm Post subject: |
|
|
| idlehands wrote: | I stumbled on this thread and am hoping to get some help
Will a style let me change only the text color? |
Certainly, just go to font effects and change the colour.
Actually select the current style, right click on it to create a new style and change the font colour.
You can do this for a paragraph style or for a character style.
[quotge]i'm used to lotus notes where i can go
shift-home/end to highlight a line
and then alt-t-color
which basically brings up the text menu, and then a set of 6-8 colors coded to letters.
like k for black, or r for red...
i'd love to be able to do that in oo.... i do'nt want to change the whole text style though..[/quote]
In OOo you are essentially changing the Style but it is pretty easy to do once you have defined the styles. ( with the Stylist open it is essentially a couple of mouse clicks).
If you are going to be using a lot of colours both paragraph and character ( OOo does not understand line all that well) you probably want to spend some time thinking about what styles and colours you want and then should design a template for general use.
Have a look at the chapters on Styles and Templates here.
http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Chapters _________________ jrkrideau
Kingston ON Canada
Currently using Windows 7 & OOo 3.4.0 and Ubuntu 12.04 & LibreOffice 3.5.2.2 |
|
| Back to top |
|
 |
|