Re: Footnote service not starting
Mathias Bauer <[email protected]> Mon, 06 Dec 2010 08:55:29 +0100
| Newsgroups | gmane.comp.openoffice.devel.api |
|---|---|
| Message-ID | <[email protected]> |
On 29.11.2010 09:27, Swati Soni wrote:
> Dear Sir,
>
> I tried executing the Following code. The mxDocFactory is unable to open the
> footnote service.
> How to resolve this error. >
> Request you to please reply to this problem.
>
> try
> {
> // Create a new footnote from the document factory and get it's
> // XFootnote interface
> XFootnote xFootnote = (XFootnote) UnoRuntime.queryInterface(
> XFootnote.class,
> mxDocFactory.createInstance ( "com.sun.star.text.Footnote" ) );
I don't know what "mxDocFactory" is in your code. If I take it from a
text document, creating a footnote works as expected, e.g. in Basic:
Sub Main
obj = ThisComponent.createInstance("com.sun.star.text.Footnote")
print obj.dbg_supportedinterfaces
End Sub
This will display all interfaces of the implementation class SwXFootnote.
Regards,
Mathias
--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Oracle: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.