convert include/svx/XPropertyEntry.hxx from String to OUString

Change-Id: Ie112b2e8af32eba60f67f767dd6a098980d907b4
This commit is contained in:
Noel Grandin
2013-09-03 16:08:30 +02:00
parent 10cbf4838e
commit a5c9304179
4 changed files with 8 additions and 8 deletions

View File

@@ -28,18 +28,18 @@
class SVX_DLLPUBLIC XPropertyEntry
{
private:
String maName;
Bitmap maUiBitmap;
OUString maName;
Bitmap maUiBitmap;
protected:
XPropertyEntry(const String& rName);
XPropertyEntry(const OUString& rName);
XPropertyEntry(const XPropertyEntry& rOther);
public:
virtual ~XPropertyEntry();
void SetName(const String& rName) { maName = rName; }
const String& GetName() const { return maName; }
void SetName(const OUString& rName) { maName = rName; }
const OUString& GetName() const { return maName; }
void SetUiBitmap(const Bitmap& rUiBitmap) { maUiBitmap = rUiBitmap; }
const Bitmap& GetUiBitmap() const { return maUiBitmap; }
};

View File

@@ -725,7 +725,7 @@ IMPL_LINK_NOARG(LinePropertyPanel, ChangeLineStyleHdl)
const XDashEntry* pDashEntry = mxLineStyleList->GetDash(nPos - 2);
OSL_ENSURE(pDashEntry, "OOps, got empty XDash from XDashList (!)");
const XLineDashItem aItemB(
pDashEntry ? pDashEntry->GetName() : String(),
pDashEntry ? pDashEntry->GetName() : OUString(),
pDashEntry ? pDashEntry->GetDash() : XDash());
GetBindings()->GetDispatcher()->Execute(SID_ATTR_LINE_STYLE, SFX_CALLMODE_RECORD, &aItemA, 0L);

View File

@@ -19,7 +19,7 @@
#include <svx/XPropertyEntry.hxx>
XPropertyEntry::XPropertyEntry(const String& rName)
XPropertyEntry::XPropertyEntry(const OUString& rName)
: maName(rName),
maUiBitmap()
{

View File

@@ -220,7 +220,7 @@ OUString NameOrIndex::CheckNamedItem( const NameOrIndex* pCheckItem, const sal_u
}
else
{
sal_Int32 nThisIndex = pEntry->GetName().Copy( aUser.Len() ).ToInt32();
sal_Int32 nThisIndex = pEntry->GetName().copy( aUser.Len() ).toInt32();
if( nThisIndex >= nUserIndex )
nUserIndex = nThisIndex + 1;
}