More RTL_CONSTASCII_USTRINGPARAM removals

This commit is contained in:
Olivier Hallot
2012-04-13 19:37:04 -03:00
parent 5aa0bc7b9a
commit 4326d0bd27
15 changed files with 55 additions and 69 deletions

View File

@@ -60,7 +60,7 @@ TYPEINIT1(LeftImpressPaneShell, SfxShell);
LeftImpressPaneShell::LeftImpressPaneShell (void) LeftImpressPaneShell::LeftImpressPaneShell (void)
: SfxShell() : SfxShell()
{ {
SetName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("LeftImpressPane"))); SetName(rtl::OUString("LeftImpressPane"));
} }
@@ -96,7 +96,7 @@ TYPEINIT1(LeftDrawPaneShell, SfxShell);
LeftDrawPaneShell::LeftDrawPaneShell (void) LeftDrawPaneShell::LeftDrawPaneShell (void)
: SfxShell() : SfxShell()
{ {
SetName(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("LeftDrawPane"))); SetName(rtl::OUString("LeftDrawPane"));
} }
@@ -129,7 +129,7 @@ TYPEINIT1( ToolPanelPaneShell, SfxShell );
ToolPanelPaneShell::ToolPanelPaneShell() ToolPanelPaneShell::ToolPanelPaneShell()
:SfxShell() :SfxShell()
{ {
SetName( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "ToolPanel" )) ); SetName(rtl::OUString("ToolPanel"));
} }
ToolPanelPaneShell::~ToolPanelPaneShell(void) ToolPanelPaneShell::~ToolPanelPaneShell(void)

View File

@@ -107,19 +107,19 @@ int Classify (const ::rtl::OUString&, const ::rtl::OUString& rsURL)
if (rsURL.isEmpty()) if (rsURL.isEmpty())
nPriority = 100; nPriority = 100;
else if (rsURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("presnt")))>=0) else if (rsURL.indexOf("presnt")>=0)
{ {
nPriority = 30; nPriority = 30;
} }
else if (rsURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("layout")))>=0) else if (rsURL.indexOf("layout")>=0)
{ {
nPriority = 20; nPriority = 20;
} }
else if (rsURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("educate")))>=0) else if (rsURL.indexOf("educate")>=0)
{ {
nPriority = 40; nPriority = 40;
} }
else if (rsURL.indexOf(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("finance")))>=0) else if (rsURL.indexOf("finance")>=0)
{ {
nPriority = 40; nPriority = 40;
} }

View File

@@ -302,7 +302,7 @@ IMPL_LINK( AnimationWindow, ClickPlayHdl, void *, p )
bDisableCtrls = sal_True; bDisableCtrls = sal_True;
aBtnStop.Enable(); aBtnStop.Enable();
aBtnStop.Update(); aBtnStop.Update();
String aStr( RTL_CONSTASCII_USTRINGPARAM( "Animator:" ) ); // Hier sollte man sich noch etwas gescheites ausdenken! rtl::OUString aStr("Animator:"); // Hier sollte man sich noch etwas gescheites ausdenken!
pProgress = new SfxProgress( NULL, aStr, nFullTime ); pProgress = new SfxProgress( NULL, aStr, nFullTime );
} }

View File

@@ -110,11 +110,11 @@ void SdPagesField::Modify()
::uno::Any a; ::uno::Any a;
::uno::Sequence< ::beans::PropertyValue > aArgs( 1 ); ::uno::Sequence< ::beans::PropertyValue > aArgs( 1 );
aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "PagesPerRow" )); aArgs[0].Name = "PagesPerRow";
aItem.QueryValue( a ); aItem.QueryValue( a );
aArgs[0].Value = a; aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( ::uno::Reference< ::frame::XDispatchProvider >( m_xFrame->getController(), ::uno::UNO_QUERY ), SfxToolBoxControl::Dispatch( ::uno::Reference< ::frame::XDispatchProvider >( m_xFrame->getController(), ::uno::UNO_QUERY ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:PagesPerRow" )), ".uno:PagesPerRow",
aArgs ); aArgs );
/* /*
rBindings.GetDispatcher()->Execute( rBindings.GetDispatcher()->Execute(

View File

@@ -434,15 +434,15 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink,
// Set text and icon of the 'Open...' button. // Set text and icon of the 'Open...' button.
{ {
String sText (GetUiTextForCommand(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:Open")))); String sText (GetUiTextForCommand(".uno:Open"));
// Remove the mnemonic and add a leading space so that icon and text // Remove the mnemonic and add a leading space so that icon and text
// are not too close together. // are not too close together.
sText.SearchAndReplaceAll(String(RTL_CONSTASCII_USTRINGPARAM("~")),String()); sText.SearchAndReplaceAll(rtl::OUString("~"),String());
sText.Insert(String(RTL_CONSTASCII_USTRINGPARAM(" ")),0); sText.Insert(rtl::OUString(" "),0);
mpPage1OpenPB->SetText(sText); mpPage1OpenPB->SetText(sText);
// Place icon left of text and both centered in the button. // Place icon left of text and both centered in the button.
mpPage1OpenPB->SetModeImage( mpPage1OpenPB->SetModeImage(
GetUiIconForCommand(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".uno:Open"))) GetUiIconForCommand(".uno:Open")
); );
mpPage1OpenPB->EnableImageDisplay(sal_True); mpPage1OpenPB->EnableImageDisplay(sal_True);
mpPage1OpenPB->EnableTextDisplay(sal_True); mpPage1OpenPB->EnableTextDisplay(sal_True);
@@ -629,7 +629,7 @@ AssistentDlgImpl::AssistentDlgImpl( ::Window* pWindow, const Link& rFinishLink,
UpdatePreview( sal_True ); UpdatePreview( sal_True );
//check whether we should start with a template document initialy and preselect it //check whether we should start with a template document initialy and preselect it
const ::rtl::OUString aServiceName( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.presentation.PresentationDocument" ) ); const ::rtl::OUString aServiceName( "com.sun.star.presentation.PresentationDocument" );
String aStandardTemplate( SfxObjectFactory::GetStandardTemplate( aServiceName ) ); String aStandardTemplate( SfxObjectFactory::GetStandardTemplate( aServiceName ) );
if( aStandardTemplate.Len() ) if( aStandardTemplate.Len() )
{ {
@@ -784,11 +784,10 @@ void AssistentDlgImpl::ScanDocmenu (void)
SvtHistoryOptions().GetList (ePICKLIST); SvtHistoryOptions().GetList (ePICKLIST);
uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() ); uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
uno::Reference< container::XNameAccess > xFilterFactory( xFactory->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.document.FilterFactory" ) ) ), uno::UNO_QUERY ); uno::Reference< container::XNameAccess > xFilterFactory( xFactory->createInstance( "com.sun.star.document.FilterFactory" ), uno::UNO_QUERY );
Reference< ::com::sun::star::ucb::XSimpleFileAccess > xFileAccess( Reference< ::com::sun::star::ucb::XSimpleFileAccess > xFileAccess(
xFactory->createInstance( xFactory->createInstance("com.sun.star.ucb.SimpleFileAccess"),
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.ucb.SimpleFileAccess"))),
UNO_QUERY_THROW); UNO_QUERY_THROW);
sal_uInt32 nCount = aHistory.getLength(); sal_uInt32 nCount = aHistory.getLength();
@@ -1579,12 +1578,10 @@ void AssistentDlgImpl::UpdatePreview( sal_Bool bDocPreview )
} }
else else
{ {
const String aTargetStr( RTL_CONSTASCII_USTRINGPARAM("_default") );
SfxRequest aReq( SID_OPENDOC, SFX_CALLMODE_SYNCHRON, SFX_APP()->GetPool() ); SfxRequest aReq( SID_OPENDOC, SFX_CALLMODE_SYNCHRON, SFX_APP()->GetPool() );
aReq.AppendItem( SfxStringItem( SID_FILE_NAME, aDocFile )); aReq.AppendItem( SfxStringItem( SID_FILE_NAME, aDocFile ));
aReq.AppendItem( SfxStringItem( SID_REFERER, aEmptyStr ) ); aReq.AppendItem( SfxStringItem( SID_REFERER, aEmptyStr ) );
aReq.AppendItem( SfxStringItem( SID_TARGETNAME, aTargetStr ) ); aReq.AppendItem( SfxStringItem( SID_TARGETNAME, rtl::OUString("_default") ) );
aReq.AppendItem( SfxBoolItem( SID_HIDDEN, sal_True ) ); aReq.AppendItem( SfxBoolItem( SID_HIDDEN, sal_True ) );
aReq.AppendItem( SfxBoolItem( SID_PREVIEW, bDocPreview ) ); aReq.AppendItem( SfxBoolItem( SID_PREVIEW, bDocPreview ) );
@@ -1757,11 +1754,9 @@ String AssistentDlgImpl::GetUiTextForCommand (const ::rtl::OUString& sCommandURL
if ( ! xFactory.is()) if ( ! xFactory.is())
break; break;
::rtl::OUString sModuleIdentifier ( ::rtl::OUString sModuleIdentifier ("com.sun.star.presentation.PresentationDocument");
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.PresentationDocument"));
Reference<container::XNameAccess> xNameAccess ( Reference<container::XNameAccess> xNameAccess (
xFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( xFactory->createInstance("com.sun.star.frame.UICommandDescription"),
"com.sun.star.frame.UICommandDescription"))),
UNO_QUERY); UNO_QUERY);
if ( ! xNameAccess.is()) if ( ! xNameAccess.is())
break; break;
@@ -1818,12 +1813,10 @@ Image AssistentDlgImpl::GetUiIconForCommand (const ::rtl::OUString& sCommandURL)
if ( ! xFactory.is()) if ( ! xFactory.is())
break; break;
::rtl::OUString sModuleIdentifier ( ::rtl::OUString sModuleIdentifier ("com.sun.star.presentation.PresentationDocument");
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.presentation.PresentationDocument"));
Reference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier> xSupplier ( Reference<com::sun::star::ui::XModuleUIConfigurationManagerSupplier> xSupplier (
xFactory->createInstance(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( xFactory->createInstance("com.sun.star.ui.ModuleUIConfigurationManagerSupplier"),
"com.sun.star.ui.ModuleUIConfigurationManagerSupplier"))),
UNO_QUERY_THROW); UNO_QUERY_THROW);
Reference<com::sun::star::ui::XUIConfigurationManager> xManager ( Reference<com::sun::star::ui::XUIConfigurationManager> xManager (

View File

@@ -319,25 +319,25 @@ SdOpenSoundFileDialog::SdOpenSoundFileDialog() :
{ {
String aDescr; String aDescr;
aDescr = String(SdResId(STR_ALL_FILES)); aDescr = String(SdResId(STR_ALL_FILES));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.*" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.*"));
// setup filter // setup filter
#if defined UNX #if defined UNX
aDescr = String(SdResId(STR_AU_FILE)); aDescr = String(SdResId(STR_AU_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.au;*.snd" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.au;*.snd" ));
aDescr = String(SdResId(STR_VOC_FILE)); aDescr = String(SdResId(STR_VOC_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.voc" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.voc" ));
aDescr = String(SdResId(STR_WAV_FILE)); aDescr = String(SdResId(STR_WAV_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.wav" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.wav" ));
aDescr = String(SdResId(STR_AIFF_FILE)); aDescr = String(SdResId(STR_AIFF_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.aiff" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.aiff" ));
aDescr = String(SdResId(STR_SVX_FILE)); aDescr = String(SdResId(STR_SVX_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.svx" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.svx" ));
#else #else
aDescr = String(SdResId(STR_WAV_FILE)); aDescr = String(SdResId(STR_WAV_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.wav;*.mp3;*.ogg" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.wav;*.mp3;*.ogg" ));
aDescr = String(SdResId(STR_MIDI_FILE)); aDescr = String(SdResId(STR_MIDI_FILE));
mpImpl->AddFilter( aDescr, UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "*.mid" ) ) ); mpImpl->AddFilter( aDescr, rtl::OUString("*.mid" ));
#endif #endif
} }

View File

@@ -113,11 +113,11 @@ void GlueEscDirLB::Select()
{ {
Any a; Any a;
Sequence< PropertyValue > aArgs( 1 ); Sequence< PropertyValue > aArgs( 1 );
aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "GlueEscapeDirection" )); aArgs[0].Name = "GlueEscapeDirection";
aItem.QueryValue( a ); aItem.QueryValue( a );
aArgs[0].Value = a; aArgs[0].Value = a;
SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( m_xFrame->getController(), UNO_QUERY ), SfxToolBoxControl::Dispatch( Reference< XDispatchProvider >( m_xFrame->getController(), UNO_QUERY ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:GlueEscapeDirection" )), ".uno:GlueEscapeDirection",
aArgs ); aArgs );
} }
/* /*

View File

@@ -92,8 +92,7 @@ MorphDlg::~MorphDlg()
void MorphDlg::LoadSettings() void MorphDlg::LoadSettings()
{ {
SvStorageStreamRef xIStm( SD_MOD()->GetOptionStream( UniString::CreateFromAscii( SvStorageStreamRef xIStm( SD_MOD()->GetOptionStream( rtl::OUString(SD_OPTION_MORPHING) ,
RTL_CONSTASCII_STRINGPARAM( SD_OPTION_MORPHING ) ),
SD_OPTION_LOAD ) ); SD_OPTION_LOAD ) );
sal_uInt16 nSteps; sal_uInt16 nSteps;
sal_Bool bOrient, bAttrib; sal_Bool bOrient, bAttrib;
@@ -119,8 +118,7 @@ void MorphDlg::LoadSettings()
void MorphDlg::SaveSettings() const void MorphDlg::SaveSettings() const
{ {
SvStorageStreamRef xOStm( SD_MOD()->GetOptionStream( UniString::CreateFromAscii( SvStorageStreamRef xOStm( SD_MOD()->GetOptionStream( rtl::OUString(SD_OPTION_MORPHING) ,
RTL_CONSTASCII_STRINGPARAM( SD_OPTION_MORPHING ) ),
SD_OPTION_STORE ) ); SD_OPTION_STORE ) );
if( xOStm.Is() ) if( xOStm.Is() )

View File

@@ -185,7 +185,7 @@ void SdStartPresentationDlg::InitMonitorSettings()
try try
{ {
Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory(), UNO_QUERY_THROW ); Reference< XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory(), UNO_QUERY_THROW );
Reference< XIndexAccess > xMultiMon( xFactory->createInstance(OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.awt.DisplayAccess" ) ) ), UNO_QUERY_THROW ); Reference< XIndexAccess > xMultiMon( xFactory->createInstance("com.sun.star.awt.DisplayAccess" ), UNO_QUERY_THROW );
maGrpMonitor.Show( true ); maGrpMonitor.Show( true );
maFtMonitor.Show( true ); maFtMonitor.Show( true );
maLBMonitor.Show( true ); maLBMonitor.Show( true );
@@ -204,9 +204,9 @@ void SdStartPresentationDlg::InitMonitorSettings()
Reference< XPropertySet > xMonProps( xMultiMon, UNO_QUERY ); Reference< XPropertySet > xMonProps( xMultiMon, UNO_QUERY );
if( xMonProps.is() ) try if( xMonProps.is() ) try
{ {
const OUString sPropName1( RTL_CONSTASCII_USTRINGPARAM( "IsUnifiedDisplay" ) ); const OUString sPropName1( "IsUnifiedDisplay" );
xMonProps->getPropertyValue( sPropName1 ) >>= bUnifiedDisplay; xMonProps->getPropertyValue( sPropName1 ) >>= bUnifiedDisplay;
const OUString sPropName2( RTL_CONSTASCII_USTRINGPARAM( "DefaultDisplay" ) ); const OUString sPropName2( "DefaultDisplay" );
xMonProps->getPropertyValue( sPropName2 ) >>= nPrimaryIndex; xMonProps->getPropertyValue( sPropName2 ) >>= nPrimaryIndex;
} }
catch( Exception& ) catch( Exception& )

View File

@@ -44,7 +44,7 @@ SdAbstractDialogFactory* SdAbstractDialogFactory::Create()
static const ::rtl::OUString sLibName(::vcl::unohelper::CreateLibraryName("sdui", sal_True)); static const ::rtl::OUString sLibName(::vcl::unohelper::CreateLibraryName("sdui", sal_True));
if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, sLibName ) ) if ( aDialogLibrary.is() || aDialogLibrary.loadRelative( &thisModule, sLibName ) )
fp = ( SdAbstractDialogFactory* (__LOADONCALLAPI*)() ) fp = ( SdAbstractDialogFactory* (__LOADONCALLAPI*)() )
aDialogLibrary.getFunctionSymbol( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("CreateDialogFactory")) ); aDialogLibrary.getFunctionSymbol( "CreateDialogFactory" );
if ( fp ) if ( fp )
return fp(); return fp();
return 0; return 0;

View File

@@ -209,10 +209,8 @@ SdPageObjsTLB::SdPageObjsTransferable* SdPageObjsTLB::SdPageObjsTransferable::ge
sal_uInt32 SdPageObjsTLB::SdPageObjsTransferable::GetListBoxDropFormatId (void) sal_uInt32 SdPageObjsTLB::SdPageObjsTransferable::GetListBoxDropFormatId (void)
{ {
if (mnListBoxDropFormatId == SAL_MAX_UINT32) if (mnListBoxDropFormatId == SAL_MAX_UINT32)
mnListBoxDropFormatId = SotExchange::RegisterFormatMimeType( mnListBoxDropFormatId = SotExchange::RegisterFormatMimeType(rtl::OUString(
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "application/x-openoffice-treelistbox-moveonly;windows_formatname=\"SV_LBOX_DD_FORMAT_MOVE\""));
"application/x-openoffice-treelistbox-moveonly;"
"windows_formatname=\"SV_LBOX_DD_FORMAT_MOVE\"")));
return mnListBoxDropFormatId; return mnListBoxDropFormatId;
} }

View File

@@ -486,7 +486,7 @@ void SdTPAction::OpenFileDialog()
// links on the desktop to directories. // links on the desktop to directories.
aFileDialog.AddFilter ( aFileDialog.AddFilter (
String (SfxResId (STR_SFX_FILTERNAME_ALL)), String (SfxResId (STR_SFX_FILTERNAME_ALL)),
String (RTL_CONSTASCII_USTRINGPARAM("*.*"))); rtl::OUString("*.*"));
if( aFileDialog.Execute() == ERRCODE_NONE ) if( aFileDialog.Execute() == ERRCODE_NONE )

View File

@@ -728,8 +728,7 @@ void SdTpOptionsMisc::UpdateCompatibilityControls (void)
if ( ! xFactory.is()) if ( ! xFactory.is())
break; break;
Reference<frame::XDesktop> xDesktop (xFactory->createInstance ( Reference<frame::XDesktop> xDesktop (xFactory->createInstance ("com.sun.star.frame.Desktop"), UNO_QUERY);
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop"))), UNO_QUERY);
if ( ! xDesktop.is()) if ( ! xDesktop.is())
break; break;

View File

@@ -347,8 +347,7 @@ IMPL_LINK_NOARG(SdVectorizeDlg, ModifyHdl)
void SdVectorizeDlg::LoadSettings() void SdVectorizeDlg::LoadSettings()
{ {
SvStorageStreamRef xIStm( SD_MOD()->GetOptionStream( SvStorageStreamRef xIStm( SD_MOD()->GetOptionStream(
UniString::CreateFromAscii( rtl::OUString( SD_OPTION_VECTORIZE ) ,
RTL_CONSTASCII_STRINGPARAM( SD_OPTION_VECTORIZE ) ),
SD_OPTION_LOAD ) ); SD_OPTION_LOAD ) );
sal_uInt16 nLayers; sal_uInt16 nLayers;
sal_uInt16 nReduce; sal_uInt16 nReduce;
@@ -381,8 +380,7 @@ void SdVectorizeDlg::LoadSettings()
void SdVectorizeDlg::SaveSettings() const void SdVectorizeDlg::SaveSettings() const
{ {
SvStorageStreamRef xOStm( SD_MOD()->GetOptionStream( SvStorageStreamRef xOStm( SD_MOD()->GetOptionStream(
UniString::CreateFromAscii( rtl::OUString(SD_OPTION_VECTORIZE) ,
RTL_CONSTASCII_STRINGPARAM( SD_OPTION_VECTORIZE ) ),
SD_OPTION_STORE ) ); SD_OPTION_STORE ) );
if( xOStm.Is() ) if( xOStm.Is() )

View File

@@ -341,12 +341,12 @@ sal_Bool DrawDocShell::Load( SfxMedium& rMedium )
else else
{ {
if( nError == ERRCODE_IO_BROKENPACKAGE ) if( nError == ERRCODE_IO_BROKENPACKAGE )
SetError( ERRCODE_IO_BROKENPACKAGE, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); SetError( ERRCODE_IO_BROKENPACKAGE, OSL_LOG_PREFIX );
// TODO/LATER: correct error handling?! // TODO/LATER: correct error handling?!
//pStore->SetError( SVSTREAM_WRONGVERSION, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); //pStore->SetError( SVSTREAM_WRONGVERSION, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) );
else else
SetError( ERRCODE_ABORT, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); SetError( ERRCODE_ABORT, OSL_LOG_PREFIX );
} }
// tell SFX to change viewshell when in preview mode // tell SFX to change viewshell when in preview mode
@@ -575,7 +575,7 @@ sal_Bool DrawDocShell::SaveAs( SfxMedium& rMedium )
} }
if( GetError() == ERRCODE_NONE ) if( GetError() == ERRCODE_NONE )
SetError( nVBWarning, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) ); SetError( nVBWarning, OSL_LOG_PREFIX );
return bRet; return bRet;
} }
@@ -729,28 +729,28 @@ sal_Bool DrawDocShell::GotoBookmark(const String& rBookmark)
SdrObject* pObj = NULL; SdrObject* pObj = NULL;
rtl::OUString sBookmark( rBookmark ); rtl::OUString sBookmark( rBookmark );
const rtl::OUString sInteraction( RTL_CONSTASCII_USTRINGPARAM( "action?" ) ); const rtl::OUString sInteraction( "action?" );
if ( sBookmark.match( sInteraction ) ) if ( sBookmark.match( sInteraction ) )
{ {
const rtl::OUString sJump( RTL_CONSTASCII_USTRINGPARAM( "jump=" ) ); const rtl::OUString sJump( "jump=" );
if ( sBookmark.match( sJump, sInteraction.getLength() ) ) if ( sBookmark.match( sJump, sInteraction.getLength() ) )
{ {
rtl::OUString aDestination( sBookmark.copy( sInteraction.getLength() + sJump.getLength() ) ); rtl::OUString aDestination( sBookmark.copy( sInteraction.getLength() + sJump.getLength() ) );
if ( aDestination.match( String( RTL_CONSTASCII_USTRINGPARAM( "firstslide" ) ) ) ) if ( aDestination.match( "firstslide" ) )
{ {
nPageNumber = 1; nPageNumber = 1;
} }
else if ( aDestination.match( String( RTL_CONSTASCII_USTRINGPARAM( "lastslide" ) ) ) ) else if ( aDestination.match( "lastslide" ) )
{ {
nPageNumber = mpDoc->GetPageCount() - 2; nPageNumber = mpDoc->GetPageCount() - 2;
} }
else if ( aDestination.match( String( RTL_CONSTASCII_USTRINGPARAM( "previousslide" ) ) ) ) else if ( aDestination.match( "previousslide" ) )
{ {
SdPage* pPage = pDrawViewShell->GetActualPage(); SdPage* pPage = pDrawViewShell->GetActualPage();
nPageNumber = pPage->GetPageNum(); nPageNumber = pPage->GetPageNum();
nPageNumber = nPageNumber > 2 ? nPageNumber - 2 : SDRPAGE_NOTFOUND; nPageNumber = nPageNumber > 2 ? nPageNumber - 2 : SDRPAGE_NOTFOUND;
} }
else if ( aDestination.match( String( RTL_CONSTASCII_USTRINGPARAM( "nextslide" ) ) ) ) else if ( aDestination.match( "nextslide" ) )
{ {
SdPage* pPage = pDrawViewShell->GetActualPage(); SdPage* pPage = pDrawViewShell->GetActualPage();
nPageNumber = pPage->GetPageNum() + 2; nPageNumber = pPage->GetPageNum() + 2;
@@ -971,13 +971,13 @@ void DrawDocShell::FillClass(SvGlobalName* pClassName,
{ {
*pClassName = SvGlobalName(SO3_SDRAW_CLASSID_60); *pClassName = SvGlobalName(SO3_SDRAW_CLASSID_60);
*pFormat = bTemplate ? SOT_FORMATSTR_ID_STARDRAW_8_TEMPLATE : SOT_FORMATSTR_ID_STARDRAW_8; *pFormat = bTemplate ? SOT_FORMATSTR_ID_STARDRAW_8_TEMPLATE : SOT_FORMATSTR_ID_STARDRAW_8;
*pFullTypeName = String(RTL_CONSTASCII_USTRINGPARAM("Draw 8")); // HACK: method will be removed with new storage API *pFullTypeName = "Draw 8"; // HACK: method will be removed with new storage API
} }
else else
{ {
*pClassName = SvGlobalName(SO3_SIMPRESS_CLASSID_60); *pClassName = SvGlobalName(SO3_SIMPRESS_CLASSID_60);
*pFormat = bTemplate ? SOT_FORMATSTR_ID_STARIMPRESS_8_TEMPLATE : SOT_FORMATSTR_ID_STARIMPRESS_8; *pFormat = bTemplate ? SOT_FORMATSTR_ID_STARIMPRESS_8_TEMPLATE : SOT_FORMATSTR_ID_STARIMPRESS_8;
*pFullTypeName = String(RTL_CONSTASCII_USTRINGPARAM("Impress 8")); // HACK: method will be removed with new storage API *pFullTypeName = "Impress 8"; // HACK: method will be removed with new storage API
} }
} }