summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-04-29 09:44:37 +0300
committerTor Lillqvist <tml@collabora.com>2014-04-29 09:47:34 +0300
commit81272fdb1e093d44e2e67eba65c79a490832f320 (patch)
treedcb26ead42150eb2ed8422696a006731a8b418da
parent94fc0b4752599601ddf9ff3c9b49da15cffb4882 (diff)
Less intrusive --disable-database-connectivity change for sw
Do compile in the SwDBFieldType class. Still bypass mail merge stuff. Results in about 1.8MB reduction in text segment size for TiledLibreOffice. Change-Id: Iec900bd451d1b4154f3bf03f604783e548b8e7af
-rw-r--r--sw/Library_sw.mk2
-rw-r--r--sw/source/core/uibase/uno/unofreg.cxx4
2 files changed, 5 insertions, 1 deletions
diff --git a/sw/Library_sw.mk b/sw/Library_sw.mk
index 62b864fa5e32..af465ca4d92c 100644
--- a/sw/Library_sw.mk
+++ b/sw/Library_sw.mk
@@ -258,6 +258,7 @@ $(eval $(call gb_Library_add_exception_objects,sw,\
sw/source/core/fields/authfld \
sw/source/core/fields/cellfml \
sw/source/core/fields/chpfld \
+ sw/source/core/fields/dbfld \
sw/source/core/fields/ddefld \
sw/source/core/fields/ddetbl \
sw/source/core/fields/docufld \
@@ -744,7 +745,6 @@ $(eval $(call gb_Library_add_exception_objects,sw,\
ifneq (,$(filter DBCONNECTIVITY,$(BUILD_TYPE)))
$(eval $(call gb_Library_add_exception_objects,sw,\
- sw/source/core/fields/dbfld \
sw/source/core/uibase/dbui/dbmgr \
sw/source/core/uibase/dbui/dbtree \
sw/source/core/uibase/dbui/dbui \
diff --git a/sw/source/core/uibase/uno/unofreg.cxx b/sw/source/core/uibase/uno/unofreg.cxx
index 77b6f90a9e2f..985e3ee1c94e 100644
--- a/sw/source/core/uibase/uno/unofreg.cxx
+++ b/sw/source/core/uibase/uno/unofreg.cxx
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
+
#include "SwXFilterOptions.hxx"
#include "unofreg.hxx"
#include <sal/types.h>
@@ -204,6 +206,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL sw_component_getFactory(
SwXModule_createInstance,
SwXModule_getSupportedServiceNames() );
}
+#if HAVE_FEATURE_DBCONNECTIVITY
else if( SwXMailMerge_getImplementationName().equalsAsciiL(
pImplName, nImplNameLen ) )
{
@@ -212,6 +215,7 @@ SAL_DLLPUBLIC_EXPORT void * SAL_CALL sw_component_getFactory(
SwXMailMerge_createInstance,
SwXMailMerge_getSupportedServiceNames() );
}
+#endif
else if( SwXFilterOptions::getImplementationName_Static().equalsAsciiL(
pImplName, nImplNameLen ) )
{