summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-01 10:09:54 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-01 10:36:28 +0100
commit5042636bf462ee6839ec6ab467dfe15f775af97f (patch)
treec28d8c5b89e7b90fe4676dd725c89485b6f04989 /svx
parent1d3483ed279982278b2f9fb1bab63485523e48c5 (diff)
XubString->OUString
Change-Id: I2067b78e10e1805bb678879e3fd54636d848b15c
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/filtnav.cxx4
-rw-r--r--svx/source/items/numfmtsh.cxx10
-rw-r--r--svx/source/items/pageitem.cxx6
-rw-r--r--svx/source/sdr/contact/viewcontactofgraphic.cxx8
-rw-r--r--svx/source/svdraw/svdoole2.cxx2
5 files changed, 15 insertions, 15 deletions
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 7e9218dfb818..1ebc6c24f817 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -1024,7 +1024,7 @@ void FmFilterModel::EnsureEmptyFilterRows( FmParentData& _rItem )
class FmFilterItemsString : public SvLBoxString
{
public:
- FmFilterItemsString( SvTreeListEntry* pEntry, sal_uInt16 nFlags, const XubString& rStr )
+ FmFilterItemsString( SvTreeListEntry* pEntry, sal_uInt16 nFlags, const OUString& rStr )
:SvLBoxString(pEntry,nFlags,rStr){}
virtual void Paint(const Point& rPos, SvTreeListBox& rDev, const SvViewDataEntry* pView, const SvTreeListEntry* pEntry);
@@ -1085,7 +1085,7 @@ class FmFilterString : public SvLBoxString
OUString m_aName;
public:
- FmFilterString( SvTreeListEntry* pEntry, sal_uInt16 nFlags, const XubString& rStr, const OUString& aName)
+ FmFilterString( SvTreeListEntry* pEntry, sal_uInt16 nFlags, const OUString& rStr, const OUString& aName)
:SvLBoxString(pEntry,nFlags,rStr)
,m_aName(aName)
{
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx
index 7a824d2f8f4b..0c7e03f352eb 100644
--- a/svx/source/items/numfmtsh.cxx
+++ b/svx/source/items/numfmtsh.cxx
@@ -914,7 +914,7 @@ short SvxNumberFormatShell::FillEListWithUserCurrencys( std::vector<String*>& rL
&pTmpCurrencyEntry,
&bTmpBanking);
- XubString rShortSymbol;
+ OUString rShortSymbol;
if(pCurCurrencyEntry==NULL)
{
@@ -1559,8 +1559,8 @@ void SvxNumberFormatShell::GetCurrencySymbols(std::vector<OUString>& rList, bool
sal_uInt16 nStart=1;
- XubString aString( ApplyLreOrRleEmbedding( rCurrencyTable[0].GetSymbol()));
- aString += sal_Unicode(' ');
+ OUString aString( ApplyLreOrRleEmbedding( rCurrencyTable[0].GetSymbol()));
+ aString += " ";
aString += ApplyLreOrRleEmbedding( pLanguageTable->GetString( rCurrencyTable[0].GetLanguage()));
rList.push_back(aString);
@@ -1577,11 +1577,11 @@ void SvxNumberFormatShell::GetCurrencySymbols(std::vector<OUString>& rList, bool
CollatorWrapper aCollator( ::comphelper::getProcessComponentContext());
aCollator.loadDefaultCollator( Application::GetSettings().GetLanguageTag().getLocale(), 0);
- const String aTwoSpace( RTL_CONSTASCII_USTRINGPARAM( " "));
+ const OUString aTwoSpace(" ");
for(sal_uInt16 i = 1; i < nCount; ++i)
{
- XubString aStr( ApplyLreOrRleEmbedding( rCurrencyTable[i].GetBankSymbol()));
+ OUString aStr( ApplyLreOrRleEmbedding( rCurrencyTable[i].GetBankSymbol()));
aStr += aTwoSpace;
aStr += ApplyLreOrRleEmbedding( rCurrencyTable[i].GetSymbol());
aStr += aTwoSpace;
diff --git a/svx/source/items/pageitem.cxx b/svx/source/items/pageitem.cxx
index ce4a265895fe..87d5c45b43a5 100644
--- a/svx/source/items/pageitem.cxx
+++ b/svx/source/items/pageitem.cxx
@@ -82,7 +82,7 @@ int SvxPageItem::operator==( const SfxPoolItem& rAttr ) const
eUse == rItem.eUse );
}
-inline XubString GetUsageText( const sal_uInt16 eU )
+inline OUString GetUsageText( const sal_uInt16 eU )
{
switch( eU & 0x000f )
{
@@ -90,7 +90,7 @@ inline XubString GetUsageText( const sal_uInt16 eU )
case SVX_PAGE_RIGHT : return SVX_RESSTR(RID_SVXITEMS_PAGE_USAGE_RIGHT);
case SVX_PAGE_ALL : return SVX_RESSTR(RID_SVXITEMS_PAGE_USAGE_ALL);
case SVX_PAGE_MIRROR: return SVX_RESSTR(RID_SVXITEMS_PAGE_USAGE_MIRROR);
- default: return String();
+ default: return OUString();
}
}
@@ -243,7 +243,7 @@ SfxPoolItem* SvxPageItem::Create( SvStream& rStream, sal_uInt16 ) const
sal_uInt16 nUse;
// UNICODE: rStream >> sStr;
- XubString sStr = rStream.ReadUniOrByteString( rStream.GetStreamCharSet() );
+ OUString sStr = rStream.ReadUniOrByteString( rStream.GetStreamCharSet() );
rStream >> eType;
rStream >> bLand;
diff --git a/svx/source/sdr/contact/viewcontactofgraphic.cxx b/svx/source/sdr/contact/viewcontactofgraphic.cxx
index 05e709db15ba..0a1061a4cf29 100644
--- a/svx/source/sdr/contact/viewcontactofgraphic.cxx
+++ b/svx/source/sdr/contact/viewcontactofgraphic.cxx
@@ -232,15 +232,15 @@ namespace sdr
}
// Build the text for the draft object
- XubString aDraftText = GetGrafObject().GetFileName();
+ OUString aDraftText = GetGrafObject().GetFileName();
- if(!aDraftText.Len())
+ if (aDraftText.isEmpty())
{
aDraftText = GetGrafObject().GetName();
- aDraftText.AppendAscii(" ...");
+ aDraftText += " ...";
}
- if(aDraftText.Len() && GetGrafObject().GetModel())
+ if (!aDraftText.isEmpty() && GetGrafObject().GetModel())
{
// #i103255# Goal is to produce TextPrimitives which hold the given text as
// BlockText in the available space. It would be very tricky to do
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index e8ea0945d81b..82389c4756fd 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -752,7 +752,7 @@ SdrOle2Obj::SdrOle2Obj(bool bFrame_) : m_bTypeAsked(false)
// -----------------------------------------------------------------------------
-SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, const XubString& rNewObjName, const Rectangle& rNewRect, bool bFrame_)
+SdrOle2Obj::SdrOle2Obj( const svt::EmbeddedObjectRef& rNewObjRef, const OUString& rNewObjName, const Rectangle& rNewRect, bool bFrame_)
: SdrRectObj(rNewRect)
, xObjRef( rNewObjRef )
, m_bTypeAsked(false)