summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/highred.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/miscdlgs/highred.cxx')
-rw-r--r--sc/source/ui/miscdlgs/highred.cxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/sc/source/ui/miscdlgs/highred.cxx b/sc/source/ui/miscdlgs/highred.cxx
index dce755c10db3..05c807b8e1f4 100644
--- a/sc/source/ui/miscdlgs/highred.cxx
+++ b/sc/source/ui/miscdlgs/highred.cxx
@@ -59,7 +59,7 @@
#define ERRORBOX(s) ErrorBox(this,WinBits(WB_OK|WB_DEF_OK),s).Execute();
-inline void EnableDisable( Window& rWin, BOOL bEnable )
+inline void EnableDisable( Window& rWin, sal_Bool bEnable )
{
if (bEnable)
rWin.Enable();
@@ -102,17 +102,17 @@ ScHighlightChgDlg::ScHighlightChgDlg( SfxBindings* pB, SfxChildWindow* pCW, Wind
aOkButton.SetClickHdl(LINK( this, ScHighlightChgDlg, OKBtnHdl));
aHighlightBox.SetClickHdl(LINK( this, ScHighlightChgDlg, HighLightHandle ));
aFilterCtr.SetRefHdl(LINK( this, ScHighlightChgDlg, RefHandle ));
- aFilterCtr.HideRange(FALSE);
+ aFilterCtr.HideRange(sal_False);
aFilterCtr.Show();
- SetDispatcherLock( TRUE );
- //SFX_APPWINDOW->Disable(FALSE);
+ SetDispatcherLock( sal_True );
+ //SFX_APPWINDOW->Disable(sal_False);
Init();
}
ScHighlightChgDlg::~ScHighlightChgDlg()
{
- SetDispatcherLock( FALSE );
+ SetDispatcherLock( sal_False );
//SFX_APPWINDOW->Enable();
}
@@ -129,7 +129,7 @@ void __EXPORT ScHighlightChgDlg::Init()
aChangeViewSet.SetTheAuthorToShow(pChanges->GetUser());
aFilterCtr.ClearAuthors();
ScStrCollection aUserColl=pChanges->GetUserCollection();
- for(USHORT i=0;i<aUserColl.GetCount();i++)
+ for(sal_uInt16 i=0;i<aUserColl.GetCount();i++)
aFilterCtr.InsertAuthor(aUserColl[i]->GetString());
}
@@ -144,7 +144,7 @@ void __EXPORT ScHighlightChgDlg::Init()
aFilterCtr.SetFirstTime(aChangeViewSet.GetTheFirstDateTime());
aFilterCtr.SetLastDate(aChangeViewSet.GetTheLastDateTime());
aFilterCtr.SetLastTime(aChangeViewSet.GetTheLastDateTime());
- aFilterCtr.SetDateMode((USHORT)aChangeViewSet.GetTheDateMode());
+ aFilterCtr.SetDateMode((sal_uInt16)aChangeViewSet.GetTheDateMode());
aFilterCtr.CheckAuthor(aChangeViewSet.HasAuthor());
aFilterCtr.CheckComment(aChangeViewSet.HasComment());
aFilterCtr.SetComment(aChangeViewSet.GetTheComment());
@@ -172,7 +172,7 @@ void __EXPORT ScHighlightChgDlg::Init()
pRangeEntry->Format( aRefStr, ABS_DREF3D, pDoc );
aFilterCtr.SetRange(aRefStr);
}
- aFilterCtr.Enable(TRUE,TRUE);
+ aFilterCtr.Enable(sal_True,sal_True);
HighLightHandle(&aHighlightBox);
}
@@ -194,12 +194,12 @@ void ScHighlightChgDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
}
//----------------------------------------------------------------------------
-BOOL __EXPORT ScHighlightChgDlg::Close()
+sal_Bool __EXPORT ScHighlightChgDlg::Close()
{
return DoClose( ScHighlightChgDlgWrapper::GetChildWindowId() );
}
-void ScHighlightChgDlg::RefInputDone( BOOL bForced)
+void ScHighlightChgDlg::RefInputDone( sal_Bool bForced)
{
ScAnyRefDlg::RefInputDone(bForced);
if(bForced || !aRbAssign.IsVisible())
@@ -220,13 +220,13 @@ void ScHighlightChgDlg::SetActive()
aEdAssign.Hide();
aRbAssign.Hide();
SFX_APPWINDOW->Enable();
- SetDispatcherLock( FALSE );
+ SetDispatcherLock( sal_False );
}
//RefInputDone();
*/
}
-BOOL ScHighlightChgDlg::IsRefInputMode() const
+sal_Bool ScHighlightChgDlg::IsRefInputMode() const
{
return aEdAssign.IsVisible();
}
@@ -237,13 +237,13 @@ IMPL_LINK( ScHighlightChgDlg, HighLightHandle, CheckBox*, pCb )
{
if(aHighlightBox.IsChecked())
{
- aFilterCtr.Enable(TRUE,TRUE);
+ aFilterCtr.Enable(sal_True,sal_True);
aCbAccept.Enable();
aCbReject.Enable();
}
else
{
- aFilterCtr.Disable(TRUE);
+ aFilterCtr.Disable(sal_True);
aCbAccept.Disable();
aCbReject.Disable();
}
@@ -255,8 +255,8 @@ IMPL_LINK( ScHighlightChgDlg, RefHandle, SvxTPFilter*, pRef )
{
if(pRef!=NULL)
{
- SetDispatcherLock( TRUE );
- //SFX_APPWINDOW->Disable(FALSE);
+ SetDispatcherLock( sal_True );
+ //SFX_APPWINDOW->Disable(sal_False);
aEdAssign.Show();
aRbAssign.Show();
aEdAssign.SetText(aFilterCtr.GetRange());