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