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

« back to all changes in this revision

Viewing changes to ooo-build/patches/vba/cws-npower7.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:
112
112
Index: basic/source/basmgr/basmgr.cxx
113
113
===================================================================
114
114
RCS file: /cvs/script/basic/source/basmgr/basmgr.cxx,v
115
 
retrieving revision 1.39
116
 
retrieving revision 1.39.2.1
117
 
diff -u -p -u -p -r1.39 -r1.39.2.1
118
 
--- basic/source/basmgr/basmgr.cxx      26 Apr 2007 08:32:47 -0000      1.39
119
 
+++ basic/source/basmgr/basmgr.cxx      2 May 2007 09:44:21 -0000       1.39.2.1
120
 
@@ -685,7 +685,7 @@ void BasicLibInfo::CalcRelStorageName( c
 
115
retrieving revision 1.40
 
116
retrieving revision 1.39.2.2
 
117
diff -u -p -u -p -r1.40 -r1.39.2.2
 
118
--- basic/source/basmgr/basmgr.cxx      5 Jun 2007 15:10:13 -0000       1.40
 
119
+++ basic/source/basmgr/basmgr.cxx      5 Jul 2007 11:44:06 -0000       1.39.2.2
 
120
@@ -686,7 +686,7 @@ void BasicLibInfo::CalcRelStorageName( c
121
121
        else
122
122
                SetRelStorageName( String() );
123
123
 }
126
126
 {
127
127
        DBG_CTOR( BasicManager, 0 );
128
128
 
129
 
@@ -714,7 +714,7 @@ BasicManager::BasicManager( SotStorage& 
 
129
@@ -715,7 +715,7 @@ BasicManager::BasicManager( SotStorage& 
130
130
                if ( !pStdLib )
131
131
                {
132
132
                        // Sollte eigentlich nie passieren, aber dann wenigstens nicht abstuerzen...
135
135
                        BasicLibInfo* pStdLibInfo = pLibs->GetObject( 0 );
136
136
                        if ( !pStdLibInfo )
137
137
                                pStdLibInfo = CreateLibInfo();
138
 
@@ -895,7 +895,7 @@ void BasicManager::SetLibraryContainerIn
 
138
@@ -896,7 +896,7 @@ void BasicManager::SetLibraryContainerIn
139
139
     InsertGlobalUNOConstant( "DialogLibraries", makeAny( mpImpl->maContainerInfo.mxDialogCont ) );
140
140
 }
141
141
 
144
144
 {
145
145
        DBG_CTOR( BasicManager, 0 );
146
146
        Init();
147
 
@@ -936,7 +936,7 @@ void BasicManager::ImpMgrNotLoaded( cons
 
147
@@ -937,7 +937,7 @@ void BasicManager::ImpMgrNotLoaded( cons
148
148
 
149
149
        // Eine STD-Lib erzeugen, sonst macht es Peng!
150
150
        BasicLibInfo* pStdLibInfo = CreateLibInfo();
153
153
     StarBASICRef xStdLib = pStdLibInfo->GetLib();
154
154
        xStdLib->SetName( String::CreateFromAscii(szStdLibName) );
155
155
        pStdLibInfo->SetLibName( String::CreateFromAscii(szStdLibName) );
156
 
@@ -948,7 +948,7 @@ void BasicManager::ImpMgrNotLoaded( cons
 
156
@@ -949,7 +949,7 @@ void BasicManager::ImpMgrNotLoaded( cons
157
157
 void BasicManager::ImpCreateStdLib( StarBASIC* pParentFromStdLib )
158
158
 {
159
159
        BasicLibInfo* pStdLibInfo = CreateLibInfo();
162
162
        pStdLibInfo->SetLib( pStdLib );
163
163
        pStdLib->SetName( String::CreateFromAscii(szStdLibName) );
164
164
        pStdLibInfo->SetLibName( String::CreateFromAscii(szStdLibName) );
165
 
@@ -1237,7 +1237,7 @@ BOOL BasicManager::ImpLoadLibary( BasicL
 
165
@@ -1238,7 +1238,7 @@ BOOL BasicManager::ImpLoadLibary( BasicL
166
166
                                if ( !bInfosOnly )
167
167
                                {
168
168
                                        if ( !pLibInfo->GetLib().Is() )
171
171
                                        xBasicStream->SetBufferSize( 1024 );
172
172
                                        xBasicStream->Seek( STREAM_SEEK_TO_BEGIN );
173
173
                                        bLoaded = ImplLoadBasic( *xBasicStream, pLibInfo->GetLibRef() );
174
 
@@ -1660,7 +1660,7 @@ StarBASIC* BasicManager::CreateLib( cons
 
174
@@ -1661,7 +1661,7 @@ StarBASIC* BasicManager::CreateLib( cons
175
175
                return 0;
176
176
 
177
177
        BasicLibInfo* pLibInfo = CreateLibInfo();
180
180
        GetStdLib()->Insert( pNew );
181
181
        pNew->SetFlag( SBX_EXTSEARCH | SBX_DONTSTORE );
182
182
        pLibInfo->SetLib( pNew );
183
 
@@ -1718,7 +1718,7 @@ StarBASIC* BasicManager::CreateLibForLib
 
183
@@ -1719,7 +1719,7 @@ StarBASIC* BasicManager::CreateLibForLib
184
184
                return 0;
185
185
 
186
186
        BasicLibInfo* pLibInfo = CreateLibInfo();
211
211
Index: basic/source/classes/sbunoobj.cxx
212
212
===================================================================
213
213
RCS file: /cvs/script/basic/source/classes/sbunoobj.cxx,v
214
 
retrieving revision 1.46
215
 
retrieving revision 1.46.6.4
216
 
diff -u -p -u -p -r1.46 -r1.46.6.4
217
 
--- basic/source/classes/sbunoobj.cxx   29 Jan 2007 15:05:07 -0000      1.46
218
 
+++ basic/source/classes/sbunoobj.cxx   30 Apr 2007 11:55:20 -0000      1.46.6.4
219
 
@@ -110,6 +110,9 @@ using namespace rtl;
 
214
retrieving revision 1.47
 
215
retrieving revision 1.46.6.6
 
216
diff -u -p -u -p -r1.47 -r1.46.6.6
 
217
--- basic/source/classes/sbunoobj.cxx   5 Jun 2007 15:10:44 -0000       1.47
 
218
+++ basic/source/classes/sbunoobj.cxx   5 Jul 2007 11:44:36 -0000       1.46.6.6
 
219
@@ -111,6 +111,9 @@ using namespace rtl;
220
220
 #include<runtime.hxx>
221
221
 
222
222
 #include<math.h>
226
226
 
227
227
 TYPEINIT1(SbUnoMethod,SbxMethod)
228
228
 TYPEINIT1(SbUnoProperty,SbxProperty)
229
 
@@ -130,6 +133,7 @@ static String ID_DBG_METHODS( RTL_CONSTA
 
229
@@ -131,6 +134,7 @@ static String ID_DBG_METHODS( RTL_CONSTA
230
230
 static String aIllegalArgumentExceptionName
231
231
     ( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.lang.IllegalArgumentException" ) );
232
232
 static OUString aSeqLevelStr( RTL_CONSTASCII_USTRINGPARAM("[]") );
234
234
 
235
235
 // Gets the default property for an uno object. Note: There is some 
236
236
 // redirection built in. The property name specifies the name
237
 
@@ -1510,6 +1514,50 @@ String getBasicObjectTypeName( SbxObject
 
237
@@ -1511,6 +1515,50 @@ String getBasicObjectTypeName( SbxObject
238
238
        return aName;
239
239
 }
240
240
 
258
258
+                       const Type& rType = pTypeArray[j];
259
259
+
260
260
+                       Reference<XIdlClass> xClass = TypeToIdlClass( rType );
261
 
+                       if( xClass.is() )
262
 
+                       {
263
 
+                               OUString sClassName = xClass->getName();
264
 
+                               OSL_TRACE("Checking if object implements %s",
265
 
+                                       OUStringToOString( defaultNameSpace + aClass, 
266
 
+                                               RTL_TEXTENCODING_UTF8 ).getStr() );
267
 
+                               // although interfaces in the org.openoffice.vba namespace
268
 
+                               // obey the idl rules and have a leading X, in basic we
269
 
+                               // want to be able to do something like
270
 
+                               // 'dim wrkbooks as WorkBooks'
271
 
+                               // so test assumes the 'X' has been dropped
272
 
+                               sal_Int32 indexLastDot = sClassName.lastIndexOf('.');
273
 
+                               if ( indexLastDot > -1 && sClassName.copy( indexLastDot + 1).equalsIgnoreAsciiCase( OUString( RTL_CONSTASCII_USTRINGPARAM("X") ) + aClass ) )
274
 
+                               {
275
 
+                                       result = true;
276
 
+                                       break;
277
 
+                               }
278
 
+                       }
279
 
+                       else
280
 
+                               break;
 
261
+                       if( !xClass.is() )
 
262
+                       {
 
263
+                               DBG_ERROR("failed to get XIdlClass for type");
 
264
+                               break;
 
265
+                       }
 
266
+                       OUString sClassName = xClass->getName();
 
267
+                       OSL_TRACE("Checking if object implements %s",
 
268
+                               OUStringToOString( defaultNameSpace + aClass, 
 
269
+                                       RTL_TEXTENCODING_UTF8 ).getStr() );
 
270
+                       // although interfaces in the org.openoffice.vba namespace
 
271
+                       // obey the idl rules and have a leading X, in basic we
 
272
+                       // want to be able to do something like
 
273
+                       // 'dim wrkbooks as WorkBooks'
 
274
+                       // so test assumes the 'X' has been dropped
 
275
+                       sal_Int32 indexLastDot = sClassName.lastIndexOf('.');
 
276
+                       if ( indexLastDot > -1 && sClassName.copy( indexLastDot + 1).equalsIgnoreAsciiCase( OUString( RTL_CONSTASCII_USTRINGPARAM("X") ) + aClass ) )
 
277
+                       {
 
278
+                               result = true;
 
279
+                               break;
 
280
+                       }
281
281
+               }
282
282
+       }               
283
283
+       return result;
285
285
 
286
286
 // Dbg-Hilfsmethode zum Auslesen der in einem Object implementierten Interfaces
287
287
 String Impl_GetSupportedInterfaces( SbUnoObject* pUnoObj )
288
 
@@ -3066,6 +3114,83 @@ void RTL_Impl_EqualUnoObjects( StarBASIC
 
288
@@ -3067,6 +3115,83 @@ void RTL_Impl_EqualUnoObjects( StarBASIC
289
289
                refVar->PutBool( TRUE );
290
290
 }
291
291
 
1149
1149
Index: basic/source/runtime/step2.cxx
1150
1150
===================================================================
1151
1151
RCS file: /cvs/script/basic/source/runtime/step2.cxx,v
1152
 
retrieving revision 1.29
1153
 
retrieving revision 1.27.42.5
1154
 
diff -u -p -u -p -r1.29 -r1.27.42.5
1155
 
--- basic/source/runtime/step2.cxx      27 Apr 2007 09:16:12 -0000      1.29
1156
 
+++ basic/source/runtime/step2.cxx      2 May 2007 09:44:56 -0000       1.27.42.5
 
1152
retrieving revision 1.30
 
1153
retrieving revision 1.27.42.6
 
1154
diff -u -p -u -p -r1.30 -r1.27.42.6
 
1155
--- basic/source/runtime/step2.cxx      5 Jun 2007 15:11:21 -0000       1.30
 
1156
+++ basic/source/runtime/step2.cxx      5 Jul 2007 11:44:54 -0000       1.27.42.6
1157
1157
@@ -54,6 +54,8 @@
1158
1158
 using namespace com::sun::star::container;
1159
1159
 using namespace com::sun::star::lang;
1410
1410
Index: config_office/configure.in
1411
1411
===================================================================
1412
1412
RCS file: /cvs/tools/config_office/configure.in,v
1413
 
retrieving revision 1.201
1414
 
retrieving revision 1.201.2.1
1415
 
diff -u -p -u -p -r1.201 -r1.201.2.1
1416
 
--- config_office/configure.in  25 Apr 2007 15:53:53 -0000      1.201
1417
 
+++ config_office/configure.in  3 May 2007 11:09:38 -0000       1.201.2.1
 
1413
retrieving revision 1.209
 
1414
retrieving revision 1.201.2.2
 
1415
diff -u -p -u -p -r1.209 -r1.201.2.2
 
1416
--- config_office/configure.in  18 Jun 2007 16:36:20 -0000      1.209
 
1417
+++ config_office/configure.in  5 Jul 2007 11:47:47 -0000       1.201.2.2
1418
1418
@@ -41,20 +41,21 @@ AC_ARG_ENABLE(lockdown,
1419
1419
 [  --enable-lockdown       Enables the gconf integration work in OOo
1420
1420
 ],,)
1442
1442
+                                 --with-vba-package-format="extn"
1443
1443
 ],,)              
1444
1444
 AC_ARG_ENABLE(pch,
1445
 
 [  --enable-pch            Enables the use of precompiledr C/C++ header files
1446
 
@@ -1605,13 +1606,13 @@ fi
 
1445
 [  --enable-pch            EXPERIMENTAL: Enables precompiled header support for C++.
 
1446
@@ -1621,13 +1622,13 @@ fi
1447
1447
 dnl ===================================================================
1448
1448
 dnl Check if we are to enable vba macro interoperability feature
1449
1449
 dnl ===================================================================
1461
1461
 fi
1462
1462
 AC_SUBST(ENABLE_VBA)
1463
1463
 
1464
 
@@ -1630,11 +1631,14 @@ if test "$ENABLE_VBA" = "YES"; then
 
1464
@@ -1646,11 +1647,14 @@ if test "$ENABLE_VBA" = "YES"; then
1465
1465
       fi
1466
1466
  
1467
1467
    else
1479
1479
 dnl ===================================================================
1480
1480
 dnl Check the whether vba need to be delivered as an uno package or part
1481
1481
 dnl of the install
 
1482
Index: sc/source/ui/vba/vbaapplication.cxx
 
1483
===================================================================
 
1484
RCS file: /cvs/sc/sc/source/ui/vba/vbaapplication.cxx,v
 
1485
retrieving revision 1.2
 
1486
retrieving revision 1.2.2.1
 
1487
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1488
--- sc/source/ui/vba/vbaapplication.cxx 25 Apr 2007 16:00:39 -0000      1.2
 
1489
+++ sc/source/ui/vba/vbaapplication.cxx 18 May 2007 12:38:29 -0000      1.2.2.1
 
1490
@@ -293,7 +293,7 @@ void SAL_CALL 
 
1491
 ScVbaApplication::setStatusBar( const uno::Any& _statusbar ) throw (uno::RuntimeException)
 
1492
 {
 
1493
     rtl::OUString sText;
 
1494
-    sal_Bool bDefault;
 
1495
+    sal_Bool bDefault = sal_False;
 
1496
        uno::Reference< frame::XModel > xModel( getCurrentDocument(), uno::UNO_QUERY_THROW );
 
1497
     uno::Reference< task::XStatusIndicatorSupplier > xStatusIndicatorSupplier( xModel->getCurrentController(), uno::UNO_QUERY_THROW );
 
1498
     uno::Reference< task::XStatusIndicator > xStatusIndicator( xStatusIndicatorSupplier->getStatusIndicator(), uno::UNO_QUERY_THROW );
 
1499
@@ -426,7 +426,7 @@ ScVbaApplication::GoTo( const uno::Any& 
 
1500
     
 
1501
     if( Scroll.hasValue() )
 
1502
     {
 
1503
-        sal_Bool aScroll;
 
1504
+        sal_Bool aScroll = sal_False;
 
1505
         if( Scroll >>= aScroll )
 
1506
         {
 
1507
             bScroll = aScroll;
 
1508
Index: sc/source/ui/vba/vbaborders.cxx
 
1509
===================================================================
 
1510
RCS file: /cvs/sc/sc/source/ui/vba/vbaborders.cxx,v
 
1511
retrieving revision 1.2
 
1512
retrieving revision 1.2.2.1
 
1513
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1514
--- sc/source/ui/vba/vbaborders.cxx     25 Apr 2007 16:01:16 -0000      1.2
 
1515
+++ sc/source/ui/vba/vbaborders.cxx     23 Jul 2007 11:51:59 -0000      1.2.2.1
 
1516
@@ -171,7 +171,7 @@ public:
 
1517
        }
 
1518
        void SAL_CALL setColor( const uno::Any& _color ) throw (uno::RuntimeException)
 
1519
        {
 
1520
-               sal_Int32 nColor;
 
1521
+               sal_Int32 nColor = 0;
 
1522
                _color >>= nColor;
 
1523
                table::BorderLine aBorderLine;
 
1524
                if ( getBorderLine( aBorderLine ) )
 
1525
@@ -185,14 +185,14 @@ public:
 
1526
 
 
1527
        uno::Any SAL_CALL getColorIndex() throw (uno::RuntimeException)
 
1528
        {
 
1529
-               sal_Int32 nColor;
 
1530
+               sal_Int32 nColor = 0;
 
1531
                XLRGBToOORGB( getColor() ) >>= nColor;
 
1532
                uno::Reference< container::XIndexAccess > xIndex = m_Palette.getPalette();
 
1533
                sal_Int32 nElems = xIndex->getCount();
 
1534
                sal_Int32 nIndex = -1;
 
1535
                for ( sal_Int32 count=0; count<nElems; ++count )
 
1536
                {
 
1537
-                       sal_Int32 nPaletteColor;
 
1538
+                       sal_Int32 nPaletteColor = 0;
 
1539
                        xIndex->getByIndex( count ) >>= nPaletteColor;
 
1540
                        if ( nPaletteColor == nColor )
 
1541
                        {                                       
 
1542
@@ -205,7 +205,7 @@ public:
 
1543
 
 
1544
        void SAL_CALL setColorIndex( const uno::Any& _colorindex ) throw (uno::RuntimeException)
 
1545
        {
 
1546
-               sal_Int32 nColor;
 
1547
+               sal_Int32 nColor = 0;
 
1548
                _colorindex >>= nColor;
 
1549
                if ( !nColor || nColor == XlColorIndex::xlColorIndexAutomatic )
 
1550
                        nColor = 1;
 
1551
@@ -235,7 +235,7 @@ public:
 
1552
        }
 
1553
        void SAL_CALL setWeight( const uno::Any& _weight ) throw (uno::RuntimeException)
 
1554
        {
 
1555
-               sal_Int32 nWeight;
 
1556
+               sal_Int32 nWeight = 0;
 
1557
                _weight >>= nWeight;
 
1558
                table::BorderLine aBorderLine;
 
1559
                if ( getBorderLine( aBorderLine ) )
 
1560
@@ -273,7 +273,7 @@ public:
 
1561
        {
 
1562
                // Urk no choice but to silently ignore we don't support this attribute
 
1563
                // #TODO would be nice to support the excel line styles
 
1564
-        sal_Int32 nLineStyle;
 
1565
+        sal_Int32 nLineStyle = 0;
 
1566
         _linestyle >>= nLineStyle;
 
1567
         table::BorderLine aBorderLine;
 
1568
                if ( getBorderLine( aBorderLine ) )
 
1569
Index: sc/source/ui/vba/vbacomment.cxx
 
1570
===================================================================
 
1571
RCS file: /cvs/sc/sc/source/ui/vba/vbacomment.cxx,v
 
1572
retrieving revision 1.2
 
1573
retrieving revision 1.2.2.1
 
1574
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1575
--- sc/source/ui/vba/vbacomment.cxx     25 Apr 2007 16:04:24 -0000      1.2
 
1576
+++ sc/source/ui/vba/vbacomment.cxx     7 Aug 2007 12:59:15 -0000       1.2.2.1
 
1577
@@ -197,7 +197,7 @@ ScVbaComment::Text( const uno::Any& aTex
 
1578
 
 
1579
        if ( aStart.hasValue() )
 
1580
        {
 
1581
-               sal_Int16 nStart;
 
1582
+               sal_Int16 nStart = 0;
 
1583
                sal_Bool bOverwrite = sal_True;
 
1584
                Overwrite >>= bOverwrite;
 
1585
 
 
1586
Index: sc/source/ui/vba/vbadialogs.cxx
 
1587
===================================================================
 
1588
RCS file: /cvs/sc/sc/source/ui/vba/vbadialogs.cxx,v
 
1589
retrieving revision 1.2
 
1590
retrieving revision 1.2.2.1
 
1591
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1592
--- sc/source/ui/vba/vbadialogs.cxx     25 Apr 2007 16:05:43 -0000      1.2
 
1593
+++ sc/source/ui/vba/vbadialogs.cxx     23 Jul 2007 11:51:59 -0000      1.2.2.1
 
1594
@@ -97,7 +97,7 @@ ScVbaDialogs::getCount() throw (uno::Run
 
1595
 uno::Any
 
1596
 ScVbaDialogs::Item( const uno::Any &aItem ) throw (uno::RuntimeException)
 
1597
 {
 
1598
-       sal_Int32 nIndex;
 
1599
+       sal_Int32 nIndex = 0;
 
1600
        aItem >>= nIndex;
 
1601
        uno::Reference< excel::XDialog > aDialog( new ScVbaDialog( nIndex, m_xContext ) );
 
1602
        return uno::Any( aDialog );
 
1603
Index: sc/source/ui/vba/vbafont.cxx
 
1604
===================================================================
 
1605
RCS file: /cvs/sc/sc/source/ui/vba/vbafont.cxx,v
 
1606
retrieving revision 1.2
 
1607
retrieving revision 1.2.2.1
 
1608
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1609
--- sc/source/ui/vba/vbafont.cxx        25 Apr 2007 16:06:21 -0000      1.2
 
1610
+++ sc/source/ui/vba/vbafont.cxx        23 Jul 2007 11:51:59 -0000      1.2.2.1
 
1611
@@ -169,7 +169,7 @@ ScVbaFont::getColorIndex() throw ( uno::
 
1612
        sal_Int32 nIndex = -1;
 
1613
        for ( sal_Int32 count=0; count<nElems; ++count )
 
1614
                {
 
1615
-               sal_Int32 nPaletteColor;
 
1616
+               sal_Int32 nPaletteColor = 0;
 
1617
                xIndex->getByIndex( count ) >>= nPaletteColor;
 
1618
                if ( nPaletteColor == nColor )
 
1619
                {
 
1620
@@ -257,7 +257,7 @@ ScVbaFont::getBold() throw ( uno::Runtim
 
1621
                if (  mpDataSet->GetItemState( ATTR_FONT_WEIGHT, TRUE, NULL) == SFX_ITEM_DONTCARE )
 
1622
                        return aNULL();
 
1623
 
 
1624
-       double fValue;
 
1625
+       double fValue = 0.0;
 
1626
         mxFont->getPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "CharWeight" ) ) ) >>= fValue;
 
1627
        return uno::makeAny( fValue == awt::FontWeight::BOLD );
 
1628
 }
 
1629
Index: sc/source/ui/vba/vbahelper.hxx
 
1630
===================================================================
 
1631
RCS file: /cvs/sc/sc/source/ui/vba/vbahelper.hxx,v
 
1632
retrieving revision 1.2
 
1633
retrieving revision 1.2.2.1
 
1634
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1635
--- sc/source/ui/vba/vbahelper.hxx      25 Apr 2007 16:07:33 -0000      1.2
 
1636
+++ sc/source/ui/vba/vbahelper.hxx      3 May 2007 11:16:34 -0000       1.2.2.1
 
1637
@@ -38,8 +38,8 @@
 
1638
 #include <com/sun/star/frame/XModel.hpp>
 
1639
 #include <docsh.hxx>
 
1640
 
 
1641
-#define css com::sun::star
 
1642
-#define oo org::openoffice
 
1643
+namespace css = ::com::sun::star;
 
1644
+
 
1645
 namespace org 
 
1646
 {
 
1647
        namespace openoffice 
 
1648
@@ -69,6 +69,8 @@ namespace org 
 
1649
        }
 
1650
 }
 
1651
 
 
1652
+namespace oo = org::openoffice;
 
1653
+
 
1654
 #ifdef DEBUG
 
1655
 #  define SC_VBA_FIXME(a) OSL_TRACE( a )
 
1656
 #  define SC_VBA_STUB() SC_VBA_FIXME(( "%s - stubbed\n", __FUNCTION__ ))
 
1657
Index: sc/source/ui/vba/vbainterior.cxx
 
1658
===================================================================
 
1659
RCS file: /cvs/sc/sc/source/ui/vba/vbainterior.cxx,v
 
1660
retrieving revision 1.2
 
1661
retrieving revision 1.2.2.1
 
1662
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1663
--- sc/source/ui/vba/vbainterior.cxx    25 Apr 2007 16:07:44 -0000      1.2
 
1664
+++ sc/source/ui/vba/vbainterior.cxx    23 Jul 2007 11:51:59 -0000      1.2.2.1
 
1665
@@ -115,7 +115,7 @@ ScVbaInterior::getColorIndex() throw ( c
 
1666
        sal_Int32 nIndex = -1;
 
1667
        for ( sal_Int32 count=0; count<nElems; ++count )
 
1668
                {
 
1669
-               sal_Int32 nPaletteColor;
 
1670
+               sal_Int32 nPaletteColor = 0;
 
1671
                xIndex->getByIndex( count ) >>= nPaletteColor;
 
1672
                if ( nPaletteColor == nColor )
 
1673
                {
 
1674
Index: sc/source/ui/vba/vbarange.cxx
 
1675
===================================================================
 
1676
RCS file: /cvs/sc/sc/source/ui/vba/vbarange.cxx,v
 
1677
retrieving revision 1.2
 
1678
retrieving revision 1.2.2.3
 
1679
diff -u -p -u -p -r1.2 -r1.2.2.3
 
1680
--- sc/source/ui/vba/vbarange.cxx       25 Apr 2007 16:10:29 -0000      1.2
 
1681
+++ sc/source/ui/vba/vbarange.cxx       7 Aug 2007 12:59:15 -0000       1.2.2.3
 
1682
@@ -330,7 +330,7 @@ public:
 
1683
        }
 
1684
        uno::Reference< beans::XPropertySet > getNumberProps()
 
1685
        {       
 
1686
-               long nIndexKey;
 
1687
+               long nIndexKey = 0;
 
1688
                uno::Any aValue = mxRangeProps->getPropertyValue(rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("NumberFormat")));
 
1689
                aValue >>= nIndexKey;
 
1690
 
 
1691
@@ -487,7 +487,7 @@ CellValueSetter::processValue( const uno
 
1692
        {
 
1693
                case  uno::TypeClass_BOOLEAN:
 
1694
                {
 
1695
-                       sal_Bool bState;
 
1696
+                       sal_Bool bState = sal_False;
 
1697
                        if ( aValue >>= bState   )
 
1698
                        {
 
1699
                                uno::Reference< table::XCellRange > xRange( xCell, uno::UNO_QUERY_THROW );
 
1700
@@ -514,7 +514,7 @@ CellValueSetter::processValue( const uno
 
1701
                }
 
1702
                default:
 
1703
                {
 
1704
-                       double nDouble;
 
1705
+                       double nDouble = 0.0;
 
1706
                        if ( aValue >>= nDouble )
 
1707
                                xCell->setValue( nDouble );
 
1708
                        else
 
1709
@@ -1506,7 +1506,7 @@ ScVbaRange::Characters(const uno::Any& S
 
1710
                return xRange->Characters( Start, Length );
 
1711
        }
 
1712
 
 
1713
-       long nIndex, nCount;
 
1714
+       long nIndex = 0, nCount = 0;
 
1715
        ::rtl::OUString rString;
 
1716
        uno::Reference< text::XTextRange > xTextRange(mxRange, ::uno::UNO_QUERY_THROW );
 
1717
        rString = xTextRange->getString();
 
1718
@@ -1741,7 +1741,7 @@ ScVbaRange::Rows(const uno::Any& aIndex 
 
1719
                return xRange->Rows( aIndex );
 
1720
        }
 
1721
        
 
1722
-       sal_Int32 nValue;
 
1723
+       sal_Int32 nValue = 0;
 
1724
        rtl::OUString sAddress;
 
1725
        if( aIndex.hasValue() )
 
1726
        {
 
1727
@@ -1789,7 +1789,7 @@ ScVbaRange::Columns( const uno::Any& aIn
 
1728
        if ( aIndex.hasValue() )
 
1729
        {
 
1730
                uno::Reference< excel::XRange > xRange;
 
1731
-               sal_Int32 nValue;
 
1732
+               sal_Int32 nValue = 0;
 
1733
                rtl::OUString sAddress;
 
1734
                RangeHelper thisRange( mxRange );
 
1735
                uno::Reference< sheet::XCellRangeAddressable > xThisRangeAddress = thisRange.getCellRangeAddressable();
 
1736
@@ -1940,7 +1940,7 @@ ScVbaRange::getNumberFormat() throw (uno
 
1737
 uno::Reference< excel::XRange >
 
1738
 ScVbaRange::Resize( const uno::Any &RowSize, const uno::Any &ColumnSize ) throw (uno::RuntimeException)
 
1739
 {
 
1740
-       long nRowSize, nColumnSize;
 
1741
+       long nRowSize = 0, nColumnSize = 0;
 
1742
        sal_Bool bIsRowChanged = ( RowSize >>= nRowSize ), bIsColumnChanged = ( ColumnSize >>= nColumnSize );
 
1743
        uno::Reference< table::XColumnRowRange > xColumnRowRange(mxRange, ::uno::UNO_QUERY_THROW);
 
1744
        uno::Reference< sheet::XSheetCellRange > xSheetRange(mxRange, ::uno::UNO_QUERY_THROW);
 
1745
@@ -2318,7 +2318,7 @@ ScVbaRange::setHidden( const uno::Any& _
 
1746
                return;
 
1747
        }
 
1748
 
 
1749
-       sal_Bool bHidden;
 
1750
+       sal_Bool bHidden = sal_False;
 
1751
        if ( !(_hidden >>= bHidden) )
 
1752
                throw uno::RuntimeException( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Failed to extract param for Hidden property" ) ), uno::Reference< uno::XInterface >() ); 
 
1753
 
 
1754
@@ -2818,7 +2818,7 @@ ScVbaRange::Delete( const uno::Any& Shif
 
1755
        sheet::CellDeleteMode mode = sheet::CellDeleteMode_NONE ; 
 
1756
        if ( Shift.hasValue() )         
 
1757
        {
 
1758
-               sal_Int32 nShift;
 
1759
+               sal_Int32 nShift = 0;
 
1760
                Shift >>= nShift;
 
1761
                switch ( nShift )
 
1762
                {
 
1763
@@ -3074,7 +3074,7 @@ ScVbaRange::getRowHeight() throw (uno::R
 
1764
 void SAL_CALL 
 
1765
 ScVbaRange::setRowHeight( const uno::Any& _rowheight) throw (uno::RuntimeException)
 
1766
 {
 
1767
-        double nHeight; // Incomming height is in points
 
1768
+        double nHeight = 0; // Incomming height is in points
 
1769
         _rowheight >>= nHeight;
 
1770
        nHeight = lcl_Round2DecPlaces( nHeight );
 
1771
        RangeHelper thisRange( mxRange );       
 
1772
@@ -3129,7 +3129,7 @@ ScVbaRange::getPageBreak() throw (uno::R
 
1773
 void SAL_CALL 
 
1774
 ScVbaRange::setPageBreak( const uno::Any& _pagebreak) throw (uno::RuntimeException)
 
1775
 {
 
1776
-       sal_Int32 nPageBreak; 
 
1777
+       sal_Int32 nPageBreak = 0; 
 
1778
     _pagebreak >>= nPageBreak;
 
1779
                
 
1780
        ScDocShell* pShell = getDocShellFromRange( mxRange );
 
1781
@@ -3427,7 +3427,7 @@ ScVbaRange::Insert( const uno::Any& Shif
 
1782
        sheet::CellInsertMode mode = sheet::CellInsertMode_NONE; 
 
1783
        if ( Shift.hasValue() )
 
1784
        {
 
1785
-               sal_Int32 nShift;
 
1786
+               sal_Int32 nShift = 0;
 
1787
                Shift >>= nShift;
 
1788
                switch ( nShift )
 
1789
                {
 
1790
Index: sc/source/ui/vba/vbaworksheets.cxx
 
1791
===================================================================
 
1792
RCS file: /cvs/sc/sc/source/ui/vba/vbaworksheets.cxx,v
 
1793
retrieving revision 1.2
 
1794
retrieving revision 1.2.2.1
 
1795
diff -u -p -u -p -r1.2 -r1.2.2.1
 
1796
--- sc/source/ui/vba/vbaworksheets.cxx  25 Apr 2007 16:14:08 -0000      1.2
 
1797
+++ sc/source/ui/vba/vbaworksheets.cxx  17 May 2007 16:12:07 -0000      1.2.2.1
 
1798
@@ -227,7 +227,7 @@ ScVbaWorksheets::getVisible() throw (uno
 
1799
 void SAL_CALL 
 
1800
 ScVbaWorksheets::setVisible( const uno::Any& _visible ) throw (uno::RuntimeException)
 
1801
 {
 
1802
-       sal_Bool bState;
 
1803
+       sal_Bool bState = sal_False;
 
1804
        if ( _visible >>= bState )
 
1805
        {
 
1806
                uno::Reference< container::XEnumeration > xEnum( createEnumeration(), uno::UNO_QUERY_THROW );
1482
1807
Index: sc/util/makefile.mk
1483
1808
===================================================================
1484
1809
RCS file: /cvs/sc/sc/util/makefile.mk,v
1485
 
retrieving revision 1.39
1486
 
retrieving revision 1.39.2.1
1487
 
diff -u -p -u -p -r1.39 -r1.39.2.1
1488
 
--- sc/util/makefile.mk 25 Apr 2007 16:15:20 -0000      1.39
1489
 
+++ sc/util/makefile.mk 3 May 2007 09:00:47 -0000       1.39.2.1
1490
 
@@ -278,6 +278,7 @@ DEF9NAME=$(SHL9TARGET)
 
1810
retrieving revision 1.41
 
1811
retrieving revision 1.39.2.2
 
1812
diff -u -p -u -p -r1.41 -r1.39.2.2
 
1813
--- sc/util/makefile.mk 22 May 2007 20:15:40 -0000      1.41
 
1814
+++ sc/util/makefile.mk 5 Jul 2007 13:16:15 -0000       1.39.2.2
 
1815
@@ -266,6 +266,7 @@ DEF9NAME=$(SHL9TARGET)
1491
1816
 
1492
1817
 SHL9STDLIBS= \
1493
1818
                $(CPPUHELPERLIB) \
1495
1820
                $(CPPULIB) \
1496
1821
                $(COMPHELPERLIB) \
1497
1822
                $(SVLIB) \
1498
 
@@ -294,6 +295,12 @@ SHL9STDLIBS= \
 
1823
@@ -282,6 +283,12 @@ SHL9STDLIBS= \
1499
1824
 SHL9DEPN=$(SHL1TARGETN) $(SHL8TARGETN)
1500
1825
 SHL9LIBS=$(SLB)$/$(TARGET_VBA).lib
1501
1826
 
1534
1859
Index: scp2/source/ooo/file_ooo.scp
1535
1860
===================================================================
1536
1861
RCS file: /cvs/installation/scp2/source/ooo/file_ooo.scp,v
1537
 
retrieving revision 1.188
1538
 
retrieving revision 1.188.2.1
1539
 
diff -u -p -u -p -r1.188 -r1.188.2.1
1540
 
--- scp2/source/ooo/file_ooo.scp        25 Apr 2007 16:18:52 -0000      1.188
1541
 
+++ scp2/source/ooo/file_ooo.scp        3 May 2007 11:09:39 -0000       1.188.2.1
1542
 
@@ -1830,6 +1830,13 @@ File gid_File_Rdb_TypesVba
 
1862
retrieving revision 1.196
 
1863
retrieving revision 1.188.2.2
 
1864
diff -u -p -u -p -r1.196 -r1.188.2.2
 
1865
--- scp2/source/ooo/file_ooo.scp        20 Jun 2007 14:01:20 -0000      1.196
 
1866
+++ scp2/source/ooo/file_ooo.scp        5 Jul 2007 14:59:01 -0000       1.188.2.2
 
1867
@@ -2342,6 +2342,13 @@ File gid_File_Rdb_TypesVba
1543
1868
     Styles = (PACKED, OVERWRITE, PATCH);
1544
1869
     Name = "oovbaapi.rdb";
1545
1870
 End