Creating a bulleted list?

The Application Programming Interface and the OASIS Open Document Format

Creating a bulleted list?

Postby RhinoCan » Tue Feb 19, 2013 11:36 pm

I'm writing Java programs that use the UNO API to create documents. Can anyone point me to Java examples that create bulleted lists?

I've been reading the Developer's Guide and there's a page that comes relatively close to what I want. Unfortunately, this is created numbered lists and there seems to be a lot of extra rigamarole involving creating arrays of property sets, selecting paragraphs, and so forth. At least I _think_ (and hope) it is over and above what I want. After all, I'm not trying to reformat an existing document, I am creating a new one from scratch. I'm basically trying to find code that says, in effect, "for this next bit of the document, I want to write a bulleted list with indentation values of such-and-such and a bullet character of a small filled circle. Then, after the list is done, I want to write paragraphs again."

Can anyone confirm that my code only needs to say "from this point until we're done the list, I want to see a list consisting of these sentences, using the indicated indentation and bullet"? Or do I really need to create styles, register them, etc. etc.?
OpenOffice 4.1.2 and Libre Office on Windows 10
User avatar
Posts: 80
Joined: Fri Jun 10, 2011 11:36 pm

Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 3 guests