summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-24 11:22:45 +0200
committerNoel Grandin <noel@peralex.com>2014-03-25 14:32:54 +0200
commitb4d4ede795cbdbb813197fcfaac43e80af4ea566 (patch)
tree17bedd4ba0d0d0fd348a03dda2f72cf2c03339d6
parentf5864e8ff4958268b50b15bc4c60c3d0fcfe20d9 (diff)
svtools/svtabbax.hxx: sal_Bool->bool
Change-Id: I2441e15d2b32b897561cb404a925390299fea6d8
-rw-r--r--cui/source/options/fontsubs.cxx6
-rw-r--r--include/svtools/svtabbx.hxx10
-rw-r--r--svtools/source/contnr/fileview.cxx6
-rw-r--r--svtools/source/contnr/svtabbx.cxx14
-rw-r--r--sw/source/core/uibase/misc/redlndlg.cxx4
-rw-r--r--sw/source/ui/dbui/addresslistdialog.cxx2
6 files changed, 21 insertions, 21 deletions
diff --git a/cui/source/options/fontsubs.cxx b/cui/source/options/fontsubs.cxx
index b0aef7426558..4bd0cd91258e 100644
--- a/cui/source/options/fontsubs.cxx
+++ b/cui/source/options/fontsubs.cxx
@@ -265,7 +265,7 @@ IMPL_LINK(SvxFontSubstTabPage, SelectHdl, Window*, pWin)
pEntry = CreateEntry(sFont1, sFont2);
m_pCheckLB->Insert(pEntry);
}
- m_pCheckLB->SelectAll(sal_False);
+ m_pCheckLB->SelectAll(false);
m_pCheckLB->Select(pEntry);
}
else if (pWin == m_pDelete)
@@ -304,7 +304,7 @@ IMPL_LINK(SvxFontSubstTabPage, SelectHdl, Window*, pWin)
if (pEntry != m_pCheckLB->FirstSelected())
{
- m_pCheckLB->SelectAll(sal_False);
+ m_pCheckLB->SelectAll(false);
m_pCheckLB->Select(pEntry);
}
}
@@ -383,7 +383,7 @@ void SvxFontSubstTabPage::CheckEnable()
m_pCheckLB->DisableTable();
m_pCheckLB->SetTextColor(Color(COL_GRAY));
m_pCheckLB->Invalidate();
- m_pCheckLB->SelectAll(sal_False);
+ m_pCheckLB->SelectAll(false);
}
}
}
diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx
index 57c474588e03..96d38f328919 100644
--- a/include/svtools/svtabbx.hxx
+++ b/include/svtools/svtabbx.hxx
@@ -128,7 +128,7 @@ class SVT_DLLPUBLIC SvHeaderTabListBox : public SvTabListBox, public svt::IAcces
private:
typedef ::std::vector< css::uno::Reference< css::accessibility::XAccessible > > AccessibleChildren;
- sal_Bool m_bFirstPaint;
+ bool m_bFirstPaint;
::svt::SvHeaderTabListBoxImpl* m_pImpl;
::svt::IAccessibleTabListBox* m_pAccessible;
AccessibleChildren m_aAccessibleChildren;
@@ -145,7 +145,7 @@ public:
virtual void Paint( const Rectangle& );
void InitHeaderBar( HeaderBar* pHeaderBar );
- sal_Bool IsItemChecked( SvTreeListEntry* pEntry, sal_uInt16 nCol ) const;
+ bool IsItemChecked( SvTreeListEntry* pEntry, sal_uInt16 nCol ) const;
virtual SvTreeListEntry* InsertEntryToColumn( const OUString&, sal_uLong nPos = TREELIST_APPEND,
sal_uInt16 nCol = 0xffff, void* pUserData = NULL );
@@ -162,9 +162,9 @@ public:
// Accessible -------------------------------------------------------------
inline void DisableTransientChildren() { SetChildrenNotTransient(); }
- inline sal_Bool IsTransientChildrenDisabled() const { return !AreChildrenTransient(); }
+ inline bool IsTransientChildrenDisabled() const { return !AreChildrenTransient(); }
- sal_Bool IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState );
+ bool IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState );
/** @return The count of the rows. */
virtual long GetRowCount() const;
@@ -192,7 +192,7 @@ public:
virtual void SetNoSelection();
using SvListView::SelectAll;
virtual void SelectAll();
- virtual void SelectAll( sal_Bool bSelect, sal_Bool bPaint = sal_True );
+ virtual void SelectAll( bool bSelect, bool bPaint = true );
virtual void SelectRow( long _nRow, bool _bSelect = true, bool bExpand = true );
virtual void SelectColumn( sal_uInt16 _nColumn, bool _bSelect = true );
virtual sal_Int32 GetSelectedRowCount() const;
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx
index a3d15babaadf..e40faf408db1 100644
--- a/svtools/source/contnr/fileview.cxx
+++ b/svtools/source/contnr/fileview.cxx
@@ -1053,7 +1053,7 @@ void ViewTabListBox_Impl::DoQuickSearch( const sal_Unicode& rChar )
SvTreeListEntry* pEntry = GetEntry( mnSearchIndex );
if ( pEntry )
{
- SelectAll( sal_False );
+ SelectAll( false );
Select( pEntry );
SetCurEntry( pEntry );
MakeVisible( pEntry );
@@ -1398,7 +1398,7 @@ void SvtFileView::CancelRunningAsyncAction()
void SvtFileView::SetNoSelection()
{
- mpImp->mpView->SelectAll( sal_False );
+ mpImp->mpView->SelectAll( false );
}
@@ -1971,7 +1971,7 @@ void SvtFileView_Impl::SetSelectHandler( const Link& _rHdl )
void SvtFileView_Impl::InitSelection()
{
- mpView->SelectAll( sal_False );
+ mpView->SelectAll( false );
SvTreeListEntry* pFirst = mpView->First();
if ( pFirst )
mpView->SetCursor( pFirst, sal_True );
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx
index c2ecf34a12be..7c131d44733d 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -520,7 +520,7 @@ SvHeaderTabListBox::SvHeaderTabListBox( Window* pParent, WinBits nWinStyle ) :
SvTabListBox( pParent, nWinStyle ),
- m_bFirstPaint ( sal_True ),
+ m_bFirstPaint ( true ),
m_pImpl ( new ::svt::SvHeaderTabListBoxImpl ),
m_pAccessible ( NULL )
{
@@ -539,7 +539,7 @@ void SvHeaderTabListBox::Paint( const Rectangle& rRect )
{
if ( m_bFirstPaint )
{
- m_bFirstPaint = sal_False;
+ m_bFirstPaint = false;
RepaintScrollBars();
}
SvTabListBox::Paint( rRect );
@@ -558,7 +558,7 @@ void SvHeaderTabListBox::InitHeaderBar( HeaderBar* pHeaderBar )
-sal_Bool SvHeaderTabListBox::IsItemChecked( SvTreeListEntry* pEntry, sal_uInt16 nCol ) const
+bool SvHeaderTabListBox::IsItemChecked( SvTreeListEntry* pEntry, sal_uInt16 nCol ) const
{
SvButtonState eState = SV_BUTTON_UNCHECKED;
SvLBoxButton* pItem = (SvLBoxButton*)( pEntry->GetItem( nCol + 1 ) );
@@ -684,7 +684,7 @@ void SvHeaderTabListBox::RecalculateAccessibleChildren()
-sal_Bool SvHeaderTabListBox::IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState )
+bool SvHeaderTabListBox::IsCellCheckBox( long _nRow, sal_uInt16 _nColumn, TriState& _rState )
{
bool bRet = false;
SvTreeListEntry* pEntry = GetEntry( _nRow );
@@ -789,9 +789,9 @@ void SvHeaderTabListBox::SelectAll()
SvTreeListBox::SelectAll(true);
}
-void SvHeaderTabListBox::SelectAll( sal_Bool bSelect, sal_Bool bPaint )
+void SvHeaderTabListBox::SelectAll( bool bSelect, bool bPaint )
{
- // overwritten just to disambiguate the SelectAll() from the base' class SelectAll( BOOl, sal_Bool )
+ // overwritten just to disambiguate the SelectAll() from the base' class SelectAll( bool, bool )
SvTabListBox::SelectAll( bSelect, bPaint );
}
@@ -918,7 +918,7 @@ Reference< XAccessible > SvHeaderTabListBox::CreateAccessibleCell( sal_Int32 _nR
if ( !xChild.is() )
{
TriState eState = TRISTATE_INDET;
- sal_Bool bIsCheckBox = IsCellCheckBox( _nRow, _nColumnPos, eState );
+ bool bIsCheckBox = IsCellCheckBox( _nRow, _nColumnPos, eState );
if ( bIsCheckBox )
xChild = m_pImpl->m_aFactoryAccess.getFactory().createAccessibleCheckBoxCell(
m_pAccessible->getHeaderBar(), *this, NULL, _nRow, _nColumnPos, eState, false );
diff --git a/sw/source/core/uibase/misc/redlndlg.cxx b/sw/source/core/uibase/misc/redlndlg.cxx
index ef31f5321e9b..ebb8b6ee8853 100644
--- a/sw/source/core/uibase/misc/redlndlg.cxx
+++ b/sw/source/core/uibase/misc/redlndlg.cxx
@@ -621,7 +621,7 @@ void SwRedlineAcceptDlg::RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd)
pTable->SetSelectHdl(aOldSelectHdl);
pTable->SetDeselectHdl(aOldDeselectHdl);
bool bChildrenRemoved = false;
- pTable->SelectAll(sal_False);
+ pTable->SelectAll(false);
// set the cursor after the last entry because otherwise performance problem in TLB.
// TLB would otherwise reset the cursor at every Remove (expensive)
@@ -679,7 +679,7 @@ void SwRedlineAcceptDlg::RemoveParents(sal_uInt16 nStart, sal_uInt16 nEnd)
pTable->SetSelectHdl(LINK(this, SwRedlineAcceptDlg, SelectHdl));
pTable->SetDeselectHdl(LINK(this, SwRedlineAcceptDlg, DeselectHdl));
// unfortunately by Remove it was selected from the TLB always again ...
- pTable->SelectAll(sal_False);
+ pTable->SelectAll(false);
aRedlineParents.erase( aRedlineParents.begin() + nStart, aRedlineParents.begin() + nEnd + 1);
}
diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx
index 4037f748d740..f7ca4aeac8db 100644
--- a/sw/source/ui/dbui/addresslistdialog.cxx
+++ b/sw/source/ui/dbui/addresslistdialog.cxx
@@ -223,7 +223,7 @@ SwAddressListDialog::SwAddressListDialog(SwMailMergeAddressBlockPage* pParent)
sal_Bool bEnableEdit = sal_False;
sal_Bool bEnableOK = sal_True;
- m_pListLB->SelectAll( sal_False );
+ m_pListLB->SelectAll( false );
SwDBConfig aDb;
OUString sBibliography = aDb.GetBibliographySource().sDataSource;