2009/3/3 Peter Eberlein <[email protected]>:
> Morten Omholt Alver schrieb:
>
>>
>> So, when I find a citation within a footnote, what I'm actually
>> looking for is the location reference to this footnote in the text.
>>
> So, xFootnote.getAnchor() should do that,

Ah, you are absolutely correct! That solves it. Thank you again, your
replies have immensely helpful!

There is only one problem remaining - when trying the technique of
using a hidden window, it seems like I lose connection to OpenOffice
when calling the

xComponentLoader.loadComponentFromURL("private:factory/swriter",
"_blank", 0, props);

method. I Acquired the xComponentLoader instance using:

Object desktop =
xServiceManager.createInstanceWithContext("com.sun.star.frame.Desktop",
xContext);
xComponentLoader =
(XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class,
desktop);

after bootstrapping. The XModel I refer in props is aquired from
mxDoc.getCurrentController().getModel(), where mxDoc is the
XTextDocument I'm connected with. Have I used the wrong XModel
somehow, or did I do something else wrong?


Regards,
Morten

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to