diff options
Diffstat (limited to 'cui/source/tabpages/dstribut.cxx')
-rw-r--r-- | cui/source/tabpages/dstribut.cxx | 37 |
1 files changed, 14 insertions, 23 deletions
diff --git a/cui/source/tabpages/dstribut.cxx b/cui/source/tabpages/dstribut.cxx index 433b5e6e2ab5..d45ba2df61ca 100644 --- a/cui/source/tabpages/dstribut.cxx +++ b/cui/source/tabpages/dstribut.cxx @@ -88,36 +88,27 @@ SvxDistributePage::SvxDistributePage( : SvxTabPage(pWindow, CUI_RES(RID_SVXPAGE_DISTRIBUTE), rInAttrs), meDistributeHor(eHor), meDistributeVer(eVer), - maFlHorizontal (this, CUI_RES(FL_HORIZONTAL )), + maFlHorizontal (this, CUI_RES(FL_HORIZONTAL )), maBtnHorNone (this, CUI_RES(BTN_HOR_NONE )), maBtnHorLeft (this, CUI_RES(BTN_HOR_LEFT )), - maBtnHorCenter (this, CUI_RES(BTN_HOR_CENTER )), + maBtnHorCenter (this, CUI_RES(BTN_HOR_CENTER )), maBtnHorDistance (this, CUI_RES(BTN_HOR_DISTANCE )), - maBtnHorRight (this, CUI_RES(BTN_HOR_RIGHT )), + maBtnHorRight (this, CUI_RES(BTN_HOR_RIGHT )), maHorLow (this, CUI_RES(IMG_HOR_LOW )), - maHorCenter (this, CUI_RES(IMG_HOR_CENTER )), + maHorCenter (this, CUI_RES(IMG_HOR_CENTER )), maHorDistance (this, CUI_RES(IMG_HOR_DISTANCE )), maHorHigh (this, CUI_RES(IMG_HOR_HIGH )), maFlVertical (this, CUI_RES(FL_VERTICAL )), maBtnVerNone (this, CUI_RES(BTN_VER_NONE )), maBtnVerTop (this, CUI_RES(BTN_VER_TOP )), - maBtnVerCenter (this, CUI_RES(BTN_VER_CENTER )), + maBtnVerCenter (this, CUI_RES(BTN_VER_CENTER )), maBtnVerDistance (this, CUI_RES(BTN_VER_DISTANCE )), - maBtnVerBottom (this, CUI_RES(BTN_VER_BOTTOM )), - maVerLow (this, CUI_RES(IMG_VER_LOW )), - maVerCenter (this, CUI_RES(IMG_VER_CENTER )), - maVerDistance (this, CUI_RES(IMG_VER_DISTANCE )), - maVerHigh (this, CUI_RES(IMG_VER_HIGH )) + maBtnVerBottom (this, CUI_RES(BTN_VER_BOTTOM )), + maVerLow (this, CUI_RES(IMG_VER_LOW )), + maVerCenter (this, CUI_RES(IMG_VER_CENTER )), + maVerDistance (this, CUI_RES(IMG_VER_DISTANCE )), + maVerHigh (this, CUI_RES(IMG_VER_HIGH )) { - maHorLow.SetModeImage( Image( CUI_RES( IMG_HOR_LOW_H ) ), BMP_COLOR_HIGHCONTRAST ); - maHorCenter.SetModeImage( Image( CUI_RES( IMG_HOR_CENTER_H ) ), BMP_COLOR_HIGHCONTRAST ); - maHorDistance.SetModeImage( Image( CUI_RES( IMG_HOR_DISTANCE_H ) ), BMP_COLOR_HIGHCONTRAST ); - maHorHigh.SetModeImage( Image( CUI_RES( IMG_HOR_HIGH_H ) ), BMP_COLOR_HIGHCONTRAST ); - maVerDistance.SetModeImage( Image( CUI_RES( IMG_VER_DISTANCE_H ) ), BMP_COLOR_HIGHCONTRAST ); - maVerLow.SetModeImage( Image( CUI_RES( IMG_VER_LOW_H ) ), BMP_COLOR_HIGHCONTRAST ); - maVerCenter.SetModeImage( Image( CUI_RES( IMG_VER_CENTER_H ) ), BMP_COLOR_HIGHCONTRAST ); - maVerHigh.SetModeImage( Image( CUI_RES( IMG_VER_HIGH_H ) ), BMP_COLOR_HIGHCONTRAST ); - FreeResource(); } @@ -180,11 +171,11 @@ void __EXPORT SvxDistributePage::Reset(const SfxItemSet& ) switch(meDistributeHor) { - case SvxDistributeHorizontalNone : maBtnHorNone.SetState(TRUE); break; - case SvxDistributeHorizontalLeft : maBtnHorLeft.SetState(TRUE); break; - case SvxDistributeHorizontalCenter : maBtnHorCenter.SetState(TRUE); break; + case SvxDistributeHorizontalNone : maBtnHorNone.SetState(TRUE); break; + case SvxDistributeHorizontalLeft : maBtnHorLeft.SetState(TRUE); break; + case SvxDistributeHorizontalCenter : maBtnHorCenter.SetState(TRUE); break; case SvxDistributeHorizontalDistance : maBtnHorDistance.SetState(TRUE); break; - case SvxDistributeHorizontalRight : maBtnHorRight.SetState(TRUE); break; + case SvxDistributeHorizontalRight : maBtnHorRight.SetState(TRUE); break; } maBtnVerNone.SetState(FALSE); |