summaryrefslogtreecommitdiff
path: root/sc/source/ui/sidebar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-07 08:28:32 +0200
committerNoel Grandin <noel@peralex.com>2013-10-08 10:03:10 +0200
commita255909e0e39aa4b6019de6e48ceaf55d9463672 (patch)
tree7ae818f3d6c0116291a4a389756e9fe2fd91e04d /sc/source/ui/sidebar
parent9e6f77021e4b69a6bc32d10c09691bd4cd6ceccb (diff)
convert sc/source/ui/sidebar/*.cxx from String to OUString
Change-Id: Ic34c16c4cb6a2a12a2132a56d57b283a43435405
Diffstat (limited to 'sc/source/ui/sidebar')
-rw-r--r--sc/source/ui/sidebar/AlignmentPropertyPanel.cxx2
-rw-r--r--sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx32
2 files changed, 17 insertions, 17 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index 04e4d189e4a2..689be50f7e85 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -483,7 +483,7 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
}
else
{
- mpMtrAngle->SetText( String() );
+ mpMtrAngle->SetText( OUString() );
mpCtrlDial->SetRotation( 0 );
}
break;
diff --git a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
index 1a3df34b42d4..7570526a6805 100644
--- a/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/NumberFormatPropertyPanel.cxx
@@ -153,8 +153,8 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatSelectHdl, ListBox*, pBox )
IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG )
{
- String aFormat;
- String sBreak = OUString(",");
+ OUString aFormat;
+ OUString sBreak = OUString(",");
bool bThousand = mpBtnThousand->IsEnabled()
&& mpBtnThousand->IsChecked();
bool bNegRed = mpBtnNegRed->IsEnabled()
@@ -166,10 +166,10 @@ IMPL_LINK( NumberFormatPropertyPanel, NumFormatValueHdl, void*, EMPTYARG )
? (sal_uInt16)mpEdLeadZeroes->GetValue()
: (sal_uInt16)0;
- String sThousand = OUString::number(static_cast<sal_Int32>(bThousand));
- String sNegRed = OUString::number(static_cast<sal_Int32>(bNegRed));
- String sPrecision = OUString::number(nPrecision);
- String sLeadZeroes = OUString::number(nLeadZeroes);
+ OUString sThousand = OUString::number(static_cast<sal_Int32>(bThousand));
+ OUString sNegRed = OUString::number(static_cast<sal_Int32>(bNegRed));
+ OUString sPrecision = OUString::number(nPrecision);
+ OUString sLeadZeroes = OUString::number(nLeadZeroes);
aFormat += sThousand;
aFormat += sBreak;
@@ -286,7 +286,7 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
if( eState >= SFX_ITEM_AVAILABLE)
{
const SfxStringItem* pItem = (const SfxStringItem*)pState;
- String aCode = pItem->GetValue();
+ OUString aCode = pItem->GetValue();
/* if(aCode.Equals(String::CreateFromAscii("General")))
{
mnCategorySelected = 0;
@@ -302,14 +302,14 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
mnCategorySelected = 1;
mpLbCategory->SelectEntryPos(1);
}*/
- sal_uInt16 aLen = aCode.Len();
- String* sFormat = new String[4];
- String sTmpStr = OUString();
+ sal_uInt16 aLen = aCode.getLength();
+ OUString* sFormat = new OUString[4];
+ OUString sTmpStr = OUString();
sal_uInt16 nCount = 0;
sal_uInt16 nStrCount = 0;
while( nCount < aLen )
{
- sal_Unicode cChar = aCode.GetChar(nCount);
+ sal_Unicode cChar = aCode[nCount];
if(cChar == sal_Unicode(','))
{
sFormat[nStrCount] = sTmpStr;
@@ -318,14 +318,14 @@ void NumberFormatPropertyPanel::NotifyItemUpdate(
}
else
{
- sTmpStr += cChar;
+ sTmpStr += OUString(cChar);
}
nCount++;
}
- bThousand = sFormat[0].ToInt32();
- bNegRed = sFormat[1].ToInt32();
- nPrecision = (sal_uInt16)sFormat[2].ToInt32();
- nLeadZeroes = (sal_uInt16)sFormat[3].ToInt32();
+ bThousand = sFormat[0].toInt32();
+ bNegRed = sFormat[1].toInt32();
+ nPrecision = (sal_uInt16)sFormat[2].toInt32();
+ nLeadZeroes = (sal_uInt16)sFormat[3].toInt32();
delete[] sFormat;
}
else