From 5e6ebfc35f4eab64a2ef2455771769314618e019 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 5 Jun 2013 12:08:18 +0200 Subject: sidebar conversion tutorial: Remove explicit assignment of images. This is taken care of by using the correct .uno: commands in the "action_name" part of the .ui. Change-Id: I7710816b72990c4c535da0491e75edad5bbf30b3 --- sc/source/ui/sidebar/AlignmentPropertyPanel.cxx | 14 -------------- sc/source/ui/sidebar/AlignmentPropertyPanel.hxx | 8 -------- 2 files changed, 22 deletions(-) (limited to 'sc/source/ui/sidebar') diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx index 8fd2ae9ee667..8d3a77c286a4 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx @@ -81,13 +81,6 @@ AlignmentPropertyPanel::AlignmentPropertyPanel( maWrapTextControl(SID_ATTR_ALIGN_LINEBREAK, *pBindings, *this), maAngleControl(SID_ATTR_ALIGN_DEGREES, *pBindings, *this), maStackControl(SID_ATTR_ALIGN_STACKED, *pBindings, *this), - maIMGAlignLeft(ScResId(IMG_ALIGN_LEFT)), - maIMGAlignCenter(ScResId(IMG_ALIGN_CENTER)), - maIMGAlignRight(ScResId(IMG_ALIGN_RIGHT)), - maIMGAlignJust(ScResId(IMG_ALIGN_JUST)), - maIMGAlignTop(ScResId(IMG_ALIGN_TOP)), - maIMGAlignCenterV(ScResId(IMG_ALIGN_CENTER_V)), - maIMGAlignBottom(ScResId(IMG_ALIGN_BOTTOM)), meHorAlignState(SVX_HOR_JUSTIFY_STANDARD), meVerAlignState(SVX_VER_JUSTIFY_STANDARD), mbMultiDisable(false), @@ -112,10 +105,6 @@ AlignmentPropertyPanel::~AlignmentPropertyPanel() void AlignmentPropertyPanel::Initialize() { - mpTBHorizontal->SetItemImage(ID_SUBSTLEFT, maIMGAlignLeft); - mpTBHorizontal->SetItemImage(ID_SUBSTCENTER, maIMGAlignCenter); - mpTBHorizontal->SetItemImage(ID_SUBSTRIGHT, maIMGAlignRight); - mpTBHorizontal->SetItemImage(ID_SUBSTJUSTIFY, maIMGAlignJust); Size aTbxSize( mpTBHorizontal->CalcWindowSizePixel() ); mpTBHorizontal->SetOutputSizePixel( aTbxSize ); mpTBHorizontal->SetBackground(Wallpaper()); @@ -123,9 +112,6 @@ void AlignmentPropertyPanel::Initialize() Link aLink = LINK(this, AlignmentPropertyPanel, TbxHorAlignSelectHdl); mpTBHorizontal->SetSelectHdl ( aLink ); - mpTBVertical->SetItemImage(IID_VERT_TOP, maIMGAlignTop); - mpTBVertical->SetItemImage(IID_VERT_CENTER, maIMGAlignCenterV); - mpTBVertical->SetItemImage(IID_VERT_BOTTOM, maIMGAlignBottom); Size aTbxSize2( mpTBVertical->CalcWindowSizePixel() ); mpTBVertical->SetOutputSizePixel( aTbxSize2 ); mpTBVertical->SetBackground(Wallpaper()); diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx index eae2d2a85b5e..b2e44901fa20 100644 --- a/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx +++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.hxx @@ -78,14 +78,6 @@ private: ::sfx2::sidebar::ControllerItem maAngleControl; ::sfx2::sidebar::ControllerItem maStackControl; - Image maIMGAlignLeft; - Image maIMGAlignCenter; - Image maIMGAlignRight; - Image maIMGAlignJust; - Image maIMGAlignTop; - Image maIMGAlignCenterV; - Image maIMGAlignBottom; - SvxCellHorJustify meHorAlignState; SvxCellVerJustify meVerAlignState; -- cgit v1.2.3