Bug 156899 - Designation of table rows as headers should be consistent
Summary: Designation of table rows as headers should be consistent
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 157024 (view as bug list)
Depends on:
Blocks: Writer-Tables-Style
  Show dependency treegraph
 
Reported: 2023-08-24 18:46 UTC by Eyal Rozenberg
Modified: 2023-10-02 07:16 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2023-08-24 18:46:36 UTC
A table heading row is a table heading row.

Specifically, if one marks certain rows as the header rows, for the purposes of repeating across pages - the formatting for header rows, applied when using "Table | AutoFormat Styles...", should apply to all of them.

Similarly, any and all feature regarding table heading rows should respect the same number of rows recognized by AutoFormat and by Heading Rows Repeat. And - if being a header row is not already reflected in ODF - it should be.
Comment 1 Eyal Rozenberg 2023-08-24 19:11:01 UTC
Note that the ODF spec defines very clearly and generally which rows are the headers: 

> The <table:table-header-rows> element represents header rows in a table. 
> It is composed of adjacent <table:table-row> 9.1.3 elements. 

See here:

https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#__RefHeading__1415596_253892949

... and everything should conform to that and affect that.
Comment 2 Dieter 2023-09-06 17:11:56 UTC
So whre do you define multiple rows as heading rows? And whre can I see this?
=> NEEDINFO
Comment 3 Eyal Rozenberg 2023-09-06 19:23:18 UTC
*** Bug 157024 has been marked as a duplicate of this bug. ***
Comment 4 Eyal Rozenberg 2023-09-06 19:24:19 UTC
Comment from the dupe bug:

> However, when we apply a table "style", which involves header 
> row formatting - exactly one row gets this formatting, 
> regardless of how many heading rows exist, including the case
> of there being no heading rows. Applying the style does not
> even coerce the number of heading rows 1.
>
> Instead, the application of a table style should respect the
> number of heading rows set for the table. 
>
> Moreover, when the number of heading rows changes - the 
> header row style should apply, or be unapplied, to the rows 
> which change status. However this part of the bug is unlikely
> to be fixed without addressing the fact that table "styles"
> are not actual styles; see bug 151264.
Comment 5 Eyal Rozenberg 2023-09-06 19:25:32 UTC Comment hidden (obsolete)
Comment 6 Eyal Rozenberg 2023-09-06 19:25:54 UTC
(In reply to Dieter from comment #2)
> So whre do you define multiple rows as heading rows? 

1. You define this, currently, using the table menus, with the item "Heading rows repeat.

2. It doesn't matter. ODF supports it, so I could just write it in the ODF file.

> And whre can I see this?

In the ODF file, as I've indicated in comment #1. Look for <table:table-header-rows> .
Comment 7 Stéphane Guillou (stragu) 2023-09-19 11:15:49 UTC
Reproduced that the heading formatting does not propagate to extra row headings (regardless of if the heading is repeated before or after applying the table style).

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b3fdd999f87312447d03915585812b3a5cd48141
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Same in 5.4.0.3.