diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-12-06 13:10:56 +0100 |
---|---|---|
committer | Gert Faller <gertfaller@aliceadsl.fr> | 2010-12-06 13:10:56 +0100 |
commit | 6c4698ded0d859ea64e867745d6512301fd4bcfb (patch) | |
tree | 06abcf53237a4fc364e9b42f76cfa604f49146de /sdext/source/presenter | |
parent | 780df7c562f71cdf0967e8e906c5f4ac84a7b587 (diff) |
RTL_CONSTASCII_USTRINGPARAM in extensions 1
Diffstat (limited to 'sdext/source/presenter')
21 files changed, 117 insertions, 117 deletions
diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx index 02bd3c6b46b1..05042dfd17b2 100644 --- a/sdext/source/presenter/PresenterAccessibility.cxx +++ b/sdext/source/presenter/PresenterAccessibility.cxx @@ -467,7 +467,7 @@ public: OUString sName (A2S("Presenter Console")); PresenterConfigurationAccess aConfiguration ( rxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); aConfiguration.GetConfigurationNode(A2S("Presenter/Accessibility/Console/String")) >>= sName; @@ -500,7 +500,7 @@ public: { PresenterConfigurationAccess aConfiguration ( rxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); aConfiguration.GetConfigurationNode(A2S("Presenter/Accessibility/Preview/String")) >>= sName; @@ -2254,7 +2254,7 @@ rtl::Reference<PresenterAccessible::AccessibleObject> AccessibleNotes::Create ( { PresenterConfigurationAccess aConfiguration ( rxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); aConfiguration.GetConfigurationNode(A2S("Presenter/Accessibility/Notes/String")) >>= sName; diff --git a/sdext/source/presenter/PresenterButton.cxx b/sdext/source/presenter/PresenterButton.cxx index 055689e7d550..e13bbcdc1386 100644 --- a/sdext/source/presenter/PresenterButton.cxx +++ b/sdext/source/presenter/PresenterButton.cxx @@ -134,7 +134,7 @@ PresenterButton::PresenterButton ( mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), rxComponentContext), UNO_QUERY_THROW); diff --git a/sdext/source/presenter/PresenterClock.cxx b/sdext/source/presenter/PresenterClock.cxx index 43c7d037d000..1d14b6473e20 100644 --- a/sdext/source/presenter/PresenterClock.cxx +++ b/sdext/source/presenter/PresenterClock.cxx @@ -628,7 +628,7 @@ void PresenterClock::SetMode (const sal_Int32 nMode) mpClockPainter.reset( new AnalogBitmapPainter( mxComponentContext, - OUString::createFromAscii("ClockTheme"))); + OUString(RTL_CONSTASCII_USTRINGPARAM("ClockTheme")))); mpClockPainter2.reset(); break; @@ -646,7 +646,7 @@ void PresenterClock::SetMode (const sal_Int32 nMode) mpClockPainter.reset( new AnalogBitmapPainter( mxComponentContext, - OUString::createFromAscii("ClockTheme"))); + OUString(RTL_CONSTASCII_USTRINGPARAM("ClockTheme")))); mpClockPainter2.reset(new AnalogDefaultPainter()); break; } @@ -1034,7 +1034,7 @@ void AnalogBitmapPainter::PrepareBitmaps (const Reference<rendering::XCanvas>& r // Get access to the clock bitmaps in the configuration. PresenterConfigurationAccess aConfiguration ( mxComponentContext, - OUString::createFromAscii("org.openoffice.Office.extension.PresenterScreen"), + OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.extension.PresenterScreen")), PresenterConfigurationAccess::READ_ONLY); Reference<container::XNameAccess> xTheme (GetTheme(aConfiguration)); @@ -1058,20 +1058,20 @@ Reference<container::XNameAccess> AnalogBitmapPainter::GetTheme ( // Get root of clock themes. Reference<container::XHierarchicalNameAccess> xClock ( rConfiguration.GetConfigurationNode( - OUString::createFromAscii("PresenterScreenSettings/AnalogBitmapClock")), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterScreenSettings/AnalogBitmapClock"))), UNO_QUERY); // Determine the name of the theme to use. - OUString sCurrentThemeName (OUString::createFromAscii("DefaultTheme")); + OUString sCurrentThemeName (RTL_CONSTASCII_USTRINGPARAM("DefaultTheme")); rConfiguration.GetConfigurationNode( xClock, - OUString::createFromAscii("CurrentTheme")) >>= sCurrentThemeName; + OUString(RTL_CONSTASCII_USTRINGPARAM("CurrentTheme"))) >>= sCurrentThemeName; // Load the clock theme. Reference<container::XNameAccess> xThemes ( rConfiguration.GetConfigurationNode( xClock, - OUString::createFromAscii("Themes")), + OUString(RTL_CONSTASCII_USTRINGPARAM("Themes"))), UNO_QUERY); if (xThemes.is()) { @@ -1098,7 +1098,7 @@ bool AnalogBitmapPainter::ThemeNameComparator ( if (rxCandidate.is()) { OUString sThemeName; - if (rxCandidate->getByName(OUString::createFromAscii("ThemeName")) >>= sThemeName) + if (rxCandidate->getByName(OUString(RTL_CONSTASCII_USTRINGPARAM("ThemeName"))) >>= sThemeName) { return sThemeName == rsCurrentThemeName; } @@ -1119,13 +1119,13 @@ void AnalogBitmapPainter::LoadBitmaps ( // Get base path to bitmaps. Reference<deployment::XPackageInformationProvider> xInformationProvider ( - mxComponentContext->getValueByName(OUString::createFromAscii( - "/singletons/com.sun.star.deployment.PackageInformationProvider")), + mxComponentContext->getValueByName(OUString(RTL_CONSTASCII_USTRINGPARAM( + "/singletons/com.sun.star.deployment.PackageInformationProvider"))), UNO_QUERY); OUString sLocation; if (xInformationProvider.is()) sLocation = xInformationProvider->getPackageLocation(gsExtensionIdentifier); - sLocation += OUString::createFromAscii("/"); + sLocation += OUString(RTL_CONSTASCII_USTRINGPARAM("/")); // Create the bitmap loader. Reference<lang::XMultiComponentFactory> xFactory ( @@ -1136,7 +1136,7 @@ void AnalogBitmapPainter::LoadBitmaps ( aArguments[0] <<= rxCanvas; Reference<container::XNameAccess> xBitmapLoader( xFactory->createInstanceWithArgumentsAndContext( - OUString::createFromAscii("com.sun.star.drawing.PresenterWorkaroundService"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.PresenterWorkaroundService")), aArguments, mxComponentContext), UNO_QUERY); @@ -1146,12 +1146,12 @@ void AnalogBitmapPainter::LoadBitmaps ( // Iterate over all entries in the bitmap list and load the bitmaps. Reference<container::XNameAccess> xBitmaps ( - rxClockTheme->getByName(OUString::createFromAscii("Bitmaps")), + rxClockTheme->getByName(OUString(RTL_CONSTASCII_USTRINGPARAM("Bitmaps"))), UNO_QUERY); ::std::vector<rtl::OUString> aBitmapProperties (3); - aBitmapProperties[0] = OUString::createFromAscii("FileName"); - aBitmapProperties[1] = OUString::createFromAscii("XOffset"); - aBitmapProperties[2] = OUString::createFromAscii("YOffset"); + aBitmapProperties[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("FileName")); + aBitmapProperties[1] = OUString(RTL_CONSTASCII_USTRINGPARAM("XOffset")); + aBitmapProperties[2] = OUString(RTL_CONSTASCII_USTRINGPARAM("YOffset")); PresenterConfigurationAccess::ForAll( xBitmaps, aBitmapProperties, @@ -1175,11 +1175,11 @@ void AnalogBitmapPainter::LoadBitmap ( if (rValues.size() == 3) { BitmapDescriptor* pDescriptor = NULL; - if (rsKey == OUString::createFromAscii("Face")) + if (rsKey == OUString(RTL_CONSTASCII_USTRINGPARAM("Face"))) pDescriptor = &maFace; - else if (rsKey == OUString::createFromAscii("HourHand")) + else if (rsKey == OUString(RTL_CONSTASCII_USTRINGPARAM("HourHand"))) pDescriptor = &maHourHand; - else if (rsKey == OUString::createFromAscii("MinuteHand")) + else if (rsKey == OUString(RTL_CONSTASCII_USTRINGPARAM("MinuteHand"))) pDescriptor = &maMinuteHand; if (pDescriptor == NULL) @@ -1284,12 +1284,12 @@ void DigitalDefaultPainter::Paint ( { sText = OUString::valueOf(nHour>12 ? nHour-12 : nHour); } - sText += OUString::createFromAscii(":"); + sText += OUString(RTL_CONSTASCII_USTRINGPARAM(":")); const OUString sMinutes (OUString::valueOf(nMinute)); switch (sMinutes.getLength()) { case 1 : - sText += OUString::createFromAscii("0") + sMinutes; + sText += OUString(RTL_CONSTASCII_USTRINGPARAM("0")) + sMinutes; break; case 2: sText += sMinutes; @@ -1300,12 +1300,12 @@ void DigitalDefaultPainter::Paint ( } if (bIsShowSeconds) { - sText += OUString::createFromAscii(":"); + sText += OUString(RTL_CONSTASCII_USTRINGPARAM(":")); const OUString sSeconds (OUString::valueOf(nSecond)); switch (sSeconds.getLength()) { case 1 : - sText += OUString::createFromAscii("0") + sSeconds; + sText += OUString(RTL_CONSTASCII_USTRINGPARAM("0")) + sSeconds; break; case 2: sText += sSeconds; @@ -1381,13 +1381,13 @@ void DigitalDefaultPainter::CreateFont ( // For the case that not all digits have the same width, create // different templates for 12 and 24 hour mode. if (mbIs24HourFormat) - sTimeTemplate = OUString::createFromAscii("20"); + sTimeTemplate = OUString(RTL_CONSTASCII_USTRINGPARAM("20")); else - sTimeTemplate = OUString::createFromAscii("10"); + sTimeTemplate = OUString(RTL_CONSTASCII_USTRINGPARAM("10")); if (bIsShowSeconds) - sTimeTemplate += OUString::createFromAscii(":00:00"); + sTimeTemplate += OUString(RTL_CONSTASCII_USTRINGPARAM(":00:00")); else - sTimeTemplate += OUString::createFromAscii(":00"); + sTimeTemplate += OUString(RTL_CONSTASCII_USTRINGPARAM(":00")); rendering::StringContext aContext ( sTimeTemplate, diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx index 2dbe9cde966f..d37f0d966db8 100644 --- a/sdext/source/presenter/PresenterController.cxx +++ b/sdext/source/presenter/PresenterController.cxx @@ -1311,8 +1311,8 @@ double PresenterController::GetSlideAspectRatio (void) const Reference<beans::XPropertySet> xProperties(xSlides->getByIndex(0),UNO_QUERY_THROW); sal_Int32 nWidth (28000); sal_Int32 nHeight (21000); - if ((xProperties->getPropertyValue(OUString::createFromAscii("Width")) >>= nWidth) - && (xProperties->getPropertyValue(OUString::createFromAscii("Height")) >>= nHeight) + if ((xProperties->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Width"))) >>= nWidth) + && (xProperties->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Height"))) >>= nHeight) && nHeight > 0) { nSlideAspectRatio = double(nWidth) / double(nHeight); diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx index efab952846b7..d8e3a6c0ac5c 100644 --- a/sdext/source/presenter/PresenterHelpView.cxx +++ b/sdext/source/presenter/PresenterHelpView.cxx @@ -390,7 +390,7 @@ void PresenterHelpView::ReadHelpStrings (void) mpTextContainer.reset(new TextContainer()); PresenterConfigurationAccess aConfiguration ( mxComponentContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); Reference<container::XNameAccess> xStrings ( aConfiguration.GetConfigurationNode(A2S("PresenterScreenSettings/HelpView/HelpStrings")), diff --git a/sdext/source/presenter/PresenterHelper.cxx b/sdext/source/presenter/PresenterHelper.cxx index 9e7001de426d..13338aefb212 100644 --- a/sdext/source/presenter/PresenterHelper.cxx +++ b/sdext/source/presenter/PresenterHelper.cxx @@ -44,28 +44,28 @@ using ::rtl::OUString; namespace sdext { namespace presenter { const OUString PresenterHelper::msPaneURLPrefix( - OUString::createFromAscii("private:resource/pane/")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/")); const OUString PresenterHelper::msCenterPaneURL( - msPaneURLPrefix + OUString::createFromAscii("CenterPane")); + msPaneURLPrefix + OUString(RTL_CONSTASCII_USTRINGPARAM("CenterPane"))); const OUString PresenterHelper::msFullScreenPaneURL( - msPaneURLPrefix + OUString::createFromAscii("FullScreenPane")); + msPaneURLPrefix + OUString(RTL_CONSTASCII_USTRINGPARAM("FullScreenPane"))); const OUString PresenterHelper::msViewURLPrefix( - OUString::createFromAscii("private:resource/view/")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/view/")); const OUString PresenterHelper::msPresenterScreenURL( - msViewURLPrefix + OUString::createFromAscii("PresenterScreen")); + msViewURLPrefix + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterScreen"))); const OUString PresenterHelper::msSlideSorterURL( - msViewURLPrefix + OUString::createFromAscii("SlideSorter")); + msViewURLPrefix + OUString(RTL_CONSTASCII_USTRINGPARAM("SlideSorter"))); const OUString PresenterHelper::msResourceActivationEvent( - OUString::createFromAscii("ResourceActivation")); + RTL_CONSTASCII_USTRINGPARAM("ResourceActivation")); const OUString PresenterHelper::msResourceDeactivationEvent( - OUString::createFromAscii("ResourceDeactivation")); + RTL_CONSTASCII_USTRINGPARAM("ResourceDeactivation")); const OUString PresenterHelper::msDefaultPaneStyle ( - OUString::createFromAscii("DefaultPaneStyle")); + RTL_CONSTASCII_USTRINGPARAM("DefaultPaneStyle")); const OUString PresenterHelper::msDefaultViewStyle ( - OUString::createFromAscii("DefaultViewStyle")); + RTL_CONSTASCII_USTRINGPARAM("DefaultViewStyle")); Reference<presentation::XSlideShowController> PresenterHelper::GetSlideShowController ( diff --git a/sdext/source/presenter/PresenterPane.cxx b/sdext/source/presenter/PresenterPane.cxx index 65380f40b790..096e5615fcbe 100644 --- a/sdext/source/presenter/PresenterPane.cxx +++ b/sdext/source/presenter/PresenterPane.cxx @@ -57,7 +57,7 @@ PresenterPane::PresenterPane ( mxComponentContext->getServiceManager(), UNO_QUERY_THROW); mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), mxComponentContext), UNO_QUERY_THROW); } diff --git a/sdext/source/presenter/PresenterPaneBase.cxx b/sdext/source/presenter/PresenterPaneBase.cxx index 4003c79e4bb9..39283673c23d 100644 --- a/sdext/source/presenter/PresenterPaneBase.cxx +++ b/sdext/source/presenter/PresenterPaneBase.cxx @@ -221,7 +221,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if ( ! mxComponentContext.is()) { throw RuntimeException( - OUString::createFromAscii("PresenterSpritePane: missing component context"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterSpritePane: missing component context")), static_cast<XWeak*>(this)); } @@ -233,7 +233,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if ( ! (rArguments[0] >>= mxPaneId)) { throw lang::IllegalArgumentException( - OUString::createFromAscii("PresenterPane: invalid pane id"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid pane id")), static_cast<XWeak*>(this), 0); } @@ -241,7 +241,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if ( ! (rArguments[1] >>= mxParentWindow)) { throw lang::IllegalArgumentException( - OUString::createFromAscii("PresenterPane: invalid parent window"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid parent window")), static_cast<XWeak*>(this), 1); } @@ -250,7 +250,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if ( ! (rArguments[2] >>= xParentCanvas)) { throw lang::IllegalArgumentException( - OUString::createFromAscii("PresenterPane: invalid parent canvas"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid parent canvas")), static_cast<XWeak*>(this), 2); } @@ -258,7 +258,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if ( ! (rArguments[3] >>= msTitle)) { throw lang::IllegalArgumentException( - OUString::createFromAscii("PresenterPane: invalid title"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid title")), static_cast<XWeak*>(this), 3); } @@ -266,7 +266,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if ( ! (rArguments[4] >>= mxBorderPainter)) { throw lang::IllegalArgumentException( - OUString::createFromAscii("PresenterPane: invalid border painter"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid border painter")), static_cast<XWeak*>(this), 4); } @@ -275,7 +275,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) if (rArguments.getLength()>5 && ! (rArguments[5] >>= bIsWindowVisibleOnCreation)) { throw lang::IllegalArgumentException( - OUString::createFromAscii("PresenterPane: invalid window visibility flag"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid window visibility flag")), static_cast<XWeak*>(this), 5); } @@ -303,7 +303,7 @@ void SAL_CALL PresenterPaneBase::initialize (const Sequence<Any>& rArguments) else { throw RuntimeException( - OUString::createFromAscii("PresenterSpritePane: invalid number of arguments"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterSpritePane: invalid number of arguments")), static_cast<XWeak*>(this)); } } diff --git a/sdext/source/presenter/PresenterPaneBorderManager.cxx b/sdext/source/presenter/PresenterPaneBorderManager.cxx index 8b8be6fb072c..6150d0ce8914 100644 --- a/sdext/source/presenter/PresenterPaneBorderManager.cxx +++ b/sdext/source/presenter/PresenterPaneBorderManager.cxx @@ -60,7 +60,7 @@ namespace sdext { namespace presenter { OUString PresenterPaneBorderManager::getImplementationName_static (void) { - return OUString::createFromAscii("com.sun.star.comp.Draw.PresenterPaneBorderManager"); + return OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterPaneBorderManager")); } @@ -69,7 +69,7 @@ OUString PresenterPaneBorderManager::getImplementationName_static (void) Sequence<OUString> PresenterPaneBorderManager::getSupportedServiceNames_static (void) { static const ::rtl::OUString sServiceName( - ::rtl::OUString::createFromAscii("com.sun.star.drawing.PresenterPaneBorderManager")); + RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.PresenterPaneBorderManager")); return Sequence<rtl::OUString>(&sServiceName, 1); } @@ -108,13 +108,13 @@ PresenterPaneBorderManager::PresenterPaneBorderManager ( { mxPointer = Reference<awt::XPointer>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.awt.Pointer"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.Pointer")), rxContext), UNO_QUERY_THROW); mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), rxContext), UNO_QUERY_THROW); } @@ -282,7 +282,7 @@ void SAL_CALL PresenterPaneBorderManager::initialize (const Sequence<Any>& rArgu else { throw RuntimeException( - OUString::createFromAscii("PresenterPane: invalid number of arguments"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterPane: invalid number of arguments")), static_cast<XWeak*>(this)); } } diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx index 0765ffef4c97..7a27dda1806b 100644 --- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx +++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx @@ -477,7 +477,7 @@ PresenterPaneBorderPainter::Renderer::Renderer ( { mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), rxContext), UNO_QUERY_THROW); } @@ -694,7 +694,7 @@ void PresenterPaneBorderPainter::Renderer::PaintTitle ( RendererPaneStyleContainer::const_iterator iStyle (maRendererPaneStyles.find(rsResourceURL)); if (iStyle == maRendererPaneStyles.end()) { - OUString sPaneStyleName (OUString::createFromAscii("DefaultRendererPaneStyle")); + OUString sPaneStyleName (RTL_CONSTASCII_USTRINGPARAM("DefaultRendererPaneStyle")); // Get pane layout name for resource URL. const OUString sStyleName (mpTheme->GetStyleName(rsResourceURL)); @@ -955,7 +955,7 @@ RendererPaneStyle::RendererPaneStyle ( // Get font description. mpFont = rpTheme->GetFont(rsStyleName); - OUString sAnchor (OUString::createFromAscii("Left")); + OUString sAnchor (RTL_CONSTASCII_USTRINGPARAM("Left")); if (mpFont.get() != NULL) { sAnchor = mpFont->msAnchor; @@ -963,11 +963,11 @@ RendererPaneStyle::RendererPaneStyle ( mnFontYOffset = mpFont->mnYOffset; } - if (sAnchor == OUString::createFromAscii("Left")) + if (sAnchor == OUString(RTL_CONSTASCII_USTRINGPARAM("Left"))) meFontAnchor = AnchorLeft; - else if (sAnchor == OUString::createFromAscii("Right")) + else if (sAnchor == OUString(RTL_CONSTASCII_USTRINGPARAM("Right"))) meFontAnchor = AnchorRight; - else if (sAnchor == OUString::createFromAscii("Center")) + else if (sAnchor == OUString(RTL_CONSTASCII_USTRINGPARAM("Center"))) meFontAnchor = AnchorCenter; else meFontAnchor = AnchorCenter; diff --git a/sdext/source/presenter/PresenterPaneContainer.cxx b/sdext/source/presenter/PresenterPaneContainer.cxx index e9b5cbb95622..feb7ecb6bd02 100644 --- a/sdext/source/presenter/PresenterPaneContainer.cxx +++ b/sdext/source/presenter/PresenterPaneContainer.cxx @@ -55,7 +55,7 @@ PresenterPaneContainer::PresenterPaneContainer ( { mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), rxContext), UNO_QUERY_THROW); } diff --git a/sdext/source/presenter/PresenterPaneFactory.cxx b/sdext/source/presenter/PresenterPaneFactory.cxx index 4763893698df..5d8b307398ef 100644 --- a/sdext/source/presenter/PresenterPaneFactory.cxx +++ b/sdext/source/presenter/PresenterPaneFactory.cxx @@ -53,20 +53,20 @@ using ::rtl::OUString; namespace sdext { namespace presenter { const ::rtl::OUString PresenterPaneFactory::msCurrentSlidePreviewPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Pane1")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Pane1")); const ::rtl::OUString PresenterPaneFactory::msNextSlidePreviewPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Pane2")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Pane2")); const ::rtl::OUString PresenterPaneFactory::msNotesPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Pane3")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Pane3")); const ::rtl::OUString PresenterPaneFactory::msToolBarPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Pane4")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Pane4")); const ::rtl::OUString PresenterPaneFactory::msSlideSorterPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Pane5")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Pane5")); const ::rtl::OUString PresenterPaneFactory::msHelpPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Pane6")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Pane6")); const ::rtl::OUString PresenterPaneFactory::msOverlayPaneURL( - OUString::createFromAscii("private:resource/pane/Presenter/Overlay")); + RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/Overlay")); @@ -117,7 +117,7 @@ void PresenterPaneFactory::Register (const Reference<frame::XController>& rxCont else { xCC->addResourceFactory( - OUString::createFromAscii("private:resource/pane/Presenter/*"), + OUString(RTL_CONSTASCII_USTRINGPARAM("private:resource/pane/Presenter/*")), this); } } diff --git a/sdext/source/presenter/PresenterScreen.cxx b/sdext/source/presenter/PresenterScreen.cxx index 951c4610b8be..41d7c40274ba 100644 --- a/sdext/source/presenter/PresenterScreen.cxx +++ b/sdext/source/presenter/PresenterScreen.cxx @@ -539,11 +539,11 @@ sal_Int32 PresenterScreen::GetScreenNumber ( // is set. PresenterConfigurationAccess aConfiguration ( xContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); bool bStartAlways (false); if (aConfiguration.GetConfigurationNode( - OUString::createFromAscii("Presenter/StartAlways")) >>= bStartAlways) + OUString(RTL_CONSTASCII_USTRINGPARAM("Presenter/StartAlways"))) >>= bStartAlways) { if (bStartAlways) return nScreenNumber; @@ -702,13 +702,13 @@ void PresenterScreen::SetupConfiguration ( { PresenterConfigurationAccess aConfiguration ( rxContext, - OUString::createFromAscii("org.openoffice.Office.extension.PresenterScreen"), + OUString(RTL_CONSTASCII_USTRINGPARAM("org.openoffice.Office.extension.PresenterScreen")), PresenterConfigurationAccess::READ_ONLY); maViewDescriptors.clear(); ProcessViewDescriptions(aConfiguration); - OUString sLayoutName (OUString::createFromAscii("DefaultLayout")); + OUString sLayoutName (RTL_CONSTASCII_USTRINGPARAM("DefaultLayout")); aConfiguration.GetConfigurationNode( - OUString::createFromAscii("Presenter/CurrentLayout")) >>= sLayoutName; + OUString(RTL_CONSTASCII_USTRINGPARAM("Presenter/CurrentLayout"))) >>= sLayoutName; ProcessLayout(aConfiguration, sLayoutName, rxContext, rxAnchorId); } catch (RuntimeException&) @@ -729,14 +729,14 @@ void PresenterScreen::ProcessLayout ( { Reference<container::XHierarchicalNameAccess> xLayoutNode ( rConfiguration.GetConfigurationNode( - OUString::createFromAscii("Presenter/Layouts/")+rsLayoutName), + OUString(RTL_CONSTASCII_USTRINGPARAM("Presenter/Layouts/"))+rsLayoutName), UNO_QUERY_THROW); // Read the parent layout first, if one is referenced. OUString sParentLayout; rConfiguration.GetConfigurationNode( xLayoutNode, - OUString::createFromAscii("ParentLayout")) >>= sParentLayout; + OUString(RTL_CONSTASCII_USTRINGPARAM("ParentLayout"))) >>= sParentLayout; if (sParentLayout.getLength() > 0) { // Prevent infinite recursion. @@ -748,16 +748,16 @@ void PresenterScreen::ProcessLayout ( Reference<container::XNameAccess> xList ( rConfiguration.GetConfigurationNode( xLayoutNode, - OUString::createFromAscii("Layout")), + OUString(RTL_CONSTASCII_USTRINGPARAM("Layout"))), UNO_QUERY_THROW); ::std::vector<rtl::OUString> aProperties (6); - aProperties[0] = OUString::createFromAscii("PaneURL"); - aProperties[1] = OUString::createFromAscii("ViewURL"); - aProperties[2] = OUString::createFromAscii("RelativeX"); - aProperties[3] = OUString::createFromAscii("RelativeY"); - aProperties[4] = OUString::createFromAscii("RelativeWidth"); - aProperties[5] = OUString::createFromAscii("RelativeHeight"); + aProperties[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("PaneURL")); + aProperties[1] = OUString(RTL_CONSTASCII_USTRINGPARAM("ViewURL")); + aProperties[2] = OUString(RTL_CONSTASCII_USTRINGPARAM("RelativeX")); + aProperties[3] = OUString(RTL_CONSTASCII_USTRINGPARAM("RelativeY")); + aProperties[4] = OUString(RTL_CONSTASCII_USTRINGPARAM("RelativeWidth")); + aProperties[5] = OUString(RTL_CONSTASCII_USTRINGPARAM("RelativeHeight")); mnComponentIndex = 1; PresenterConfigurationAccess::ForAll( xList, @@ -786,10 +786,10 @@ void PresenterScreen::ProcessViewDescriptions ( UNO_QUERY_THROW); ::std::vector<rtl::OUString> aProperties (4); - aProperties[0] = OUString::createFromAscii("ViewURL"); - aProperties[1] = OUString::createFromAscii("Title"); - aProperties[2] = OUString::createFromAscii("AccessibleTitle"); - aProperties[3] = OUString::createFromAscii("IsOpaque"); + aProperties[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("ViewURL")); + aProperties[1] = OUString(RTL_CONSTASCII_USTRINGPARAM("Title")); + aProperties[2] = OUString(RTL_CONSTASCII_USTRINGPARAM("AccessibleTitle")); + aProperties[3] = OUString(RTL_CONSTASCII_USTRINGPARAM("IsOpaque")); mnComponentIndex = 1; PresenterConfigurationAccess::ForAll( xViewDescriptionsNode, diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx index 5786ccba2a2f..7b78acaed7aa 100644 --- a/sdext/source/presenter/PresenterScrollBar.cxx +++ b/sdext/source/presenter/PresenterScrollBar.cxx @@ -129,7 +129,7 @@ PresenterScrollBar::PresenterScrollBar ( mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), rxComponentContext), UNO_QUERY_THROW); @@ -331,7 +331,7 @@ void PresenterScrollBar::SetCanvas (const Reference<css::rendering::XCanvas>& rx try { mpBitmaps.reset(new PresenterBitmapContainer( - OUString::createFromAscii("PresenterScreenSettings/ScrollBar/Bitmaps"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterScreenSettings/ScrollBar/Bitmaps")), ::boost::shared_ptr<PresenterBitmapContainer>(), mxComponentContext, mxCanvas, diff --git a/sdext/source/presenter/PresenterSlidePreview.cxx b/sdext/source/presenter/PresenterSlidePreview.cxx index 3954a5ff1ed8..ce5c23a82829 100644 --- a/sdext/source/presenter/PresenterSlidePreview.cxx +++ b/sdext/source/presenter/PresenterSlidePreview.cxx @@ -79,8 +79,8 @@ PresenterSlidePreview::PresenterSlidePreview ( || ! rpPresenterController.is()) { throw RuntimeException( - OUString::createFromAscii( - "PresenterSlidePreview can not be constructed due to empty argument"), + OUString(RTL_CONSTASCII_USTRINGPARAM( + "PresenterSlidePreview can not be constructed due to empty argument")), static_cast<XWeak*>(this)); } @@ -106,7 +106,7 @@ PresenterSlidePreview::PresenterSlidePreview ( if (xFactory.is()) mxPreviewRenderer = Reference<drawing::XSlideRenderer>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.drawing.SlideRenderer"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.SlideRenderer")), rxContext), UNO_QUERY); @@ -278,9 +278,9 @@ void PresenterSlidePreview::SetSlide (const Reference<drawing::XDrawPage>& rxPag try { xPropertySet->getPropertyValue( - OUString::createFromAscii("Width")) >>= aSlideSize.Width; + OUString(RTL_CONSTASCII_USTRINGPARAM("Width"))) >>= aSlideSize.Width; xPropertySet->getPropertyValue( - OUString::createFromAscii("Height")) >>= aSlideSize.Height; + OUString(RTL_CONSTASCII_USTRINGPARAM("Height"))) >>= aSlideSize.Height; } catch (beans::UnknownPropertyException&) { diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx index e63f22b5a84a..312b07f5fda8 100644 --- a/sdext/source/presenter/PresenterSlideShowView.cxx +++ b/sdext/source/presenter/PresenterSlideShowView.cxx @@ -116,7 +116,7 @@ void PresenterSlideShowView::LateInit (void) Reference<lang::XMultiComponentFactory> xFactory ( mxComponentContext->getServiceManager(), UNO_QUERY_THROW); mxPresenterHelper.set (xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), mxComponentContext), UNO_QUERY_THROW); @@ -545,7 +545,7 @@ void SAL_CALL PresenterSlideShowView::setMouseCursor(::sal_Int16 nPointerShape) mxComponentContext, UNO_QUERY); if (xFactory.is()) mxPointer = Reference<awt::XPointer>( - xFactory->createInstance(OUString::createFromAscii("com.sun.star.awt.Pointer")), + xFactory->createInstance(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.Pointer"))), UNO_QUERY); } @@ -973,7 +973,7 @@ Reference<awt::XWindow> PresenterSlideShowView::CreateViewWindow ( Reference<awt::XToolkit> xToolkit ( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.awt.Toolkit"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.awt.Toolkit")), mxComponentContext), UNO_QUERY_THROW); awt::WindowDescriptor aWindowDescriptor ( @@ -1148,7 +1148,7 @@ void PresenterSlideShowView::ThrowIfDisposed (void) if (rBHelper.bDisposed || rBHelper.bInDispose) { throw lang::DisposedException ( - OUString::createFromAscii("PresenterSlideShowView object has already been disposed"), + OUString(RTL_CONSTASCII_USTRINGPARAM("PresenterSlideShowView object has already been disposed")), static_cast<uno::XWeak*>(this)); } } diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx index 0f65c9331a1c..3fe9051949c1 100644 --- a/sdext/source/presenter/PresenterSlideSorter.cxx +++ b/sdext/source/presenter/PresenterSlideSorter.cxx @@ -375,7 +375,7 @@ PresenterSlideSorter::PresenterSlideSorter ( // Create the preview cache. mxPreviewCache = Reference<drawing::XSlidePreviewCache>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.drawing.PresenterPreviewCache"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.PresenterPreviewCache")), mxComponentContext), UNO_QUERY_THROW); Reference<container::XIndexAccess> xSlides (mxSlideShowController, UNO_QUERY); @@ -396,7 +396,7 @@ PresenterSlideSorter::PresenterSlideSorter ( // Listen for changes of the current slide. Reference<beans::XPropertySet> xControllerProperties (rxController, UNO_QUERY_THROW); xControllerProperties->addPropertyChangeListener( - OUString::createFromAscii("CurrentPage"), + OUString(RTL_CONSTASCII_USTRINGPARAM("CurrentPage")), this); // Move the current slide in the center of the window. @@ -983,8 +983,8 @@ double PresenterSlideSorter::GetSlideAspectRatio (void) const Reference<beans::XPropertySet> xProperties(xSlides->getByIndex(0),UNO_QUERY_THROW); sal_Int32 nWidth (28000); sal_Int32 nHeight (21000); - if ((xProperties->getPropertyValue(OUString::createFromAscii("Width")) >>= nWidth) - && (xProperties->getPropertyValue(OUString::createFromAscii("Height")) >>= nHeight) + if ((xProperties->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Width"))) >>= nWidth) + && (xProperties->getPropertyValue(OUString(RTL_CONSTASCII_USTRINGPARAM("Height"))) >>= nHeight) && nHeight > 0) { nSlideAspectRatio = double(nWidth) / double(nHeight); @@ -2066,7 +2066,7 @@ PresenterSlideSorter::CurrentSlideFrameRenderer::CurrentSlideFrameRenderer ( { PresenterConfigurationAccess aConfiguration ( rxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); Reference<container::XHierarchicalNameAccess> xBitmaps ( aConfiguration.GetConfigurationNode( diff --git a/sdext/source/presenter/PresenterSpritePane.cxx b/sdext/source/presenter/PresenterSpritePane.cxx index 1f8ebdbbc35e..ae4866f58879 100644 --- a/sdext/source/presenter/PresenterSpritePane.cxx +++ b/sdext/source/presenter/PresenterSpritePane.cxx @@ -55,7 +55,7 @@ PresenterSpritePane::PresenterSpritePane (const Reference<XComponentContext>& rx mxComponentContext->getServiceManager(), UNO_QUERY_THROW); mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), mxComponentContext), UNO_QUERY_THROW); } diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx index 0777d147cff9..6688f7e8b679 100644 --- a/sdext/source/presenter/PresenterTheme.cxx +++ b/sdext/source/presenter/PresenterTheme.cxx @@ -341,7 +341,7 @@ void SAL_CALL PresenterTheme::disposing (void) PresenterConfigurationAccess aConfiguration ( mxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); return aReadContext.ReadTheme(aConfiguration, msThemeName); @@ -451,7 +451,7 @@ bool PresenterTheme::ConvertToColor ( ::boost::shared_ptr<PresenterConfigurationAccess> pConfiguration ( new PresenterConfigurationAccess( mxContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_WRITE)); // Get configuration node for the view style container of the current @@ -603,7 +603,7 @@ PresenterTheme::FontDescriptor::FontDescriptor (void) msStyleName(), mnSize(12), mnColor(0x00000000), - msAnchor(OUString::createFromAscii("Left")), + msAnchor(OUString(RTL_CONSTASCII_USTRINGPARAM("Left"))), mnXOffset(0), mnYOffset(0) { @@ -618,7 +618,7 @@ PresenterTheme::FontDescriptor::FontDescriptor ( msStyleName(), mnSize(12), mnColor(0x00000000), - msAnchor(OUString::createFromAscii("Left")), + msAnchor(OUString(RTL_CONSTASCII_USTRINGPARAM("Left"))), mnXOffset(0), mnYOffset(0) { @@ -869,7 +869,7 @@ ReadContext::ReadContext ( { mxPresenterHelper = Reference<drawing::XPresenterHelper>( xFactory->createInstanceWithContext( - OUString::createFromAscii("com.sun.star.comp.Draw.PresenterHelper"), + OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.Draw.PresenterHelper")), rxContext), UNO_QUERY_THROW); } diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index ad5d6161eca8..a2bed04f66f4 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -778,7 +778,7 @@ void PresenterToolBar::CreateControls ( // Expand the macro in the bitmap file names. PresenterConfigurationAccess aConfiguration ( mxComponentContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); const OUString sBasePath (PresenterComponent::GetBasePath(mxComponentContext)); @@ -2092,7 +2092,7 @@ void ProgressLabel::CurrentSlideHasChanged (void) if (nCurrentSlideIndex >= 0 && nSlideCount > 0) SetText( OUString::valueOf(nCurrentSlideIndex) - + OUString::createFromAscii(" / ") + + OUString(RTL_CONSTASCII_USTRINGPARAM(" / ")) + OUString::valueOf(nSlideCount)); else SetText(A2S("")); diff --git a/sdext/source/presenter/PresenterWindowManager.cxx b/sdext/source/presenter/PresenterWindowManager.cxx index 821e927dcb5b..9ee8cff274ae 100644 --- a/sdext/source/presenter/PresenterWindowManager.cxx +++ b/sdext/source/presenter/PresenterWindowManager.cxx @@ -754,7 +754,7 @@ void PresenterWindowManager::RestoreViewMode (void) sal_Int32 nMode (0); PresenterConfigurationAccess aConfiguration ( mxComponentContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_ONLY); aConfiguration.GetConfigurationNode(A2S("Presenter/InitialViewMode")) >>= nMode; switch (nMode) @@ -783,7 +783,7 @@ void PresenterWindowManager::StoreViewMode (const ViewMode eViewMode) { PresenterConfigurationAccess aConfiguration ( mxComponentContext, - OUString::createFromAscii("/org.openoffice.Office.extension.PresenterScreen/"), + OUString(RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.extension.PresenterScreen/")), PresenterConfigurationAccess::READ_WRITE); aConfiguration.GoToChild(A2S("Presenter")); Any aValue; |