From 662e62e2ef71fdea754859246a81481f604f9ae4 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Thu, 27 Mar 2025 15:07:32 -0800 Subject: [PATCH] tdf#162840 Hypenation Sidebar deck only looks good in gtk3 UI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Makes other VCL plugins look better. Change-Id: Ic8fecadfc8612cec102e60bc9b6ae5923c169d1c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183451 Tested-by: Jenkins Tested-by: László Németh Reviewed-by: László Németh --- .../sidebar/paragraph/ParaPropertyPanel.cxx | 2 + svx/uiconfig/ui/sidebarparagraph.ui | 371 +++++++++--------- 2 files changed, 193 insertions(+), 180 deletions(-) diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index b6ecad25c21a..deff3dcf1ec5 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -167,6 +167,7 @@ void ParaPropertyPanel::set_hyphenation_base_visible( bool bVisible ) // TODO: add automatic hyphenation for these, too mxHyphenationLabel->set_visible(bVisible); mxTBxHyphenation->set_item_visible("Hyphenate", bVisible); + ReSize(); } void ParaPropertyPanel::set_hyphenation_other_visible( bool bVisible ) @@ -189,6 +190,7 @@ void ParaPropertyPanel::set_hyphenation_other_visible( bool bVisible ) mxCompound->get_widget().set_visible(bVisible); mxWordLength->get_widget().set_visible(bVisible); mxZone->get_widget().set_visible(bVisible); + ReSize(); } void ParaPropertyPanel::InitToolBoxHyphenation() diff --git a/svx/uiconfig/ui/sidebarparagraph.ui b/svx/uiconfig/ui/sidebarparagraph.ui index a8198921cbbf..c3f7c10466d5 100644 --- a/svx/uiconfig/ui/sidebarparagraph.ui +++ b/svx/uiconfig/ui/sidebarparagraph.ui @@ -7,6 +7,18 @@ 1 10 + + 4 + 99 + 4 + 1 + 10 + + + 55.88 + 1 + 10 + 100 1 @@ -53,24 +65,12 @@ 1 10 - - 4 - 99 - 4 - 1 - 10 - - - 55.88 - 1 - 10 - True False - + True False @@ -95,6 +95,7 @@ True + False True @@ -105,6 +106,7 @@ True + False True @@ -115,6 +117,7 @@ True + False True @@ -125,6 +128,7 @@ True + False True @@ -151,6 +155,7 @@ True + False True @@ -161,6 +166,7 @@ True + False True @@ -186,6 +192,7 @@ True + False True @@ -196,6 +203,7 @@ True + False True @@ -206,6 +214,7 @@ True + False True @@ -261,6 +270,7 @@ True + False True @@ -271,6 +281,7 @@ True + False True @@ -394,6 +405,7 @@ True + False Line Spacing True @@ -448,6 +460,7 @@ True + False Increase Indent True @@ -459,6 +472,7 @@ True + False Decrease Indent True @@ -470,6 +484,7 @@ True + False Switch to Hanging Indent True @@ -651,164 +666,8 @@ 2 - - - True - False - vertical - 3 - - - True - False - horizontal - 3 - - - True - True - Hyphenation - icons - False - 2 - - - True - 1 - 1 - True - cmd/sc_changecasetoupper.png - Hyphenate CAPS - - - False - False - - - - - True - True - 1 - 1 - cmd/sc_textbodyparastyle.png - Hyphenate Last Paragraph Word - - - False - False - - - - - True - True - 1 - 1 - cmd/sc_insertfooter.png - Hyphenate Last Full Paragraph Line - - - False - False - - - - - True - True - 1 - 1 - cmd/sc_formatcolumns.png - Hyphenate Across Column - - - False - False - - - - - False - True - 1 - 1 - cmd/sc_showtwopages.png - Hyphenate Across Page - - - False - False - - - - - False - True - 1 - 1 - cmd/sc_showmultiplepages.png - Hyphenate Across Spread - - - False - False - - - - - True - True - 1 - 1 - cmd/sc_hyphenation.png - Hyphenation - - - False - False - - - - - False - True - 1 - - - - - True - False - True - _Hyphenation: - True - hyphenation - 0 - - - False - True - 0 - - - - - False - True - 0 - - - - - 0 - 4 - 2 - - - False False True At line end: @@ -823,7 +682,6 @@ - False False True At line begin: @@ -838,7 +696,6 @@ - False False True Compound constituent: @@ -853,7 +710,6 @@ - False False True Consecutive lines: @@ -868,7 +724,6 @@ - False False True Word length: @@ -883,7 +738,6 @@ - False False True Hyphenation zone: @@ -898,7 +752,6 @@ - False True Characters at Line End True @@ -913,7 +766,6 @@ - False True Characters at Line Begin True @@ -928,7 +780,6 @@ - False True Compound Constituent Characters at Line End True @@ -943,7 +794,6 @@ - False True Maximum Consecutive Hyphenated Lines True @@ -958,7 +808,6 @@ - False True Minimum Word Length True @@ -973,7 +822,6 @@ - False True Line Break Between Words True @@ -996,6 +844,7 @@ True + False True @@ -1006,6 +855,7 @@ True + False True @@ -1016,6 +866,7 @@ True + False True @@ -1042,6 +893,7 @@ True + False True @@ -1055,6 +907,165 @@ 1 + + + True + False + 6 + + + True + False + _Hyphenation: + True + hyphenation + 0 + + + False + True + 0 + + + + + True + False + True + 6 + + + True + False + Hyphenation + True + icons + False + 2 + + + True + False + 1 + 1 + Hyphenate CAPS + True + cmd/sc_changecasetoupper.png + + + False + False + + + + + True + False + 1 + 1 + Hyphenate Last Paragraph Word + True + cmd/sc_textbodyparastyle.png + + + False + False + + + + + True + False + 1 + 1 + Hyphenate Last Full Paragraph Line + True + cmd/sc_insertfooter.png + + + False + False + + + + + True + False + 1 + 1 + Hyphenate Across Column + True + cmd/sc_formatcolumns.png + + + False + False + + + + + False + 1 + 1 + Hyphenate Across Page + True + cmd/sc_showtwopages.png + + + False + False + + + + + False + 1 + 1 + Hyphenate Across Spread + True + cmd/sc_showmultiplepages.png + + + False + False + + + + + True + False + 1 + 1 + Hyphenation + True + cmd/sc_hyphenation.png + + + False + False + + + + + False + True + 0 + + + + + False + True + 1 + + + + + 0 + 4 + 2 + + 0