Kaydet (Commit) 674ed53b authored tarafından Olivier Hallot's avatar Olivier Hallot

More RTL_CONSTASCII_USTRINGPARAM removals

module sd/../ui
üst 139b5e76
...@@ -488,10 +488,8 @@ void SAL_CALL Listener::propertyChange ( ...@@ -488,10 +488,8 @@ void SAL_CALL Listener::propertyChange (
{ {
ThrowIfDisposed(); ThrowIfDisposed();
static const ::rtl::OUString sCurrentPagePropertyName ( static const ::rtl::OUString sCurrentPagePropertyName ("CurrentPage");
RTL_CONSTASCII_USTRINGPARAM("CurrentPage")); static const ::rtl::OUString sEditModePropertyName ("IsMasterPageMode");
static const ::rtl::OUString sEditModePropertyName (
RTL_CONSTASCII_USTRINGPARAM("IsMasterPageMode"));
if (rEvent.PropertyName.equals(sCurrentPagePropertyName)) if (rEvent.PropertyName.equals(sCurrentPagePropertyName))
{ {
...@@ -501,8 +499,7 @@ void SAL_CALL Listener::propertyChange ( ...@@ -501,8 +499,7 @@ void SAL_CALL Listener::propertyChange (
{ {
try try
{ {
Any aPageNumber = xPageSet->getPropertyValue ( Any aPageNumber = xPageSet->getPropertyValue ("Number");
String(RTL_CONSTASCII_USTRINGPARAM("Number")));
sal_Int32 nCurrentPage = 0; sal_Int32 nCurrentPage = 0;
aPageNumber >>= nCurrentPage; aPageNumber >>= nCurrentPage;
// The selection is already set but we call SelectPage() // The selection is already set but we call SelectPage()
...@@ -592,8 +589,7 @@ void Listener::UpdateEditMode (void) ...@@ -592,8 +589,7 @@ void Listener::UpdateEditMode (void)
{ {
try try
{ {
Any aValue (xSet->getPropertyValue( Any aValue (xSet->getPropertyValue( "IsMasterPageMode" ));
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsMasterPageMode"))));
aValue >>= bIsMasterPageMode; aValue >>= bIsMasterPageMode;
} }
catch (beans::UnknownPropertyException&) catch (beans::UnknownPropertyException&)
...@@ -693,9 +689,7 @@ void Listener::ThrowIfDisposed (void) ...@@ -693,9 +689,7 @@ void Listener::ThrowIfDisposed (void)
{ {
if (rBHelper.bDisposed || rBHelper.bInDispose) if (rBHelper.bDisposed || rBHelper.bInDispose)
{ {
throw lang::DisposedException ( throw lang::DisposedException ("SlideSorterController object has already been disposed",
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"SlideSorterController object has already been disposed")),
static_cast<uno::XWeak*>(this)); static_cast<uno::XWeak*>(this));
} }
} }
......
...@@ -828,11 +828,11 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet) ...@@ -828,11 +828,11 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
SdPage* pFirstPage = NULL; SdPage* pFirstPage = NULL;
sal_uInt16 nFirstPage; sal_uInt16 nFirstPage;
sal_uInt16 nSelectedPages = (sal_uInt16)mrSlideSorter.GetController().GetPageSelector().GetSelectedPageCount(); sal_uInt16 nSelectedPages = (sal_uInt16)mrSlideSorter.GetController().GetPageSelector().GetSelectedPageCount();
String aPageStr; rtl::OUString aPageStr;
String aLayoutStr; String aLayoutStr;
if (nSelectedPages > 0) if (nSelectedPages > 0)
aPageStr = String(SdResId(STR_SD_PAGE)); aPageStr = rtl::OUString(ResId::toString(SdResId(STR_SD_PAGE)));
if (nSelectedPages == 1) if (nSelectedPages == 1)
{ {
...@@ -846,11 +846,10 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet) ...@@ -846,11 +846,10 @@ void SlotManager::GetStatusBarState (SfxItemSet& rSet)
nFirstPage = pPage->GetPageNum()/2; nFirstPage = pPage->GetPageNum()/2;
pFirstPage = pPage; pFirstPage = pPage;
aPageStr += sal_Unicode(' '); aPageStr += " ";
aPageStr += String::CreateFromInt32( nFirstPage + 1 ); aPageStr += rtl::OUString::valueOf( nFirstPage + 1 );
aPageStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " / " )); aPageStr += " / " ;
aPageStr += String::CreateFromInt32( aPageStr += rtl::OUString::valueOf(mrSlideSorter.GetModel().GetPageCount());
mrSlideSorter.GetModel().GetPageCount());
aLayoutStr = pFirstPage->GetLayoutName(); aLayoutStr = pFirstPage->GetLayoutName();
aLayoutStr.Erase( aLayoutStr.SearchAscii( SD_LT_SEPARATOR ) ); aLayoutStr.Erase( aLayoutStr.SearchAscii( SD_LT_SEPARATOR ) );
......
...@@ -248,7 +248,7 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli ...@@ -248,7 +248,7 @@ sal_Int32 SlideSorterModel::GetIndex (const Reference<drawing::XDrawPage>& rxSli
{ {
try try
{ {
const Any aNumber (xSet->getPropertyValue(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Number")))); const Any aNumber (xSet->getPropertyValue("Number"));
sal_Int16 nNumber (-1); sal_Int16 nNumber (-1);
aNumber >>= nNumber; aNumber >>= nNumber;
nNumber -= 1; nNumber -= 1;
......
...@@ -79,7 +79,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance ( ...@@ -79,7 +79,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance (
::rtl::OUString SlideSorterService_getImplementationName (void) throw(RuntimeException) ::rtl::OUString SlideSorterService_getImplementationName (void) throw(RuntimeException)
{ {
return OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.SlideSorter")); return OUString("com.sun.star.comp.Draw.SlideSorter");
} }
...@@ -88,8 +88,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance ( ...@@ -88,8 +88,7 @@ Reference<XInterface> SAL_CALL SlideSorterService_createInstance (
Sequence<rtl::OUString> SAL_CALL SlideSorterService_getSupportedServiceNames (void) Sequence<rtl::OUString> SAL_CALL SlideSorterService_getSupportedServiceNames (void)
throw (RuntimeException) throw (RuntimeException)
{ {
static const ::rtl::OUString sServiceName( static const ::rtl::OUString sServiceName("com.sun.star.drawing.SlideSorter");
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.SlideSorter")));
return Sequence<rtl::OUString>(&sServiceName, 1); return Sequence<rtl::OUString>(&sServiceName, 1);
} }
...@@ -174,8 +173,7 @@ void SAL_CALL SlideSorterService::initialize (const Sequence<Any>& rArguments) ...@@ -174,8 +173,7 @@ void SAL_CALL SlideSorterService::initialize (const Sequence<Any>& rArguments)
} }
else else
{ {
throw RuntimeException( throw RuntimeException("SlideSorterService: invalid number of arguments",
OUString(RTL_CONSTASCII_USTRINGPARAM("SlideSorterService: invalid number of arguments")),
static_cast<drawing::XDrawView*>(this)); static_cast<drawing::XDrawView*>(this));
} }
} }
...@@ -632,9 +630,7 @@ void SlideSorterService::ThrowIfDisposed (void) ...@@ -632,9 +630,7 @@ void SlideSorterService::ThrowIfDisposed (void)
{ {
if (SlideSorterServiceInterfaceBase::rBHelper.bDisposed || SlideSorterServiceInterfaceBase::rBHelper.bInDispose) if (SlideSorterServiceInterfaceBase::rBHelper.bDisposed || SlideSorterServiceInterfaceBase::rBHelper.bInDispose)
{ {
throw lang::DisposedException ( throw lang::DisposedException ("SlideSorterService object has already been disposed",
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"SlideSorterService object has already been disposed")),
static_cast<drawing::XDrawView*>(this)); static_cast<drawing::XDrawView*>(this));
} }
} }
......
...@@ -1174,7 +1174,7 @@ void StartShowButton::ProcessClick (const model::SharedPageDescriptor& rpDescrip ...@@ -1174,7 +1174,7 @@ void StartShowButton::ProcessClick (const model::SharedPageDescriptor& rpDescrip
if (xPresentation.is()) if (xPresentation.is())
{ {
Sequence<PropertyValue> aProperties (1); Sequence<PropertyValue> aProperties (1);
aProperties[0].Name = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("FirstPage")); aProperties[0].Name = ::rtl::OUString("FirstPage");
const ::rtl::OUString sName (rpDescriptor->GetPage()->GetName()); const ::rtl::OUString sName (rpDescriptor->GetPage()->GetName());
aProperties[0].Value = Any(sName); aProperties[0].Value = Any(sName);
......
...@@ -66,8 +66,7 @@ FontProvider& FontProvider::Instance (void) ...@@ -66,8 +66,7 @@ FontProvider& FontProvider::Instance (void)
// We throw an exception when for some strange reason no instance of // We throw an exception when for some strange reason no instance of
// this class exists. // this class exists.
if (mpInstance == NULL) if (mpInstance == NULL)
throw ::com::sun::star::uno::RuntimeException(::rtl::OUString( throw ::com::sun::star::uno::RuntimeException("com.sun.star.document.IndexedPropertyValues",
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.document.IndexedPropertyValues")),
NULL); NULL);
return *mpInstance; return *mpInstance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment