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

More RTL_CONSTASCII_USTRINGPARAM removals

üst 39ba666f
...@@ -226,7 +226,7 @@ void LayoutMenu::implConstruct( DrawDocShell& rDocumentShell ) ...@@ -226,7 +226,7 @@ void LayoutMenu::implConstruct( DrawDocShell& rDocumentShell )
mxListener = new ::sd::tools::SlotStateListener( mxListener = new ::sd::tools::SlotStateListener(
aStateChangeLink, aStateChangeLink,
Reference<frame::XDispatchProvider>(mrBase.GetController()->getFrame(), UNO_QUERY), Reference<frame::XDispatchProvider>(mrBase.GetController()->getFrame(), UNO_QUERY),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:VerticalTextState"))); ".uno:VerticalTextState");
// Add this new object as shell to the shell factory. // Add this new object as shell to the shell factory.
GetShellManager()->AddSubShell(SHELLID_SD_TASK_PANE_PREVIEW_LAYOUTS,this,this); GetShellManager()->AddSubShell(SHELLID_SD_TASK_PANE_PREVIEW_LAYOUTS,this,this);
......
...@@ -60,8 +60,7 @@ ScrollPanel::ScrollPanel ( ...@@ -60,8 +60,7 @@ ScrollPanel::ScrollPanel (
void ScrollPanel::Construct() void ScrollPanel::Construct()
{ {
SetAccessibleName ( SetAccessibleName (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sub Task Panel")));
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sub Task Panel")));
mpControlContainer->SetMultiSelection (true); mpControlContainer->SetMultiSelection (true);
SetBorderStyle (WINDOW_BORDER_NORMAL); SetBorderStyle (WINDOW_BORDER_NORMAL);
...@@ -693,8 +692,8 @@ long ScrollPanel::Notify( NotifyEvent& rNEvt ) ...@@ -693,8 +692,8 @@ long ScrollPanel::Notify( NotifyEvent& rNEvt )
{ {
return new ::accessibility::AccessibleScrollPanel ( return new ::accessibility::AccessibleScrollPanel (
*this, *this,
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Scroll Panel")), "Scroll Panel",
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Scroll Panel"))); "Scroll Panel");
} }
......
...@@ -52,8 +52,7 @@ SubToolPanel::SubToolPanel ( ...@@ -52,8 +52,7 @@ SubToolPanel::SubToolPanel (
mnVerticalGap(3), mnVerticalGap(3),
mnHorizontalBorder(2) mnHorizontalBorder(2)
{ {
SetAccessibleName ( SetAccessibleName (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sub Task Panel")));
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sub Task Panel")));
mpControlContainer->SetMultiSelection (true); mpControlContainer->SetMultiSelection (true);
SetBorderStyle (WINDOW_BORDER_NORMAL); SetBorderStyle (WINDOW_BORDER_NORMAL);
...@@ -381,8 +380,8 @@ IMPL_LINK(SubToolPanel, WindowEventListener, VclSimpleEvent*, pEvent) ...@@ -381,8 +380,8 @@ IMPL_LINK(SubToolPanel, WindowEventListener, VclSimpleEvent*, pEvent)
{ {
return new ::accessibility::AccessibleTreeNode ( return new ::accessibility::AccessibleTreeNode (
*this, *this,
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sub Task Panel")), "Sub Task Panel",
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Sub Task Panel")), "Sub Task Panel",
::com::sun::star::accessibility::AccessibleRole::PANEL); ::com::sun::star::accessibility::AccessibleRole::PANEL);
} }
......
...@@ -117,14 +117,14 @@ namespace sd { namespace toolpanel ...@@ -117,14 +117,14 @@ namespace sd { namespace toolpanel
//------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------
::rtl::OUString ToolPanelFactory_getImplementationName() throw(RuntimeException) ::rtl::OUString ToolPanelFactory_getImplementationName() throw(RuntimeException)
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.comp.drawing.ToolPanelFactory" ) ); return ::rtl::OUString( "com.sun.star.comp.drawing.ToolPanelFactory" ) ;
} }
//------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------
Sequence< ::rtl::OUString > SAL_CALL ToolPanelFactory_getSupportedServiceNames (void) Sequence< ::rtl::OUString > SAL_CALL ToolPanelFactory_getSupportedServiceNames (void)
throw (RuntimeException) throw (RuntimeException)
{ {
const ::rtl::OUString sServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.drawing.DefaultToolPanelFactory" ) ); const ::rtl::OUString sServiceName( "com.sun.star.drawing.DefaultToolPanelFactory" );
return Sequence< ::rtl::OUString >( &sServiceName, 1 ); return Sequence< ::rtl::OUString >( &sServiceName, 1 );
} }
...@@ -153,7 +153,7 @@ namespace sd { namespace toolpanel ...@@ -153,7 +153,7 @@ namespace sd { namespace toolpanel
const Reference< XWindow > xParentWindow( aArgs.getOrDefault( "ParentWindow", Reference< XWindow >() ) ); const Reference< XWindow > xParentWindow( aArgs.getOrDefault( "ParentWindow", Reference< XWindow >() ) );
if ( !xDocFrame.is() || !xParentWindow.is() ) if ( !xDocFrame.is() || !xParentWindow.is() )
throw IllegalArgumentException( throw IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "For creating a standard tool panel, a Frame and a Parent window are needed." ) ), "For creating a standard tool panel, a Frame and a Parent window are needed." ,
*this, *this,
2 2
); );
...@@ -174,7 +174,7 @@ namespace sd { namespace toolpanel ...@@ -174,7 +174,7 @@ namespace sd { namespace toolpanel
if ( !pViewFrame || !pViewFrame->HasChildWindow( SID_TASKPANE ) ) if ( !pViewFrame || !pViewFrame->HasChildWindow( SID_TASKPANE ) )
throw IllegalArgumentException( throw IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Illegal frame." ) ), "Illegal frame." ,
*this, *this,
2 2
); );
...@@ -183,7 +183,7 @@ namespace sd { namespace toolpanel ...@@ -183,7 +183,7 @@ namespace sd { namespace toolpanel
ToolPanelChildWindow* pToolPanelWindow( dynamic_cast< ToolPanelChildWindow* >( pViewFrame->GetChildWindow( SID_TASKPANE ) ) ); ToolPanelChildWindow* pToolPanelWindow( dynamic_cast< ToolPanelChildWindow* >( pViewFrame->GetChildWindow( SID_TASKPANE ) ) );
if ( !pToolPanelWindow ) if ( !pToolPanelWindow )
throw IllegalArgumentException( throw IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "No Impress document, or no Impress Task Pane." ) ), "No Impress document, or no Impress Task Pane." ,
*this, *this,
2 2
); );
...@@ -200,7 +200,7 @@ namespace sd { namespace toolpanel ...@@ -200,7 +200,7 @@ namespace sd { namespace toolpanel
if ( !pToolPanelShell ) if ( !pToolPanelShell )
throw IllegalArgumentException( throw IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Wrong document type." ) ), "Wrong document type." ,
*this, *this,
2 2
); );
...@@ -208,7 +208,7 @@ namespace sd { namespace toolpanel ...@@ -208,7 +208,7 @@ namespace sd { namespace toolpanel
::Window* pParentWindow = VCLUnoHelper::GetWindow( xParentWindow ); ::Window* pParentWindow = VCLUnoHelper::GetWindow( xParentWindow );
if ( !pParentWindow || !pToolPanelShell->IsPanelAnchorWindow( *pParentWindow ) ) if ( !pParentWindow || !pToolPanelShell->IsPanelAnchorWindow( *pParentWindow ) )
throw IllegalArgumentException( throw IllegalArgumentException(
::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Unsupported parent window." ) ), "Unsupported parent window." ,
*this, *this,
2 2
); );
......
...@@ -709,7 +709,7 @@ namespace ...@@ -709,7 +709,7 @@ namespace
default: default:
break; break;
} }
throw RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "illegal panel ID" ) ), NULL ); throw RuntimeException( "illegal panel ID" , NULL );
} }
} }
......
...@@ -999,17 +999,14 @@ Reference<frame::XModel> MasterPageContainer::Implementation::GetModel (void) ...@@ -999,17 +999,14 @@ Reference<frame::XModel> MasterPageContainer::Implementation::GetModel (void)
if ( ! mxModel.is()) if ( ! mxModel.is())
{ {
// Get the desktop a s service factory. // Get the desktop a s service factory.
::rtl::OUString sDesktopServiceName ( ::rtl::OUString sDesktopServiceName ( "com.sun.star.frame.Desktop");
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop"));
uno::Reference<frame::XComponentLoader> xDesktop ( uno::Reference<frame::XComponentLoader> xDesktop (
::comphelper::getProcessServiceFactory()->createInstance( ::comphelper::getProcessServiceFactory()->createInstance(
sDesktopServiceName), sDesktopServiceName),
uno::UNO_QUERY); uno::UNO_QUERY);
// Create a new model. // Create a new model.
::rtl::OUString sModelServiceName ( ::rtl::OUString sModelServiceName ( "com.sun.star.presentation.PresentationDocument");
RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.presentation.PresentationDocument"));
mxModel = uno::Reference<frame::XModel>( mxModel = uno::Reference<frame::XModel>(
::comphelper::getProcessServiceFactory()->createInstance( ::comphelper::getProcessServiceFactory()->createInstance(
sModelServiceName), sModelServiceName),
...@@ -1042,7 +1039,7 @@ Reference<frame::XModel> MasterPageContainer::Implementation::GetModel (void) ...@@ -1042,7 +1039,7 @@ Reference<frame::XModel> MasterPageContainer::Implementation::GetModel (void)
uno::Reference<beans::XPropertySet> xProperties(xNewPage, uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xProperties(xNewPage, uno::UNO_QUERY);
if (xProperties.is()) if (xProperties.is())
xProperties->setPropertyValue( xProperties->setPropertyValue(
rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Layout")), "Layout",
makeAny((sal_Int16)AUTOLAYOUT_TITLE)); makeAny((sal_Int16)AUTOLAYOUT_TITLE));
} }
} }
......
...@@ -128,9 +128,7 @@ Image TemplatePreviewProvider::operator() ( ...@@ -128,9 +128,7 @@ Image TemplatePreviewProvider::operator() (
try try
{ {
uno::Reference<lang::XSingleServiceFactory> xStorageFactory( uno::Reference<lang::XSingleServiceFactory> xStorageFactory(
xServiceManager->createInstance( xServiceManager->createInstance( "com.sun.star.embed.StorageFactory"),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"com.sun.star.embed.StorageFactory"))),
uno::UNO_QUERY); uno::UNO_QUERY);
if (xStorageFactory.is()) if (xStorageFactory.is())
...@@ -148,14 +146,12 @@ Image TemplatePreviewProvider::operator() ( ...@@ -148,14 +146,12 @@ Image TemplatePreviewProvider::operator() (
{ {
uno::Reference<embed::XStorage> xStorage ( uno::Reference<embed::XStorage> xStorage (
xDocStorage->openStorageElement( xDocStorage->openStorageElement(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Thumbnails")), "Thumbnails",
embed::ElementModes::READ)); embed::ElementModes::READ));
if (xStorage.is()) if (xStorage.is())
{ {
uno::Reference<io::XStream> xThumbnailCopy ( uno::Reference<io::XStream> xThumbnailCopy (
xStorage->cloneStreamElement( xStorage->cloneStreamElement("thumbnail.png"));
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"thumbnail.png"))));
if (xThumbnailCopy.is()) if (xThumbnailCopy.is())
xIStream = xThumbnailCopy->getInputStream(); xIStream = xThumbnailCopy->getInputStream();
} }
...@@ -180,15 +176,12 @@ Image TemplatePreviewProvider::operator() ( ...@@ -180,15 +176,12 @@ Image TemplatePreviewProvider::operator() (
if ( ! xIStream.is()) if ( ! xIStream.is())
{ {
uno::Reference<embed::XStorage> xStorage ( uno::Reference<embed::XStorage> xStorage (
xDocStorage->openStorageElement( xDocStorage->openStorageElement( "Thumbnail",
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Thumbnail")),
embed::ElementModes::READ)); embed::ElementModes::READ));
if (xStorage.is()) if (xStorage.is())
{ {
uno::Reference<io::XStream> xThumbnailCopy ( uno::Reference<io::XStream> xThumbnailCopy (
xStorage->cloneStreamElement( xStorage->cloneStreamElement("thumbnail.png"));
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"thumbnail.png"))));
if (xThumbnailCopy.is()) if (xThumbnailCopy.is())
xIStream = xThumbnailCopy->getInputStream(); xIStream = xThumbnailCopy->getInputStream();
} }
......
...@@ -291,15 +291,15 @@ MasterPageDescriptor::URLClassification MasterPageDescriptor::GetURLClassificati ...@@ -291,15 +291,15 @@ MasterPageDescriptor::URLClassification MasterPageDescriptor::GetURLClassificati
{ {
if (msURL.isEmpty()) if (msURL.isEmpty())
meURLClassification = URLCLASS_UNKNOWN; meURLClassification = URLCLASS_UNKNOWN;
else if (msURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("presnt")))>=0) else if (msURL.indexOf("presnt")>=0)
{ {
meURLClassification = URLCLASS_PRESENTATION; meURLClassification = URLCLASS_PRESENTATION;
} }
else if (msURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("layout")))>=0) else if (msURL.indexOf("layout")>=0)
{ {
meURLClassification = URLCLASS_LAYOUT; meURLClassification = URLCLASS_LAYOUT;
} }
else if (msURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("educate")))>=0) else if (msURL.indexOf("educate")>=0)
{ {
meURLClassification = URLCLASS_OTHER; meURLClassification = URLCLASS_OTHER;
} }
......
...@@ -62,15 +62,12 @@ namespace { ...@@ -62,15 +62,12 @@ namespace {
static const OUString& GetPathToImpressConfigurationRoot (void) static const OUString& GetPathToImpressConfigurationRoot (void)
{ {
static const OUString sPathToImpressConfigurationRoot ( static const OUString sPathToImpressConfigurationRoot ("/org.openoffice.Office.Impress/");
RTL_CONSTASCII_USTRINGPARAM("/org.openoffice.Office.Impress/"));
return sPathToImpressConfigurationRoot; return sPathToImpressConfigurationRoot;
} }
static const OUString& GetPathToSetNode (void) static const OUString& GetPathToSetNode (void)
{ {
static const OUString sPathToSetNode( static const OUString sPathToSetNode("MultiPaneGUI/ToolPanel/RecentlyUsedMasterPages");
RTL_CONSTASCII_USTRINGPARAM(
"MultiPaneGUI/ToolPanel/RecentlyUsedMasterPages"));
return sPathToSetNode; return sPathToSetNode;
} }
...@@ -285,7 +282,7 @@ void RecentlyUsedMasterPages::SavePersistentValues (void) ...@@ -285,7 +282,7 @@ void RecentlyUsedMasterPages::SavePersistentValues (void)
++iDescriptor,++nIndex) ++iDescriptor,++nIndex)
{ {
// Create new child. // Create new child.
OUString sKey (RTL_CONSTASCII_USTRINGPARAM("index_")); OUString sKey ("index_");
sKey += OUString::valueOf(nIndex); sKey += OUString::valueOf(nIndex);
Reference<container::XNameReplace> xChild( Reference<container::XNameReplace> xChild(
xChildFactory->createInstance(), UNO_QUERY); xChildFactory->createInstance(), UNO_QUERY);
......
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