From ef530d397b021a9606bb3b3abe8c2290a1d94c59 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Wed, 10 Jun 2015 13:48:49 +0300 Subject: tdf#87651 Add outline buttons to impress sidebar Change-Id: Id3cf58660bfcaf7424d027773894ce6888df788a --- svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 4 + svx/source/sidebar/paragraph/ParaPropertyPanel.hxx | 1 + svx/uiconfig/ui/sidebarparagraph.ui | 123 ++++++++++++++++----- 3 files changed, 102 insertions(+), 26 deletions(-) (limited to 'svx') diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index c26d4ecf7eb4..6555b924d465 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -151,6 +151,8 @@ void ParaPropertyPanel::HandleContextChange ( default: break; } + + mpTBxOutline->Show( maContext.GetApplication_DI() == sfx2::sidebar::EnumContext::Application_DrawImpress ); } void ParaPropertyPanel::DataChanged (const DataChangedEvent& rEvent) @@ -597,6 +599,7 @@ ParaPropertyPanel::ParaPropertyPanel(vcl::Window* pParent, //NumBullet&Backcolor get(mpTBxNumBullet, "numberbullet"); get(mpTBxBackColor, "backgroundcolor"); + get(mpTBxOutline, "outline"); //Paragraph spacing get(mpTopDist, "aboveparaspacing"); mpTopDist->set_width_request(mpTopDist->get_preferred_size().Width()); @@ -624,6 +627,7 @@ void ParaPropertyPanel::dispose() mpTBxVertAlign.clear(); mpTBxNumBullet.clear(); mpTBxBackColor.clear(); + mpTBxOutline.clear(); mpTopDist.clear(); mpBottomDist.clear(); mpTbxIndent_IncDec.clear(); diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx index 0e9877517efd..5d82886f418e 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.hxx @@ -78,6 +78,7 @@ private: VclPtr mpTBxVertAlign; //NumBullet&Backcolor VclPtr mpTBxNumBullet; + VclPtr mpTBxOutline; VclPtr mpTBxBackColor; //Paragraph spacing VclPtr mpTopDist; diff --git a/svx/uiconfig/ui/sidebarparagraph.ui b/svx/uiconfig/ui/sidebarparagraph.ui index 4b4897faf255..0d71cb74b3a5 100644 --- a/svx/uiconfig/ui/sidebarparagraph.ui +++ b/svx/uiconfig/ui/sidebarparagraph.ui @@ -58,32 +58,6 @@ 1 - - - True - False - True - Paragraph Background Color - end - - - 105 - True - False - .uno:BackgroundColor - True - - - False - True - - - - - 1 - 1 - - True @@ -639,6 +613,103 @@ 2 + + + True + False + + + True + False + True + Paragraph Background Color + end + + + 105 + True + False + .uno:BackgroundColor + True + + + False + True + + + + + False + True + end + 0 + + + + + True + False + + + True + False + .uno:OutlineLeft + True + + + False + True + + + + + True + False + .uno:OutlineRight + True + + + False + True + + + + + True + False + .uno:OutlineUp + True + + + False + True + + + + + True + False + .uno:OutlineDown + True + + + False + True + + + + + False + True + 1 + + + + + 1 + 1 + + 0 -- cgit