On 30.05.11 16:42, Andor E wrote:
> Hello,
> I'm trying to debug an issue with bookmarks in the Writer import
> filter. Right now my biggest problem is, that I don't know how to get
> information from the UNO reference objects. The import filter uses
> cursors and text ranges to insert the bookmarks into the document. I'm
> pretty sure, that the problem lies somewhere here, but I can't query
> the cursors and text ranges to make sure. Is there a helper function
> for gdb or a trick to do this?

most important is that you need to build the library that contains the UNO
implementation with debug, otherwise gdb won't display anything.
for writer text ranges that means "sw" and (possibly, if the range is in a
frame or note) "svx".

gdb often can't figure out expressions like "*xFoo" on a smart pointer.
but if you manually specify "print *xFoo._pInterface" it usually works.

btw, i remember fixing a bug or two in ODF bookmark import this year,
please check if your problem is fixed in 3.4 beta...

-- 
"The secret to creativity is knowing how to hide your sources."
 -- Albert Einstein

-- 
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@openoffice.org
For additional commands send email to sy...@openoffice.org
with Subject: help

Reply via email to