summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-24 15:42:28 +0200
committerNoel Grandin <noel@peralex.com>2014-03-25 14:32:56 +0200
commit436cd900956b5fd0b6583954c002f8c28ca32698 (patch)
tree00bf0fb7c6daa0041670ce5209e5912780520a66 /sfx2
parentc849d750eb751d3f2b99d23cca1c8c08672ff379 (diff)
svtools: sal_Bool->bool
Change-Id: Ifd3e643dbc6755839ad4af73ae141fd115ddb4f4
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/newhelp.cxx4
-rw-r--r--sfx2/source/dialog/templdlg.cxx20
-rw-r--r--sfx2/source/dialog/versdlg.cxx8
-rw-r--r--sfx2/source/inc/templdgi.hxx2
4 files changed, 17 insertions, 17 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 216d53a5acf8..03d761149652 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -326,7 +326,7 @@ void ContentListBox_Impl::InitRoot()
OUString aURL = aRow.getToken( 0, '\t', nIdx );
sal_Unicode cFolder = aRow.getToken( 0, '\t', nIdx )[0];
bool bIsFolder = ( '1' == cFolder );
- SvTreeListEntry* pEntry = InsertEntry( aTitle, aOpenBookImage, aClosedBookImage, NULL, sal_True );
+ SvTreeListEntry* pEntry = InsertEntry( aTitle, aOpenBookImage, aClosedBookImage, NULL, true );
if ( bIsFolder )
pEntry->SetUserData( new ContentEntry_Impl( aURL, sal_True ) );
}
@@ -370,7 +370,7 @@ void ContentListBox_Impl::RequestingChildren( SvTreeListEntry* pParent )
SvTreeListEntry* pEntry = NULL;
if ( bIsFolder )
{
- pEntry = InsertEntry( aTitle, aOpenBookImage, aClosedBookImage, pParent, sal_True );
+ pEntry = InsertEntry( aTitle, aOpenBookImage, aClosedBookImage, pParent, true );
pEntry->SetUserData( new ContentEntry_Impl( aURL, sal_True ) );
}
else
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 38fa3151aab9..eb332ee46f59 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -231,7 +231,7 @@ void DropListBox_Impl::MouseButtonDown( const MouseEvent& rMEvt )
{
nModifier = rMEvt.GetModifier();
- sal_Bool bHitEmptySpace = ( NULL == GetEntry( rMEvt.GetPosPixel(), sal_True ) );
+ sal_Bool bHitEmptySpace = ( NULL == GetEntry( rMEvt.GetPosPixel(), true ) );
if( bHitEmptySpace && ( rMEvt.GetClicks() == 2 ) && rMEvt.IsMod1() )
Control::MouseButtonDown( rMEvt );
else
@@ -513,7 +513,7 @@ PopupMenu* StyleTreeListBox_Impl::CreateContextMenu()
return pDialog->CreateContextMenu();
}
-sal_Bool StyleTreeListBox_Impl::DoubleClickHdl()
+bool StyleTreeListBox_Impl::DoubleClickHdl()
/* [Description]
@@ -522,7 +522,7 @@ sal_Bool StyleTreeListBox_Impl::DoubleClickHdl()
*/
{
aDoubleClickLink.Call(this);
- return sal_False;
+ return false;
}
@@ -623,7 +623,7 @@ void StyleTreeListBox_Impl::ExpandedHdl()
{
SvTreeListEntry *pEntry = GetHdlEntry();
if(!IsExpanded(pEntry) && pCurEntry != GetCurEntry())
- SelectAll( sal_False );
+ SelectAll( false );
pCurEntry = 0;
}
@@ -1112,7 +1112,7 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr)
}
}
else
- pTreeBox->SelectAll( sal_False );
+ pTreeBox->SelectAll( false );
}
else
{
@@ -1139,7 +1139,7 @@ void SfxCommonTemplateDialog_Impl::SelectStyle(const OUString &rStr)
if ( !bSelect )
{
- aFmtLb.SelectAll( sal_False );
+ aFmtLb.SelectAll( false );
EnableEdit(sal_False);
EnableHide( sal_False );
EnableShow( sal_False );
@@ -1210,7 +1210,7 @@ void SfxCommonTemplateDialog_Impl::FillTreeBox()
MakeTree_Impl(aArr);
ExpandedEntries_t aEntries;
pTreeBox->MakeExpanded_Impl(aEntries);
- pTreeBox->SetUpdateMode( sal_False );
+ pTreeBox->SetUpdateMode( false );
pTreeBox->Clear();
const sal_uInt16 nCount = aArr.size();
for(sal_uInt16 i = 0; i < nCount; ++i)
@@ -1229,7 +1229,7 @@ void SfxCommonTemplateDialog_Impl::FillTreeBox()
pTreeBox->Expand( pEntry );
}
- pTreeBox->SetUpdateMode( sal_True );
+ pTreeBox->SetUpdateMode( true );
OUString aStyle;
if(pState) // Select current entry
@@ -1366,11 +1366,11 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(sal_uInt16 nFlags)
if( nPos < nCount || pEntry )
{
// Fills the display box
- aFmtLb.SetUpdateMode(sal_False);
+ aFmtLb.SetUpdateMode(false);
aFmtLb.Clear();
for(nPos = 0; nPos < nCount; ++nPos)
- aFmtLb.InsertEntry(aStrings[nPos], 0, sal_False, nPos);
+ aFmtLb.InsertEntry(aStrings[nPos], 0, false, nPos);
aFmtLb.SetUpdateMode(true);
}
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx
index 60747b28b828..cf85a309dcb6 100644
--- a/sfx2/source/dialog/versdlg.cxx
+++ b/sfx2/source/dialog/versdlg.cxx
@@ -436,10 +436,10 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton )
aItems[0] = &aComment;
aItems[1] = NULL;
pViewFrame->GetBindings().ExecuteSynchron( SID_SAVEDOC, aItems, 0 );
- m_pVersionBox->SetUpdateMode( sal_False );
+ m_pVersionBox->SetUpdateMode( false );
m_pVersionBox->Clear();
Init_Impl();
- m_pVersionBox->SetUpdateMode( sal_True );
+ m_pVersionBox->SetUpdateMode( true );
}
delete pDlg;
@@ -448,10 +448,10 @@ IMPL_LINK( SfxVersionDialog, ButtonHdl_Impl, Button*, pButton )
{
pObjShell->GetMedium()->RemoveVersion_Impl( ((SfxVersionInfo*) pEntry->GetUserData())->aName );
pObjShell->SetModified( true );
- m_pVersionBox->SetUpdateMode( sal_False );
+ m_pVersionBox->SetUpdateMode( false );
m_pVersionBox->Clear();
Init_Impl();
- m_pVersionBox->SetUpdateMode( sal_True );
+ m_pVersionBox->SetUpdateMode( true );
}
else if (pButton == m_pOpenButton && pEntry)
{
diff --git a/sfx2/source/inc/templdgi.hxx b/sfx2/source/inc/templdgi.hxx
index f064bba49301..14caad6a3c47 100644
--- a/sfx2/source/inc/templdgi.hxx
+++ b/sfx2/source/inc/templdgi.hxx
@@ -100,7 +100,7 @@ private:
protected:
virtual void Command( const CommandEvent& rMEvt );
virtual bool Notify( NotifyEvent& rNEvt );
- virtual sal_Bool DoubleClickHdl();
+ virtual bool DoubleClickHdl();
virtual bool ExpandingHdl();
virtual void ExpandedHdl();
virtual sal_Bool NotifyMoving(SvTreeListEntry* pTarget,