incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiao Ting Xiao <>
Subject How to insert Table with AutoCaption in swriter?
Date Thu, 23 Aug 2012 01:19:21 GMT
Hi all,

I want to use UNO api to verify swriter's AutoCaption configuration.
In order to whether it is feasible, I made the following steps:

Step 1,
I manually configure swriter's AutoCaption via menu
Tools-->Options--> Writer-->AutoCaption, check
" Writer Table" to automatically add caption when inserting

Step 2,
I run the following script to insert table via UNO api, but caption was not
added automatically.

        XComponent xComponent = unoApp.newDocument("swriter");
        XTextDocument xTextDocument
=(XTextDocument)UnoRuntime.queryInterface(XTextDocument.class, xComponent);
        XText xText = xTextDocument.getText();
        XTextCursor xTextCursor = xText.createTextCursor();
        XMultiServiceFactory xWriterFactory
        XTextTable xTable =

Is there extra operation I need to do? or it is not feasible to verify
AutoCaption configuration via UNO api?

Thanks your response.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message