Difference between revisions of "Writer/MSInteroperability/HyperLink"
From Apache OpenOffice Wiki
< Writer
Kangjane2012 (Talk | contribs) ((checkpoint save)) |
Kangjane2012 (Talk | contribs) ((checkpoint save)) |
||
Line 47: | Line 47: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! | + | !Action |
! Property Name | ! Property Name | ||
|- | |- | ||
Line 55: | Line 55: | ||
| Export | | Export | ||
| ESCHER_Prop_pihlShape, ESCHER_Prop_wzName | | ESCHER_Prop_pihlShape, ESCHER_Prop_wzName | ||
+ | |} | ||
+ | |||
+ | ==Unit Test== | ||
+ | Below Unit tests have been done. | ||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | ! | ||
+ | ! header 2 | ||
+ | ! header 3 | ||
+ | |- | ||
+ | | row 1, cell 1 | ||
+ | | row 1, cell 2 | ||
+ | | row 1, cell 3 | ||
+ | |- | ||
+ | | row 2, cell 1 | ||
+ | | row 2, cell 2 | ||
+ | | row 2, cell 3 | ||
|} | |} |
Revision as of 07:10, 9 October 2012
Contents
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 | Property Name |
---|---|
Import | DDF_Prop_pihlShape, DDF_Prop_wzName |
Export | ESCHER_Prop_pihlShape, ESCHER_Prop_wzName |
Unit Test
Below Unit tests have been done.
header 2 | header 3 | |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |