[
https://issues.apache.org/jira/browse/ODFTOOLKIT-351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kejia Ye updated ODFTOOLKIT-351:
--------------------------------
Attachment: ODFToolkit-351.patch
Remove the old patch and upload a new one.
> [Simple]issues of TextSelection.replaceWith() methods
> -----------------------------------------------------
>
> Key: ODFTOOLKIT-351
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-351
> Project: ODF Toolkit
> Issue Type: Bug
> Components: simple api
> Affects Versions: 0.6-incubating
> Reporter: DaLi Liu
> Assignee: DaLi Liu
> Fix For: 0.6-incubating
>
> Attachments: ODFToolkit-351.patch, TestReplaceWithBasicCases.odt,
> TestTextSelectionCopySource.odt
>
>
> One of my customer is using the ODF toolkit Simple API to build their
> application, they want to include our new release package to their solution.
> They find following bugs on the Simple APIs TextSelection.replaceWith()
> methods , some of the issues can be a release blocked. We am fixing these
> issues, So I propose that I paused the release process, until the critical
> issues be fixed.
> The issues list:
> 1.When replacing some text "at the beginning of a document with a
> paragraph","positioned directly after a page break with a paragraph","at the
> beginning of a table's celltext with a paragraph" an empty paragraph will be
> added
> 2.When replacing the same text several times in a series, not all instances
> will be replaced.
> 3.When replacing some text with a file, all images are lost.
> 4.When replacing some text with a file,in the case where the paragraph
> containing the text-to-be-replaced has no other content, then the inserted
> document will have its sequence of paragraphs reversed.
> 5.When replacing some text with a file, some properties of paragraphs are
> lost.
> 6.When replacing some text with a file, style list in output file has several
> style sheets named irritatingly with identical names followed by differing
> numbers.
> For issues 1-5, they will be buges, we will fix it soon and commit them to
> trunk.
> For issues 6, it worked as design, we copy the styles from source file to
> target file, if the style name already exist in target file, the name be
> changed to follow by differin numbers. To avoid this propose add new api
> about replace with file, don't copy the styles from source file to target
> file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira