XubString->OUString
Change-Id: I86515dde1c6169531e687701a5ae067de1b6f114 Reviewed-on: https://gerrit.libreoffice.org/5782 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -104,7 +104,7 @@ public:
|
||||
// Gueltige Werte fuer nOptions sind SDRINSERT_DONTMARK und
|
||||
// SDRINSERT_ADDMARK (siehe svdedtv.hxx).
|
||||
virtual sal_Bool Paste(const SdrModel& rMod, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0);
|
||||
sal_Bool Paste(const String& rStr, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0);
|
||||
sal_Bool Paste(const OUString& rStr, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0);
|
||||
sal_Bool Paste(SvStream& rInput, const String& rBaseURL, sal_uInt16 eFormat, const Point& rPos, SdrObjList* pLst=NULL, sal_uInt32 nOptions=0);
|
||||
|
||||
sal_Bool Cut( sal_uIntPtr nFormat = SDR_ANYFORMAT );
|
||||
|
@@ -222,7 +222,7 @@ public:
|
||||
XPropertyEntry* Remove(long nIndex);
|
||||
|
||||
XPropertyEntry* Get(long nIndex) const;
|
||||
long GetIndex(const String& rName) const;
|
||||
long GetIndex(const OUString& rName) const;
|
||||
Bitmap GetUiBitmap(long nIndex) const;
|
||||
|
||||
const String& GetName() const { return maName; }
|
||||
|
@@ -417,9 +417,8 @@ Reference< XForm > FmFormPageImpl::getDefaultForm()
|
||||
if( pModel->IsUndoEnabled() )
|
||||
{
|
||||
OUString aStr(SVX_RESSTR(RID_STR_FORM));
|
||||
XubString aUndoStr(SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT));
|
||||
aUndoStr.SearchAndReplace(OUString('#'), aStr);
|
||||
pModel->BegUndo(aUndoStr);
|
||||
OUString aUndoStr(SVX_RESSTR(RID_STR_UNDO_CONTAINER_INSERT));
|
||||
pModel->BegUndo(aUndoStr.replaceFirst("'#'", aStr));
|
||||
}
|
||||
|
||||
try
|
||||
|
@@ -407,11 +407,11 @@ void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, co
|
||||
if (GetSlotId() != SID_FM_RECORD_TOTAL)
|
||||
return;
|
||||
|
||||
XubString aText;
|
||||
OUString aText;
|
||||
if (pState)
|
||||
aText = ((SfxStringItem*)pState)->GetValue();
|
||||
else
|
||||
aText = '?';
|
||||
aText = "?";
|
||||
|
||||
pFixedText->SetText( aText );
|
||||
pFixedText->Update();
|
||||
|
@@ -125,9 +125,9 @@ sal_Bool SdrExchangeView::ImpGetPasteLayer(const SdrObjList* pObjList, SdrLayerI
|
||||
return bRet;
|
||||
}
|
||||
|
||||
sal_Bool SdrExchangeView::Paste(const XubString& rStr, const Point& rPos, SdrObjList* pLst, sal_uInt32 nOptions)
|
||||
sal_Bool SdrExchangeView::Paste(const OUString& rStr, const Point& rPos, SdrObjList* pLst, sal_uInt32 nOptions)
|
||||
{
|
||||
if(!rStr.Len())
|
||||
if (rStr.isEmpty())
|
||||
return sal_False;
|
||||
|
||||
Point aPos(rPos);
|
||||
|
@@ -161,7 +161,7 @@ XPropertyEntry* XPropertyList::Get( long nIndex ) const
|
||||
return ( (size_t)nIndex < maList.size() ) ? maList[ nIndex ] : NULL;
|
||||
}
|
||||
|
||||
long XPropertyList::GetIndex(const XubString& rName) const
|
||||
long XPropertyList::GetIndex(const OUString& rName) const
|
||||
{
|
||||
if( mbListDirty )
|
||||
{
|
||||
@@ -170,7 +170,7 @@ long XPropertyList::GetIndex(const XubString& rName) const
|
||||
}
|
||||
|
||||
for( long i = 0, n = maList.size(); i < n; ++i ) {
|
||||
if ( maList[ i ]->GetName() == rName ) {
|
||||
if (rName.equals(maList[ i ]->GetName())) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user