diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-10-01 17:46:21 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-10-01 18:03:38 +0200 |
commit | abd3338486a515380d50c4ee5f4ab242fb5fd4bd (patch) | |
tree | 83a9689e4069ab51cd6cc5e4764513fffb7ec700 | |
parent | 31e37f8f405d53ad0d5b1a271e07976328f93d64 (diff) |
desktop: stop replacing %PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION
... and %PRODUCTXMLFILEFORMATNAME at runtime and hard-code
OpenOffice.org 1.0 for these too.
Change-Id: Id96390506d2a0f367f932e85d3115362ad483bc3
-rw-r--r-- | desktop/source/app/app.cxx | 11 | ||||
-rw-r--r-- | include/unotools/configmgr.hxx | 4 | ||||
-rw-r--r-- | svl/source/misc/mediatyp.src | 16 | ||||
-rw-r--r-- | svtools/source/dialogs/formats.src | 18 | ||||
-rw-r--r-- | svtools/source/misc/imagemgr.src | 22 | ||||
-rw-r--r-- | unotools/source/config/configmgr.cxx | 12 |
6 files changed, 28 insertions, 55 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 267d60afef4b..c06295630d04 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -468,10 +468,6 @@ namespace : public rtl::Static< OUString, OOOVendor > {}; struct Extension : public rtl::Static< OUString, Extension > {}; - struct XMLFileFormatName - : public rtl::Static< OUString, XMLFileFormatName > {}; - struct XMLFileFormatVersion - : public rtl::Static< OUString, XMLFileFormatVersion > {}; } OUString ReplaceStringHookProc( const OUString& rStr ) @@ -486,15 +482,10 @@ OUString ReplaceStringHookProc( const OUString& rStr ) OUString sAboutBoxVersion = AboutBoxVersion::get(); OUString sAboutBoxVersionSuffix = AboutBoxVersionSuffix::get(); OUString sExtension = Extension::get(); - OUString sXMLFileFormatName = XMLFileFormatName::get(); - OUString sXMLFileFormatVersion = XMLFileFormatVersion::get(); if ( sBrandName.isEmpty() ) { sBrandName = utl::ConfigManager::getProductName(); - sXMLFileFormatName = utl::ConfigManager::getProductXmlFileFormat(); - sXMLFileFormatVersion = - utl::ConfigManager::getProductXmlFileFormatVersion(); sVersion = utl::ConfigManager::getProductVersion(); sAboutBoxVersion = utl::ConfigManager::getAboutBoxProductVersion(); sAboutBoxVersionSuffix = utl::ConfigManager::getAboutBoxProductVersionSuffix(); @@ -510,8 +501,6 @@ OUString ReplaceStringHookProc( const OUString& rStr ) sRet = sRet.replaceAll( "%ABOUTBOXPRODUCTVERSIONSUFFIX", sAboutBoxVersionSuffix ); sRet = sRet.replaceAll( "%ABOUTBOXPRODUCTVERSION", sAboutBoxVersion ); sRet = sRet.replaceAll( "%PRODUCTEXTENSION", sExtension ); - sRet = sRet.replaceAll( "%PRODUCTXMLFILEFORMATNAME", sXMLFileFormatName ); - sRet = sRet.replaceAll( "%PRODUCTXMLFILEFORMATVERSION", sXMLFileFormatVersion ); } if ( sRet.indexOf( "%OOOVENDOR" ) != -1 ) diff --git a/include/unotools/configmgr.hxx b/include/unotools/configmgr.hxx index b8bc42d675cf..1b24feb026a1 100644 --- a/include/unotools/configmgr.hxx +++ b/include/unotools/configmgr.hxx @@ -50,10 +50,6 @@ public: static OUString getProductName(); - static OUString getProductXmlFileFormat(); - - static OUString getProductXmlFileFormatVersion(); - static OUString getProductVersion(); static OUString getVendor(); diff --git a/svl/source/misc/mediatyp.src b/svl/source/misc/mediatyp.src index d59d4e29d0d5..f311460a97b3 100644 --- a/svl/source/misc/mediatyp.src +++ b/svl/source/misc/mediatyp.src @@ -356,42 +356,42 @@ String STR_SVT_MIMETYPE_INET_MULTI_MIXED String STR_SVT_MIMETYPE_APP_SXCALC { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Spreadsheet" ; + Text [ en-US ] = "OpenOffice.org 1.0 Spreadsheet" ; }; String STR_SVT_MIMETYPE_APP_SXCHART { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Chart" ; + Text [ en-US ] = "OpenOffice.org 1.0 Chart" ; }; String STR_SVT_MIMETYPE_APP_SXDRAW { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Drawing" ; + Text [ en-US ] = "OpenOffice.org 1.0 Drawing" ; }; String STR_SVT_MIMETYPE_APP_SXMATH { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Formula" ; + Text [ en-US ] = "OpenOffice.org 1.0 Formula" ; }; String STR_SVT_MIMETYPE_APP_SXWRITER { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Text Document" ; + Text [ en-US ] = "OpenOffice.org 1.0 Text Document" ; }; String STR_SVT_MIMETYPE_APP_SXIMPRESS { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Presentation" ; + Text [ en-US ] = "OpenOffice.org 1.0 Presentation" ; }; String STR_SVT_MIMETYPE_APP_SXGLOBAL { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Master Document" ; + Text [ en-US ] = "OpenOffice.org 1.0 Master Document" ; }; String STR_SVT_MIMETYPE_APP_SXIPACKED { - Text [ en-US ] = "%PRODUCTNAME %PRODUCTXMLFILEFORMATVERSION Presentation (packed)" ; + Text [ en-US ] = "OpenOffice.org 1.0 Presentation (packed)" ; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svtools/source/dialogs/formats.src b/svtools/source/dialogs/formats.src index 21a176fe8a7e..b9451a1f51a4 100644 --- a/svtools/source/dialogs/formats.src +++ b/svtools/source/dialogs/formats.src @@ -225,35 +225,35 @@ String STR_FORMAT_ID_GRAPHOBJ }; String STR_FORMAT_ID_STARWRITER_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Writer object"; + Text [ en-US ] = "OpenOffice.org 1.0 Writer object"; }; String STR_FORMAT_ID_STARWRITERWEB_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Writer/Web object"; + Text [ en-US ] = "OpenOffice.org 1.0 Writer/Web object"; }; String STR_FORMAT_ID_STARWRITERGLOB_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Writer/Master object"; + Text [ en-US ] = "OpenOffice.org 1.0 Writer/Master object"; }; String STR_FORMAT_ID_STARDRAW_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Draw object"; + Text [ en-US ] = "OpenOffice.org 1.0 Draw object"; }; String STR_FORMAT_ID_STARIMPRESS_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Impress object"; + Text [ en-US ] = "OpenOffice.org 1.0 Impress object"; }; String STR_FORMAT_ID_STARCALC_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Calc object"; + Text [ en-US ] = "OpenOffice.org 1.0 Calc object"; }; String STR_FORMAT_ID_STARCHART_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Chart object"; + Text [ en-US ] = "OpenOffice.org 1.0 Chart object"; }; String STR_FORMAT_ID_STARMATH_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Math object"; + Text [ en-US ] = "OpenOffice.org 1.0 Math object"; }; String STR_FORMAT_ID_WMF { @@ -273,7 +273,7 @@ String STR_FORMAT_ID_DBACCESS_COMMAND }; String STR_FORMAT_ID_DIALOG_60 { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION dialog"; + Text [ en-US ] = "OpenOffice.org 1.0 dialog"; }; String STR_FORMAT_ID_FILEGRPDESCRIPTOR { diff --git a/svtools/source/misc/imagemgr.src b/svtools/source/misc/imagemgr.src index e11dee5950fc..c750faa5554e 100644 --- a/svtools/source/misc/imagemgr.src +++ b/svtools/source/misc/imagemgr.src @@ -280,19 +280,19 @@ String STR_DESCRIPTION_FACTORY_DATABASE }; String STR_DESCRIPTION_CALC_TEMPLATE { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Spreadsheet Template" ; + Text [ en-US ] = "OpenOffice.org 1.0 Spreadsheet Template" ; }; String STR_DESCRIPTION_DRAW_TEMPLATE { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Drawing Template" ; + Text [ en-US ] = "OpenOffice.org 1.0 Drawing Template" ; }; String STR_DESCRIPTION_IMPRESS_TEMPLATE { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Presentation Template" ; + Text [ en-US ] = "OpenOffice.org 1.0 Presentation Template" ; }; String STR_DESCRIPTION_WRITER_TEMPLATE { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Text Document Template" ; + Text [ en-US ] = "OpenOffice.org 1.0 Text Document Template" ; }; String STR_DESCRIPTION_LOCALE_VOLUME { @@ -327,37 +327,37 @@ String STR_DESCRIPTION_POWERPOINT_SHOW String STR_DESCRIPTION_SXMATH_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Formula" ; + Text [ en-US ] = "OpenOffice.org 1.0 Formula" ; }; String STR_DESCRIPTION_SXCHART_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Chart" ; + Text [ en-US ] = "OpenOffice.org 1.0 Chart" ; }; String STR_DESCRIPTION_SXDRAW_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Drawing" ; + Text [ en-US ] = "OpenOffice.org 1.0 Drawing" ; }; String STR_DESCRIPTION_SXCALC_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Spreadsheet" ; + Text [ en-US ] = "OpenOffice.org 1.0 Spreadsheet" ; }; String STR_DESCRIPTION_SXIMPRESS_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Presentation" ; + Text [ en-US ] = "OpenOffice.org 1.0 Presentation" ; }; String STR_DESCRIPTION_SXWRITER_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Text Document" ; + Text [ en-US ] = "OpenOffice.org 1.0 Text Document" ; }; String STR_DESCRIPTION_SXGLOBAL_DOC { - Text [ en-US ] = "%PRODUCTXMLFILEFORMATNAME %PRODUCTXMLFILEFORMATVERSION Master Document" ; + Text [ en-US ] = "OpenOffice.org 1.0 Master Document" ; }; String STR_DESCRIPTION_MATHML_DOC { diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index bd50f9666129..31ff1cdc263b 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -129,18 +129,6 @@ OUString utl::ConfigManager::getProductVersion() { OUString("Product/ooSetupVersion")); } -OUString utl::ConfigManager::getProductXmlFileFormat() { - return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooXMLFileFormatName")); -} - -OUString utl::ConfigManager::getProductXmlFileFormatVersion() { - return getConfigurationString( - OUString("/org.openoffice.Setup"), - OUString("Product/ooXMLFileFormatVersion")); -} - OUString utl::ConfigManager::getVendor() { return getConfigurationString( OUString("/org.openoffice.Setup"), |