diff options
author | Timothy Pearson <[email protected]> | 2013-03-01 07:49:29 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-03-01 07:49:29 -0600 |
commit | c25af609a6ffb043aef5aef727c5ac18e4767ab4 (patch) | |
tree | 6167dc6be4cf497b64e4f588918cdccd56f64ff3 | |
parent | d3f95f6c03849bf708f2857e1fbebb4cb55d47e0 (diff) | |
download | thirdparty-c25af609a6ffb043aef5aef727c5ac18e4767ab4.tar.gz thirdparty-c25af609a6ffb043aef5aef727c5ac18e4767ab4.zip |
Add Debian-specific patch for LO 4.0.1
-rw-r--r-- | libreoffice/4.0.1/patches/libreoffice-debian.diff | 793 |
1 files changed, 793 insertions, 0 deletions
diff --git a/libreoffice/4.0.1/patches/libreoffice-debian.diff b/libreoffice/4.0.1/patches/libreoffice-debian.diff new file mode 100644 index 0000000..4c951b8 --- /dev/null +++ b/libreoffice/4.0.1/patches/libreoffice-debian.diff @@ -0,0 +1,793 @@ +diff -urN original/libreoffice-4.0.1~rc1/debian/changelog tde/libreoffice-4.0.1~rc1/debian/changelog +--- original/libreoffice-4.0.1~rc1/debian/changelog 2013-02-24 08:05:30.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/changelog 2013-02-28 23:40:44.051582285 +0000 +@@ -1,5 +1,11 @@ + libreoffice (1:4.0.1~rc1-2) experimental; urgency=low + ++ * Enable TDE module ++ ++ -- Timothy Pearson <[email protected]> Wed, 27 Feb 2013 11:13:00 -0600 ++ ++libreoffice (1:4.0.1~rc1-2) experimental; urgency=low ++ + * debian/rules: + - add correct build-dep on cpp-4.7... + +diff -urN original/libreoffice-4.0.1~rc1/debian/control tde/libreoffice-4.0.1~rc1/debian/control +--- original/libreoffice-4.0.1~rc1/debian/control 2013-02-24 08:04:56.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/control 2013-02-28 23:40:44.091581780 +0000 +@@ -26,7 +26,7 @@ + gperf, + javahelper (>= 0.37~), + junit4 (>= 4.8.2-2), +- kdelibs5-dev (>= 4:4.3.4), ++ tdelibs4-trinity-dev, + libarchive-zip-perl, + libbluetooth-dev [!kfreebsd-amd64 !kfreebsd-i386], + libboost-date-time-dev (>= 1.38), +@@ -191,7 +191,7 @@ + iceweasel | firefox | icedove | thunderbird | iceape-browser | mozilla-browser, + imagemagick | graphicsmagick-imagemagick-compat, + libgl1, +- libreoffice-gnome | libreoffice-kde, ++ libreoffice-gnome | libreoffice-kde | libreoffice-trinity, + libreoffice-grammarcheck, + libreoffice-help-${help-l10n-virtual-version}, + libreoffice-l10n-${help-l10n-virtual-version}, +@@ -230,6 +230,7 @@ + QuickStarter for GNOMEs notification are + * libreoffice-gnome: GIO, GConf backend + * libreoffice-kde: KDE UI Plugin and KDE File Picker support ++ * libreoffice-trinity: TDE UI Plugin and TDE File Picker support + * unixodbc: ODBC database support + * cups-bsd: Allows LibreOffice to detect your CUPS printer queues + automatically +@@ -313,6 +314,7 @@ + libreoffice-gtk (<< ${binary:Version}), + libreoffice-impress (<< ${binary:Version}), + libreoffice-kde (<< ${binary:Version}), ++ libreoffice-trinity (<< ${binary:Version}), + libreoffice-officebean (<< ${binary:Version}), + libreoffice-style-andromeda (<< 1:3.3.0-1), + libreoffice-style-crystal (<< 1:3.3.0-1), +@@ -4175,7 +4177,7 @@ + Section: debug + Architecture: amd64 armel armhf hppa i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc + Priority: extra +-Depends: libreoffice-core (= ${binary:Version}) | libreoffice-dev (= ${binary:Version}) | libreoffice-gnome (= ${binary:Version}) | libreoffice-kde (= ${binary:Version}) | libreoffice-calc (= ${binary:Version}) | libreoffice-base-core (= ${binary:Version}) | libreoffice-base (= ${binary:Version}) | libreoffice-impress (= ${binary:Version}) | libreoffice-draw (= ${binary:Version}) | libreoffice-writer (= ${binary:Version}) | python-uno (= ${binary:Version}) | browser-plugin-libreoffice (= ${binary:Version}) | libreoffice-ogltrans (= ${binary:Version}), ++Depends: libreoffice-core (= ${binary:Version}) | libreoffice-dev (= ${binary:Version}) | libreoffice-gnome (= ${binary:Version}) | libreoffice-kde (= ${binary:Version}) | libreoffice-trinity (= ${binary:Version}) | libreoffice-calc (= ${binary:Version}) | libreoffice-base-core (= ${binary:Version}) | libreoffice-base (= ${binary:Version}) | libreoffice-impress (= ${binary:Version}) | libreoffice-draw (= ${binary:Version}) | libreoffice-writer (= ${binary:Version}) | python-uno (= ${binary:Version}) | browser-plugin-libreoffice (= ${binary:Version}) | libreoffice-ogltrans (= ${binary:Version}), + ${misc:Depends} + Recommends: ure-dbg + Suggests: ${dbg-dbg-suggests} +@@ -4245,6 +4247,25 @@ + * konqueror / kmail + * libreoffice-kab: KDE Addressbook support + ++Package: libreoffice-trinity ++Architecture: alpha amd64 armel armhf hppa i386 ia64 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc kfreebsd-amd64 kfreebsd-i386 ++Depends: libreoffice-core (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} ++Recommends: ${tde-iconset-dep} ++Suggests: konqueror-trinity, kmail-trinity, libreoffice-kab-trinity ++Section: tde ++Enhances: libreoffice ++Replaces: openoffice.org-trinity (<< 1:3.3.0~) ++Description: office productivity suite -- TDE integration ++ LibreOffice is a full-featured office productivity suite that provides ++ a near drop-in replacement for Microsoft(R) Office. ++ . ++ This package contains the TDE plugin for drawing OOo's widgets with ++ TDE/Qt and a TDEish File Picker when running under TDE. ++ You can extend the functionality of this by installing these packages: ++ . ++ * konqueror-trinity / kmail-trinity ++ * libreoffice-kab-trinity: TDE Addressbook support ++ + Package: libreoffice-sdbc-postgresql + Section: misc + Architecture: amd64 armel armhf hppa i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc powerpcspe ppc64 s390 s390x sparc +diff -urN original/libreoffice-4.0.1~rc1/debian/control.in tde/libreoffice-4.0.1~rc1/debian/control.in +--- original/libreoffice-4.0.1~rc1/debian/control.in 2013-02-19 17:28:39.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/control.in 2013-02-28 23:40:44.095581730 +0000 +@@ -214,6 +214,7 @@ + libreofficeVER-gtk (<< ${binary:Version}), + libreofficeVER-impress (<< ${binary:Version}), + libreofficeVER-kde (<< ${binary:Version}), ++ libreofficeVER-trinity (<< ${binary:Version}), + libreofficeVER-officebean (<< ${binary:Version}), + libreofficeVER-unbundled, + libreofficeVER-writer (<< ${binary:Version}), +diff -urN original/libreoffice-4.0.1~rc1/debian/control.tdeab.in tde/libreoffice-4.0.1~rc1/debian/control.tdeab.in +--- original/libreoffice-4.0.1~rc1/debian/control.tdeab.in 1970-01-01 00:00:00.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/control.tdeab.in 2013-02-28 23:40:44.095581730 +0000 +@@ -0,0 +1,14 @@ ++Package: libreofficeVER-tdeab-trinity ++Architecture: %OOO_BASE_ARCHS% ++Depends: libreofficeVER-core (= ${binary:Version}), ++ libreofficeVER-common (>= 1:3.4.0~), ++ ${shlibs:Depends}, ++ ${misc:Depends} ++Recommends: kaddressbook-trinity ++Conflicts: ure (<< 1.5.1+OOo3.1.1-15) ++Description: office productivity suite -- TDE adressbook support ++ LibreOffice is a full-featured office productivity suite that provides ++ a near drop-in replacement for Microsoft(R) Office. ++ . ++ This package allows LibreOffice to access the TDE Addressbook. ++ You need to install kaddressbook-trinity separately. +\ No newline at end of file +diff -urN original/libreoffice-4.0.1~rc1/debian/control.trinity.in tde/libreoffice-4.0.1~rc1/debian/control.trinity.in +--- original/libreoffice-4.0.1~rc1/debian/control.trinity.in 1970-01-01 00:00:00.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/control.trinity.in 2013-02-28 23:40:44.095581730 +0000 +@@ -0,0 +1,23 @@ ++Package: libreofficeVER-trinity ++Architecture: %OOO_ARCHS% ++Depends: libreofficeVER-core (= ${binary:Version}), ++ ${shlibs:Depends}, ++ ${misc:Depends} ++Recommends: ${trinity-iconset-dep} ++Suggests: konqueror-trinity, ++ kmail-trinity, ++ libreofficeVER-tdeab-trinity ++Section: tde ++Enhances: libreofficeVER ++Replaces: openoffice.org-trinity (<< 1:3.3.0~), libreoffice-core (= 1:3.5.0~beta2-1) ++Description: office productivity suite -- TDE integration ++ LibreOffice is a full-featured office productivity suite that provides ++ a near drop-in replacement for Microsoft(R) Office. ++ . ++ This package contains the TDE plugin for drawing OOo's widgets with ++ TDE/Qt and a TDEish File Picker when running under TDE. ++ You can extend the functionality of this by installing these packages: ++ . ++ * konqueror / kmail ++ * libreoffice-tdeab-trinity: TDE Addressbook support ++ +diff -urN original/libreoffice-4.0.1~rc1/debian/patches/libreoffice_ubuntu-tde-make-package-modules-not-stink.diff tde/libreoffice-4.0.1~rc1/debian/patches/libreoffice_ubuntu-tde-make-package-modules-not-stink.diff +--- original/libreoffice-4.0.1~rc1/debian/patches/libreoffice_ubuntu-tde-make-package-modules-not-stink.diff 1970-01-01 00:00:00.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/patches/libreoffice_ubuntu-tde-make-package-modules-not-stink.diff 2013-02-28 23:35:59.935178096 +0000 +@@ -0,0 +1,50 @@ ++diff -ur a/scp2/source/ooo/module_hidden_ooo.scp b/scp2/source/ooo/module_hidden_ooo.scp ++--- a/scp2/source/ooo/module_hidden_ooo.scp +++++ b/scp2/source/ooo/module_hidden_ooo.scp ++@@ -90,7 +90,6 @@ ++ Default = YES; ++ Styles = (HIDDEN_ROOT); ++ Files = (gid_File_Bin_Cde_Open_Url, ++- gid_File_Bin_Tde_Open_Url, ++ gid_File_Bin_Open_Url, ++ gid_File_Bin_Pagein, ++ gid_File_Bin_Pluginapp, ++@@ -272,7 +271,6 @@ ++ gid_File_Lib_Odfflatxml, ++ gid_File_Lib_Zip, ++ gid_File_Lib_Vclplug_Gen, ++- gid_File_Lib_Vclplug_Tde, ++ gid_File_Lib_Vclplug_Svp, ++ gid_File_Lib_Basctl, ++ gid_File_Lib_CanvasTools, ++@@ -317,8 +315,6 @@ ++ gid_File_Lib_Dbpool, ++ gid_File_Lib_Embobj, ++ gid_File_Lib_Emboleobj, ++- gid_File_Lib_Tdeab_1, ++- gid_File_Lib_Tdeab_Drv_1, ++ gid_File_Lib_Kab_1, ++ gid_File_Lib_Kab_Drv_1, ++ gid_File_Lib_Macab_1, ++diff -ur a/scp2/source/tde/module_tde.scp b/scp2/source/tde/module_tde.scp ++--- a/scp2/source/tde/module_tde.scp +++++ b/scp2/source/tde/module_tde.scp ++@@ -32,9 +32,17 @@ ++ MOD_NAME_DESC(MODULE_OPTIONAL_TDE); ++ Styles = (); ++ Files = ( +++ gid_File_Bin_Tde_Open_Url, ++ #ifdef ENABLE_TDE ++- gid_File_Lib_Tdebe +++ gid_File_Lib_Tdebe, +++ gid_File_Lib_Vclplug_Tde, +++ gid_File_Lib_Fps_Tde ++ #endif // ENABLE_TDE +++#ifdef ENABLE_TDEAB +++ , +++ gid_File_Lib_Tdeab_1, +++ gid_File_Lib_Tdeab_Drv_1 +++#endif ++ ); ++ End ++ #endif +diff -urN original/libreoffice-4.0.1~rc1/debian/patches/series tde/libreoffice-4.0.1~rc1/debian/patches/series +--- original/libreoffice-4.0.1~rc1/debian/patches/series 2013-02-19 17:46:44.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/patches/series 2013-02-28 23:40:44.099581680 +0000 +@@ -18,6 +18,7 @@ + make-pyuno-work-with-system-wide-module-install.diff + #search-usr-share-for-images.diff + make-package-modules-not-suck.diff ++libreoffice_ubuntu-tde-make-package-modules-not-stink.diff + mediwiki-oor-replace.diff + debian-hardened-buildflags-CPPFLAGS.diff + gtk3-hack-explicit-gmodule.diff +@@ -27,3 +28,4 @@ + disable-flaky-unoapi-tests.diff + dont-touch-urd.diff + wheezy-backports-python.diff ++tde-update-r14.diff +diff -urN original/libreoffice-4.0.1~rc1/debian/patches/tde-update-r14.diff tde/libreoffice-4.0.1~rc1/debian/patches/tde-update-r14.diff +--- original/libreoffice-4.0.1~rc1/debian/patches/tde-update-r14.diff 1970-01-01 00:00:00.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/patches/tde-update-r14.diff 2013-02-28 23:40:44.099581680 +0000 +@@ -0,0 +1,395 @@ ++diff --git a/configure.ac b/configure.ac ++index 401352a..0ea3acf 100644 ++--- a/configure.ac +++++ b/configure.ac ++@@ -10258,7 +10258,7 @@ your TDE installation by exporting TDEDIR before running "configure".]) ++ ++ dnl Set the variables ++ TDE_CFLAGS="-I$tqt_incdir -I$tde_incdir -I/usr/include/tqt -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT" ++- TDE_LIBS="-L$tde_libdir -L$tqt_libdir -lkio -ltdeui -ltdecore -ltqt -ltqt-mt" +++ TDE_LIBS="-L$tde_libdir -L$tqt_libdir -ltdeio -ltdeui -ltdecore -ltqt -ltqt-mt" ++ fi ++ AC_SUBST(TDE_CFLAGS) ++ AC_SUBST(TDE_LIBS) ++diff --git a/connectivity/Library_tdeabdrv1.mk b/connectivity/Library_tdeabdrv1.mk ++index b2df458..b8786fd 100644 ++--- a/connectivity/Library_tdeabdrv1.mk +++++ b/connectivity/Library_tdeabdrv1.mk ++@@ -39,7 +39,7 @@ $(eval $(call gb_Library_use_externals,tdeabdrv1,\ ++ )) ++ ++ $(eval $(call gb_Library_add_libs,tdeabdrv1,\ ++- -lkabc \ +++ -ltdeabc \ ++ )) ++ ++ $(eval $(call gb_Library_use_libraries,tdeabdrv1,\ ++diff --git a/connectivity/source/drivers/kab/KConnection.hxx b/connectivity/source/drivers/kab/KConnection.hxx ++index fc4cc55..b14bbac 100644 ++--- a/connectivity/source/drivers/kab/KConnection.hxx +++++ b/connectivity/source/drivers/kab/KConnection.hxx ++@@ -30,6 +30,7 @@ ++ #include <com/sun/star/sdbcx/XTablesSupplier.hpp> ++ #include <comphelper/broadcasthelper.hxx> ++ #include <cppuhelper/compbase3.hxx> +++#include <shell/kde_headers.h> ++ ++ namespace KABC ++ { ++diff --git a/connectivity/source/drivers/kab/KDEInit.cxx b/connectivity/source/drivers/kab/KDEInit.cxx ++index 46bbe13..83f4bd9 100644 ++--- a/connectivity/source/drivers/kab/KDEInit.cxx +++++ b/connectivity/source/drivers/kab/KDEInit.cxx ++@@ -20,6 +20,7 @@ ++ #include "KDEInit.h" ++ #include <osl/diagnose.h> ++ #include <osl/process.h> +++ ++ #include <shell/kde_headers.h> ++ ++ namespace connectivity ++diff --git a/shell/inc/shell/tde_defines.h b/shell/inc/shell/tde_defines.h ++index 52e610c..0dc91e9 100644 ++--- a/shell/inc/shell/tde_defines.h +++++ b/shell/inc/shell/tde_defines.h ++@@ -26,67 +26,83 @@ ++ #ifndef INCLUDED_VCL_TDE_DEFINE_HEADERS_H ++ #define INCLUDED_VCL_TDE_DEFINE_HEADERS_H ++ ++-#define QObject TQObject ++-#define QWidget TQWidget ++-#define QVBox TQVBox ++-#define QHBox TQHBox ++-#define QGrid TQGrid ++-#define QString TQString ++-#define QStringList TQStringList ++-#define QCustomEvent TQCustomEvent ++-#define QMutex TQMutex ++-#define QEvent TQEvent ++-#define QFont TQFont ++-#define QDateTime TQDateTime ++-#define QThread TQThread ++-#define QStyle TQStyle ++-#define QApplication TQApplication ++-#define QRect TQRect ++-#define QProgressBar TQProgressBar ++-#define QPopupMenu TQPopupMenu ++-#define QMenuBar TQMenuBar ++-#define QToolButton TQToolButton ++-#define QToolBar TQToolBar ++-#define QScrollBar TQScrollBar ++-#define QListView TQListView ++-#define QSpinWidget TQSpinWidget ++-#define QScrollBar TQScrollBar ++-#define QLineEdit TQLineEdit ++-#define QComboBox TQComboBox ++-#define QCheckBox TQCheckBox ++-#define QRadioButton TQRadioButton ++-#define QPushButton TQPushButton ++-#define QPainter TQPainter ++-#define QResizeEvent TQResizeEvent ++-#define QShowEvent TQShowEvent ++-#define QPoint TQPoint ++-#define QDialog TQDialog ++-#define QFile TQFile ++-#define QLabel TQLabel ++-#define QObjectList TQObjectList ++-#define QCString TQCString ++-#define QRegExp TQRegExp ++-#define QSessionManager TQSessionManager ++-#define QPaintDevice TQPaintDevice ++-#define QTextIStream TQTextIStream ++-#define QTextStream TQTextStream ++-#define QMutexLocker TQMutexLocker ++-#define QValueList TQValueList ++-#define QTab TQTab ++-#define QTabBar TQTabBar ++-#define QTabWidget TQTabWidget ++-#define QMainWindow TQMainWindow ++-#define QPixmap TQPixmap ++-#define QColorGroup TQColorGroup ++-#define QStyleOption TQStyleOption ++-#define QSize TQSize ++-#define QMenuItem TQMenuItem ++-#define QFontInfo TQFontInfo +++#define QObject TQObject +++#define QWidget TQWidget +++#define QVBox TQVBox +++#define QHBox TQHBox +++#define QGrid TQGrid +++#define QString TQString +++#define QStringList TQStringList +++#define QCustomEvent TQCustomEvent +++#define QMutex TQMutex +++#define QEvent TQEvent +++#define QFont TQFont +++#define QDateTime TQDateTime +++#define QThread TQThread +++#define QStyle TQStyle +++#define QApplication TQApplication +++#define QRect TQRect +++#define QProgressBar TQProgressBar +++#define QPopupMenu TQPopupMenu +++#define QMenuBar TQMenuBar +++#define QToolButton TQToolButton +++#define QToolBar TQToolBar +++#define QScrollBar TQScrollBar +++#define QListView TQListView +++#define QSpinWidget TQSpinWidget +++#define QScrollBar TQScrollBar +++#define QLineEdit TQLineEdit +++#define QComboBox TQComboBox +++#define QCheckBox TQCheckBox +++#define QRadioButton TQRadioButton +++#define QPushButton TQPushButton +++#define QPainter TQPainter +++#define QResizeEvent TQResizeEvent +++#define QShowEvent TQShowEvent +++#define QPoint TQPoint +++#define QDialog TQDialog +++#define QFile TQFile +++#define QLabel TQLabel +++#define QObjectList TQObjectList +++#define QCString TQCString +++#define QRegExp TQRegExp +++#define QSessionManager TQSessionManager +++#define QPaintDevice TQPaintDevice +++#define QTextIStream TQTextIStream +++#define QTextStream TQTextStream +++#define QMutexLocker TQMutexLocker +++#define QValueList TQValueList +++#define QTab TQTab +++#define QTabBar TQTabBar +++#define QTabWidget TQTabWidget +++#define QMainWindow TQMainWindow +++#define QPixmap TQPixmap +++#define QColorGroup TQColorGroup +++#define QStyleOption TQStyleOption +++#define QSize TQSize +++#define QMenuItem TQMenuItem +++#define QFontInfo TQFontInfo ++ ++-#define qSwap tqSwap ++-#define qt_cast tqt_cast ++-#define qt_xdisplay tqt_xdisplay ++-#define qVersion tqVersion +++#define qSwap tqSwap +++#define qt_cast tqt_cast +++#define qt_xdisplay tqt_xdisplay +++#define qVersion tqVersion +++ +++#define KAboutData TDEAboutData +++#define KApplication TDEApplication +++#define KCmdLineArgs TDECmdLineArgs +++#define KConfig TDEConfig +++#define KGlobal TDEGlobal +++#define KGlobalSettings TDEGlobalSettings +++#define KMainWindow TDEMainWindow +++#define KStartupInfo TDEStartupInfo +++#define KStyle TDEStyle +++#define KToolBar TDEToolBar +++ +++#define drawKStylePrimitive drawTDEStylePrimitive +++ +++#define KIO TDEIO +++#define KABC TDEABC ++ ++ #endif ++ ++diff --git a/shell/inc/shell/tde_headers.h b/shell/inc/shell/tde_headers.h ++index d0f1444..ed3739e 100644 ++--- a/shell/inc/shell/tde_headers.h +++++ b/shell/inc/shell/tde_headers.h ++@@ -68,27 +68,27 @@ ++ ++ ++ /* ********* TDE base headers */ ++-#include <kaboutdata.h> ++-#include <kapplication.h> ++-#include <kcmdlineargs.h> ++-#include <kconfig.h> +++#include <tdeaboutdata.h> +++#include <tdeapplication.h> +++#include <tdecmdlineargs.h> +++#include <tdeconfig.h> ++ #include <tdeversion.h> ++-#include <kemailsettings.h> ++-#include <kglobal.h> ++-#include <kglobalsettings.h> ++-#include <klocale.h> ++-#include <kmainwindow.h> ++-#include <kmenubar.h> ++-#include <kprotocolmanager.h> ++-#include <kstartupinfo.h> ++-#include <kstyle.h> +++#include <tdeemailsettings.h> +++#include <tdeglobal.h> +++#include <tdeglobalsettings.h> +++#include <tdelocale.h> +++#include <tdemainwindow.h> +++#include <tdemenubar.h> +++#include <tdeprotocolmanager.h> +++#include <tdestartupinfo.h> +++#include <tdestyle.h> ++ ++ ++ /* ********* TDE address book connectivity headers */ ++-#include <kabc/addressbook.h> ++-#include <kabc/addressee.h> ++-#include <kabc/field.h> ++-#include <kabc/stdaddressbook.h> +++#include <tdeabc/addressbook.h> +++#include <tdeabc/addressee.h> +++#include <tdeabc/field.h> +++#include <tdeabc/stdaddressbook.h> ++ ++ #include "tde_defines.h" ++ ++diff --git a/vcl/Executable_tdefilepicker.mk b/vcl/Executable_tdefilepicker.mk ++index 4c912e4..10af256 100644 ++--- a/vcl/Executable_tdefilepicker.mk +++++ b/vcl/Executable_tdefilepicker.mk ++@@ -46,7 +46,7 @@ $(eval $(call gb_Executable_use_libraries,tdefilepicker,\ ++ ++ $(eval $(call gb_Executable_add_libs,tdefilepicker,\ ++ $(TDE_LIBS) \ ++- -lkio -lX11 \ +++ -ltdeio -lX11 \ ++ )) ++ ++ $(eval $(call gb_Executable_add_exception_objects,tdefilepicker,\ ++diff --git a/vcl/unx/kde/fpicker/kdecommandthread.cxx b/vcl/unx/kde/fpicker/kdecommandthread.cxx ++index 1f9f663..064d06c 100644 ++--- a/vcl/unx/kde/fpicker/kdecommandthread.cxx +++++ b/vcl/unx/kde/fpicker/kdecommandthread.cxx ++@@ -25,11 +25,11 @@ ++ ++ #ifdef ENABLE_TDE ++ #include <tqstringlist.h> +++#include <tdeapplication.h> ++ #else // ENABLE_TDE ++ #include <qstringlist.h> ++-#endif // ENABLE_TDE ++- ++ #include <kapplication.h> +++#endif // ENABLE_TDE ++ ++ #if OSL_DEBUG_LEVEL > 1 ++ #include <iostream> ++@@ -121,12 +121,18 @@ void KDECommandThread::handleCommand( const QString &rString, bool &bQuit ) ++ ++ QString qCommand = pTokens->front(); ++ pTokens->pop_front(); +++#if OSL_DEBUG_LEVEL > 1 +++ ::std::cerr << "kdefilepicker first command: " << qCommand.latin1() << ::std::endl; +++#endif ++ ++ if ( qCommand == "exit" ) ++ { ++ bQuit = true; ++ kapp->exit(); ++ kapp->wakeUpGuiThread(); +++#if OSL_DEBUG_LEVEL > 1 +++ ::std::cerr << "kdefilepicker: exiting" << ::std::endl; +++#endif ++ } ++ else ++ kapp->postEvent( m_pObject, new KDECommandEvent( qCommand, pTokens ) ); ++diff --git a/vcl/unx/kde/fpicker/kdefilepicker.cxx b/vcl/unx/kde/fpicker/kdefilepicker.cxx ++index b0d20e4..5163079 100644 ++--- a/vcl/unx/kde/fpicker/kdefilepicker.cxx +++++ b/vcl/unx/kde/fpicker/kdefilepicker.cxx ++@@ -42,13 +42,13 @@ ++ #endif ++ ++ #include <tdeversion.h> ++-#include <kdiroperator.h> ++-#include <kfiledialog.h> ++-#include <kfilefiltercombo.h> ++-#include <kio/netaccess.h> ++-#include <klocale.h> ++-#include <kmessagebox.h> ++-#include <ktempfile.h> +++#include <tdediroperator.h> +++#include <tdefiledialog.h> +++#include <tdefilefiltercombo.h> +++#include <tdeio/netaccess.h> +++#include <tdelocale.h> +++#include <tdemessagebox.h> +++#include <tdetempfile.h> ++ ++ #else // ENABLE_TDE ++ ++diff --git a/vcl/unx/kde/fpicker/kdefilepicker.hxx b/vcl/unx/kde/fpicker/kdefilepicker.hxx ++index e7638ea..046a1bc 100644 ++--- a/vcl/unx/kde/fpicker/kdefilepicker.hxx +++++ b/vcl/unx/kde/fpicker/kdefilepicker.hxx ++@@ -28,8 +28,13 @@ ++ ++ #include <cstddef> ++ +++#ifdef ENABLE_TDE +++#include <tdefiledialog.h> +++#include <tdefilefiltercombo.h> +++#else // ENABLE_TDE ++ #include <kfiledialog.h> ++ #include <kfilefiltercombo.h> +++#endif // ENABLE_TDE ++ ++ class QGrid; ++ class QHBox; ++diff --git a/vcl/unx/kde/fpicker/kdefpmain.cxx b/vcl/unx/kde/fpicker/kdefpmain.cxx ++index a18a969..df39e01 100644 ++--- a/vcl/unx/kde/fpicker/kdefpmain.cxx +++++ b/vcl/unx/kde/fpicker/kdefpmain.cxx ++@@ -23,9 +23,16 @@ ++ #include <kdefilepicker.hxx> ++ #include <kdecommandthread.hxx> ++ +++#ifdef ENABLE_TDE +++#include <tqeventloop.h> +++#include <tdeaboutdata.h> +++#include <tdeapplication.h> +++#include <tdecmdlineargs.h> +++#else // ENABLE_TDE ++ #include <kaboutdata.h> ++ #include <kapplication.h> ++ #include <kcmdlineargs.h> +++#endif // ENABLE_TDE ++ ++ #include <iostream> ++ #include <stdlib.h> ++@@ -40,6 +47,15 @@ ++ #define THIS_DESKENV_NAME_LOW "kde" ++ #endif // ENABLE_TDE ++ +++#ifdef ENABLE_TDE +++#define KAboutData TDEAboutData +++#define KCmdLineArgs TDECmdLineArgs +++#define KCmdLineOptions TDECmdLineOptions +++#define KCmdLineLastOption TDECmdLineLastOption +++#define KApplication TDEApplication +++#define KLocale TDELocale +++#endif // ENABLE_TDE +++ ++ ////////////////////////////////////////////////////////////////////////// ++ // Main ++ ////////////////////////////////////////////////////////////////////////// ++diff --git a/vcl/unx/kde/fpicker/kdemodalityfilter.cxx b/vcl/unx/kde/fpicker/kdemodalityfilter.cxx ++index 5c8c482..2c1f034 100644 ++--- a/vcl/unx/kde/fpicker/kdemodalityfilter.cxx +++++ b/vcl/unx/kde/fpicker/kdemodalityfilter.cxx ++@@ -21,8 +21,13 @@ ++ ++ #include <kdemodalityfilter.hxx> ++ +++#ifdef ENABLE_TDE +++#include <tdeapplication.h> +++#include <kdialogbase.h> +++#else // ENABLE_TDE ++ #include <kapplication.h> ++ #include <kdialogbase.h> +++#endif // ENABLE_TDE ++ ++ #include <netwm.h> ++ #include <X11/Xlib.h> +diff -urN original/libreoffice-4.0.1~rc1/debian/rules tde/libreoffice-4.0.1~rc1/debian/rules +--- original/libreoffice-4.0.1~rc1/debian/rules 2013-02-24 08:04:29.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/rules 2013-02-28 23:40:44.103581629 +0000 +@@ -157,7 +157,8 @@ + BUILD_CAIROCANVAS=y + SYSTEM_STUFF += cairo + CAIRO_FONTS_PATCH=y +-BUILD_KDE=y ++BUILD_KDE=n ++BUILD_TDE=y + # not ported to KDE 4 + ENABLE_KDEAB=n + ifeq "$(SYSTEM_GCC_VERSION)" "4.7" +@@ -167,6 +168,12 @@ + QT_MINVER= (>= 4:4.5) + endif + KDELIBS_MINVER= (>= 4:4.3.4) ++ifeq "$(BUILD_TDE)" "y" ++ ENABLE_TDEAB=y ++endif ++ifeq "$(BUILD_TDE)" "y" ++ TDELIBS_MINVER= (>= 4:3.5.13) ++endif + BUILD_DBG_PACKAGE=y + ifeq "$(BUILD_DBG_PACKAGE)" "y" + ENABLE_SYMBOLS=y +@@ -413,6 +420,7 @@ + ENABLE_MYSQLNATIVE=n + ENABLE_EVO2=n + ENABLE_KDEAB=n ++ ENABLE_TDEAB=n + ENABLE_REPORTDESIGN=n + DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-base libreoffice$(VER)-base-core + DEBHELPER_OPTIONS += -Nlibreoffice$(VER)-evolution -Nlibreoffice$(VER)-kab +@@ -1029,6 +1037,25 @@ + endif + endif + ++ifeq "$(BUILD_TDE)" "n" ++ CONFIGURE_FLAGS+= --disable-tde ++ CONFIGURE_FLAGS+= --with-images="$(IMAGES)" ++else ++ CONFIGURE_FLAGS+= --disable-kde ++ CONFIGURE_FLAGS+= --disable-kde4 ++ CONFIGURE_FLAGS+= --enable-tde ++ TDE_ICONSET_DEP=libreoffice$(VER)-style-crystal ++ BUILD_DEPS += , tdelibs4-trinity-dev ++ ++ DBG_DBG_SUGGESTS+= , tdelibs-trinity-dbg, libtqtinterface-dbg ++ ++ ifeq "$(ENABLE_TDEAB)" "y" ++ BUILD_DEPS += , tdepim-trinity-dev ++ else ++ CONFIGURE_FLAGS+= --disable-tdeab ++ endif ++endif ++ + ifeq "$(ENABLE_MYSQLNATIVE)" "y" + CONFIGURE_FLAGS += --enable-ext-mysql-connector + ifneq (,$(filter mysql, $(SYSTEM_STUFF))) +@@ -1466,6 +1493,11 @@ + >> debian/control < debian/control.kde.in + perl -pi -e 's/ libreoffice$(VER)-gnome,/ libreoffice-gnome | libreoffice$(VER)-kde,/' debian/control + endif ++ifeq "$(BUILD_TDE)" "y" ++ sed -e "s|libreofficeVER|libreoffice$(VER)|g" \ ++ >> debian/control < debian/control.trinity.in ++ perl -pi -e 's/ libreoffice$(VER)-gnome,/ libreoffice-gnome | libreoffice$(VER)-trinity,/' debian/control ++endif + ifeq "$(ENABLE_SDBC_POSTGRESQL)" "y" + sed -e "s|libreofficeVER|libreoffice$(VER)|g" \ + >> debian/control < debian/control.postgresql.in +@@ -1486,6 +1518,10 @@ + sed -e "s|libreofficeVER|libreoffice$(VER)|g" \ + >> debian/control < debian/control.librelogo.in + endif ++ifeq "$(ENABLE_TDEAB)" "y" ++ sed -e "s|libreofficeVER|libreoffice$(VER)|g" \ ++ >> debian/control < debian/control.tdeab.in ++endif + + perl -pi -e "s,%OOO_ARCHS%,$(OOO_ARCHS),g" debian/control + perl -pi -e "s,%OOO_BASE_ARCHS%,$(OOO_BASE_ARCHS),g" debian/control +@@ -1547,6 +1583,9 @@ + perl -pi -e 's/paperconf$$/paperconf\n * bluez: Bluetooth support for Impress (slideshow remote control/' debian/control + perl -pi -e 's/Description: office productivity suite -- presentation/Suggests: bluez\nDescription: office productivity suite -- presentation/' debian/control + endif ++ifeq "$(BUILD_TDE)" "y" ++ perl -pi -e 's/GConf backend$$/GConf backend\n * libreoffice$(VER)-trinity: TDE UI Plugin and TDE File Picker support/' debian/control ++endif + + ifneq "$(DICT_DIR)" "/usr/share/hunspell" + perl -pi -e 's/^Breaks:.*myspell.*\n//' debian/control +@@ -2136,6 +2175,45 @@ + > $(PKGDIR)-kde/usr/share/templates/soffice.odg.desktop + endif + ++ifeq "$(BUILD_TDE)" "y" ++ mkdir -p -m755 $(PKGDIR)-trinity/$(OODIR)/program ++ mv $(PKGDIR)-core/$(OODIR)/program/tdefilepicker \ ++ $(PKGDIR)-trinity/$(OODIR)/program ++ ++ # install files for TDEs "create new" ... ++ mkdir -p $(PKGDIR)-trinity/usr/share/templates/.source ++ for i in $(SOURCE_TREE)/extras/source/shellnew/*; do \ ++ cp $$i $(PKGDIR)-trinity/usr/share/templates/.source/`basename $$i`; \ ++ done ++ cat debian/templates/soffice-template.desktop.in \ ++ | sed -e "s/@APP@/Writer/" \ ++ | sed -e "s/@EXT@/odt/" \ ++ | sed -e "s/@TYPE@/text/" \ ++ > $(PKGDIR)-trinity/usr/share/templates/soffice.odt.desktop ++ cat debian/templates/soffice-template.desktop.in \ ++ | sed -e "s/@APP@/Calc/" \ ++ | sed -e "s/@EXT@/ods/" \ ++ | sed -e "s/@TYPE@/spreadsheet/" \ ++ > $(PKGDIR)-trinity/usr/share/templates/soffice.ods.desktop ++ cat debian/templates/soffice-template.desktop.in \ ++ | sed -e "s/@APP@/Impress/" \ ++ | sed -e "s/@EXT@/odp/" \ ++ | sed -e "s/@TYPE@/presentation/" \ ++ > $(PKGDIR)-trinity/usr/share/templates/soffice.odp.desktop ++ cat debian/templates/soffice-template.desktop.in \ ++ | sed -e "s/@APP@/Draw/" \ ++ | sed -e "s/@EXT@/odg/" \ ++ | sed -e "s/@TYPE@/drawing/" \ ++ > $(PKGDIR)-trinity/usr/share/templates/soffice.odg.desktop ++endif ++ifeq "$(ENABLE_TDEAB)" "y" ++ rm -rf $(PKGDIR)-tdeab-trinity ++ mkdir -p -m755 $(PKGDIR)-tdeab-trinity/$(OODIR)/program ++ for f in libtdeab*so; do \ ++ mv $(PKGDIR)-trinity/$(OODIR)/program/$$f $(PKGDIR)-tdeab-trinity/$(OODIR)/program || exit 1 ;\ ++ done ++endif ++ + # split out gtk stuff + rm -rf $(PKGDIR)-gtk + mkdir -p -m755 $(PKGDIR)-gtk/$(OODIR)/program +@@ -2421,6 +2499,12 @@ + rm -f $(PKGDIR)-wiki-publisher/$(OODIR)/share/extensions/wiki-publisher/registration/LICENSE + endif + ++ifeq "$(BUILD_TDE)" "y" ++ # be sure we use the right moc, FIXME: Trinity uses its own moc ++ mkdir -p $(CURDIR)/debian/usr/bin ++ ln -sf /usr/bin/moc-qt$(KDE_VER) $(CURDIR)/debian/usr/bin/moc ++endif ++ + #ifeq "$(PACKAGE_SDK)" "y" + # # install gengal stuff into -dev + # mkdir -p $(PKGDIR)-dev/$(OODIR)/program +@@ -2985,6 +3069,7 @@ + -V'Binary-Version=$(BINARY_VERSION)' \ + -V'ooo-officebean-dep=$(OOO_OFFICEBEAN_DEP)' \ + -V'kde-iconset-dep=$(KDE_ICONSET_DEP)' \ ++ -V'tde-iconset-dep=$(TDE_ICONSET_DEP)' \ + -V'lpsolve-dep=$(LPSOLVE_DEP)' \ + -V'gstreamer-plugins-suggests=$(GSTREAMER_PLUGINS_SUGGESTS)' \ + -V'libebook-dep=$(shell debian/scripts/get_libebook_dep.sh)' \ +diff -urN original/libreoffice-4.0.1~rc1/debian/scripts/gid2pkgdirs.sh tde/libreoffice-4.0.1~rc1/debian/scripts/gid2pkgdirs.sh +--- original/libreoffice-4.0.1~rc1/debian/scripts/gid2pkgdirs.sh 2013-02-11 14:35:22.000000000 +0000 ++++ tde/libreoffice-4.0.1~rc1/debian/scripts/gid2pkgdirs.sh 2013-02-28 23:40:44.103581629 +0000 +@@ -102,6 +102,7 @@ + create_package_directory gid_Module_Optional_Extensions_Script_Provider_For_Python pkg/libreoffice-script-provider-python + create_package_directory gid_Module_Optional_Gnome pkg/libreoffice-gnome + create_package_directory gid_Module_Optional_Kde pkg/libreoffice-kde ++create_package_directory gid_Module_Optional_Tde pkg/libreoffice-trinity + create_package_directory gid_Module_Root_Files_2 pkg/libreoffice-common + create_package_directory gid_Module_Root_Files_3 pkg/libreoffice-common + create_package_directory gid_Module_Root_Files_4 pkg/libreoffice-common +@@ -152,7 +153,7 @@ + fi && + ( cd pkg/libreoffice-common/$OOINSTBASE/program + find -maxdepth 1 \ +- -regex '\./\(.*\.so.*\|.*\.bin\|pagein\|nsplugin\|kdefilepicker\|msfontextract\|.*\.rdb\|javaldx\|oosplash\|uri-encode\|xpdfimport\|ui-previewer\)' \ ++ -regex '\./\(.*\.so.*\|.*\.bin\|pagein\|nsplugin\|kdefilepicker\|tdefilepicker\|msfontextract\|.*\.rdb\|javaldx\|oosplash\|uri-encode\|xpdfimport\|ui-previewer\)' \ + -exec mv {} $OODESTDIR/pkg/libreoffice-core/$OOINSTBASE/program \; + ); + |