Repository navigation
feat: headers and footers - #202
Merged
Merged
Conversation
…ike it, turned on and off from the Format menu
…arets follow undo into their part, and body-only things stay out of bands
Member
Author
|
Review fixes are in the second commit. Critical
Important
Minors
Deferred: 11, popup ids keyed by path alone. Bands no longer get comments or notes from odox. Column drags and change decisions inside a header table aren't acted on. |
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #165
TextDocument::set_headerandset_footergive the first master page astyle:headerorstyle:footer, with an empty paragraph in the Header or Footer style where the document has it, or take it away. First and left variants are left untouched.band_pathgives the band's path in the styles part.Editing::record_styles_partrecords an edit to the styles part alone.FlowModel::in_styles_partmakes every edit step record the styles part, so typing, the toolbar, links and fields work in a header and undo puts it back. Tested:typing_in_header_changes_styles_part_only,undo_restores_header(the undo test fails withoutin_styles_part).turning_header_off_asks_when_not_empty), and each toggle is one undo step.