diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:02:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:28 +0100 |
commit | 78ddd6090ca7637320a875da715c96a9dfe7358d (patch) | |
tree | 5089f4a9853985450ed89c796ddd62b0dab915cb /formula/source | |
parent | 4f6f280e765c764ef6cada93556141d0e15804dc (diff) |
bool improvements
Change-Id: I9be9755170694a0071720080af4b8f2c9298f916
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/ui/dlg/FormulaHelper.cxx | 2 | ||||
-rw-r--r-- | formula/source/ui/dlg/formula.cxx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx index 16394f814e01..b7e4ce279839 100644 --- a/formula/source/ui/dlg/FormulaHelper.cxx +++ b/formula/source/ui/dlg/FormulaHelper.cxx @@ -45,7 +45,7 @@ namespace formula virtual sal_uInt32 getParameterCount() const { return 0; } virtual OUString getParameterName(sal_uInt32 ) const { return OUString(); } virtual OUString getParameterDescription(sal_uInt32 ) const { return OUString(); } - virtual bool isParameterOptional(sal_uInt32 ) const { return sal_False; } + virtual bool isParameterOptional(sal_uInt32 ) const { return false; } }; } //=================================================================== diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index 2bfd9b3fdb00..8a855d79a92c 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -753,7 +753,7 @@ void FormulaDlg_Impl::UpdateTokenArray( const OUString& rStrExp) } // if ( pTokens && nLen == m_aTokenList.getLength() ) FormulaCompiler aCompiler(*m_pTokenArray.get()); - aCompiler.SetCompileForFAP(sal_True); // #i101512# special handling is needed + aCompiler.SetCompileForFAP(true); // #i101512# special handling is needed aCompiler.CompileTokenArray(); } @@ -926,7 +926,7 @@ void FormulaDlg_Impl::ClearAllParas() aFtEditName.Hide(); pParaWin->Hide(); - aBtnForward.Enable(sal_True); //@new + aBtnForward.Enable(true); //@new aFtHeadLine.Show(); aFtFuncName.Show(); aFtFuncDesc.Show(); @@ -999,13 +999,13 @@ IMPL_LINK( FormulaDlg_Impl, BtnHdl, PushButton*, pBtn ) else { DblClkHdl(pFuncPage); //new - aBtnForward.Enable(sal_False); //new + aBtnForward.Enable(false); //new } } else if ( pBtn == &aBtnBackward ) { bEditFlag=sal_False; - aBtnForward.Enable(sal_True); + aBtnForward.Enable(true); EditNextFunc( sal_False ); aMEFormula.Invalidate(); aMEFormula.Update(); @@ -1052,7 +1052,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, DblClkHdl) } pParaWin->SetEdFocus(0); - aBtnForward.Enable(sal_False); //@New + aBtnForward.Enable(false); //@New return 0; } @@ -1192,7 +1192,7 @@ IMPL_LINK( FormulaDlg_Impl, FxHdl, ParaWin*, pPtr ) { if(pPtr==pParaWin) { - aBtnForward.Enable(sal_True); //@ In order to be able to input another function. + aBtnForward.Enable(true); //@ In order to be able to input another function. aTabCtrl.SetCurPageId(TP_FUNCTION); OUString aUndoStr = m_pHelper->getCurrentFormula(); // it will be added before a ";" @@ -1530,7 +1530,7 @@ sal_Bool FormulaDlg_Impl::CheckMatrix(OUString& aFormula) IMPL_LINK_NOARG(FormulaDlg_Impl, StructSelHdl) { bStructUpdate=sal_False; - if(pStructPage->IsVisible()) aBtnForward.Enable(sal_False); //@New + if(pStructPage->IsVisible()) aBtnForward.Enable(false); //@New bStructUpdate=sal_True; return 0; @@ -1553,7 +1553,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, FuncSelHdl) { const IFunctionDescription* pDesc =pFuncPage->GetFuncDesc( pFuncPage->GetFunction() ); - if(pDesc!=pFuncDesc) aBtnForward.Enable(sal_True); //new + if(pDesc!=pFuncDesc) aBtnForward.Enable(true); //new if (pDesc) { |