summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-20 11:14:54 +0200
committerNoel Grandin <noel@peralex.com>2014-03-24 08:12:09 +0200
commitf661ac03e049844fd529fb6ff02e628b32cac650 (patch)
treeec4c4c9ac697df5a3645e1d0c7d426d03968d50c /chart2
parentb1de52241c1c2045ceab4ea3526f51f145be2930 (diff)
svtools: sal_Bool->bool
Change-Id: I22d8869551f46d2a0607f670f937853f394b6acf
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/DataBrowser.cxx16
-rw-r--r--chart2/source/controller/dialogs/DataBrowser.hxx4
2 files changed, 10 insertions, 10 deletions
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx
index 0a2224cd17d9..7abb9fa7267c 100644
--- a/chart2/source/controller/dialogs/DataBrowser.cxx
+++ b/chart2/source/controller/dialogs/DataBrowser.cxx
@@ -1039,7 +1039,7 @@ bool DataBrowser::SeekRow( long nRow )
return true;
}
-sal_Bool DataBrowser::IsTabAllowed( sal_Bool bForward ) const
+bool DataBrowser::IsTabAllowed( bool bForward ) const
{
long nRow = GetCurRow();
long nCol = GetCurColumnId();
@@ -1055,7 +1055,7 @@ sal_Bool DataBrowser::IsTabAllowed( sal_Bool bForward ) const
if( !m_bDataValid )
{
const_cast< DataBrowser* >( this )->ShowWarningBox();
- return sal_False;
+ return false;
}
return ( nRow != nBadRow ||
@@ -1134,12 +1134,12 @@ bool DataBrowser::isDateString( const OUString& aInputString, double& fOutDateVa
return false;
}
-sal_Bool DataBrowser::SaveModified()
+bool DataBrowser::SaveModified()
{
if( ! IsModified() )
- return sal_True;
+ return true;
- sal_Bool bChangeValid = sal_True;
+ bool bChangeValid = true;
const sal_Int32 nRow = lcl_getRowInData( GetCurRow());
const sal_Int32 nCol = lcl_getColumnInData( GetCurColumnId());
@@ -1159,7 +1159,7 @@ sal_Bool DataBrowser::SaveModified()
if( !aText.isEmpty() && pSvNumberFormatter &&
! pSvNumberFormatter->IsNumberFormat( aText, nDummy, fDummy ) )
{
- bChangeValid = sal_False;
+ bChangeValid = false;
}
else
{
@@ -1171,8 +1171,8 @@ sal_Bool DataBrowser::SaveModified()
case DataBrowserModel::TEXTORDATE:
{
OUString aText( m_aTextEditField.GetText() );
- double fDateValue=0.0;
- bChangeValid = sal_False;
+ double fDateValue = 0.0;
+ bChangeValid = false;
if( isDateString( aText, fDateValue ) )
bChangeValid = m_apDataBrowserModel->setCellAny( nCol, nRow, uno::makeAny( fDateValue ) );
if(!bChangeValid)
diff --git a/chart2/source/controller/dialogs/DataBrowser.hxx b/chart2/source/controller/dialogs/DataBrowser.hxx
index c7ad2dd6abe4..5f2f980b0678 100644
--- a/chart2/source/controller/dialogs/DataBrowser.hxx
+++ b/chart2/source/controller/dialogs/DataBrowser.hxx
@@ -53,10 +53,10 @@ protected:
// EditBrowseBox overridables
virtual void PaintCell( OutputDevice& rDev, const Rectangle& rRect, sal_uInt16 nColumnId ) const;
virtual bool SeekRow( long nRow );
- virtual sal_Bool IsTabAllowed( sal_Bool bForward ) const;
+ virtual bool IsTabAllowed( bool bForward ) const;
virtual ::svt::CellController* GetController( long nRow, sal_uInt16 nCol );
virtual void InitController( ::svt::CellControllerRef& rController, long nRow, sal_uInt16 nCol );
- virtual sal_Bool SaveModified();
+ virtual bool SaveModified();
virtual void CursorMoved();
// called whenever the control of the current cell has been modified
virtual void CellModified();