dave-howard / vsdx

vsdx - A python library for processing .vsdx files
BSD 3-Clause "New" or "Revised" License
70 stars 25 forks source link

Support creating and editing hyperlinks in shapes #74

Open Godsmith opened 1 month ago

Godsmith commented 1 month ago

The hyperlink information seems to be in the XML, but this package does not seem to support viewing or editing them? Example:

b'<ns0:Shape xmlns:ns0="http://schemas.microsoft.com/office/visio/2012/main" ID="1" NameU="Rectangle" Name="Rectangle" Type="Shape" Master="2">
  <ns0:Cell N="PinX" V="5.118110051104589" />
  <ns0:Cell N="PinY" V="5.354330479790871" />
  <ns0:Cell N="LineWeight" V="0.003472222222222222" U="PT" F="Inh" />
  <ns0:Section N="Hyperlink">
    <ns0:Row N="Row_1">
      <ns0:Cell N="Description" V="" />
      <ns0:Cell N="Address" V="https://www.google.com" />
      <ns0:Cell N="SubAddress" V="" />
      <ns0:Cell N="ExtraInfo" V="" />
      <ns0:Cell N="Frame" V="" F="No Formula" />
      <ns0:Cell N="NewWindow" V="0" />
      <ns0:Cell N="Default" V="0" />
      <ns0:Cell N="Invisible" V="0" />
      <ns0:Cell N="SortKey" V="" />
    </ns0:Row>
  </ns0:Section>
  <ns0:Text>Link to google\n</ns0:Text>
</ns0:Shape>'