Kaydet (Commit) 5e6ebfc3 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

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
üst e9cfaf1d
......@@ -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());
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment