From d1f7124c4bec104d0ee12927cba3f67f56b11829 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Wed, 13 Feb 2013 16:40:34 +0100 Subject: Get Labels.xcu out of configuration data. Modify the file format, install separately into share/labels, and parse it using xmlreader when needed. Saves time on startup and reduces pointless configurarion size. --- scp2/source/ooo/common_brand.scp | 6 ++++++ scp2/source/ooo/file_ooo.scp | 7 +++++++ scp2/source/ooo/module_hidden_ooo.scp | 1 + 3 files changed, 14 insertions(+) (limited to 'scp2') diff --git a/scp2/source/ooo/common_brand.scp b/scp2/source/ooo/common_brand.scp index 46419a8a800d..0f9f95412603 100644 --- a/scp2/source/ooo/common_brand.scp +++ b/scp2/source/ooo/common_brand.scp @@ -42,6 +42,7 @@ Module gid_Module_Root_Brand gid_Brand_Dir_Share_Extensions, gid_Brand_Dir_Share_Uno_Packages, gid_Brand_Dir_Share_Uno_Packages_Cache, + gid_Brand_Dir_Share_Labels, gid_Brand_Dir_Share_Registry, gid_Brand_Dir_Share_Xdg); Files = (gid_Brand_File_Bin_Crashreport, @@ -418,6 +419,11 @@ Directory gid_Brand_Dir_Share_Uno_Packages_Cache_Uno_Packages Styles = (CREATE); End +Directory gid_Brand_Dir_Share_Labels + ParentID = gid_Brand_Dir_Share; + DosName = "labels"; +End + Directory gid_Brand_Dir_Share_Registry ParentID = gid_Brand_Dir_Share; DosName = "registry"; diff --git a/scp2/source/ooo/file_ooo.scp b/scp2/source/ooo/file_ooo.scp index 655832850a97..f1f604886fe5 100644 --- a/scp2/source/ooo/file_ooo.scp +++ b/scp2/source/ooo/file_ooo.scp @@ -625,6 +625,13 @@ End #endif +File gid_File_Share_Labels_Xml + TXT_FILE_BODY; + Styles = (PACKED); + Dir = gid_Brand_Dir_Share_Labels; + Name = "labels.xml"; +End + File gid_File_Share_Registry_Main_Xcd TXT_FILE_BODY; Styles = (PACKED, SCPZIP_REPLACE); diff --git a/scp2/source/ooo/module_hidden_ooo.scp b/scp2/source/ooo/module_hidden_ooo.scp index c3e6035e1b51..195a3fde562c 100644 --- a/scp2/source/ooo/module_hidden_ooo.scp +++ b/scp2/source/ooo/module_hidden_ooo.scp @@ -536,6 +536,7 @@ Module gid_Module_Root_Files_6 gid_File_Mod_Text, gid_File_Oo_Ldap_Xcd_Sample, gid_File_Oo_Ad_Ldap_Xcd_Sample, + gid_File_Share_Labels_Xml, gid_File_Share_Registry_Main_Xcd, gid_File_Share_Registry_Forcedefault_Xcd, gid_File_Pymailmerge, -- cgit