commit: Implement Basic Text to Table.

From: <msevior_at_physics.unimelb.edu.au>
Date: Wed Sep 29 2004 - 04:11:52 CEST

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: text/fmt/xp/fl_BlockLayout.cpp text/fmt/xp/fl_BlockLayout.h
CVS: text/fmt/xp/fv_View.h text/fmt/xp/fv_View_cmd.cpp
CVS: wp/ap/xp/ap_EditMethods.cpp
CVS: ----------------------------------------------------------------------
Implement basic Text to Table conversion.

It works like this.
1. Select some text.
2. Click table->Convert to Table
3. A table is created.
The columns contain each word in each paragraph in the selection. The rows
are each paragraph.

The number of columns in the table is defined by the number of seperate
words of the first block in the selection.

If the number of words in a later block is greater than those in the first
block the extra words are all placed in the final cell of the row.

If the number of words in a subsequent block are less than the number in
the first then the extra cells in the row are left blank.

Right now words are delimited by spaces, and any other punctuation marks
(TAB,;.: etc) .

The spaces and punctuation marks are not placed in the table.

Right now all formatting information in the blocks is lost upon doing
text to table.

I'll fix this soon.

Also I plan to have another option which is to split on all punctuation
marks except spaces so you can convert comma and tab seperated text with
words into different cells.

Cheers

Martin

I plan to split
Received on Wed Sep 29 04:12:16 2004

This archive was generated by hypermail 2.1.8 : Wed Sep 29 2004 - 04:12:22 CEST