PDA

View Full Version : Change Command/Controll OnAction for SlideLayoutGallery



moglei
08-02-2013, 07:23 AM
Because the original method to change the Layout of a slide has several issues (for example: if not all text placeholders are have text, the text can switch to wrong Placeholder). To fix this behavior i wrote my own method to do so, which fixes nearly all those issues.

As sad in the Topic I now want to use this function instead of the Microsoft one, when users are clicking on a layout ind the popup Layout gallery. May Problem is I’m not able to find the control in commandbars. ID should be 11526 (Office 2010 Developer Resources - Office2010ControlIDs - PowerPoint).

Anything that helps me to just bind a one sub on the control would help, cause then I would be a least able to try to get it work.

regards

Moglei

John Wilson
08-02-2013, 09:28 AM
That is the ID for SlideLayoutGallery but:

A. In 2010 you would usually write repurpose code in XML (using idMso = "SlideLayoutGallery")
B. You cannot repurpose the gallery

The only way to do this (not trivial) would be to hide the Microsoft controls in the ribbon and create your own version in XML.

If you have no idea how to do this my fellow MVP Ken Puls and colleagues have written the Definitive book. "RibbonX - Customising the Office 2007 Ribbon" It is still good for 2010

To give you an idea what could be done I have uploaded a simple example. You would need to create images for the gallery I just used a green rectangle. Just click layouts on the ribbon
DOWNLOAD (http://www.pptalchemy.co.uk/Downloads/Newgallery.pptm)

moglei
08-05-2013, 03:49 AM
So it is as I hoped it isn't. :cry2:

Rebuilding it in XML is with a few exceptions not a Problem.

1. Do you know if it is possible to get the masterLable in to the gallery, as in the original ribbon-Gallery?
2. Is there a way to access the preview of the Layouts so that the Images are produced dynamically?