summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-16 21:24:43 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-16 21:24:43 +0000
commit6ea8579d5ec92c3dfdb78db816a1f5155e7ed374 (patch)
tree14f74ecaccd690e80a624d2601fe94f9860d57ad /svtools
parente432dff366f500a8c43577ac9202669aa15e04b4 (diff)
We're not going to be called "StarSuite" again
Once StarOffice came in two varieties, StarOffice and "StarSuite" in the Asian market. This code effectively converted "StarOffice" to "StarSuite" if product itself was called "StarSuite", which ain't going to the be the case again. So we can remove all that and just hardcode the old file format names as "StarOffice".
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/imagemgr.cxx19
-rw-r--r--svtools/source/misc/imagemgr.src6
2 files changed, 3 insertions, 22 deletions
diff --git a/svtools/source/misc/imagemgr.cxx b/svtools/source/misc/imagemgr.cxx
index 60e94efb306e..d17efb5f0287 100644
--- a/svtools/source/misc/imagemgr.cxx
+++ b/svtools/source/misc/imagemgr.cxx
@@ -638,24 +638,6 @@ static Image GetImageFromList_Impl( USHORT nImageId, BOOL bBig )
return GetOfficeImageFromList_Impl( nImageId, bBig );
}
-//****************************************************************************
-
-void ReplaceStarOfficeVar( String& _rDescription )
-{
- static String sVariable( RTL_CONSTASCII_USTRINGPARAM( "%STAROFFICE" ) );
- static String sProductName;
- if ( sProductName.Len() == 0 )
- {
- ::rtl::OUString sTemp;
- ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTNAME ) >>= sTemp;
- if ( sTemp.equalsAscii( "StarSuite" ) == sal_False )
- sProductName = String::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarOffice" ) );
- else
- sProductName = String( sTemp );
- }
- _rDescription.SearchAndReplace( sVariable, sProductName );
-}
-
String SvFileInformationManager::GetDescription_Impl( const INetURLObject& rObject, sal_Bool bDetectFolder )
{
RTL_LOGFILE_CONTEXT_AUTHOR( aTimeLog, "svtools", "hb93813", "SvFileInformationManager::GetDescription_Impl()" );
@@ -722,7 +704,6 @@ String SvFileInformationManager::GetDescription_Impl( const INetURLObject& rObje
sDescription += ')';
}
- ReplaceStarOfficeVar( sDescription );
return sDescription;
}
diff --git a/svtools/source/misc/imagemgr.src b/svtools/source/misc/imagemgr.src
index 5a7d9c8605d4..c49f048364e4 100644
--- a/svtools/source/misc/imagemgr.src
+++ b/svtools/source/misc/imagemgr.src
@@ -192,7 +192,7 @@ String STR_DESCRIPTION_SDRAW_DOC
String STR_DESCRIPTION_SDATABASE_DOC
{
- Text [ en-US ] = "%STAROFFICE Database" ;
+ Text [ en-US ] = "StarOffice Database" ;
};
String STR_DESCRIPTION_SCALC_DOC
@@ -213,7 +213,7 @@ String STR_DESCRIPTION_GLOBALDOC
};
String STR_DESCRIPTION_SIMAGE_DOC
{
- Text [ en-US ] = "%STAROFFICE Image" ;
+ Text [ en-US ] = "StarOffice Image" ;
};
String STR_DESCRIPTION_TEXTFILE
{
@@ -225,7 +225,7 @@ String STR_DESCRIPTION_LINK
};
String STR_DESCRIPTION_SOFFICE_TEMPLATE_DOC
{
- Text [ en-US ] = "%STAROFFICE 3.0 - 5.0 Template" ;
+ Text [ en-US ] = "StarOffice 3.0 - 5.0 Template" ;
};
String STR_DESCRIPTION_EXCEL_DOC
{