Kaydet (Commit) b7bdc730 authored tarafından Caolán McNamara's avatar Caolán McNamara

bShowSelection is always false

Change-Id: I7a541a8ba6b561736e93c45ac9c20caddafcbe52
üst 58b64704
...@@ -44,7 +44,6 @@ SwFldFuncPage::SwFldFuncPage(Window* pParent, const SfxItemSet& rCoreSet ) : ...@@ -44,7 +44,6 @@ SwFldFuncPage::SwFldFuncPage(Window* pParent, const SfxItemSet& rCoreSet ) :
aTypeFT (this, SW_RES(FT_FUNCTYPE)), aTypeFT (this, SW_RES(FT_FUNCTYPE)),
aTypeLB (this, SW_RES(LB_FUNCTYPE)), aTypeLB (this, SW_RES(LB_FUNCTYPE)),
aSelectionFT(this, SW_RES(FT_FUNCSELECTION)),
aSelectionLB(this, SW_RES(LB_FUNCSELECTION)), aSelectionLB(this, SW_RES(LB_FUNCSELECTION)),
aFormatFT (this, SW_RES(FT_FUNCFORMAT)), aFormatFT (this, SW_RES(FT_FUNCFORMAT)),
aFormatLB (this, SW_RES(LB_FUNCFORMAT)), aFormatLB (this, SW_RES(LB_FUNCFORMAT)),
...@@ -216,7 +215,6 @@ IMPL_LINK_NOARG(SwFldFuncPage, TypeHdl) ...@@ -216,7 +215,6 @@ IMPL_LINK_NOARG(SwFldFuncPage, TypeHdl)
} }
sal_Bool bValue = sal_False, bName = sal_False, bMacro = sal_False, bInsert = sal_True; sal_Bool bValue = sal_False, bName = sal_False, bMacro = sal_False, bInsert = sal_True;
sal_Bool bShowSelection = sal_False;
sal_Bool bFormat = nSize != 0; sal_Bool bFormat = nSize != 0;
// two controls for conditional text // two controls for conditional text
...@@ -366,20 +364,9 @@ IMPL_LINK_NOARG(SwFldFuncPage, TypeHdl) ...@@ -366,20 +364,9 @@ IMPL_LINK_NOARG(SwFldFuncPage, TypeHdl)
break; break;
} }
if (bShowSelection)
{
aSelectionLB.Show();
aSelectionFT.Show();
aFormatLB.Hide();
aFormatFT.Hide();
}
else
{
aFormatLB.Show(); aFormatLB.Show();
aFormatFT.Show(); aFormatFT.Show();
aSelectionLB.Hide(); aSelectionLB.Hide();
aSelectionFT.Hide();
}
aFormatLB.Enable(bFormat); aFormatLB.Enable(bFormat);
aFormatFT.Enable(bFormat); aFormatFT.Enable(bFormat);
...@@ -498,7 +485,6 @@ void SwFldFuncPage::UpdateSubType() ...@@ -498,7 +485,6 @@ void SwFldFuncPage::UpdateSubType()
sal_Bool bEnable = nCount != 0; sal_Bool bEnable = nCount != 0;
aSelectionLB.Enable( bEnable ); aSelectionLB.Enable( bEnable );
aSelectionFT.Enable( bEnable );
if (bEnable) if (bEnable)
{ {
......
...@@ -34,7 +34,6 @@ class SwFldFuncPage : public SwFldPage ...@@ -34,7 +34,6 @@ class SwFldFuncPage : public SwFldPage
{ {
FixedText aTypeFT; FixedText aTypeFT;
ListBox aTypeLB; ListBox aTypeLB;
FixedText aSelectionFT;
ListBox aSelectionLB; ListBox aSelectionLB;
FixedText aFormatFT; FixedText aFormatFT;
ListBox aFormatLB; ListBox aFormatLB;
......
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