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

Change the default style of numbered or bullet lists?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
jeanweber
Moderator
Moderator


Joined: 30 Dec 2005
Posts: 674
Location: Queensland, Australia

PostPosted: Fri Oct 20, 2006 6:05 pm    Post subject: Change the default style of numbered or bullet lists? Reply with quote

By default style, I mean what you get when you click the Numbering On/Off or Bullets On/Off button on the Formatting toolbar. Can this be changed? If so, how?

I would like to set this up so that clicking on those buttons gives different styles than the built-in defaults. This is because I work with too many people who simply cannot be convinced to select list styles even when I set the styles up for them. Instead, they click those buttons.

I've looked for the answer to this, but can't find it in the help. If it's on the forum, I'm obviously not choosing the right search terms.
_________________
Regards, Jean Hollis Weber
Get free PDFs of OOo user guides from http://wiki.services.openoffice.org/wiki/Documentation/
Printed copies http://www.lulu.com/opendocument
Back to top
View user's profile Send private message Visit poster's website
foxcole
Super User
Super User


Joined: 19 Jan 2006
Posts: 2771
Location: Minneapolis, Minnesota

PostPosted: Fri Oct 20, 2006 6:58 pm    Post subject: Re: Change the default style of numbered or bullet lists? Reply with quote

jeanweber wrote:
By default style, I mean what you get when you click the Numbering On/Off or Bullets On/Off button on the Formatting toolbar. Can this be changed? If so, how?

I would like to set this up so that clicking on those buttons gives different styles than the built-in defaults. This is because I work with too many people who simply cannot be convinced to select list styles even when I set the styles up for them. Instead, they click those buttons.

2.0.4 on WinXP...

This is weird.
I clicked the bullet tool, then went into Format> Bullets and Numbering, where on the Options tab I selected each of the first three outline leves and assigned a different bullet style... thinking it would set those styles at the document level, but they didn't stick, not at all. Not even staying in the same paragraph and toggling bullets off and on again, either with the toolbar tool or the Format menu option.

Then I went in to the same dialog (through the Format menu) and set just the level 1 bullet. That one stayed set, and I could apply it with the hide/show bullets tool. That was odd. It's still set properly, too.

So then I went back to the Format menu and set a bullet for level 2. I assumed the indent tool would change the list level, but it didn't--it just indented, and when I clicked the bullet tool, it used the level 1 bullet. I right-clicked and that time chose "down one level." Bingo.

All the other list levels stayed set to the symbols I assigned.

So then I went to the Stylist, and saw that those styles are not tied to the bullets I just set. To those I assigned graphics (well, I could have done the same in the above dialog, too, if I so desired... I just chose to use bullet symbols for those)... so if I use the Stylist to assign a List Level 1, it put in a graphic bullet. If I use the toolbar tool or Numbering/Bullets in the shortcut menu or the Format menu>Bullets and Numbering, it put in the bullet symbol. To get consistent bullet styles, I had to assign the bullets twice, once for the list level in the stylist and once for the list level in the Format menu.

So it appears the list level styles and the manually-applied bullets are unrelated... two different sets of list levels.
Weird.
_________________
Cheers!
---Fox

WinXP Pro SP2, OOo Portable 2.3.1, OOo local 2.4 RC4
New OpenOffice forum: http://user.services.openoffice.org/en/forum/
Manuals: http://documentation.openoffice.org/manuals/index.html


Last edited by foxcole on Fri Oct 20, 2006 7:04 pm; edited 3 times in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
swingkyd
OOo Advocate
OOo Advocate


Joined: 15 Sep 2004
Posts: 479

PostPosted: Fri Oct 20, 2006 6:59 pm    Post subject: Reply with quote

You could re-link the buttons to a custom macro that applies your style instead of the default.
Do you need directions?
Back to top
View user's profile Send private message
jeanweber
Moderator
Moderator


Joined: 30 Dec 2005
Posts: 674
Location: Queensland, Australia

PostPosted: Fri Oct 20, 2006 7:03 pm    Post subject: Reply with quote

swingkyd wrote:
You could re-link the buttons to a custom macro that applies your style instead of the default.
Do you need directions?

Oh, yes, please! Thank you!
_________________
Regards, Jean Hollis Weber
Get free PDFs of OOo user guides from http://wiki.services.openoffice.org/wiki/Documentation/
Printed copies http://www.lulu.com/opendocument
Back to top
View user's profile Send private message Visit poster's website
jeanweber
Moderator
Moderator


Joined: 30 Dec 2005
Posts: 674
Location: Queensland, Australia

PostPosted: Fri Oct 20, 2006 7:25 pm    Post subject: Re: Change the default style of numbered or bullet lists? Reply with quote

foxcole wrote:

I clicked the bullet tool, then went into Format> Bullets and Numbering... and set just the level 1 bullet. That one stayed set, and I could apply it with the hide/show bullets tool. That was odd. It's still set properly, too.

Hmm. I thought I had done that, and it didn't stick. Maybe I'm doing something wrong, or we've gone off into the twilight zone again. Smile

Oh yes, definitely the twilight zone. I just made another new file from scratch and it worked as you said. I saved it as a template, then started a new doc from the template. All seemed well, except that the last paragraph reverted to the built in default numbering. But after I clicked the Numbering On/Off button a few times on that paragraph, suddenly it was using the style I had defined.

Gack! I'll play with this a bit more to see if I can reproduce the problem.

I'm using 2.0.4 on Ubuntu 6.0.4, btw. Not the version that comes with Ubuntu, but the latest downloaded from the OOo website.
_________________
Regards, Jean Hollis Weber
Get free PDFs of OOo user guides from http://wiki.services.openoffice.org/wiki/Documentation/
Printed copies http://www.lulu.com/opendocument
Back to top
View user's profile Send private message Visit poster's website
swingkyd
OOo Advocate
OOo Advocate


Joined: 15 Sep 2004
Posts: 479

PostPosted: Fri Oct 20, 2006 7:30 pm    Post subject: Reply with quote

This is by no means the prettiest macro b/c it was taken with the "record macro" functions built into OO.org writer:
Code:
sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

rem ----------------------------------------------------------------------
dim args1(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Template"
args1(0).Value = "List 1"
args1(1).Name = "Family"
args1(1).Value = 2

dispatcher.executeDispatch(document, ".uno:StyleApply", "", 0, args1())

NOw, you will have to modify this line with the style you want them to apply:
Code:
args1(0).Value = "List 1"

Add this code to your very own package under:
Tools->Macros-> Organize Macros -> OpenOffice.org Basic
Create your own macro name (maybe ApplyList)
Copy and paste that code after you "Edit" it.
Then,
Tools->Customize->Toolbars (tab)
Then select "Formatting" under the dropdown menu.
Then, "Add" ->"Openoffice.org Macros" ->"My Macros"-> "Standard"-> "Module1"->"ApplyList" (<--- or whatever you named it)
Now, you still have to remove the existing "Numbering On/Off" buttons and re-assign the icon to your new script that you just layed out.
There really isn't a much easier process than than....errr. yeah.
Maybe someone else knows of a more efficient way. I'd like to know Wink
Back to top
View user's profile Send private message
foxcole
Super User
Super User


Joined: 19 Jan 2006
Posts: 2771
Location: Minneapolis, Minnesota

PostPosted: Fri Oct 20, 2006 8:09 pm    Post subject: Re: Change the default style of numbered or bullet lists? Reply with quote

jeanweber wrote:
Oh yes, definitely the twilight zone. I just made another new file from scratch and it worked as you said. I saved it as a template, then started a new doc from the template. All seemed well, except that the last paragraph reverted to the built in default numbering. But after I clicked the Numbering On/Off button a few times on that paragraph, suddenly it was using the style I had defined.

Gack! I'll play with this a bit more to see if I can reproduce the problem.

Yes, it's definitely a bit buggy, though it does work eventually...
I just tried it on another document, and I'm more confused. The list level 1 bullet symbol stuck when I changed it, for the first paragraph and for the other two individual paragraphs I applied it to, using the bullet hide/show tool. Then I changed bullet symbols on list levels 2 and 3, and those also seemed to stick (applying a bullet and then demoting the paragraph). But when I selected several short paragraphs after a new-bullet level 1, it reverted to the default fat, round bullet again. Applying the bullet to one paragraph at a time uses the bullet I chose. Applying it to more than one uses the default bullet.
_________________
Cheers!
---Fox

WinXP Pro SP2, OOo Portable 2.3.1, OOo local 2.4 RC4
New OpenOffice forum: http://user.services.openoffice.org/en/forum/
Manuals: http://documentation.openoffice.org/manuals/index.html
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
jeanweber
Moderator
Moderator


Joined: 30 Dec 2005
Posts: 674
Location: Queensland, Australia

PostPosted: Fri Oct 20, 2006 8:15 pm    Post subject: Reply with quote

swingkyd: Thanks! I'll give that a try.

fox: Arrrgh!! Intermittent faults drive ya nuts, don't they? Well, at least I know it's not just me doing something wrong. It's the gremlins. Smile
_________________
Regards, Jean Hollis Weber
Get free PDFs of OOo user guides from http://wiki.services.openoffice.org/wiki/Documentation/
Printed copies http://www.lulu.com/opendocument
Back to top
View user's profile Send private message Visit poster's website
sboom
General User
General User


Joined: 02 Nov 2006
Posts: 8

PostPosted: Thu Nov 02, 2006 2:22 am    Post subject: Reply with quote

swingkyd, the macro you're suggesting doesn't work: it gives a syntax error. Amy amendment?

EDIT: MY APOLOGIES: NO SYNTAX ERROR, SHAME ON ME !


Last edited by sboom on Fri Nov 03, 2006 5:37 am; edited 1 time in total
Back to top
View user's profile Send private message
jeanweber
Moderator
Moderator


Joined: 30 Dec 2005
Posts: 674
Location: Queensland, Australia

PostPosted: Thu Nov 02, 2006 12:55 pm    Post subject: Reply with quote

My testing shows that you do not need a macro to n make the Bullets On/Off button use a bullet of your choice. When I first started this thread, I wasn't sure how to change the default bullet, but foxcole told me how. The "how" seems to have got lost, so I will summarise it here.

1) Place the cursor in a paragraph and click the Bullets On/Off button on the toolbar to show the current default bullet.

2) From the menu bar, choose Format > Bullets and Numbering. You can either choose a bullet from the Bullets tab of the dialog, or go to the Options tab for more choices.

3) On the Options tab, select Level 1, be sure "Numbering" is set to "Bullet", and click the [...] button next to Character. On the Special Characters dialog, choose a font and a character and click OK to return to the Bullets and Numbering dialog. Set the bullets for the other levels in a similar way, then click OK.

The new bullet character will now show on this paragraph. If you go to any other paragraph and click the Bullets On/Off button, it should display the new bullet character too. (One exception might be if the paragraph has some custom styling that over-rides the default bullet; I have not done enough testing to be sure about the possible interactions.)

Note: if you want the bullet to be a different size or colour, go to the Styles and Formatting window, choose the Character Styles icon at the top of that window, right-click on Bullets and choose Modify, go to the Font tab of the Character Style dialog and choose a size and/or go to the Font Effects tab and choose a colour.

Important
The changes made above apply *only* to the current document. To make them the default for other other documents, save the current document as a template (you can delete all the content before doing this), and make that template the default template. (See the chapter "Working with Templates" in the Writer Guide for details.
_________________
Regards, Jean Hollis Weber
Get free PDFs of OOo user guides from http://wiki.services.openoffice.org/wiki/Documentation/
Printed copies http://www.lulu.com/opendocument
Back to top
View user's profile Send private message Visit poster's website
Hagar Delest
Super User
Super User


Joined: 06 Feb 2006
Posts: 5167
Location: France

PostPosted: Wed Nov 22, 2006 2:39 am    Post subject: Reply with quote

Hi Jean,

I've tried the method. It works fine if the bullet is in the document. But for a template, as soon as I remove the bulleted paragraph (for a default template, I don't need to have a bullet appearing in a new blank document), it comes back to the default OOo bullet ! Any idea ?
_________________
Now on the EN user community forum
Back to top
View user's profile Send private message
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 3102
Location: Belgium

PostPosted: Fri Nov 24, 2006 5:56 am    Post subject: Reply with quote

The method does not work for customized spacing as well. Actually, there is something very funny: in Formats- Bullets and numbering, there is a "default" button. If you press that button, the "defaults" are loaded, and these are different from the "default" of the numbering button. In particular, Indent is restored to 0. The next time you use the numbering button again, the "numbering button" defaults are again used. This clearly isn't working as it should. Using List styles provide for the best control in bullets and remains my favorite approach. Yet indeed, the difficulty is in convincing others to do the same. After all, that clumsy button is the first thing users see.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer 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