diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-11-23 08:38:19 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-11-23 09:54:27 +0100 |
commit | b1b0cc1b0bb473155b5b089199ca99bb1dc40e42 (patch) | |
tree | 74bf1e849cd3843d1d3ca680c1ebf7e817da10b0 /sw/inc/swatrset.hxx | |
parent | 2b403a8ddce089689ed3baefa75e0ea5c77724e1 (diff) |
sw floattable: add per-frame wrap-on-all-pages mode
Currently the wrap-on-all pages mode is off by default and a
document-level setting can enable it for all split flys.
Allowing this at a per-frame level (and not only per-doc level) is
suggested in <https://issues.oasis-open.org/browse/OFFICE-4150>. Given
that this floating table proposal is coming from us, it makes sense to
also support this additional attribute from the proposal, even if it's
not supported by Word.
Fix this by adding a new SwFormatWrapTextAtFlyStart property on fly
frames: this is meant to be enabled when wrap-on-all-pages is wanted for
this fly, but it's disabled at a per-doc level.
Unlike SwFormatFlySplit, this is meant to be easy at a layout level,
since SwFlyAtContentFrame::IsWrapOnAllPages() is already a per-frame
function, it is just backed with a per-doc setting.
Change-Id: I8f562102c2bc366a36c08895b681c4a2ab256bd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159847
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/inc/swatrset.hxx')
-rw-r--r-- | sw/inc/swatrset.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/swatrset.hxx b/sw/inc/swatrset.hxx index 667121f35327..b729ac14aaac 100644 --- a/sw/inc/swatrset.hxx +++ b/sw/inc/swatrset.hxx @@ -88,6 +88,7 @@ class SwFormatEditInReadonly; class SwFormatLayoutSplit; class SwFormatRowSplit; class SwFormatFlySplit; +class SwFormatWrapTextAtFlyStart; class SwFormatChain; class SwFormatFootnoteAtTextEnd; class SwFormatEndAtTextEnd; @@ -287,6 +288,7 @@ public: inline const SwFormatLayoutSplit &GetLayoutSplit( bool = true ) const; inline const SwFormatRowSplit &GetRowSplit( bool = true ) const; inline const SwFormatFlySplit &GetFlySplit( bool = true ) const; + inline const SwFormatWrapTextAtFlyStart &GetWrapTextAtFlyStart( bool = true ) const; inline const SwFormatChain &GetChain( bool = true ) const; inline const SwFormatLineNumber &GetLineNumber( bool = true ) const; inline const SwFormatFootnoteAtTextEnd &GetFootnoteAtTextEnd( bool = true ) const; |