Hallo, I am afraid, that I don‘t understand what are the scopes of OdfElements and Controls. Is there a possibility to get the corresponding Control from a OdfElement? If someone can advice me something to read in order to understand the concept of OdfElement and Control, it would be great.
My concrete problem is: I read a valid odt-document, that includes a marked <text:p>. I find the OdfElement corresponding to the marked <text:p> by navigating through the document. I can convert this OdfElement into a Paragraph by: Paragraph paragraph = Paragraph.getInstanceof((TextParagraphElementBase)odfParagraph); As the parent of this OdfElement actually includes a paragraph as a child it should be possible to convert the parent into a ParagraphContainer, isn’t it? So I am looking for a function like: ParagraphContainer pcontainer = getParagraphContainer(paragraph.getOdfElement().getParentNode()); Can somebody give a hint, how to do this? Or is there a function that gives me the Control from a OdfElement? (as I understood that the ParagraphContainer is a Control and not a OdfElement.) Thanks in advance Georg ________________________________ safir Wirtschaftsinformationsdienst GmbH Sitz der Gesellschaft: Möllendorffstraße 49, 10367 Berlin Geschäftsführer: Thilo Kind Registergericht: Amtsgericht Berlin Charlottenburg, HRB 66681 USt-ID: DE 193584747 ________________________________ -- This email was Malware checked by UTM 9. http://www.sophos.com
