Kaydet (Commit) f67d166b authored tarafından Michael Stahl's avatar Michael Stahl

remove run-time replacement of %WRITERCOMPATIBILITYVERSIONOOO11

Instead hard-code OpenOffice.org 1.1 as the value, since StarOffice and
StarSuite are irrelevant.

Change-Id: I9ab3d1cf38cf64cd4e440b3ae43158f748ead7d2
üst 041d2b88
...@@ -472,8 +472,6 @@ namespace ...@@ -472,8 +472,6 @@ namespace
: public rtl::Static< OUString, XMLFileFormatName > {}; : public rtl::Static< OUString, XMLFileFormatName > {};
struct XMLFileFormatVersion struct XMLFileFormatVersion
: public rtl::Static< OUString, XMLFileFormatVersion > {}; : public rtl::Static< OUString, XMLFileFormatVersion > {};
struct WriterCompatibilityVersionOOo11
: public rtl::Static< OUString, WriterCompatibilityVersionOOo11 > {};
} }
OUString ReplaceStringHookProc( const OUString& rStr ) OUString ReplaceStringHookProc( const OUString& rStr )
...@@ -528,19 +526,6 @@ OUString ReplaceStringHookProc( const OUString& rStr ) ...@@ -528,19 +526,6 @@ OUString ReplaceStringHookProc( const OUString& rStr )
sRet = sRet.replaceAll( "%OOOVENDOR", sOOOVendor ); sRet = sRet.replaceAll( "%OOOVENDOR", sOOOVendor );
} }
if ( sRet.indexOf( "%WRITERCOMPATIBILITYVERSIONOOO11" ) != -1 )
{
OUString sWriterCompatibilityVersionOOo11 = WriterCompatibilityVersionOOo11::get();
if ( sWriterCompatibilityVersionOOo11.isEmpty() )
{
sWriterCompatibilityVersionOOo11 =
utl::ConfigManager::getWriterCompatibilityVersionOOo_1_1();
}
sRet = sRet.replaceAll( "%WRITERCOMPATIBILITYVERSIONOOO11",
sWriterCompatibilityVersionOOo11 );
}
return sRet; return sRet;
} }
......
...@@ -58,8 +58,6 @@ public: ...@@ -58,8 +58,6 @@ public:
static OUString getVendor(); static OUString getVendor();
static OUString getWriterCompatibilityVersionOOo_1_1();
static void storeConfigItems(); static void storeConfigItems();
SAL_DLLPRIVATE static ConfigManager & getConfigManager(); SAL_DLLPRIVATE static ConfigManager & getConfigManager();
......
...@@ -57,7 +57,6 @@ LibreOffice ...@@ -57,7 +57,6 @@ LibreOffice
UPDATEURL http://update.libreoffice.org/check.php UPDATEURL http://update.libreoffice.org/check.php
ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk
ADDSYSTEMINTEGRATION 1 ADDSYSTEMINTEGRATION 1
WRITERCOMPATIBILITYVERSIONOOO11 OpenOffice.org 1.1
PACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@ PACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
PACKAGEREVISION {buildid} PACKAGEREVISION {buildid}
LICENSENAME LGPL LICENSENAME LGPL
...@@ -109,7 +108,6 @@ LibreOffice_Dev ...@@ -109,7 +108,6 @@ LibreOffice_Dev
UPDATEURL http://update.libreoffice.org/check.php UPDATEURL http://update.libreoffice.org/check.php
ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk
ADDSYSTEMINTEGRATION 1 ADDSYSTEMINTEGRATION 1
WRITERCOMPATIBILITYVERSIONOOO11 OpenOffice.org 1.1
PACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@ PACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
PACKAGEREVISION {buildid} PACKAGEREVISION {buildid}
LICENSENAME LGPL LICENSENAME LGPL
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:install="http://openoffice.org/2004/installation" oor:name="Compatibility" oor:package="org.openoffice.Office"> <oor:component-data xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:install="http://openoffice.org/2004/installation" oor:name="Compatibility" oor:package="org.openoffice.Office">
<node oor:name="WriterCompatibilityVersion"> <node oor:name="WriterCompatibilityVersion">
<prop oor:name="OOo11" oor:type="xs:string"> <prop oor:name="OOo11" oor:type="xs:string">
<value>${WRITERCOMPATIBILITYVERSIONOOO11}</value> <value>OpenOffice.org 1.1</value>
</prop> </prop>
</node> </node>
<node oor:name="AllFileFormats"> <node oor:name="AllFileFormats">
......
...@@ -558,7 +558,6 @@ postprocess_main_SED := \ ...@@ -558,7 +558,6 @@ postprocess_main_SED := \
-e 's,$${STARTCENTER_INFO_URL},http://www.libreoffice.org/,g' \ -e 's,$${STARTCENTER_INFO_URL},http://www.libreoffice.org/,g' \
-e 's,$${STARTCENTER_HIDE_EXTERNAL_LINKS},0,g' \ -e 's,$${STARTCENTER_HIDE_EXTERNAL_LINKS},0,g' \
-e 's,$${STARTCENTER_TEMPLREP_URL},http://templates.libreoffice.org/,g' \ -e 's,$${STARTCENTER_TEMPLREP_URL},http://templates.libreoffice.org/,g' \
-e 's,$${WRITERCOMPATIBILITYVERSIONOOO11},OpenOffice.org 1.1,g' \
$(call gb_CustomTarget_get_workdir,postprocess/registry)/main.xcd : \ $(call gb_CustomTarget_get_workdir,postprocess/registry)/main.xcd : \
| $(call gb_ExternalExecutable_get_dependencies,xsltproc) | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
......
...@@ -56,12 +56,12 @@ ...@@ -56,12 +56,12 @@
<item translatable="yes">Use printer metrics for document formatting</item> <item translatable="yes">Use printer metrics for document formatting</item>
<item translatable="yes">Add spacing between paragraphs and tables (in current document)</item> <item translatable="yes">Add spacing between paragraphs and tables (in current document)</item>
<item translatable="yes">Add paragraph and table spacing at tops of pages (in current document)</item> <item translatable="yes">Add paragraph and table spacing at tops of pages (in current document)</item>
<item translatable="yes">Use %WRITERCOMPATIBILITYVERSIONOOO11 tabstop formatting</item> <item translatable="yes">Use OpenOffice.org 1.1 tabstop formatting</item>
<item translatable="yes">Do not add leading (extra space) between lines of text</item> <item translatable="yes">Do not add leading (extra space) between lines of text</item>
<item translatable="yes">Use %WRITERCOMPATIBILITYVERSIONOOO11 line spacing</item> <item translatable="yes">Use OpenOffice.org 1.1 line spacing</item>
<item translatable="yes">Add paragraph and table spacing at bottom of table cells</item> <item translatable="yes">Add paragraph and table spacing at bottom of table cells</item>
<item translatable="yes">Use %WRITERCOMPATIBILITYVERSIONOOO11 object positioning</item> <item translatable="yes">Use OpenOffice.org 1.1 object positioning</item>
<item translatable="yes">Use %WRITERCOMPATIBILITYVERSIONOOO11 text wrapping around objects</item> <item translatable="yes">Use OpenOffice.org 1.1 text wrapping around objects</item>
<item translatable="yes">Consider wrapping style when positioning objects</item> <item translatable="yes">Consider wrapping style when positioning objects</item>
<item translatable="yes">Expand word space on lines with manual line breaks in justified paragraphs</item> <item translatable="yes">Expand word space on lines with manual line breaks in justified paragraphs</item>
<item translatable="yes">&lt;User settings&gt;</item> <item translatable="yes">&lt;User settings&gt;</item>
......
...@@ -147,12 +147,6 @@ OUString utl::ConfigManager::getVendor() { ...@@ -147,12 +147,6 @@ OUString utl::ConfigManager::getVendor() {
OUString("Product/ooVendor")); OUString("Product/ooVendor"));
} }
OUString utl::ConfigManager::getWriterCompatibilityVersionOOo_1_1() {
return getConfigurationString(
OUString("/org.openoffice.Office.Compatibility"),
OUString("WriterCompatibilityVersion/OOo11"));
}
void utl::ConfigManager::storeConfigItems() { void utl::ConfigManager::storeConfigItems() {
getConfigManager().doStoreConfigItems(); getConfigManager().doStoreConfigItems();
} }
......
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