https://bugs.documentfoundation.org/show_bug.cgi?id=147176

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
           Keywords|                            |difficultyBeginner,
                   |                            |easyHack, skillCpp

--- Comment #5 from Mike Kaganski <[email protected]> ---
So this easyhack needs:
1. Changing the order of the filters (testing RTF before HTML), code pointer in
comment 4;
2. Making RTF import use selected table name by default (code pointer - commit
https://git.libreoffice.org/core/+/d736eef49512ee4623c7fe8d8b6fcb09669df7f8
"INTEGRATION: CWS dba24a (1.32.16); FILE MERGED");
3. Making RTF import allow pasting single rata row without column headers. Code
pointer: in ORTFReader::NextToken, see case RTF_TROWD, and its handling of
m_bAppendFirstLine. The problem there is that the SvParser (a parent class)
enters a specific state (SvParserState::accepted), and its next character gets
set to something, that is different from the values that are expected at the
stream position that is being reset at that point; so the task is to restore
these values (i.e., restore the parser state) together with the restoring of
rInput position.

The end result should allow the following operation:

1. In a new Base database, create a table with two text (VARCHAR) columns
(first set as primary key);
2. In a new Calc document, put "a b  c   d" into A1, and "e     f      g" into
B1;
3. Select row 1 in the Calc document and copy to clipboard;
4. In the Base database, select the table in the Tables view, and press Ctrl+V
to paste;
5. In the Copy Table dialog, make sure that the selected table name is
automatically set in the Table name box, Append data is pre-selected (and Use
first line as column names is checked);
6. Uncheck Use first line as column names;
7. Click Create button;
8. Check that the row is added to the table, and has the proper spaces.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to