Nicolas Mailhot wrote: > Le samedi 22 juillet 2006 à 16:12 +0200, Mathias Bauer a écrit : >> Nicolas Mailhot wrote: >> >> > Is there a way to take an OO.o doc, get all letters replaced with X or x, >> >> I don't know why I didn't see that immediately: replacing text will >> change the layout if you don't make sure that all relevant parts of text >> have the same size (not the same number of characters!). This can be >> complicated, e.g. when you have to replace text that wraps an image. The >> minimum requirement is that the number of lines in each paragraph will >> not change. > > Mathias, > > It's fairly easy to pad a § with new xxxxxxxxxxxs in that case. I don't > believe text is a problem. 99% of the times the problem is in the part > of the document which are hidden from the user : formatting rules, > pagination, etc. Reproducing these rules exactly in a synthetic document > is hard. Typing a few xs in contrast is trivial
It looks easy in the first place, especially if you do it manually, but an algorithm that replaces the text of a paragraph in a way that the size of the text in all areas doesn't change needs some thought and also some work. Consider a text containing objects anchored at a paragraph, others anchored at a character or as a character with different alignments and wrapping modes - it can become quite challenging to replace the text by dummy text in a way that the document is layouted in the same way as before. Sometimes only subtle changes make a document layout loop or not. You are right that other parts of the document can create bigger problems, but IMHO even the text replacement is at least not trivial. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
