summaryrefslogtreecommitdiff
path: root/sw/inc/fesh.hxx
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-09-21 16:31:26 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-10-11 09:45:59 +0200
commit0f26c6ddda31221364b011a0b89286ecea303d89 (patch)
tree4afacc551f6b3a59b11431a915ffae85254db463 /sw/inc/fesh.hxx
parent59ed21b1720db5fd0326e1b723483b288725e662 (diff)
tdf#64242 sw optimal row height, not minimize
The previous optimal implementation was cloned as a new uno:MinimalColumnWidth function. Optimal should try to keep the table the same size, but ultimately the ideal row/table height will be balanced, so grow to achieve that if necessary. Optimize row height: Adjust the height of the selected rows to match the height of the tallest row in the selection (fit to content), without shrinking the table. This option is the same as minimizing row height and then distributing rows evenly except that it adds the benefit of preventing the table from shrinking. Change-Id: Ib772ae4943127d17a915cdae8cd6000db3a9d164 Reviewed-on: https://gerrit.libreoffice.org/60903 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/inc/fesh.hxx')
-rw-r--r--sw/inc/fesh.hxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 0fb81347dccd..f01fb6d9022a 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -655,8 +655,7 @@ public:
void SetBoxAlign( sal_uInt16 nOrient );
sal_uInt16 GetBoxAlign() const; ///< USHRT_MAX if ambiguous.
- /// Adjustment of Rowheights. Determine via bTstOnly if more than one row is selected.
- bool BalanceRowHeight( bool bTstOnly );
+ bool BalanceRowHeight( bool bTstOnly, const bool bOptimize = false );
void SetTabBorders( const SfxItemSet& rSet );
void GetTabBorders( SfxItemSet& rSet) const;