Distributing Clip Art to OpenOffice.org Users

Posted May 5th, 2008 by Solveig Haugland

One of the most helpful non-technical configurations that IT administrators can do is to take all free clip art they can get ahold of, assemble it and categorize it, and give it to every user to make OpenOffice.org more fun and more usable. This is especially beneficial in schools.

Findfiles4

You can find clip art by googling or by checking this list. To actually set up the clip art, though, involves more than copying a directory. Here's how to do it.

Step 1: Download massive amounts of clip art and categorize it. If possible, get an intern to do this or talk to administrators from other schools who might have downloaded art already.

Be sure to categorize it in separate directories as you download it -- or after, if that works better for you. Of course, check the license for the clip art to be sure it's free for multiple users.

Step 2: Figure out how it all works, conceptually.

There are two components. There are:

  • configuration files containing information about the clip art, such as thumbnails, the name of the Gallery theme, and the actual location of the real clip art
  • and the actual clip art, in an entirely different location

The location of the config files is determined by the default location under Tools > Options > OpenOffice.org > Paths. Let's say I've got a directory C:\openoffice_config\clipart that will hold all the config information.

I specify that path under Tools > Options.

Clipart_toolsoptions_path

Then when I create a new theme in the Gallery, information about the theme is stored in configuration files in that path.

Clipart_newtheme_path

There are actually three config files for each theme, stored inside that path.

Configfile_intheconfigdirectory_3

Now, what about the actual clip art? That's simpler. The path to the clip art, for each theme, is just stored in the three config files for the theme.

They just point to whatever art in whatever directory you pulled in when you created the theme. Here's where I have some clip art for this example.

Clipart_directory

Here's how it all works together. Click the illustration to see a legible, bigger version.

Diagram_fullstopry

Step 3: Check your Gallery config directory and settle on a location for the clip art.

First, plan where you want the clip art to be; most likely on the network. My example here is just C:\clipart but you'll probably want the path to be H:\openoffice\clipart or something like that. The path that you create to the clip art has to work for every user.

Now you have the clip art out there.

Look at your Gallery path. Choose Tools > Options > OpenOffice.org > Paths. If you like it, just note it and leave it as is. If you want to change it, select Gallery, click Edit, add a new path and select the radio button next to it to make it the default.

(This can be different for every user, or in theory you could have every user's Gallery config path out there at H:\openofficeconfig\galleryconfig )

Clipart_toolsoptions_path_2

4. Create themes.

Choose Tools > Gallery to view the Gallery.

Click New Theme. You'll see the path to the configuration files that are stored in the path you just set, or just accepted. Name the theme something appropriate.

Findfiles0

Click the Files tab. Click Find Files and select the directory containing the actual clip art, like C:\clipart\transportation.

Findfiles1

The file names will appear.

Findfiles2

Then, VERY IMPORTANT, be sure to click Add All. A window will appear creating the three config files that point to the actual clip art.

Findfiles3

Then click OK, and you'll have your theme with clip art. The path points to the actual clip art.

Findfiles4

Step 5: Copy all the config files to users' gallery config directories.

Quit and restart StarOffice/OpenOffice.org, AND exit the quickstarter in the lower right corner.

Exitquickstarter

At this point, all you need to do is go to your Gallery config files directory that you checked or changed here

Clipart_toolsoptions_path_2

and copy all the config files in that directory

Clipartcopy

to the directory under Tools > Options > OpenOffice.org > Paths that is set for each user.

Exit the program and quit the Quickstarter, then start the program again.

Here's somethign I did while testing. I made two themes in StarOffice, transportation and weather, then just copied the config files over to the location where gallery config files are stored for my OpenOffice.org installation. They showed up just fine, I did nothing on the OpenOffice.org side.

Proof

As a non-system-administrator, I'm sure there are issues of profiles size to also take into account. However, these are the mechanics of how it works in the application.

Step 6: What about when you get more clip art?

You simply need to add more themes, or modify the existing themes, then copy those config files out again to the users' Gallery config directories. You can't just copy the clip art to the main clip art directory and expect the gallery itself to update; the thumbnails that show up in the Gallery in OpenOffice are controlled by what's in the gallery config files.



About the Author Solveig Haugland is an author, instructor, and consultant near Denver, Colorado. She has been working with OpenOffice.org and StarOffice since 1999 and loves to show people how to make OpenOffice.org do what they need it to. She blogs at http://openoffice.blogs.com and her business web site is http://www.getopenoffice.org. Her latest book is the OpenOffice.org 2 Guidebook.

The views expressed in this post do not necessarily reflect those of the CoSN organization or its affiliates