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
This commit is contained in:
parent
041d2b88a4
commit
f67d166b30
@ -472,8 +472,6 @@ namespace
|
||||
: public rtl::Static< OUString, XMLFileFormatName > {};
|
||||
struct XMLFileFormatVersion
|
||||
: public rtl::Static< OUString, XMLFileFormatVersion > {};
|
||||
struct WriterCompatibilityVersionOOo11
|
||||
: public rtl::Static< OUString, WriterCompatibilityVersionOOo11 > {};
|
||||
}
|
||||
|
||||
OUString ReplaceStringHookProc( const OUString& rStr )
|
||||
@ -528,19 +526,6 @@ OUString ReplaceStringHookProc( const OUString& rStr )
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -58,8 +58,6 @@ public:
|
||||
|
||||
static OUString getVendor();
|
||||
|
||||
static OUString getWriterCompatibilityVersionOOo_1_1();
|
||||
|
||||
static void storeConfigItems();
|
||||
|
||||
SAL_DLLPRIVATE static ConfigManager & getConfigManager();
|
||||
|
@ -57,7 +57,6 @@ LibreOffice
|
||||
UPDATEURL http://update.libreoffice.org/check.php
|
||||
ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk
|
||||
ADDSYSTEMINTEGRATION 1
|
||||
WRITERCOMPATIBILITYVERSIONOOO11 OpenOffice.org 1.1
|
||||
PACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
|
||||
PACKAGEREVISION {buildid}
|
||||
LICENSENAME LGPL
|
||||
@ -109,7 +108,6 @@ LibreOffice_Dev
|
||||
UPDATEURL http://update.libreoffice.org/check.php
|
||||
ADD_INCLUDE_FILES cliureversion.mk,clioootypesversion.mk
|
||||
ADDSYSTEMINTEGRATION 1
|
||||
WRITERCOMPATIBILITYVERSIONOOO11 OpenOffice.org 1.1
|
||||
PACKAGEVERSION @LIBO_VERSION_MAJOR@.@LIBO_VERSION_MINOR@.@LIBO_VERSION_MICRO@.@LIBO_VERSION_PATCH@@LIBO_VERSION_SUFFIX@
|
||||
PACKAGEREVISION {buildid}
|
||||
LICENSENAME LGPL
|
||||
|
@ -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">
|
||||
<node oor:name="WriterCompatibilityVersion">
|
||||
<prop oor:name="OOo11" oor:type="xs:string">
|
||||
<value>${WRITERCOMPATIBILITYVERSIONOOO11}</value>
|
||||
<value>OpenOffice.org 1.1</value>
|
||||
</prop>
|
||||
</node>
|
||||
<node oor:name="AllFileFormats">
|
||||
|
@ -558,7 +558,6 @@ postprocess_main_SED := \
|
||||
-e 's,$${STARTCENTER_INFO_URL},http://www.libreoffice.org/,g' \
|
||||
-e 's,$${STARTCENTER_HIDE_EXTERNAL_LINKS},0,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_ExternalExecutable_get_dependencies,xsltproc)
|
||||
|
@ -56,12 +56,12 @@
|
||||
<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 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">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">Use %WRITERCOMPATIBILITYVERSIONOOO11 object positioning</item>
|
||||
<item translatable="yes">Use %WRITERCOMPATIBILITYVERSIONOOO11 text wrapping around objects</item>
|
||||
<item translatable="yes">Use OpenOffice.org 1.1 object positioning</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">Expand word space on lines with manual line breaks in justified paragraphs</item>
|
||||
<item translatable="yes"><User settings></item>
|
||||
|
@ -147,12 +147,6 @@ OUString utl::ConfigManager::getVendor() {
|
||||
OUString("Product/ooVendor"));
|
||||
}
|
||||
|
||||
OUString utl::ConfigManager::getWriterCompatibilityVersionOOo_1_1() {
|
||||
return getConfigurationString(
|
||||
OUString("/org.openoffice.Office.Compatibility"),
|
||||
OUString("WriterCompatibilityVersion/OOo11"));
|
||||
}
|
||||
|
||||
void utl::ConfigManager::storeConfigItems() {
|
||||
getConfigManager().doStoreConfigItems();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user