Issue 89769 - hidden columns/rows shouldn't be exported via RTF
Summary: hidden columns/rows shouldn't be exported via RTF
Alias: None
Product: Calc
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.0 Beta
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Keywords: needhelp
: 21604 (view as issue list)
Depends on:
Reported: 2008-05-22 08:23 UTC by andreas.martens
Modified: 2017-05-20 11:11 UTC (History)
3 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---

Patch will hide hidden items in rtfexport (2.95 KB, patch)
2011-02-11 13:22 UTC, scf
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description andreas.martens 2008-05-22 08:23:40 UTC
Follow-up of issue 84699
Fill cell A1, B1 and C1
Hide column B
Select A1-C1
Copy into clipboard
Paste into new Writer document as RTF (paste special)
=> the B-column seems not to be inserted but if you save this document and
reload it, you will see the content of B. When issue 84699 is fixed (CWS
sw30bf05) you will see the hiddden column immediately after pasting (with
minimum width of a column).
Other scenario:
Hide a row (in Calc) and copy/paste (into Writer) a selection which contains
this hidden row
=> The hidden row will be inserted and visible in Writer.

Hidden rows and columns should not be exported in RTF.
Comment 1 gbpacheco 2010-06-23 03:08:49 UTC

Any news about this issue? 

Comment 2 daniel.rentz 2010-06-23 08:00:58 UTC
Sorry, am busy with other stuff, and never worked on the RTF filter. Nobody
provided a patch, ...
@er: do you know anything about RTF export?
Comment 3 ooo 2010-06-23 12:42:58 UTC
Implementation is in sc/source/filter/rtf/rtfexp.cxx and pretty straight
forward. Basically each row would have to be checked for hidden or filtered
before calling ScRTFExport::WriteRow() and there each column before calling
ScRTFExport::WriteCell(). Note that places that use pCellX will need attention
as well. In fact pCellX could be initialized in ScRTFExport::WriteTab() to set a
column width to 0 if a column is hidden and not write cells in columns of width 0.

Adding keyword easy2dev so this issue shows up in the query at the bottom of and someone can jump on it and provide a patch.
Comment 4 gbpacheco 2010-06-30 01:50:11 UTC

 I think 21604 and 89769 are the same problem, correct?

Comment 5 ooo 2010-06-30 11:37:57 UTC
*** Issue 21604 has been marked as a duplicate of this issue. ***
Comment 6 scf 2011-02-11 13:20:26 UTC
Hi all,

this is my very first contibution to ooo, so please be patient :). I've created
a patch with hg diff, hope that works. Don't hesitate to mail me if something's
wrong, I'm here to learn.

Comment 7 scf 2011-02-11 13:22:12 UTC
Created attachment 75817 [details]
Patch will hide hidden items in rtfexport
Comment 8 daniel.rentz 2011-02-11 13:33:06 UTC
Eike, do you know the RTF filter and can review the patch?
Comment 9 Rob Weir 2013-03-11 15:02:08 UTC
I'm adding this comment to all open issues with Issue Type == PATCH.  We have 220 such issues, many of them quite old.  I apologize for that.  

We need your help in prioritizing which patches should be integrated into our next release, Apache OpenOffice 4.0.

If you have submitted a patch and think it is applicable for AOO 4.0, please respond with a comment to let us know.

On the other hand, if the patch is no longer relevant, please let us know that as well.

If you have any general questions or want to discuss this further, please send a note to our dev mailing list:


Comment 10 Marcus 2017-05-20 11:11:43 UTC
Reset assigne to the default "".