Page 1 of 1

Create hyperlink in SmartArt

PostPosted: Thu Apr 19, 2012 10:40 am
by oscar.novillo
Hi,

I'm trying to create a hyperlink in a text inside a SmartArt, it's easy in a normal text.

I'm painting SmartArt with odgm xml type, It's posible to marshall a dgm xml type in order to create the smartArt ?

Any help will be apreciate.

Re: Create hyperlink in SmartArt

PostPosted: Thu Apr 19, 2012 10:37 pm
by jason
Yes, you can marshall to create ...

If you create a pptx containing SmartArt in powerpoint, then run the result through the PartsList sample, you'll see which part classes pptx4j uses for the SmartArt parts.

For example, one is

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
public final class DiagramLayoutPart extends JaxbDmlPart<CTDiagramDefinition>
 
Parsed in 0.013 seconds, using GeSHi 1.0.8.4


CTDiagramDefinition is in package package org.docx4j.dml.diagram, as are the other SmartArt related content objects.

The Diagram*Parts are in org.docx4j.openpackaging.parts.DrawingML

All of this stuff is in docx4j's src/main/java dir tree.

hope this helps .. Jason