:: com :: sun :: star :: text ::

interface XTextConvert

Methods' Summary
convertToTextFrame moves the paragraphs from Start to End into a text frame.  
convertToTable converts the paragraphs marked in TableRanges into a table.  
Methods' Details
convertToTextFrame
XTextContent
convertToTextFrame( [in] XTextRange  Start,
[in] XTextRange  End,
[in] ::com::sun::star::beans::PropertyValues  FrameProperties )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::beans::UnknownPropertyException,
::com::sun::star::beans::PropertyVetoException );

Description
moves the paragraphs from Start to End into a text frame.
Parameter Start
start position of frame content
Parameter End
end position of frame content
Parameter FrameProperties
contains the properties of the to-be-created text frame
Returns
the newly created text frame
convertToTable
XTextTable
convertToTable( [in] sequence< sequence< sequence< XTextRange > > >  TableRanges,
[in] sequence< sequence< ::com::sun::star::beans::PropertyValues > >  CellProperties,
[in] sequence< ::com::sun::star::beans::PropertyValues >  RowProperties,
[in] ::com::sun::star::beans::PropertyValues  TableProperties )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::beans::UnknownPropertyException );

Description
converts the paragraphs marked in TableRanges into a table.
Parameter TableRanges
contains the TextRange interfaces of the paragraphs, cells and rows of the table.

The inner sequence contains the start and end paragraphs of each table cell. The next sequence groups the cells to a row and the outer sequence groups the rows of the table.

Parameter CellProperties
contains the properties of each cell.
Parameter RowProperties
contains the properties of each table row.
Parameter TableProperties
contains the properties of the table.
Returns
the created table.
Top of Page