Difference between revisions of "Writer/MSInteroperability/HyperLink"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Property for get/set hyperlink data)
Line 48: Line 48:
 
|-
 
|-
 
!Action
 
!Action
! Property Name
+
! Properties Name
 
|-
 
|-
 
| Import
 
| Import

Revision as of 05:45, 10 October 2012

Hyperlink in Writer

It is a property of the Text,Frame,Graphic. It can be set by the property dialog or menu "Insert - Hyperlink".

Main Problem

Currently hyperlink importing/exporting work well in ODF. But for WORD 2003/2007 filter, only Text and Graphic with "As character" setting can support hyperlink importing/exporting. It is not supported by Frame and Graphic with other settings. For example, when you importing/exporting Frame with hyperlink document, the hyperlink property will be lost.

Degree of current supported:

Object Import Export
Text Yes Yes
Graphic (To page, To paragraph, To character, As character, To frame) Only support on "As character" setting Only support on "As character" setting
Frame (To page, To paragraph, To character, As character) Not yet Not yet

Implementation Details

Data Structure

Hyperlink properties were stored in SwFmtURL structure.

Properties Description
String sTargetFrameName Property contain the name value of target frame
String sURL Property contain the value of URL(include link for bookmark, file location and URL).
String sName Property contain the name value of graphic or frame.

Property for get/set hyperlink data

Hyperlink data can be get/set into MS binary file stream with properties in below table.

Action Properties Name
Import DDF_Prop_pihlShape, DDF_Prop_wzName
Export ESCHER_Prop_pihlShape, ESCHER_Prop_wzName

Unit Test

Below Unit tests have been done on Graphic and Frame.

Doc2Doc Odt2Doc
Bookmark Y Y
File location Y Y
URL Y Y
Target Frame Y Y
Personal tools