Kaydet (Commit) a41e5ef9 authored tarafından Pedro Giffuni's avatar Pedro Giffuni Kaydeden (comit) Caolán McNamara

Sidebar: fix some typos in function naming.

Mostly found by:	Noel Grandin
Reviewed by:		Andre Fischer

(cherry picked from commit 1ad216c0)

Conflicts:
	svx/source/sidebar/line/LineWidthControl.cxx
	svx/source/sidebar/line/LineWidthControl.hxx

Change-Id: I662a262d2cd920b54338c16bf688181b95e2f863
üst 7242fe6e
......@@ -51,7 +51,7 @@ LineWidthControl::LineWidthControl (
mnCustomWidth(0),
mbCustom(false),
mbCloseByEdit(false),
mnTmpCusomWidth(0),
mnTmpCustomWidth(0),
mbVSFocus(true),
maIMGCus(SVX_RES(IMG_WIDTH_CUSTOM)),
maIMGCusGray(SVX_RES(IMG_WIDTH_CUSTOM_GRAY))
......@@ -278,7 +278,7 @@ IMPL_LINK(LineWidthControl, VSSelectHdl, void *, pControl)
mrLinePropertyPanel.SetWidthIcon(iPos);
mrLinePropertyPanel.SetWidth(nVal);
mbCloseByEdit = false;
mnTmpCusomWidth = 0;
mnTmpCustomWidth = 0;
}
else if(iPos == 9)
{//last custom
......@@ -291,7 +291,7 @@ IMPL_LINK(LineWidthControl, VSSelectHdl, void *, pControl)
mpBindings->GetDispatcher()->Execute(SID_ATTR_LINE_WIDTH, SFX_CALLMODE_RECORD, &aWidthItem, 0L);
mrLinePropertyPanel.SetWidth(nVal);
mbCloseByEdit = false;
mnTmpCusomWidth = 0;
mnTmpCustomWidth = 0;
}
else
{
......@@ -329,30 +329,11 @@ IMPL_LINK(LineWidthControl, MFModifyHdl, void *, pControl)
mpBindings->GetDispatcher()->Execute(SID_ATTR_LINE_WIDTH, SFX_CALLMODE_RECORD, &aWidthItem, 0L);
mbCloseByEdit = true;
mnTmpCusomWidth = nTmp;
/*for(sal_uInt16 i = 0; i < 8; i++)
{
if(nTmp == (sal_Int32)maVSWidth.GetItemData(i))
{
mbCloseByEdit = false;
break;
}
}*/
mnTmpCustomWidth = nTmp;
}
return( 0L );
}
} } // end of namespace svx::sidebar
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -44,7 +44,7 @@ public:
void SetWidthSelect( long lValue, bool bValuable, SfxMapUnit eMapUnit);
bool IsCloseByEdit() { return mbCloseByEdit;}
long GetTmpCustomWidth() { return mnTmpCusomWidth;}
long GetTmpCustomWidth() { return mnTmpCustomWidth;}
private:
LinePropertyPanel& mrLinePropertyPanel;
......@@ -59,7 +59,7 @@ private:
long mnCustomWidth;
bool mbCustom;
bool mbCloseByEdit;
long mnTmpCusomWidth;
long mnTmpCustomWidth;
bool mbVSFocus;
Image maIMGCus;
......
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