Hi,
I am working on an export filter for producing accessible HTML. I first
iterate through the document and insert bookmarks at the start of each page
to indicate an automatic page break. I then iterate through the document
creating a new HTML page at each page break.
I need to compare the names of the names of the bookmarks as a iterate
trhough the text.
In the following example, I need to differentiate between "PageBreakMarker"
and "_1118825921".
- <text:p text:style-name="P4">
<text:bookmark text:name="PageBreakMarker" />
<text:bookmark-start text:name="_1118825921" />
<text:bookmark-end text:name="_1118825921" />
- <draw:frame ... />
</draw:frame>
</text:p>
I can detect a bookmark by the following:
Reference<XPropertySet> xPropertySet(currentXTextRange, UNO_QUERY);
Any aPortionType =
xPropertySet->getPropertyValue(rtl::OUString::createFromAscii("TextPortionType"));
rtl::OUString oPortionType;
if (aPortionType >>= oPortionType)
{
return (portionType == "Bookmark");
}
How do I find the name of the programatic name of the bookmark (ie. the
strings "PageBreakMarker" or "_1118825921" )?
--
View this message in context:
http://www.nabble.com/Find-the-name-of-a-bookmark-while-iterating-through-text-tf3394969.html#a9451400
Sent from the openoffice - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]