Hello,
I have an issue with searching the place where the reference points to. I
dont understand how to do that.
I use the following code to iterate through the text:
*XEnumeration range = ....;
.....
while (range.hasMoreElements()) {
XTextRange xTextPortion = (XTextRange) UnoRuntime.queryInterface(
XTextRange.class, range.nextElement());
....**
*
At some moment xTextPortion will contain a text which is in fact a reference
to some other part of the document (for example, chapter).
And I want to determine where the reference points to (maybe in future i
will need to go to this place...).
Example of document structure:
------------------------------
Chapter 1.
SubChapter 1.1
SubChapter 1.2
Chapter 2
A *reference to the SubChapter 1.1*
------------------------------
*reference to the SubChapter 1.1* can be replaced by any text and I need to
find "SubChapter 1.1" (the place where reference points to) using only
OpenOffice.org API.
As I know the reference can point only to exact place.
Also, I have the following property on XTextRange object:
Property[ReferenceMark] = Any[Type[com.sun.star.text.XTextContent], null]
Can somebody give me an example of code which is suitable for this task?
I search for an example on Java.
--
Thank you very much,
Mikhail