summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/impldde.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-03-14 12:57:33 +0200
committerNoel Grandin <noel@peralex.com>2014-03-18 11:26:05 +0200
commit96ef76c1b75332e4b8379276e396ea623153644d (patch)
treee87a6a4f7970421f777baedf83315c22579581c8 /sfx2/source/appl/impldde.cxx
parente67d675d1e6410a95c3ea0765c12d96c3a1db512 (diff)
sfx2: sal_Bool->bool
Change-Id: I733cd63e321bdc775739228c269fa66ff7780780
Diffstat (limited to 'sfx2/source/appl/impldde.cxx')
-rw-r--r--sfx2/source/appl/impldde.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sfx2/source/appl/impldde.cxx b/sfx2/source/appl/impldde.cxx
index cc6431d0bd3a..3839d8544219 100644
--- a/sfx2/source/appl/impldde.cxx
+++ b/sfx2/source/appl/impldde.cxx
@@ -129,12 +129,12 @@ SvDDEObject::~SvDDEObject()
delete pConnection;
}
-sal_Bool SvDDEObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/,
+bool SvDDEObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/,
const OUString & rMimeType,
- sal_Bool bSynchron )
+ bool bSynchron )
{
if( !pConnection )
- return sal_False;
+ return false;
if( pConnection->GetError() ) // then we try once more
{
@@ -148,7 +148,7 @@ sal_Bool SvDDEObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/,
}
if( bWaitForData ) // we are in an rekursive loop, get out again
- return sal_False;
+ return false;
// Lock against Reentrance
bWaitForData = sal_True;
@@ -193,7 +193,7 @@ sal_Bool SvDDEObject::GetData( ::com::sun::star::uno::Any & rData /*out param*/,
}
-sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
+bool SvDDEObject::Connect( SvBaseLink * pSvLink )
{
#if defined(WNT)
static sal_Bool bInWinExec = sal_False;
@@ -209,17 +209,17 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
: 0 );
AddConnectAdvise( pSvLink );
- return sal_True;
+ return true;
}
if( !pSvLink->GetLinkManager() )
- return sal_False;
+ return false;
OUString sServer, sTopic;
pSvLink->GetLinkManager()->GetDisplayNames( pSvLink, &sServer, &sTopic, &sItem );
if( sServer.isEmpty() || sTopic.isEmpty() || sItem.isEmpty() )
- return sal_False;
+ return false;
pConnection = new DdeConnection( sServer, sTopic );
if( pConnection->GetError() )
@@ -237,7 +237,7 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
if( bSysTopic )
{
nError = DDELINK_ERROR_DATA;
- return sal_False;
+ return false;
}
// otherwise in Win/WinNT, start the Application directly
}
@@ -292,7 +292,7 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
}
if( pConnection->GetError() )
- return sal_False;
+ return false;
AddDataAdvise( pSvLink,
SotExchange::GetFormatMimeType( pSvLink->GetContentType()),
@@ -301,7 +301,7 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
: 0 );
AddConnectAdvise( pSvLink );
SetUpdateTimeout( 0 );
- return sal_True;
+ return true;
}
void SvDDEObject::Edit( Window* pParent, sfx2::SvBaseLink* pBaseLink, const Link& rEndEditHdl )
@@ -343,7 +343,7 @@ sal_Bool SvDDEObject::ImplHasOtherFormat( DdeTransaction& rReq )
return 0 != nFmt;
}
-sal_Bool SvDDEObject::IsPending() const
+bool SvDDEObject::IsPending() const
/* [Description]
The method determines whether the data-object can be read from a DDE.
@@ -357,7 +357,7 @@ sal_Bool SvDDEObject::IsPending() const
return bWaitForData;
}
-sal_Bool SvDDEObject::IsDataComplete() const
+bool SvDDEObject::IsDataComplete() const
{
return bWaitForData;
}