~ubuntu-branches/ubuntu/karmic/openoffice.org-l10n/karmic

« back to all changes in this revision

Viewing changes to ooo-build/patches/emf+/emf+-vcl-bitmap.diff

  • Committer: Bazaar Package Importer
  • Author(s): Chris Cheney
  • Date: 2008-01-08 23:17:08 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20080108231708-7f5yc4h021ikwgyz
Tags: 1:2.3.1-3ubuntu1
* Copy of the openoffice.org source.
  - debian/changelog: Change source name.
  - debian/control.in: Change source name.
  - debian/control: Regenerate control file.

* Resynchronise with Debian (r989). Remaining changes:
  - debian/broffice.org.postrm.in:
    . Change diversions to ubuntu bitmap filenames.
  - debian/broffice.org.preinst.in:
    . Change diversions to ubuntu bitmap filenames.
  - debian/control.2.in:
    . Add file for Ubuntu.
  - debian/control.in:
    . Change maintainer line.
    . Use imagemagick instead of graphicsmagick.
    . Change bzr repo location.
    . Use java-runtime-depends variable for java dependencies.
    . Make openoffice.org-core Depends on openoffice.org-hyphenation.
    . Add package openoffice.org-style-human.
    . Various other minor Ubuntu changes.
  - debian/control.l10n.in:
    . Add file for Ubuntu.
  - debian/control.lang.in:
    . Add L10N_COMMON to Depends.
  - debian/control.mozilla.in:
    . Add Xb-Npp-xxx tags according to "firefox distro add-on suport" spec.
  - debian/control.ubuntu.in:
    . Add file for Ubuntu.
  - debian/deppackage.postinst.in:
    . Add file for Ubuntu.
  - debian/module-po.map:
    . Add file for Ubuntu.
  - debian/ooo-build-ubuntu.diff:
    . Various Ubuntu specific changes to ooo-build.
  - debian/rules:
    . Add USE_LZMA_COMPRESS option.
    . Add USE_COMMON_DOCDIR option.
    . Add support to build on lpia.
    . Add support to build l10n as a separate source.
    . Add java-runtime-depends variable for java dependencies.
    . Add support to chmod +x programs in debian dir.
    . Add support to uuencode binary files in ubuntu dir.
    . Add support to Ubuntu specific bitmaps.
    . Use imagemagick instead of graphicsmagick.
    . Add support for openoffice.org-style-human package.
    . Add support for launchpad translations.
    . Various Ubuntu specific changes.
  - debian/scripts/convert2po:
    . Add file for Ubuntu.
  - debian/scripts/fix_image_rgb:
    . Use imagemagick instead of graphicsmagick.
  - debian/scripts/gsifilter.py:
    . Add file for Ubuntu.
  - debian/scripts/splitgsi:
    . Add file for Ubuntu.
  - debian/template.desktop.in:
    . Add NoDisplay=true.
  - ooo-build/configure.in:
    . Added support for Hardy.
  - ooo-build/distro-configs/UbuntuHardy.conf.in:
    . Added support for Hardy.
  - ooo-build/distro-configs/UbuntuHardy64.conf.in:
    . Added support for Hardy.
  - ooo-build/patches/src680/apply:
    . Added support for Hardy.
  - ooo-build/patches/src680/ubuntu-lpi.diff:
    . Updated patch.
  - ubuntu/*
    . Various Ubuntu specific changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -rup ../src680-m224/vcl/inc/vcl/salbmp.hxx vcl/inc/vcl/salbmp.hxx
 
2
--- ../src680-m224/vcl/inc/vcl/salbmp.hxx       2007-04-11 20:05:11.000000000 +0200
 
3
+++ vcl/inc/vcl/salbmp.hxx      2007-10-10 15:46:55.000000000 +0200
 
4
@@ -44,6 +44,8 @@
 
5
 #include <vcl/dllapi.h>
 
6
 #endif
 
7
 
 
8
+#include <com/sun/star/rendering/XBitmapCanvas.hpp>
 
9
+
 
10
 struct BitmapBuffer;
 
11
 class SalGraphics;
 
12
 class BitmapPalette;
 
13
@@ -63,6 +65,9 @@ public:
 
14
                                     SalGraphics* pGraphics ) = 0;
 
15
        virtual bool                    Create( const SalBitmap& rSalBmp,
 
16
                                     USHORT nNewBitCount ) = 0;
 
17
+       virtual bool                    Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
 
18
+                                    Size& rSize,
 
19
+                                    bool bMask = false ) = 0;
 
20
        virtual void                    Destroy() = 0;
 
21
        virtual Size                    GetSize() const = 0;
 
22
        virtual USHORT                  GetBitCount() const = 0;
 
23
diff -rup ../src680-m224/vcl/unx/headless/svpbmp.cxx vcl/unx/headless/svpbmp.cxx
 
24
--- ../src680-m224/vcl/unx/headless/svpbmp.cxx  2007-07-24 12:25:56.000000000 +0200
 
25
+++ vcl/unx/headless/svpbmp.cxx 2007-10-10 15:56:29.000000000 +0200
 
26
@@ -124,6 +124,11 @@ bool SvpSalBitmap::Create( const SalBitm
 
27
     return false;
 
28
 }
 
29
 
 
30
+bool SvpSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
 
31
+{
 
32
+    return false;
 
33
+}
 
34
+
 
35
 void SvpSalBitmap::Destroy()
 
36
 {
 
37
     m_aBitmap.reset();
 
38
diff -rup ../src680-m224/vcl/unx/headless/svpbmp.hxx vcl/unx/headless/svpbmp.hxx
 
39
--- ../src680-m224/vcl/unx/headless/svpbmp.hxx  2007-07-24 12:26:10.000000000 +0200
 
40
+++ vcl/unx/headless/svpbmp.hxx 2007-10-10 15:55:45.000000000 +0200
 
41
@@ -61,6 +61,9 @@ public:
 
42
                                     SalGraphics* pGraphics );
 
43
        virtual bool                    Create( const SalBitmap& rSalBmp,
 
44
                                     USHORT nNewBitCount );
 
45
+    virtual bool            Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
 
46
+                                    Size& rSize,
 
47
+                                    bool bMask = false );
 
48
        virtual void                    Destroy();
 
49
        virtual Size                    GetSize() const;
 
50
        virtual USHORT                  GetBitCount() const;
 
51
diff -rup ../src680-m224/vcl/unx/inc/salbmp.h vcl/unx/inc/salbmp.h
 
52
--- ../src680-m224/vcl/unx/inc/salbmp.h 2007-06-27 22:40:18.000000000 +0200
 
53
+++ vcl/unx/inc/salbmp.h        2007-10-10 15:47:30.000000000 +0200
 
54
@@ -127,6 +127,9 @@ public:                                     
 
55
                                     SalGraphics* pGraphics );
 
56
        virtual bool                    Create( const SalBitmap& rSalBmp,
 
57
                                     USHORT nNewBitCount );
 
58
+    virtual bool                       Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
 
59
+                                    Size& rSize,
 
60
+                                    bool bMask = false );
 
61
                                                
 
62
        virtual void                    Destroy();
 
63
                                                
 
64
diff -rup ../src680-m224/vcl/unx/source/gdi/salbmp.cxx vcl/unx/source/gdi/salbmp.cxx
 
65
--- ../src680-m224/vcl/unx/source/gdi/salbmp.cxx        2007-06-27 22:49:34.000000000 +0200
 
66
+++ vcl/unx/source/gdi/salbmp.cxx       2007-10-23 18:29:07.000000000 +0200
 
67
@@ -72,6 +72,7 @@
 
68
 #ifndef _SV_BITMAP_HXX
 
69
 #include <vcl/bitmap.hxx>
 
70
 #endif
 
71
+#include <com/sun/star/beans/XFastPropertySet.hpp>
 
72
 
 
73
 // -----------
 
74
 // - Defines -
 
75
@@ -740,6 +743,31 @@ bool X11SalBitmap::Create( const SalBitm
 
76
 
 
77
 // -----------------------------------------------------------------------------
 
78
 
 
79
+bool X11SalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas, Size& rSize, bool bMask )
 
80
+{
 
81
+    ::com::sun::star::uno::Reference< ::com::sun::star::beans::XFastPropertySet > xFastPropertySet( xBitmapCanvas, ::com::sun::star::uno::UNO_QUERY );
 
82
+    if( xFastPropertySet.get() ) {
 
83
+        long pixmapHandle;
 
84
+        sal_Int32 depth;
 
85
+        ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > args;
 
86
+
 
87
+        if( xFastPropertySet->getFastPropertyValue(bMask ? 2 : 1) >>= args ) {
 
88
+            if( ( args[1] >>= pixmapHandle ) && ( args[2] >>= depth ) ) {
 
89
+                bool bSuccess = ImplCreateFromDrawable( pixmapHandle, 0, depth, 0, 0, (long) rSize.Width(), (long) rSize.Height() );
 
90
+                bool bFreePixmap;
 
91
+                if( bSuccess && (args[0] >>= bFreePixmap) && bFreePixmap )
 
92
+                    XFreePixmap( GetX11SalData()->GetDisplay()->GetDisplay(), pixmapHandle );
 
93
+
 
94
+                return bSuccess;
 
95
+            }
 
96
+        }
 
97
+    }
 
98
+
 
99
+    return false;
 
100
+}
 
101
+
 
102
+// -----------------------------------------------------------------------------
 
103
+
 
104
 void X11SalBitmap::Destroy()
 
105
 {
 
106
        if( mpDIB )
 
107
diff -rup ../src680-m224/vcl/aqua/inc/salbmp.h vcl/aqua/inc/salbmp.h
 
108
--- ../src680-m224/vcl/aqua/inc/salbmp.h        2007-07-05 17:58:54.000000000 +0200
 
109
+++ vcl/aqua/inc/salbmp.h       2007-10-31 16:02:15.000000000 +0100
 
110
@@ -117,6 +117,9 @@ public:
 
111
     bool            Create( const SalBitmap& rSalBmp );
 
112
     bool            Create( const SalBitmap& rSalBmp, SalGraphics* pGraphics );
 
113
     bool            Create( const SalBitmap& rSalBmp, USHORT nNewBitCount );
 
114
+    virtual bool    Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
 
115
+                            Size& rSize,
 
116
+                            bool bMask = false );
 
117
     
 
118
     void            Destroy();
 
119
     
 
120
diff -rup ../src680-m224/vcl/aqua/source/gdi/salbmp.cxx vcl/aqua/source/gdi/salbmp.cxx
 
121
--- ../src680-m224/vcl/aqua/source/gdi/salbmp.cxx       2007-07-05 12:13:21.000000000 +0200
 
122
+++ vcl/aqua/source/gdi/salbmp.cxx      2007-10-31 16:03:49.000000000 +0100
 
123
@@ -218,6 +218,13 @@ bool AquaSalBitmap::Create( const SalBit
 
124
 
 
125
 // ------------------------------------------------------------------
 
126
 
 
127
+bool AquaSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
 
128
+{
 
129
+    return false;
 
130
+}
 
131
+
 
132
+// ------------------------------------------------------------------
 
133
+
 
134
 void AquaSalBitmap::Destroy()
 
135
 {
 
136
        DestroyContext();
 
137
diff -rup ../src680-m224/vcl/win/inc/salbmp.h vcl/win/inc/salbmp.h
 
138
--- ../src680-m224/vcl/win/inc/salbmp.h 2007-06-27 22:52:50.000000000 +0200
 
139
+++ vcl/win/inc/salbmp.h        2007-10-31 16:01:37.000000000 +0100
 
140
@@ -93,6 +93,9 @@ public:
 
141
        virtual bool                Create( const SalBitmap& rSalBmpImpl );
 
142
        virtual bool                Create( const SalBitmap& rSalBmpImpl, SalGraphics* pGraphics );
 
143
        virtual bool                Create( const SalBitmap& rSalBmpImpl, USHORT nNewBitCount );
 
144
+       virtual bool                Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > xBitmapCanvas,
 
145
+                                           Size& rSize,
 
146
+                                           bool bMask = false );
 
147
 
 
148
        virtual void                Destroy();
 
149
 
 
150
diff -rup ../src680-m224/vcl/win/source/gdi/salbmp.cxx vcl/win/source/gdi/salbmp.cxx
 
151
--- ../src680-m224/vcl/win/source/gdi/salbmp.cxx        2007-06-27 22:57:18.000000000 +0200
 
152
+++ vcl/win/source/gdi/salbmp.cxx       2007-10-31 16:04:27.000000000 +0100
 
153
@@ -288,6 +288,13 @@ bool WinSalBitmap::Create( const SalBitm
 
154
 
 
155
 // ------------------------------------------------------------------
 
156
 
 
157
+bool WinSalBitmap::Create( const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmapCanvas > /*xBitmapCanvas*/, Size& /*rSize*/, bool /*bMask*/ )
 
158
+{
 
159
+    return false;
 
160
+}
 
161
+
 
162
+// ------------------------------------------------------------------
 
163
+
 
164
 void WinSalBitmap::Destroy()
 
165
 {
 
166
        if( mhDIB )