Macros/Impress/002

Description
It is often useful to be able to selectively loop through a specific class of objects in the current slide. For example you may have various objects in the slide, like images ie  or shapes such as. But say you want to change a property for all of a specific shape?

The macro below loops through all objects, and then changes some properties for each LineShape. Hence the macro illustrates the various relevant properties that you may want to address for LineShape objects, such as color, and it also illustrates how to selectively loop through objects in the current slide.

Needless to say the macro hence provides a template for other applications as well. A modified version of the below code, is included for download in the ODP file below, where the macro has been separated into multiple macros and assigned to different Push Buttons, as shown in this screenshot:



Python
tbc

Download ODP file

 * [[Media:Macro to selectively manipulate LineShape objects.odp|Download ODP file with this macro included.]]