summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/impldde.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-08-26 15:22:55 +0200
committerNoel Grandin <noel@peralex.com>2013-08-29 09:30:06 +0200
commitbf1db6daca85bee8333740d43e087feb2965a81b (patch)
tree3daed89ae5a5ad7c6bd3451f7bbbc556afb1c671 /sfx2/source/appl/impldde.cxx
parentdf00d4c230d15951ad31405a3ea77e0faeebcb75 (diff)
convert include/sfx2/linkmgr.hxx from String to OUString
along the way, de-virtual ScDocFunc::InsertAreaLink, since it only has one implementation. Change-Id: I3fc836f9954628f154e01b1c7ae8f90eb7600a76
Diffstat (limited to 'sfx2/source/appl/impldde.cxx')
-rw-r--r--sfx2/source/appl/impldde.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/source/appl/impldde.cxx b/sfx2/source/appl/impldde.cxx
index 4d0774117937..b036cfcb5f0f 100644
--- a/sfx2/source/appl/impldde.cxx
+++ b/sfx2/source/appl/impldde.cxx
@@ -85,7 +85,7 @@ SvDDELinkEditDialog::SvDDELinkEditDialog( Window* pParent, SvBaseLink* pLink )
{
FreeResource();
- String sServer, sTopic, sItem;
+ OUString sServer, sTopic, sItem;
pLink->GetLinkManager()->GetDisplayNames( pLink, &sServer, &sTopic, &sItem );
aEdDdeApp.SetText( sServer );
@@ -96,12 +96,12 @@ SvDDELinkEditDialog::SvDDELinkEditDialog( Window* pParent, SvBaseLink* pLink )
aEdDdeTopic.SetModifyHdl( STATIC_LINK( this, SvDDELinkEditDialog, EditHdl_Impl));
aEdDdeItem.SetModifyHdl( STATIC_LINK( this, SvDDELinkEditDialog, EditHdl_Impl));
- aOKButton1.Enable( sServer.Len() && sTopic.Len() && sItem.Len() );
+ aOKButton1.Enable( !sServer.isEmpty() && !sTopic.isEmpty() && !sItem.isEmpty() );
}
String SvDDELinkEditDialog::GetCmd() const
{
- String sCmd( aEdDdeApp.GetText() ), sRet;
+ OUString sCmd( aEdDdeApp.GetText() ), sRet;
::sfx2::MakeLnkName( sRet, &sCmd, aEdDdeTopic.GetText(), aEdDdeItem.GetText() );
return sRet;
}
@@ -215,10 +215,10 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
if( !pSvLink->GetLinkManager() )
return sal_False;
- String sServer, sTopic;
+ OUString sServer, sTopic;
pSvLink->GetLinkManager()->GetDisplayNames( pSvLink, &sServer, &sTopic, &sItem );
- if( !sServer.Len() || !sTopic.Len() || !sItem.Len() )
+ if( sServer.isEmpty() || sTopic.isEmpty() || sItem.isEmpty() )
return sal_False;
pConnection = new DdeConnection( sServer, sTopic );
@@ -226,7 +226,7 @@ sal_Bool SvDDEObject::Connect( SvBaseLink * pSvLink )
{
// Is it possible to address the system-Topic?
// then the server is up, it just does not know the topic!
- if( sTopic.EqualsIgnoreCaseAscii( "SYSTEM" ) )
+ if( sTopic.equalsIgnoreAsciiCase( "SYSTEM" ) )
{
sal_Bool bSysTopic;
{