title: openoffice: duplicating rows of a table in writer
body: <p>I need to programmatically duplicate rows of a Table in openoffice writer. </p>
  
  <p>It's not difficult to add rows via <code>table.Rows.insertByIndex(idx, count)</code>, that adds empty rows and it's easy to add text in that row assigning <code>DataArray</code> to the <code>CellRange</code>. Doing this way you loose control on the style of the cells and specifically if a cell has words with different style (bold/italic) they get flattened to the same face. What I need is to duplicate a row in a way that preserves the style of each word in the cell/row.</p>
  
  <p>This is the last step of a Python template system that uses openoffice (<a href="http://oootemplate.argolinux.org" rel="nofollow">http://oootemplate.argolinux.org</a>). I access the document via uno interface in Python but any language would do to explain the logic behind it.</p>