summaryrefslogtreecommitdiffstats
path: root/libreoffice/4.0.1/patches/libreoffice-debian.diff
blob: 3b63b58bc64c2f00ded17c7de91598e6373c30f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
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,425 @@
+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 --git a/connectivity/Library_tdeabdrv1.mk b/connectivity/Library_tdeabdrv1.mk
+index b8786fd..5e091fe 100644
+--- a/connectivity/Library_tdeabdrv1.mk
++++ b/connectivity/Library_tdeabdrv1.mk
+@@ -27,6 +27,10 @@
+ 
+ $(eval $(call gb_Library_Library,tdeabdrv1))
+ 
++$(eval $(call gb_Library_use_packages,tdeabdrv1,\
++	shell_inc \
++))
++
+ $(eval $(call gb_Library_set_include,tdeabdrv1,\
+ 	-I$(SRCDIR)/connectivity/source/inc \
+ 	$$(INCLUDE) \
+diff --git a/vcl/Library_vclplug_tde.mk b/vcl/Library_vclplug_tde.mk
+index 4a078ac..c4dd88d 100644
+--- a/vcl/Library_vclplug_tde.mk
++++ b/vcl/Library_vclplug_tde.mk
+@@ -26,6 +26,10 @@
+ 
+ $(eval $(call gb_Library_Library,vclplug_tde))
+ 
++$(eval $(call gb_Library_use_packages,vclplug_tde,\
++	shell_inc \
++))
++
+ $(eval $(call gb_Library_set_include,vclplug_tde,\
+     $$(INCLUDE) \
+     -I$(SRCDIR)/vcl/inc \
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 \;
 );