rpms/openoffice.org/devel workspace.cmcfixes62.patch, NONE, 1.1 openoffice.org.spec, 1.1990, 1.1991 openoffice.org-3.1.1.ooo104306.moverecentlyused.patch, 1.2, NONE openoffice.org-3.1.1.oooXXXXX.dmake.patch, 1.7, NONE

Caolan McNamara caolanm at fedoraproject.org
Mon Aug 24 13:03:19 UTC 2009


Author: caolanm

Update of /cvs/pkgs/rpms/openoffice.org/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19899

Modified Files:
	openoffice.org.spec 
Added Files:
	workspace.cmcfixes62.patch 
Removed Files:
	openoffice.org-3.1.1.ooo104306.moverecentlyused.patch 
	openoffice.org-3.1.1.oooXXXXX.dmake.patch 
Log Message:
rebuild against now 64bit-safe unixODBC headers

workspace.cmcfixes62.patch:
 binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx               |    1 
 binfilter/prj/build.lst                                     |    2 
 connectivity/source/drivers/odbcbase/OConnection.cxx        |    2 
 connectivity/source/drivers/odbcbase/OPreparedStatement.cxx |   16 -
 connectivity/source/drivers/odbcbase/OResultSet.cxx         |    6 
 connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx |    8 
 connectivity/source/drivers/odbcbase/OStatement.cxx         |    8 
 connectivity/source/drivers/odbcbase/OTools.cxx             |   70 ++---
 connectivity/source/inc/odbc/OFunctiondefs.hxx              |    8 
 connectivity/source/inc/odbc/OFunctions.hxx                 |   44 +--
 connectivity/source/inc/odbc/OResultSet.hxx                 |    2 
 connectivity/source/inc/odbc/OResultSetMetaData.hxx         |    4 
 connectivity/source/inc/odbc/OStatement.hxx                 |    2 
 connectivity/source/inc/odbc/OTools.hxx                     |   12 
 dbaccess/source/ui/dlg/odbcconfig.cxx                       |    8 
 dmake/dag.c                                                 |    9 
 dmake/expand.c                                              |   26 +-
 dmake/getinp.c                                              |    6 
 dmake/make.c                                                |   15 -
 dmake/path.c                                                |   10 
 dmake/rulparse.c                                            |    5 
 postprocess/prj/build.lst                                   |    2 
 sfx2/inc/pch/precompiled_sfx2.hxx                           |    1 
 sfx2/source/appl/sfxpicklist.cxx                            |    4 
 sfx2/source/doc/objstor.cxx                                 |    3 
 sfx2/util/makefile.mk                                       |    1 
 shell/inc/systemshell.hxx                                   |   53 ----
 shell/prj/build.lst                                         |    3 
 shell/prj/d.lst                                             |    4 
 shell/source/unix/sysshell/makefile.mk                      |    4 
 shell/source/unix/sysshell/recently_used_file_handler.cxx   |    1 
 shell/source/unix/sysshell/systemshell.cxx                  |  151 ------------
 solenv/inc/libs.mk                                          |    2 
 vcl/aqua/inc/salinst.h                                      |    2 
 vcl/aqua/source/app/salinst.cxx                             |   55 ++++
 vcl/inc/vcl/salinst.hxx                                     |    1 
 vcl/inc/vcl/svapp.hxx                                       |   14 +
 vcl/os2/inc/salinst.h                                       |    1 
 vcl/os2/source/app/salinst.cxx                              |    4 
 vcl/source/app/svapp.cxx                                    |    6 
 vcl/unx/gtk/app/gtkinst.cxx                                 |   21 +
 vcl/unx/headless/svpinst.cxx                                |    4 
 vcl/unx/headless/svpinst.hxx                                |    2 
 vcl/unx/inc/plugins/gtk/gtkinst.hxx                         |    1 
 vcl/unx/inc/salinst.h                                       |    1 
 vcl/unx/source/app/salinst.cxx                              |   20 +
 vcl/win/inc/salinst.h                                       |    1 
 vcl/win/source/app/salinst.cxx                              |   23 +
 48 files changed, 298 insertions(+), 351 deletions(-)

--- NEW FILE workspace.cmcfixes62.patch ---
Index: dbaccess/source/ui/dlg/odbcconfig.cxx
===================================================================
--- dbaccess/source/ui/dlg/odbcconfig.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ dbaccess/source/ui/dlg/odbcconfig.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -82,7 +82,7 @@
 // so don't touch this
 #if defined(WIN) || defined(WNT)
 #define SQL_API __stdcall
-// At least under some circumstances, the below #include <odbc/sqlext.h> re-
+// At least under some circumstances, the below #include <sqlext.h> re-
 // defines SQL_API to an empty string, leading to a compiler warning on MSC; to
 // not break the current behavior, this is worked around by locally disabling
 // that warning:
@@ -97,13 +97,7 @@
 #define DONT_TD_VOID
 #endif
 
-#ifdef SYSTEM_ODBC_HEADERS
 #include <sqlext.h>
-#else
-#ifndef __SQLEXT_H
-#include <odbc/sqlext.h>
-#endif
-#endif
 
 #if defined(WIN) || defined(WNT)
 #if defined _MSC_VER
Index: sfx2/source/doc/objstor.cxx
===================================================================
--- sfx2/source/doc/objstor.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ sfx2/source/doc/objstor.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -99,7 +99,6 @@
 #include <sot/storinfo.hxx>
 #include <sot/exchange.hxx>
 #include <sot/formats.hxx>
-#include <shell/systemshell.hxx>
 #include <comphelper/storagehelper.hxx>
 #include <comphelper/seqstream.hxx>
 #include <comphelper/documentconstants.hxx>
@@ -821,7 +820,7 @@
                 if ( aUrl.GetProtocol() == INET_PROT_FILE )
                 {
                     const SfxFilter* pOrgFilter = pMedium->GetOrigFilter();
-                    SystemShell::AddToRecentDocumentList(
+                    Application::AddToRecentDocumentList(
                         aUrl.GetURLNoPass( INetURLObject::NO_DECODE ),
                         (pOrgFilter) ? pOrgFilter->GetMimeType() : String() );
                 }
Index: sfx2/source/appl/sfxpicklist.cxx
===================================================================
--- sfx2/source/appl/sfxpicklist.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ sfx2/source/appl/sfxpicklist.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -43,8 +43,6 @@
 #include <unotools/localfilehelper.hxx>
 #include <cppuhelper/implbase1.hxx>
 
-#include <shell/systemshell.hxx>
-
 // ----------------------------------------------------------------------------
 
 #include <sfx2/app.hxx>
@@ -470,7 +468,7 @@
                 pDocSh->Get_Impl()->bWaitingForPicklist = sal_False;
 
                 if ( aURL.GetProtocol() == INET_PROT_FILE )
-                    SystemShell::AddToRecentDocumentList( aURL.GetURLNoPass( INetURLObject::NO_DECODE ), (pFilter) ? pFilter->GetMimeType() : String() );
+                    Application::AddToRecentDocumentList( aURL.GetURLNoPass( INetURLObject::NO_DECODE ), (pFilter) ? pFilter->GetMimeType() : String() );
 			}
             break;
 		}
Index: sfx2/inc/pch/precompiled_sfx2.hxx
===================================================================
--- sfx2/inc/pch/precompiled_sfx2.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ sfx2/inc/pch/precompiled_sfx2.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -484,7 +484,6 @@
 #include "sal/config.h"
 #include "sal/types.h"
 #include "setup_native/qswin32.h"
-#include "shell/systemshell.hxx"
 #include "sj2/sjapplet.hxx"
 #include "sot/clsids.hxx"
 #include "sot/exchange.hxx"
Index: sfx2/util/makefile.mk
===================================================================
--- sfx2/util/makefile.mk	(.../tags/DEV300_m55)	(revision 275310)
+++ sfx2/util/makefile.mk	(.../cws/cmcfixes62)	(revision 275310)
@@ -91,7 +91,6 @@
 		$(TOOLSLIB) \
 		$(I18NISOLANGLIB) \
 		$(SAXLIB) \
-		$(SYSSHELLLIB) \
 		$(COMPHELPERLIB) \
         $(UCBHELPERLIB) \
 		$(CPPUHELPERLIB) \
Index: vcl/source/app/svapp.cxx
===================================================================
--- vcl/source/app/svapp.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/source/app/svapp.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -1989,6 +1989,12 @@
     return SalGetDesktopEnvironment();
 }
 
+void Application::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType)
+{
+    ImplSVData* pSVData = ImplGetSVData();
+    pSVData->mpDefInst->AddToRecentDocumentList(rFileUrl, rMimeType);
+}
+
 BOOL Application::IsAccessibilityEnabled()
 {
     return FALSE;
Index: vcl/os2/source/app/salinst.cxx
===================================================================
--- vcl/os2/source/app/salinst.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/os2/source/app/salinst.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -811,6 +811,10 @@
 	return (void*) "";
 }
 
+void Os2SalInstance::AddToRecentDocumentList(const rtl::OUString& /*rFileUrl*/, const rtl::OUString& /*rMimeType*/)
+{
+}
+
 // -----------------------------------------------------------------------
 
 SalTimer* Os2SalInstance::CreateSalTimer()
Index: vcl/os2/inc/salinst.h
===================================================================
--- vcl/os2/inc/salinst.h	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/os2/inc/salinst.h	(.../cws/cmcfixes62)	(revision 275310)
@@ -96,6 +96,7 @@
     virtual void				DestroyMenuItem( SalMenuItem* );
     virtual SalSession*                         CreateSalSession();
     virtual void*				GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+    virtual void				AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
 };
 
 SalFrame* ImplSalCreateFrame( Os2SalInstance* pInst, HWND hWndParent, ULONG nSalFrameStyle );
Index: vcl/aqua/source/app/salinst.cxx
===================================================================
--- vcl/aqua/source/app/salinst.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/aqua/source/app/salinst.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -55,6 +55,14 @@
 #include "saltimer.h"
 #include "vclnsapp.h"
 
+#include <comphelper/processfactory.hxx>
+
+#include <com/sun/star/beans/XPropertySet.hpp>
+#include <com/sun/star/lang/XMultiServiceFactory.hpp>
+#include <com/sun/star/uri/XExternalUriReferenceTranslator.hpp>
+#include <com/sun/star/uri/ExternalUriReferenceTranslator.hpp>
+#include <com/sun/star/uno/XComponentContext.hpp>
+
 #include "premac.h"
 #include <Foundation/Foundation.h>
 #include <ApplicationServices/ApplicationServices.h>
@@ -64,6 +72,7 @@
 
 
 using namespace std;
+using namespace ::com::sun::star;
 
 extern BOOL ImplSVMain();
 
@@ -1017,6 +1026,52 @@
 	return (void*)"";
 }
 
+// We need to re-encode file urls because osl_getFileURLFromSystemPath converts
+// to UTF-8 before encoding non ascii characters, which is not what other apps expect.
+static rtl::OUString translateToExternalUrl(const rtl::OUString& internalUrl)
+{
+    rtl::OUString extUrl;
+        
+    uno::Reference< lang::XMultiServiceFactory > sm = comphelper::getProcessServiceFactory();
+    if (sm.is())
+    {
+        uno::Reference< beans::XPropertySet > pset;
+        sm->queryInterface( getCppuType( &pset )) >>= pset;
+        if (pset.is())
+        {
+            uno::Reference< uno::XComponentContext > context;
+            static const rtl::OUString DEFAULT_CONTEXT( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" ) );
+            pset->getPropertyValue(DEFAULT_CONTEXT) >>= context;
+            if (context.is())
+                extUrl = uri::ExternalUriReferenceTranslator::create(context)->translateToExternal(internalUrl);
+        }
+    }
+    return extUrl;
+}
+
+void AquaSalInstance::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& /*rMimeType*/)
+{
+    // Convert file URL for external use (see above)
+    rtl::OUString externalUrl = translateToExternalUrl(rFileUrl);
+    if( 0 == externalUrl.getLength() )
+        externalUrl = rFileUrl;
+    
+    if( externalUrl.getLength() )
+    {
+        NSString* pString = [[NSString alloc] initWithCharacters: externalUrl.getStr() length: externalUrl.getLength()];
+        NSURL* pURL = [NSURL URLWithString: pString];
+
+        if( pURL )
+        {
+            NSDocumentController* pCtrl = [NSDocumentController sharedDocumentController];
+            [pCtrl noteNewRecentDocumentURL: pURL];
+        }
+        if( pString )
+            [pString release];
+    }
+}
+
+
 // -----------------------------------------------------------------------
 
 SalTimer* AquaSalInstance::CreateSalTimer()
Index: vcl/aqua/inc/salinst.h
===================================================================
--- vcl/aqua/inc/salinst.h	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/aqua/inc/salinst.h	(.../cws/cmcfixes62)	(revision 275310)
@@ -143,9 +143,11 @@
     virtual void				DestroyMenuItem( SalMenuItem* );
     virtual SalSession*         CreateSalSession();
     virtual void*				GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+    virtual void                AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
     virtual void            SetEventCallback( void* pInstance, bool(*pCallback)(void*,void*,int) );
     virtual void            SetErrorEventCallback( void* pInstance, bool(*pCallback)(void*,void*,int) );
 
+
     static void handleAppDefinedEvent( NSEvent* pEvent );
     
     // check whether a particular string is passed on the command line
Index: vcl/inc/vcl/salinst.hxx
===================================================================
--- vcl/inc/vcl/salinst.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/inc/vcl/salinst.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -171,6 +171,7 @@
 
     enum ConnectionIdentifierType { AsciiCString, Blob };
     virtual void*				GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes ) = 0;
+    virtual void        AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType) = 0;
 };
 
 // called from SVMain
Index: vcl/inc/vcl/svapp.hxx
===================================================================
--- vcl/inc/vcl/svapp.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/inc/vcl/svapp.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -479,6 +479,20 @@
      */
     static const ::rtl::OUString& GetDesktopEnvironment();
 
+    /** Add a file to the system shells recent document list if there is any.
+          This function may have no effect under Unix because there is no 
+          standard API among the different desktop managers.
+          
+          @param rFileUrl
+                    The file url of the document.
+                    
+          @param rMimeType
+          The mime content type of the document specified by aFileUrl.
+          If an empty string will be provided "application/octet-stream"
+          will be used.
+    */
+    static void AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
+
 private:
 
     DECL_STATIC_LINK( Application, PostEventHandler, void* );
Index: vcl/unx/source/app/salinst.cxx
===================================================================
--- vcl/unx/source/app/salinst.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/unx/source/app/salinst.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -34,7 +34,7 @@
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
-
+#include <osl/module.hxx>
 #include <salunx.h>
 
 #ifndef _VOS_MUTEX_HXX
@@ -276,3 +276,21 @@
 {
 	delete pFrame;
 }
+
+extern "C" { static void SAL_CALL thisModule() {} }
+
+void X11SalInstance::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType)
+{
+    const rtl::OUString SYM_ADD_TO_RECENTLY_USED_FILE_LIST(RTL_CONSTASCII_USTRINGPARAM("add_to_recently_used_file_list"));
+    const rtl::OUString LIB_RECENT_FILE(RTL_CONSTASCII_USTRINGPARAM("librecentfile.so"));
+    typedef void (*PFUNC_ADD_TO_RECENTLY_USED_LIST)(const rtl::OUString&, const rtl::OUString&);
+
+    PFUNC_ADD_TO_RECENTLY_USED_LIST add_to_recently_used_file_list = 0;
+
+    osl::Module module;
+    module.loadRelative( &thisModule, LIB_RECENT_FILE );
+    if (module.is())
+        add_to_recently_used_file_list = (PFUNC_ADD_TO_RECENTLY_USED_LIST)module.getFunctionSymbol(SYM_ADD_TO_RECENTLY_USED_FILE_LIST);
+    if (add_to_recently_used_file_list)
+        add_to_recently_used_file_list(rFileUrl, rMimeType);
+}
Index: vcl/unx/gtk/app/gtkinst.cxx
===================================================================
--- vcl/unx/gtk/app/gtkinst.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/unx/gtk/app/gtkinst.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -206,6 +206,27 @@
     return new GtkSalObject( static_cast<GtkSalFrame*>(pParent), bShow );
 }
 
+void GtkInstance::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType)
+{
+#if GTK_CHECK_VERSION(2,10,0)
+    GtkRecentManager *manager = gtk_recent_manager_get_default ();
+    gtk_recent_manager_add_item (manager, rtl::OUStringToOString(rFileUrl, RTL_TEXTENCODING_UTF8).getStr());
+    (void)rMimeType;
+#else
+    static void * (* sym_gtk_recent_manager_get_default) () =
+        (void * (*)())dlsym(NULL, "gtk_recent_manager_get_default");
+    static void   (* sym_gtk_recent_manager_add_item) (void *, const char *) = 
+        (void (*)(void *, const char*))dlsym(NULL, "gtk_recent_manager_add_item");
+    if (sym_gtk_recent_manager_get_default && sym_gtk_recent_manager_add_item)
+    {
+        sym_gtk_recent_manager_add_item(sym_gtk_recent_manager_get_default(),
+            rtl::OUStringToOString(rFileUrl, RTL_TEXTENCODING_UTF8).getStr());
+    }
+    else
+        X11SalInstance::AddToRecentDocumentList(rFileUrl, rMimeType);
+#endif
+}
+
 GtkYieldMutex::GtkYieldMutex()
 {
 }
Index: vcl/unx/headless/svpinst.cxx
===================================================================
--- vcl/unx/headless/svpinst.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/unx/headless/svpinst.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -504,6 +504,10 @@
 	}
 }
 
+void SvpSalInstance::AddToRecentDocumentList(const rtl::OUString&, const rtl::OUString&)
+{
+}
+
 SvpSalTimer::~SvpSalTimer()
 {
 }
Index: vcl/unx/headless/svpinst.hxx
===================================================================
--- vcl/unx/headless/svpinst.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/unx/headless/svpinst.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -193,6 +193,8 @@
     virtual SalSession*		CreateSalSession();
 
     virtual void*			GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+
+    virtual void            AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
 };
 
 #endif // _SV_SALINST_HXX
Index: vcl/unx/inc/plugins/gtk/gtkinst.hxx
===================================================================
--- vcl/unx/inc/plugins/gtk/gtkinst.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/unx/inc/plugins/gtk/gtkinst.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -91,6 +91,7 @@
     virtual SalFrame*           CreateChildFrame( SystemParentData* pParent, ULONG nStyle );
     virtual SalObject*			CreateObject( SalFrame* pParent, SystemWindowData* pWindowData, BOOL bShow = TRUE );
     virtual SalSystem*			CreateSalSystem();
+    virtual void                AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
 };
 
 class GtkSalSystem : public X11SalSystem
Index: vcl/unx/inc/salinst.h
===================================================================
--- vcl/unx/inc/salinst.h	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/unx/inc/salinst.h	(.../cws/cmcfixes62)	(revision 275310)
@@ -115,6 +115,7 @@
 
     virtual void*				GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
 
+    virtual void            AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
 
     bool isPrinterInit() const 
     {
Index: vcl/win/source/app/salinst.cxx
===================================================================
--- vcl/win/source/app/salinst.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/win/source/app/salinst.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -39,7 +39,7 @@
 #ifdef __MINGW32__
 #include <excpt.h>
 #endif
-
+#include <osl/file.hxx>
 #include <vos/mutex.hxx>
 #include <tools/debug.hxx>
 #include <wincomp.hxx>
@@ -70,6 +70,7 @@
 #include <GdiPlus.h>
 #include <GdiPlusEnums.h>
 #include <GdiPlusColor.h>
+#include <Shlobj.h>
 
 #if defined _MSC_VER
 #pragma warning(pop)
@@ -1089,6 +1090,26 @@
 
 // -----------------------------------------------------------------------
 
+/** Add a file to the system shells recent document list if there is any.
+      This function may have no effect under Unix because there is no 
+      standard API among the different desktop managers.
+      
+      @param aFileUrl
+                The file url of the document.
+*/
+void WinSalInstance::AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& /*rMimeType*/)
+{
+    rtl::OUString system_path;
+    osl::FileBase::RC rc = osl::FileBase::getSystemPathFromFileURL(rFileUrl, system_path);
+    
+    OSL_ENSURE(osl::FileBase::E_None == rc, "Invalid file url");
+    
+    if (osl::FileBase::E_None == rc)
+        SHAddToRecentDocs(SHARD_PATHW, system_path.getStr());        
+}
+
+// -----------------------------------------------------------------------
+
 SalTimer* WinSalInstance::CreateSalTimer()
 {
 	return new WinSalTimer();
Index: vcl/win/inc/salinst.h
===================================================================
--- vcl/win/inc/salinst.h	(.../tags/DEV300_m55)	(revision 275310)
+++ vcl/win/inc/salinst.h	(.../cws/cmcfixes62)	(revision 275310)
@@ -88,6 +88,7 @@
     virtual void				DestroyMenuItem( SalMenuItem* );
     virtual SalSession*                         CreateSalSession();
     virtual void*				GetConnectionIdentifier( ConnectionIdentifierType& rReturnedType, int& rReturnedBytes );
+    virtual void                AddToRecentDocumentList(const rtl::OUString& rFileUrl, const rtl::OUString& rMimeType);
 
     static int WorkaroundExceptionHandlingInUSER32Lib(int nExcept, LPEXCEPTION_POINTERS pExceptionInfo);
 };
Index: shell/source/unix/sysshell/systemshell.cxx
===================================================================
--- shell/source/unix/sysshell/systemshell.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ shell/source/unix/sysshell/systemshell.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -1,151 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: systemshell.cxx,v $
- * $Revision: 1.9 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-// MARKER(update_precomp.py): autogen include statement, do not remove
-#include "precompiled_shell.hxx"
-#include "systemshell.hxx"
-
-#include <comphelper/processfactory.hxx>
-
-#ifndef _COM_SUN_STAR_BEANS_XPROPERTYSET_Hpp_
-#include <com/sun/star/beans/XPropertySet.hpp>
-#endif
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/uri/XExternalUriReferenceTranslator.hpp>
-#include <com/sun/star/uri/ExternalUriReferenceTranslator.hpp>
-#include <com/sun/star/uno/XComponentContext.hpp>
-
-#include "osl/module.hxx"
-
-using namespace ::com::sun::star;
-
-#define UNISTRING(s) rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s))
-
-const rtl::OUString SYM_ADD_TO_RECENTLY_USED_FILE_LIST = UNISTRING("add_to_recently_used_file_list");
-const rtl::OUString LIB_RECENT_FILE = UNISTRING("librecentfile.so");
-const rtl::OUString DEFAULT_CONTEXT = UNISTRING("DefaultContext");
-
-void * (* sym_gtk_recent_manager_get_default) () = NULL;
-void   (* sym_gtk_recent_manager_add_item) (void *, const char *) = NULL;
-
-// We need to re-encode file urls because osl_getFileURLFromSystemPath converts
-// to UTF-8 before encoding non ascii characters, which is not what other apps expect.
-static rtl::OUString translateToExternalUrl(const rtl::OUString& internalUrl)
-{
-	rtl::OUString extUrl;
-		
-	uno::Reference< lang::XMultiServiceFactory > sm = comphelper::getProcessServiceFactory();
-	if (sm.is())
-	{
-		uno::Reference< beans::XPropertySet > pset;
-		sm->queryInterface( getCppuType( &pset )) >>= pset;
-		if (pset.is())
-		{
-			uno::Reference< uno::XComponentContext > context;
-			pset->getPropertyValue(DEFAULT_CONTEXT) >>= context;
-			if (context.is())
-				extUrl = uri::ExternalUriReferenceTranslator::create(context)->translateToExternal(internalUrl);
-		}
-	}
-	return extUrl;
-}
-
-namespace SystemShell {
-    
-    typedef void (*PFUNC_ADD_TO_RECENTLY_USED_LIST)(const rtl::OUString&, const rtl::OUString&);
-        
-    //##############################
-    rtl::OUString get_absolute_library_url(const rtl::OUString& /*lib_name*/)
-    {
-        rtl::OUString url;
-        if (osl::Module::getUrlFromAddress(reinterpret_cast<oslGenericFunction>(AddToRecentDocumentList), url))
-        {        
-            sal_Int32 index = url.lastIndexOf('/');
-            url = url.copy(0, index + 1);
-            url += LIB_RECENT_FILE;
-        }
-        return url;
-    }
-    
-    bool init_recent_manager_api()
-    {
-        oslModule hDefault;
-        if( osl_getModuleHandle( NULL, &hDefault ) )
-        {
-            sym_gtk_recent_manager_get_default = (void * (*)())
-                osl_getAsciiFunctionSymbol(hDefault, "gtk_recent_manager_get_default");
-            sym_gtk_recent_manager_add_item = (void (*)(void *, const char *)) 
-                osl_getAsciiFunctionSymbol(hDefault, "gtk_recent_manager_add_item");
-            
-        }
-        bool ret = (NULL != sym_gtk_recent_manager_get_default) && (NULL != sym_gtk_recent_manager_add_item);
-        return ret;
-    }
-            
-    
-    //##############################
-    void AddToRecentDocumentList(const rtl::OUString& aFileUrl, const rtl::OUString& aMimeType)
-    {
-        static bool bIsRecentManagerPresent = init_recent_manager_api();
-        
-        // Convert file URL for external use (see above)
-        rtl::OUString externalUrl = translateToExternalUrl(aFileUrl);
-        if( 0 == externalUrl.getLength() )
-            externalUrl = aFileUrl;
-        
-        if( bIsRecentManagerPresent )
-        {
-            void * recent_manager = sym_gtk_recent_manager_get_default();
-            sym_gtk_recent_manager_add_item(recent_manager, rtl::OUStringToOString(aFileUrl, RTL_TEXTENCODING_UTF8).getStr());
-        }
-        else
-        {
-            rtl::OUString librecentfile_url = get_absolute_library_url(LIB_RECENT_FILE);
-        
-            if (librecentfile_url.getLength())
-            {
-                osl::Module module(librecentfile_url);
-
-                if (module.is())
-                {
-                    // convert from reinterpret_cast<PFUNC_ADD_TO_RECENTLY_USED_LIST>
-                    // not allowed in gcc 3.3 without permissive.
-                    PFUNC_ADD_TO_RECENTLY_USED_LIST add_to_recently_used_file_list = 
-                        reinterpret_cast<PFUNC_ADD_TO_RECENTLY_USED_LIST>(module.getFunctionSymbol(SYM_ADD_TO_RECENTLY_USED_FILE_LIST));
-                
-                    if (add_to_recently_used_file_list)
-                        add_to_recently_used_file_list(aFileUrl, aMimeType);
-                }
-            }
-        }        
-    }
-    
-} // namespace SystemShell
-
Index: shell/source/unix/sysshell/recently_used_file_handler.cxx
===================================================================
--- shell/source/unix/sysshell/recently_used_file_handler.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ shell/source/unix/sysshell/recently_used_file_handler.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -31,7 +31,6 @@
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_shell.hxx"
  
-#include "systemshell.hxx"
 #include "osl/process.h"
 #include "rtl/ustring.hxx"
 #include "rtl/string.hxx"
Index: shell/source/unix/sysshell/makefile.mk
===================================================================
--- shell/source/unix/sysshell/makefile.mk	(.../tags/DEV300_m55)	(revision 275310)
+++ shell/source/unix/sysshell/makefile.mk	(.../cws/cmcfixes62)	(revision 275310)
@@ -48,10 +48,6 @@
 
 .IF "$(OS)" != "MACOSX"
 
-LIB1OBJFILES=$(SLO)$/systemshell.obj
-LIB1TARGET=$(SLB)$/$(TARGET).lib
-LIB1ARCHIV=$(SLB)$/lib$(TARGET).a
-
 SLOFILES=$(SLO)$/recently_used_file.obj \
          $(SLO)$/recently_used_file_handler.obj
 
Index: shell/inc/systemshell.hxx
===================================================================
--- shell/inc/systemshell.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ shell/inc/systemshell.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -1,53 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- * 
- * Copyright 2008 by Sun Microsystems, Inc.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * $RCSfile: systemshell.hxx,v $
- * $Revision: 1.5 $
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org.  If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _SYSTEMSHELL_HXX_
-#define _SYSTEMSHELL_HXX_
-
-#include <rtl/ustring.hxx>
-
-namespace SystemShell
-{
-    /** Add a file to the system shells recent document list if there is any.
-          This function may have no effect under Unix because there is no 
-          standard API among the different desktop managers.
-          
-          @param aFileUrl
-                    The file url of the document.
-					
-		  @param aMimeType
-		  The mime content type of the document specified by aFileUrl.
-		  If an empty string will be provided "application/octet-stream"
-		  will be used.
-    */
-    void AddToRecentDocumentList(const rtl::OUString& aFileUrl, const rtl::OUString& aMimeType);
-}
-
-#endif
Index: shell/prj/build.lst
===================================================================
--- shell/prj/build.lst	(.../tags/DEV300_m55)	(revision 275310)
+++ shell/prj/build.lst	(.../cws/cmcfixes62)	(revision 275310)
@@ -10,9 +10,6 @@
 sl    shell\source\cmdmail                         nmake   -   p   sl_cmdmail sl_inc NULL
 sl    shell\source\all                             nmake   -   all sl_all sl_inc NULL
 sl    shell\source\unix\sysshell                   nmake   -   u   sl_unix_sysshell sl_all sl_inc NULL
-sl    shell\source\aqua\sysshell                   nmake   -   u   sl_aqua_sysshell sl_all sl_inc NULL
-sl    shell\source\win32\sysshell                  nmake   -   w   sl_win32_sysshell sl_inc NULL
-sl    shell\source\os2\sysshell                    nmake   -   p   sl_os2_sysshell sl_inc NULL
 sl    shell\source\tools\lngconvex                 nmake   -   w   sl_win32_lngconv sl_inc NULL
 sl    shell\source\tools\regsvrex                  nmake   -   w   sl_win32_regsvrex  sl_inc NULL
 sl    shell\source\all\zipfile                     nmake   -   w   sl_all_zipfile  sl_inc NULL
Index: shell/prj/d.lst
===================================================================
--- shell/prj/d.lst	(.../tags/DEV300_m55)	(revision 275310)
+++ shell/prj/d.lst	(.../cws/cmcfixes62)	(revision 275310)
@@ -1,7 +1,3 @@
-mkdir: %_DEST%\inc%_EXT%\shell
-
-..\inc\*.hxx %_DEST%\inc%_EXT%\shell\*.hxx
-
 ..\%__SRC%\slb\*.lib %_DEST%\lib%_EXT%\*.lib
 ..\%__SRC%\slb\*.a %_DEST%\lib%_EXT%\*.a
 ..\%__SRC%\lib\lib*.so %_DEST%\lib%_EXT%
Index: connectivity/source/inc/odbc/OResultSet.hxx
===================================================================
--- connectivity/source/inc/odbc/OResultSet.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/inc/odbc/OResultSet.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -128,7 +128,7 @@
 			typedef ::std::vector<ORowSetValue>			TDataRow;
 
 			TVoidVector									m_aBindVector;
-			::std::vector<sal_Int32>					m_aLengthVector;
+			::std::vector<SQLLEN>						m_aLengthVector;
             ::std::map<sal_Int32,SWORD>					m_aODBCColumnTypes;
 			::com::sun::star::uno::Sequence<sal_Int8>	m_aBookmark;
 
Index: connectivity/source/inc/odbc/OResultSetMetaData.hxx
===================================================================
--- connectivity/source/inc/odbc/OResultSetMetaData.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/inc/odbc/OResultSetMetaData.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -80,13 +80,13 @@
 			virtual ~OResultSetMetaData();
 
 
-            static  SWORD getNumColAttrib(OConnection* _pConnection
+            static SQLLEN getNumColAttrib(OConnection* _pConnection
                                               ,SQLHANDLE _aStatementHandle
                                               ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface
                                               ,sal_Int32 _column
                                               ,sal_Int32 ident) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
 
-            static SWORD getColumnODBCType(OConnection* _pConnection
+            static SQLSMALLINT getColumnODBCType(OConnection* _pConnection
                                               ,SQLHANDLE _aStatementHandle
                                               ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface
                                               ,sal_Int32 column)
Index: connectivity/source/inc/odbc/OTools.hxx
===================================================================
--- connectivity/source/inc/odbc/OTools.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/inc/odbc/OTools.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -197,7 +197,7 @@
 			static ::rtl::OUString getStringValue(	OConnection* _pConnection,	
 													SQLHANDLE _aStatementHandle,
 													sal_Int32 columnIndex,
-													SWORD  _fSqlType,
+													SQLSMALLINT _fSqlType,
 													sal_Bool &_bWasNull,
 													const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
 													rtl_TextEncoding _nTextEncoding) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
@@ -205,7 +205,7 @@
 			static  ::com::sun::star::uno::Sequence<sal_Int8> getBytesValue(OConnection* _pConnection,	
 																			SQLHANDLE _aStatementHandle,
 																			sal_Int32 columnIndex,
-																			SWORD  _fSqlType,
+																			SQLSMALLINT _fSqlType,
 																			sal_Bool &_bWasNull,
 																			const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
 			static void getValue(	OConnection* _pConnection,	
@@ -215,7 +215,7 @@
 									sal_Bool &_bWasNull,
 									const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
 									void* _pValue,
-									SQLINTEGER _rSize) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
+									SQLLEN _nSize) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
 
 			/** 
 				bindData copies the from pValue to pData
@@ -229,10 +229,10 @@
 			static void bindData(	SQLSMALLINT _nOdbcType,
 									sal_Bool _bUseWChar,
 									sal_Int8 *&_pData,
-									SQLINTEGER*& pLen,
+									SQLLEN*& pLen,
 									const void* _pValue,
 									rtl_TextEncoding _nTextEncoding,
-									SQLUINTEGER& _nColumnSize);
+									SQLULEN& _nColumnSize);
 
 			static void bindParameter(	OConnection* _pConnection,	
 										SQLHANDLE _hStmt,
@@ -254,7 +254,7 @@
 									SQLSMALLINT _nMaxLen,
 									const void* _pValue,
 									void*		_pData,
-									SQLINTEGER *pLen,
+									SQLLEN *pLen,
 									const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
 									rtl_TextEncoding _nTextEncoding,
 									sal_Bool _bUseOldTimeDate) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException);
Index: connectivity/source/inc/odbc/OStatement.hxx
===================================================================
--- connectivity/source/inc/odbc/OStatement.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/inc/odbc/OStatement.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -130,7 +130,7 @@
 			*/
 			virtual OResultSet* createResulSet();
 
-            sal_Int32 getRowCount () throw( ::com::sun::star::sdbc::SQLException);
+            SQLLEN getRowCount () throw( ::com::sun::star::sdbc::SQLException);
 
 
 			void disposeResultSet();
Index: connectivity/source/inc/odbc/OFunctiondefs.hxx
===================================================================
--- connectivity/source/inc/odbc/OFunctiondefs.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/inc/odbc/OFunctiondefs.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -41,7 +41,7 @@
 
 // just to go with calling convention of windows
 #define SQL_API __stdcall
-#include <odbc/sqlext.h>
+#include <sqlext.h>
 #undef SQL_API
 #define SQL_API __stdcall
 
@@ -67,7 +67,7 @@
 #define ALLREADY_HAVE_OS2_TYPES
 #define DONT_TD_VOID
 #include <svpm.h>
-#include <odbc/sqlext.h>
+#include <sqlext.h>
 #define SDB_ODBC_CHAR UCHAR
 #endif // OS2
 
@@ -135,11 +135,7 @@
 #endif
 #define CALLBACK
 #define EXPORT
-#ifdef SYSTEM_ODBC_HEADERS
 #include <sqlext.h>
-#else
-#include <odbc/sqlext.h>
-#endif
 #undef sal_Bool // Ist in qeodbc.h definiert, wird aber von solar.h noch einmal
 			// definiert.
 
Index: connectivity/source/inc/odbc/OFunctions.hxx
===================================================================
--- connectivity/source/inc/odbc/OFunctions.hxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/inc/odbc/OFunctions.hxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -187,7 +187,7 @@
 													SQLSMALLINT *		StringLengthPtr,
 													SQLSMALLINT *		TypePtr,
 													SQLSMALLINT *		SubTypePtr,
-													SQLINTEGER *		LengthPtr,
+													SQLLEN *			LengthPtr,
 													SQLSMALLINT *		PrecisionPtr,
 													SQLSMALLINT *		ScalePtr,
 													SQLSMALLINT *		NullablePtr);
@@ -203,8 +203,8 @@
 													SQLSMALLINT			Precision,
 													SQLSMALLINT			Scale,
 													SQLPOINTER			DataPtr,
-													SQLINTEGER *		StringLengthPtr,
-													SQLINTEGER *		IndicatorPtr);
+													SQLLEN *			StringLengthPtr,
+													SQLLEN *			IndicatorPtr);
 
 	#define N3SQLSetDescRec(a,b,c,d,e,f,g,h,i,j) (*(T3SQLSetDescRec)getOdbcFunction(ODBC3SQLSetDescRec))(a,b,c,d,e,f,g,h,i,j)
 	*/
@@ -221,11 +221,11 @@
 													SQLSMALLINT			InputOutputType,
 													SQLSMALLINT			ValueType,
 													SQLSMALLINT			ParameterType,
-													SQLUINTEGER			ColumnSize,
+													SQLULEN				ColumnSize,
 													SQLSMALLINT			DecimalDigits,
 													SQLPOINTER			ParameterValuePtr,
-													SQLINTEGER			BufferLength,
-													SQLINTEGER *		StrLen_or_IndPtr);
+													SQLLEN				BufferLength,
+													SQLLEN *			StrLen_or_IndPtr);
 
 	#define N3SQLBindParameter(a,b,c,d,e,f,g,h,i,j) (*(T3SQLBindParameter)getOdbcFunction(ODBC3SQLBindParameter))(a,b,c,d,e,f,g,h,i,j)
 
@@ -266,7 +266,7 @@
 	typedef SQLRETURN (SQL_API  *T3SQLDescribeParam) (SQLHSTMT			StatementHandle,
 													SQLUSMALLINT		ParameterNumber,
 													SQLSMALLINT *		DataTypePtr,
-													SQLUINTEGER *		ParameterSizePtr,
+													SQLULEN *			ParameterSizePtr,
 													SQLSMALLINT *		DecimalDigitsPtr,
 													SQLSMALLINT *		NullablePtr);
 
@@ -284,13 +284,13 @@
 
 	typedef SQLRETURN  (SQL_API  *T3SQLPutData) (		SQLHSTMT			StatementHandle,
 													SQLPOINTER			DataPtr,
-													SQLINTEGER			StrLen_or_Ind);
+													SQLLEN				StrLen_or_Ind);
 
 	#define N3SQLPutData(a,b,c) (*(T3SQLPutData)getOdbcFunction(ODBC3SQLPutData))(a,b,c)
 
 	// Retrieving results and information about results
 	typedef SQLRETURN  (SQL_API  *T3SQLRowCount) (	SQLHSTMT			StatementHandle,
-													SQLINTEGER *		RowCountPtr);
+													SQLLEN *			RowCountPtr);
 
 	#define N3SQLRowCount(a,b) (*(T3SQLRowCount)getOdbcFunction(ODBC3SQLRowCount))(a,b)
 
@@ -300,12 +300,12 @@
 	#define N3SQLNumResultCols(a,b) (*(T3SQLNumResultCols)getOdbcFunction(ODBC3SQLNumResultCols))(a,b)
 
 	typedef SQLRETURN  (SQL_API  *T3SQLDescribeCol) (	SQLHSTMT			StatementHandle,
-													SQLSMALLINT			ColumnNumber,
+													SQLUSMALLINT		ColumnNumber,
 													SQLCHAR *			ColumnName,
 													SQLSMALLINT			BufferLength,
 													SQLSMALLINT *		NameLengthPtr,
 													SQLSMALLINT *		DataTypePtr,
-													SQLUINTEGER *		ColumnSizePtr,
+													SQLULEN *			ColumnSizePtr,
 													SQLSMALLINT *		DecimalDigitsPtr,
 													SQLSMALLINT *		NullablePtr);
 
@@ -317,7 +317,7 @@
 													SQLPOINTER			CharacterAttributePtr,
 													SQLSMALLINT			BufferLength,
 													SQLSMALLINT *		StringLengthPtr,
-													SQLPOINTER			NumericAttributePtr);
+													SQLLEN *			NumericAttributePtr);
 
 	#define N3SQLColAttribute(a,b,c,d,e,f,g) (*(T3SQLColAttribute)getOdbcFunction(ODBC3SQLColAttribute))(a,b,c,d,e,f,g)
 
@@ -325,8 +325,8 @@
 													SQLUSMALLINT		ColumnNumber,
 													SQLSMALLINT			TargetType,
 													SQLPOINTER			TargetValuePtr,
-													SQLINTEGER			BufferLength,
-													SQLINTEGER *		StrLen_or_IndPtr);
+													SQLLEN				BufferLength,
+													SQLLEN *			StrLen_or_IndPtr);
 
 	#define N3SQLBindCol(a,b,c,d,e,f) (*(T3SQLBindCol)getOdbcFunction(ODBC3SQLBindCol))(a,b,c,d,e,f)
 
@@ -336,7 +336,7 @@
 
 	typedef SQLRETURN  (SQL_API  *T3SQLFetchScroll) (	SQLHSTMT			StatementHandle,
 													SQLSMALLINT			FetchOrientation,
-													SQLINTEGER			FetchOffset);
+													SQLLEN				FetchOffset);
 
 	#define N3SQLFetchScroll(a,b,c) (*(T3SQLFetchScroll)getOdbcFunction(ODBC3SQLFetchScroll))(a,b,c)
 
@@ -344,20 +344,20 @@
 													SQLUSMALLINT		ColumnNumber,
 													SQLSMALLINT			TargetType,
 													SQLPOINTER			TargetValuePtr,
-													SQLINTEGER			BufferLength,
-													SQLINTEGER *		StrLen_or_IndPtr);
+													SQLLEN				BufferLength,
+													SQLLEN *			StrLen_or_IndPtr);
 
 	#define N3SQLGetData(a,b,c,d,e,f) (*(T3SQLGetData)getOdbcFunction(ODBC3SQLGetData))(a,b,c,d,e,f)
 
 	typedef SQLRETURN  (SQL_API  *T3SQLSetPos) (		SQLHSTMT			StatementHandle,
-													SQLUSMALLINT		RowNumber,
+													SQLSETPOSIROW		RowNumber,
 													SQLUSMALLINT		Operation,
 													SQLUSMALLINT		LockType);
 
 	#define N3SQLSetPos(a,b,c,d) (*(T3SQLSetPos)getOdbcFunction(ODBC3SQLSetPos))(a,b,c,d)
 
 	typedef SQLRETURN  (SQL_API  *T3SQLBulkOperations) (	SQLHSTMT		StatementHandle,
-														SQLUSMALLINT	Operation);
+														SQLSMALLINT	Operation);
 
 	#define N3SQLBulkOperations(a,b) (*(T3SQLBulkOperations)getOdbcFunction(ODBC3SQLBulkOperations))(a,b)
 
@@ -461,15 +461,15 @@
 	#define N3SQLProcedures(a,b,c,d,e,f,g) (*(T3SQLProcedures)getOdbcFunction(ODBC3SQLProcedures))(a,b,c,d,e,f,g)
 
 	typedef SQLRETURN  (SQL_API  *T3SQLSpecialColumns) (SQLHSTMT			StatementHandle,
-													SQLSMALLINT			IdentifierType,
+													SQLUSMALLINT		IdentifierType,
 													SQLCHAR *			CatalogName,
 													SQLSMALLINT			NameLength1,
 													SQLCHAR *			SchemaName,
 													SQLSMALLINT			NameLength2,
 													SQLCHAR *			TableName,
 													SQLSMALLINT			NameLength3,
-													SQLSMALLINT			Scope,
-													SQLSMALLINT			Nullable);
+													SQLUSMALLINT		Scope,
+													SQLUSMALLINT		Nullable);
 
 	#define N3SQLSpecialColumns(a,b,c,d,e,f,g,h,i,j) (*(T3SQLSpecialColumns)getOdbcFunction(ODBC3SQLSpecialColumns))(a,b,c,d,e,f,g,h,i,j)
 
Index: connectivity/source/drivers/odbcbase/OConnection.cxx
===================================================================
--- connectivity/source/drivers/odbcbase/OConnection.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/drivers/odbcbase/OConnection.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -108,7 +108,7 @@
 	SQLRETURN nSQLRETURN = 0;
 	SDB_ODBC_CHAR szConnStrOut[4096];
 	SDB_ODBC_CHAR szConnStrIn[2048];
-	SWORD cbConnStrOut;
+	SQLSMALLINT cbConnStrOut;
 	memset(szConnStrOut,'\0',4096);
 	memset(szConnStrIn,'\0',2048);
 	::rtl::OString aConStr(::rtl::OUStringToOString(aConnectStr,getTextEncoding()));
Index: connectivity/source/drivers/odbcbase/OTools.cxx
===================================================================
--- connectivity/source/drivers/odbcbase/OTools.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/drivers/odbcbase/OTools.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -56,16 +56,16 @@
 						sal_Bool &_bWasNull,
 						const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
 						void* _pValue,
-						SQLINTEGER _rSize) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
+						SQLLEN _nSize) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "odbc", "Ocke.Janssen at sun.com", "OTools::getValue" );
-	SQLINTEGER pcbValue = SQL_NULL_DATA;
+	SQLLEN pcbValue = SQL_NULL_DATA;
 	OTools::ThrowException(_pConnection,
 							(*(T3SQLGetData)_pConnection->getOdbcFunction(ODBC3SQLGetData))(_aStatementHandle,
 										(SQLUSMALLINT)columnIndex,
 										_nType,
 										_pValue,
-										(SQLINTEGER)_rSize,
+										_nSize,
 										&pcbValue),
 							_aStatementHandle,SQL_HANDLE_STMT,_xInterface,sal_False);
 	_bWasNull = pcbValue == SQL_NULL_DATA;
@@ -86,12 +86,12 @@
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "odbc", "Ocke.Janssen at sun.com", "OTools::bindParameter" );
 	SQLRETURN nRetcode;
-	SWORD   fSqlType;
-	SWORD   fCType;
-	SDWORD  nMaxLen = 0;
+	SQLSMALLINT fSqlType;
+	SQLSMALLINT fCType;
+	SQLLEN  nMaxLen = 0;
 	//	void*&   pData   = pDataBuffer;
-	SQLINTEGER* pLen    = (SQLINTEGER*)pLenBuffer;
-	SQLUINTEGER nColumnSize=0;
+	SQLLEN* pLen    = (SQLLEN*)pLenBuffer;
+	SQLULEN nColumnSize=0;
 	SQLSMALLINT	nDecimalDigits=0;
 
 	OTools::getBindTypes(_bUseWChar,_bUseOldTimeDate,_nODBCtype,fCType,fSqlType);
@@ -123,10 +123,10 @@
 void OTools::bindData(	SQLSMALLINT _nOdbcType,
 						sal_Bool _bUseWChar,
 						sal_Int8 *&_pData,
-						SQLINTEGER*& pLen,
+						SQLLEN*& pLen,
 						const void* _pValue,
 						rtl_TextEncoding _nTextEncoding,
-						SQLUINTEGER& _nColumnSize)
+						SQLULEN& _nColumnSize)
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "odbc", "Ocke.Janssen at sun.com", "OTools::bindData" );
 	_nColumnSize = 0;
@@ -222,7 +222,7 @@
 			{
 				sal_Int32 nLen = 0;
                 nLen = ((const ::com::sun::star::uno::Sequence< sal_Int8 > *)_pValue)->getLength();
-				*pLen = (SDWORD)SQL_LEN_DATA_AT_EXEC(nLen);
+				*pLen = (SQLLEN)SQL_LEN_DATA_AT_EXEC(nLen);
 			}
 			break;
 		case SQL_LONGVARCHAR:
@@ -235,21 +235,21 @@
 				::rtl::OString aString(::rtl::OUStringToOString(*(::rtl::OUString*)_pValue,_nTextEncoding));
 				nLen = aString.getLength();
 			}
-			*pLen = (SDWORD)SQL_LEN_DATA_AT_EXEC(nLen);
+			*pLen = (SQLLEN)SQL_LEN_DATA_AT_EXEC(nLen);
 		}   break;
 		case SQL_DATE:
 			*(DATE_STRUCT*)_pData = *(DATE_STRUCT*)_pValue;
-			*pLen = (SDWORD)sizeof(DATE_STRUCT);
+			*pLen = (SQLLEN)sizeof(DATE_STRUCT);
 			_nColumnSize = 10;
 			break;
 		case SQL_TIME:
 			*(TIME_STRUCT*)_pData = *(TIME_STRUCT*)_pValue;
-			*pLen = (SDWORD)sizeof(TIME_STRUCT);
+			*pLen = (SQLLEN)sizeof(TIME_STRUCT);
 			_nColumnSize = 8;
 			break;
 		case SQL_TIMESTAMP:
 			*(TIMESTAMP_STRUCT*)_pData = *(TIMESTAMP_STRUCT*)_pValue;
-			*pLen = (SDWORD)sizeof(TIMESTAMP_STRUCT);
+			*pLen = (SQLLEN)sizeof(TIMESTAMP_STRUCT);
 			_nColumnSize = 19;
 			break;
 	}
@@ -262,7 +262,7 @@
 						SQLSMALLINT _nMaxLen,
 						const void* _pValue,
 						void* _pData,
-						SQLINTEGER *pLen,
+						SQLLEN *pLen,
 						const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface,
 						rtl_TextEncoding _nTextEncoding,
 						sal_Bool _bUseOldTimeDate) throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
@@ -271,7 +271,7 @@
 	SQLRETURN nRetcode;
 	SQLSMALLINT   fSqlType;
 	SQLSMALLINT   fCType;
-	SQLSMALLINT   nMaxLen = _nMaxLen;
+	SQLLEN nMaxLen = _nMaxLen;
 
 	OTools::getBindTypes(	sal_False,
 							_bUseOldTimeDate,
@@ -375,7 +375,7 @@
 					_pData = (void*)(columnIndex);
 					sal_Int32 nLen = 0;
                     nLen = ((const ::com::sun::star::uno::Sequence< sal_Int8 > *)_pValue)->getLength();
-					*pLen = (SDWORD)SQL_LEN_DATA_AT_EXEC(nLen);
+					*pLen = (SQLLEN)SQL_LEN_DATA_AT_EXEC(nLen);
 				}
 					break;
 				case SQL_LONGVARCHAR:
@@ -383,7 +383,7 @@
 					_pData = (void*)(columnIndex);
 					sal_Int32 nLen = 0;
 					nLen = ((::rtl::OUString*)_pValue)->getLength();
-					*pLen = (SDWORD)SQL_LEN_DATA_AT_EXEC(nLen);
+					*pLen = (SQLLEN)SQL_LEN_DATA_AT_EXEC(nLen);
 				}   break;
 				case SQL_DATE:
 					*pLen = sizeof(DATE_STRUCT);
@@ -446,10 +446,10 @@
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "odbc", "Ocke.Janssen at sun.com", "OTools::ThrowException" );
 
 	SDB_ODBC_CHAR szSqlState[5];
-	SDWORD pfNativeError;
+	SQLINTEGER pfNativeError;
 	SDB_ODBC_CHAR szErrorMessage[SQL_MAX_MESSAGE_LENGTH];
 	szErrorMessage[0] = '\0';
-	SWORD pcbErrorMsg = 0;
+	SQLSMALLINT pcbErrorMsg = 0;
 
 	// Informationen zur letzten Operation:
 	// wenn hstmt != SQL_NULL_HSTMT ist (Benutzung von SetStatus in SdbCursor, SdbTable, ...),
@@ -478,7 +478,7 @@
 Sequence<sal_Int8> OTools::getBytesValue(OConnection* _pConnection,
 										 SQLHANDLE _aStatementHandle,
 										 sal_Int32 columnIndex,
-										 SWORD  _fSqlType,
+										 SQLSMALLINT _fSqlType,
 										 sal_Bool &_bWasNull,
 										 const Reference< XInterface >& _xInterface) throw(SQLException, RuntimeException)
 {
@@ -486,14 +486,14 @@
 	char aCharArray[2048];
 	// Erstmal versuchen, die Daten mit dem kleinen Puffer
 	// abzuholen:
-	SQLINTEGER nMaxLen = sizeof aCharArray - 1;
+	SQLLEN nMaxLen = sizeof aCharArray - 1;
 	//	GETDATA(SQL_C_CHAR,aCharArray,nMaxLen);
-	SQLINTEGER pcbValue = 0;
+	SQLLEN pcbValue = 0;
 	OTools::ThrowException(_pConnection,(*(T3SQLGetData)_pConnection->getOdbcFunction(ODBC3SQLGetData))(_aStatementHandle,
 										(SQLUSMALLINT)columnIndex,
 										_fSqlType,
 										(SQLPOINTER)aCharArray,
-										(SQLINTEGER)nMaxLen,
+										nMaxLen,
 										&pcbValue),
 							_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
 
@@ -540,7 +540,7 @@
 ::rtl::OUString OTools::getStringValue(OConnection* _pConnection,
 									   SQLHANDLE _aStatementHandle,
 									   sal_Int32 columnIndex,
-									   SWORD  _fSqlType,
+									   SQLSMALLINT _fSqlType,
 									   sal_Bool &_bWasNull,
 									   const Reference< XInterface >& _xInterface,
 									   rtl_TextEncoding _nTextEncoding) throw(SQLException, RuntimeException)
@@ -555,15 +555,15 @@
 		{
 			sal_Unicode waCharArray[2048];
 			// read the unicode data
-			sal_Int32 nMaxLen = (sizeof(waCharArray) / sizeof(sal_Unicode)) - 1;
+			SQLLEN nMaxLen = (sizeof(waCharArray) / sizeof(sal_Unicode)) - 1;
 			//	GETDATA(SQL_C_WCHAR, waCharArray, nMaxLen + sizeof(sal_Unicode));
 
-			SQLINTEGER pcbValue=0;
+			SQLLEN pcbValue=0;
 			OTools::ThrowException(_pConnection,(*(T3SQLGetData)_pConnection->getOdbcFunction(ODBC3SQLGetData))(_aStatementHandle,
 												(SQLUSMALLINT)columnIndex,
 												SQL_C_WCHAR,
 												&waCharArray,
-												(SQLINTEGER)nMaxLen*sizeof(sal_Unicode),
+												(SQLLEN)nMaxLen*sizeof(sal_Unicode),
 												&pcbValue),
 									_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
 			_bWasNull = pcbValue == SQL_NULL_DATA;
@@ -571,7 +571,7 @@
 				return ::rtl::OUString();
 			// Bei Fehler bricht der GETDATA-Makro mit return ab,
 			// bei NULL mit break!
-			SQLINTEGER nLen = pcbValue != SQL_NO_TOTAL ? std::min(pcbValue, nMaxLen) : (nMaxLen-1);
+			SQLLEN nLen = pcbValue != SQL_NO_TOTAL ? std::min(pcbValue, nMaxLen) : (nMaxLen-1);
 			waCharArray[nLen] = 0;
 			aData = ::rtl::OUString(waCharArray);
 
@@ -595,7 +595,7 @@
 												(SQLUSMALLINT)columnIndex,
 												SQL_C_WCHAR,
 												&waCharArray,
-												(SQLINTEGER)nLen+1,
+												(SQLLEN)nLen+1,
 												&pcbValue),
 									_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
 				nLen = pcbValue != SQL_NO_TOTAL ? std::min(pcbValue, nMaxLen) : (nMaxLen-1);
@@ -610,21 +610,21 @@
 			char aCharArray[2048];
 			// Erstmal versuchen, die Daten mit dem kleinen Puffer
 			// abzuholen:
-			SDWORD nMaxLen = sizeof aCharArray - 1;
+			SQLLEN nMaxLen = sizeof aCharArray - 1;
 			//	GETDATA(SQL_C_CHAR,aCharArray,nMaxLen);
-			SQLINTEGER pcbValue = 0;
+			SQLLEN pcbValue = 0;
 			OTools::ThrowException(_pConnection,(*(T3SQLGetData)_pConnection->getOdbcFunction(ODBC3SQLGetData))(_aStatementHandle,
 												(SQLUSMALLINT)columnIndex,
 												SQL_C_CHAR,
 												&aCharArray,
-												(SQLINTEGER)nMaxLen,
+												nMaxLen,
 												&pcbValue),
 									_aStatementHandle,SQL_HANDLE_STMT,_xInterface);
 			_bWasNull = pcbValue == SQL_NULL_DATA;
 			if(_bWasNull)
 				return ::rtl::OUString();
 
-			SQLINTEGER nLen = pcbValue != SQL_NO_TOTAL ? std::min(pcbValue, nMaxLen) : (nMaxLen-1);
+			SQLLEN nLen = pcbValue != SQL_NO_TOTAL ? std::min(pcbValue, nMaxLen) : (nMaxLen-1);
 			aCharArray[nLen] = 0;
 			if ( ((pcbValue == SQL_NO_TOTAL) || pcbValue > nMaxLen) && aCharArray[nLen-1] == 0 && nLen > 0 )
 				--nLen;
Index: connectivity/source/drivers/odbcbase/OStatement.cxx
===================================================================
--- connectivity/source/drivers/odbcbase/OStatement.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/drivers/odbcbase/OStatement.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -250,13 +250,13 @@
     m_xResultSet = Reference< XResultSet >();
 }
 //--------------------------------------------------------------------
-sal_Int32 OStatement_Base::getRowCount () throw( SQLException)
+SQLLEN OStatement_Base::getRowCount () throw( SQLException)
 {
 	::osl::MutexGuard aGuard( m_aMutex );
 	checkDisposed(OStatement_BASE::rBHelper.bDisposed);
 
 
-	sal_Int32	numRows = 0;
+	SQLLEN numRows = 0;
 
 	try {
 		THROW_SQL(N3SQLRowCount(m_aStatementHandle,&numRows));
@@ -523,7 +523,9 @@
 		SQLRETURN nError = N3SQLMoreResults(m_aStatementHandle);
 		if(nError == SQL_SUCCESS)
 		{
-			N3SQLRowCount(m_aStatementHandle,&pArray[j]);
+			SQLLEN nRowCount=0;
+			N3SQLRowCount(m_aStatementHandle,&nRowCount);
+			pArray[j] = nRowCount;
 		}
 	}
 	return aRet;
Index: connectivity/source/drivers/odbcbase/OPreparedStatement.cxx
===================================================================
--- connectivity/source/drivers/odbcbase/OPreparedStatement.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/drivers/odbcbase/OPreparedStatement.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -446,11 +446,11 @@
 	checkParameterIndex(parameterIndex);
 
 	sal_Int8* lenBuf = getLengthBuf (parameterIndex);
-	*(SDWORD*)lenBuf = SQL_NULL_DATA;
+	*(SQLLEN*)lenBuf = SQL_NULL_DATA;
 
 
-	SQLINTEGER	prec = 0;
-	SQLUINTEGER nColumnSize = 0;
+	SQLLEN prec = 0;
+	SQLULEN nColumnSize = 0;
 	if (sqlType == SQL_CHAR || sqlType == SQL_VARCHAR || sqlType == SQL_LONGVARCHAR)
 	{
 		prec = 1;
@@ -476,7 +476,7 @@
 											nDecimalDigits,
 											NULL,
 											prec,
-											(SDWORD*)lenBuf
+											(SQLLEN*)lenBuf
 											);
 	OTools::ThrowException(m_pConnection,nReturn,m_aStatementHandle,SQL_HANDLE_STMT,*this);
 }
@@ -861,7 +861,7 @@
 
     // Bind the parameter with SQL_LEN_DATA_AT_EXEC
 	SQLSMALLINT   Ctype = SQL_C_CHAR;
-	SDWORD	atExec = SQL_LEN_DATA_AT_EXEC (length);
+	SQLLEN	atExec = SQL_LEN_DATA_AT_EXEC (length);
 	memcpy (dataBuf, &ParameterIndex, sizeof(ParameterIndex));
 	memcpy (lenBuf, &atExec, sizeof (atExec));
 
@@ -872,14 +872,14 @@
 	OSL_ENSURE(m_aStatementHandle,"StatementHandle is null!");
 	N3SQLBindParameter(m_aStatementHandle,
 						(SQLUSMALLINT)ParameterIndex,
-						(SQLSMALLINT)SQL_PARAM_INPUT,
+						(SQLUSMALLINT)SQL_PARAM_INPUT,
 						Ctype,
 						(SQLSMALLINT)SQLtype,
-						(SQLUINTEGER)length,
+						(SQLULEN)length,
 						0,
 						dataBuf,
 						sizeof(ParameterIndex),
-						(SDWORD*)lenBuf);
+						(SQLLEN*)lenBuf);
 
 	// Save the input stream
 	boundParams[ParameterIndex - 1].setInputStream (x, length);
Index: connectivity/source/drivers/odbcbase/OResultSet.cxx
===================================================================
--- connectivity/source/drivers/odbcbase/OResultSet.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/drivers/odbcbase/OResultSet.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -843,8 +843,8 @@
 	checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
 
 
-	SQLSMALLINT nMaxLen = 20;
-	SQLINTEGER nRealLen = 0;
+	SQLLEN nMaxLen = 20;
+	SQLLEN nRealLen = 0;
 	Sequence<sal_Int8> aBookmark(nMaxLen);
 
 	SQLRETURN nRet = N3SQLBindCol(m_aStatementHandle,
@@ -925,7 +925,7 @@
     sal_Bool bPositionByBookmark = ( NULL != getOdbcFunction( ODBC3SQLBulkOperations ) );
 	if ( bPositionByBookmark )
 	{
-		SQLINTEGER nRealLen = 0;
+		SQLLEN nRealLen = 0;
 		nRet = N3SQLBindCol(m_aStatementHandle,
 							0,
 							SQL_C_VARBOOKMARK,
Index: connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx
===================================================================
--- connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ connectivity/source/drivers/odbcbase/OResultSetMetaData.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -86,13 +86,13 @@
 	return  sValue;
 }
 // -------------------------------------------------------------------------
-SWORD OResultSetMetaData::getNumColAttrib(OConnection* _pConnection
+SQLLEN OResultSetMetaData::getNumColAttrib(OConnection* _pConnection
                                               ,SQLHANDLE _aStatementHandle
                                               ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface
                                               ,sal_Int32 _column
                                               ,sal_Int32 _ident) throw(SQLException, RuntimeException)
 {
-	SWORD nValue=0;
+	SQLLEN nValue=0;
 	OTools::ThrowException(_pConnection,(*(T3SQLColAttribute)_pConnection->getOdbcFunction(ODBC3SQLColAttribute))(_aStatementHandle,
 										 (SQLUSMALLINT)_column,
 										 (SQLUSMALLINT)_ident,
@@ -117,13 +117,13 @@
 	return getNumColAttrib(column,SQL_DESC_DISPLAY_SIZE);
 }
 // -------------------------------------------------------------------------
-SWORD OResultSetMetaData::getColumnODBCType(OConnection* _pConnection
+SQLSMALLINT OResultSetMetaData::getColumnODBCType(OConnection* _pConnection
                                               ,SQLHANDLE _aStatementHandle
                                               ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _xInterface
                                               ,sal_Int32 column)
                                                throw(::com::sun::star::sdbc::SQLException, ::com::sun::star::uno::RuntimeException)
 {
-    SWORD nType = 0;
+    SQLSMALLINT nType = 0;
     try
 	{
 		nType = getNumColAttrib(_pConnection,_aStatementHandle,_xInterface,column,SQL_DESC_CONCISE_TYPE);
Index: solenv/inc/libs.mk
===================================================================
--- solenv/inc/libs.mk	(.../tags/DEV300_m55)	(revision 275310)
+++ solenv/inc/libs.mk	(.../cws/cmcfixes62)	(revision 275310)
@@ -266,7 +266,6 @@
 ISDLIB=-lsd$(DLLPOSTFIX)
 PKGCHKLIB=-lpkgchk$(DLLPOSTFIX)
 HELPLINKERLIB=-lhelplinker$(DLLPOSTFIX)
-SYSSHELLLIB=-lsysshell
 .IF "$(GUI)$(COM)"=="WNTGCC"
 JVMACCESSLIB = -ljvmaccess$(UDK_MAJOR)$(COMID)
 .ELSE			# "$(GUI)$(COM)"=="WNTGCC"
@@ -475,7 +474,6 @@
 FREETYPELIB=freetype.lib
 PKGCHKLIB=ipkgchk.lib
 HELPLINKERLIB=ihelplinker.lib
-SYSSHELLLIB=sysshell.lib
 JVMACCESSLIB = ijvmaccess.lib
 CPPUNITLIB = cppunit.lib
 XSLTLIB = libxslt.lib $(ZLIB3RDLIB) $(LIBXML2LIB)
Index: binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx
===================================================================
--- binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx	(.../tags/DEV300_m55)	(revision 275310)
+++ binfilter/bf_sfx2/source/doc/sfx2_objstor.cxx	(.../cws/cmcfixes62)	(revision 275310)
@@ -138,7 +138,6 @@
 #include <unotools/tempfile.hxx>
 #include <ucbhelper/content.hxx>
 #include <sot/storinfo.hxx>
-#include <shell/systemshell.hxx>
 
 #include "objsh.hxx"
 #include "request.hxx"
Index: binfilter/prj/build.lst
===================================================================
--- binfilter/prj/build.lst	(.../tags/DEV300_m55)	(revision 275310)
+++ binfilter/prj/build.lst	(.../cws/cmcfixes62)	(revision 275310)
@@ -1,4 +1,4 @@
-bf      binfilter :     idl basic goodies xmlscript connectivity framework stoc uui offuh shell NULL
+bf      binfilter :     idl basic goodies xmlscript connectivity framework stoc uui offuh NULL
 bf	binfilter											usr1	-	all	bf_mkout NULL
 bf	binfilter\bf_svtools\source\inc						get		-	all	bf_svt_sinc NULL
 bf  binfilter\bf_svtools\source\config					nmake	-	all bf_svt_config NULL
Index: dmake/dag.c
===================================================================
--- dmake/dag.c	(.../tags/DEV300_m55)	(revision 275310)
+++ dmake/dag.c	(.../cws/cmcfixes62)	(revision 275310)
@@ -369,14 +369,17 @@
 	 /* strip out any \<nl> combinations where \ is the current
 	  * CONTINUATION char */
 	 for(p=q; (p=strchr(p,CONTINUATION_CHAR))!=NIL(char); )
-	    if( p[1] == '\n' )
-	       strcpy( p, p+2 );
+	    if( p[1] == '\n' ) {
+	       size_t len = strlen(p+2)+1;
+	       memmove ( p, p+2, len );
+	    }
 	    else
 	       p++;
 
 	 p = DmStrSpn(q ," \t");	/* Strip white space before ... */
 	 if( p != q ) {
-	    strcpy( q, p);
+	    size_t len = strlen(p)+1;
+	    memmove( q, p, len );
 	    p = q;
 	 }
 
Index: dmake/make.c
===================================================================
--- dmake/make.c	(.../tags/DEV300_m55)	(revision 275310)
+++ dmake/make.c	(.../cws/cmcfixes62)	(revision 275310)
@@ -1352,8 +1352,10 @@
        * Nothing in Expand() should be able to change dynamic macros. */
       cmnd = Expand( rp->st_string );
 
-      if( new_attr && (p = DmStrSpn(cmnd," \t\n+-@%")) != cmnd )
-	 strcpy(cmnd,p);
+      if( new_attr && (p = DmStrSpn(cmnd," \t\n+-@%")) != cmnd ) {
+	 size_t len = strlen(p)+1;
+	 memmove(cmnd,p,len);
+      }
 
       /* COMMAND macro is set to "$(CMNDNAME) $(CMNDARGS)" by default, it is
        * possible for the user to reset it to, for example
@@ -1381,8 +1383,10 @@
 	 shell  = ((l_attr & A_SHELL) != 0);
 
 	 /* clean up the attributes that we may have just added. */
-	 if( (p = DmStrSpn(cmnd," \t\n+-@%")) != cmnd )
-	    strcpy(cmnd,p);
+	 if( (p = DmStrSpn(cmnd," \t\n+-@%")) != cmnd ) {
+	    size_t len = strlen(p)+1;
+	    memmove(cmnd,p,len);
+	 }
       }
 
 #if defined(MSDOS)
@@ -1477,8 +1481,9 @@
    for( p=cmnd; *(n = DmStrPbrk(p,tmp)) != '\0'; )
       /* Remove the \<nl> sequences. */
       if(*n == CONTINUATION_CHAR && n[1] == '\n') {
+	 size_t len = strlen(n+2)+1;
 	 DB_PRINT( "make", ("fixing [%s]", p) );
-	 strcpy( n, n+2 );
+	 memmove( n, n+2, len );
 	 p = n;
       }
       /* Look for an escape sequence and replace it by it's corresponding
Index: dmake/expand.c
===================================================================
--- dmake/expand.c	(.../tags/DEV300_m55)	(revision 275310)
+++ dmake/expand.c	(.../cws/cmcfixes62)	(revision 275310)
@@ -230,6 +230,7 @@
 char *tok;
 {
    if( strchr( "\"\\vantbrf01234567", tok[1] ) ) {
+      size_t len;
       switch( tok[1] ) {
 	 case 'a' : *tok = 0x07; break;
 	 case 'b' : *tok = '\b'; break;
@@ -246,13 +247,15 @@
 	    register int j = 0;
 	    for( ; i<2 && isdigit(tok[2]); i++ ) {
 	       j = (j << 3) + (tok[1] - '0');
-	       strcpy( tok+1, tok+2 );
+	       len = strlen(tok+2)+1;
+	       memmove( tok+1, tok+2, len );
 	    }
 	    j = (j << 3) + (tok[1] - '0');
 	    *tok = j;
 	 }
       }
-      strcpy( tok+1, tok+2 );
+      len = strlen(tok+2)+1;
+      memmove( tok+1, tok+2, len );
    }
 }
 
@@ -365,7 +368,8 @@
       if( (e = Basename(s)) != s) {
 	 if( !(mod & DIRECTORY_FLAG) ) {
 	    /* Move the basename to the start. */
-	    strcpy(s, e);
+	    size_t len = strlen(e)+1;
+	    memmove(s, e, len);
 	 }
 	 else
 	    s = e;
@@ -382,7 +386,8 @@
 
       if( !(mod & FILE_FLAG) ) {
 	 /* Move the suffix to the start. */
-	 strcpy( s, e );
+	 size_t len = strlen(e)+1;
+         memmove(s, e, len);
       }
       else
 	 s = e;
@@ -725,8 +730,10 @@
 	      done = !lev;
 	      break;
             } else {
+              size_t len;
 	      s[1] = ' ';
-	      strcpy( s, s+1 );
+              len = strlen(s+1)+1;
+	      memmove( s, s+1, len );
 	    }
 	    /*FALLTHRU*/
 	 case ' ':
@@ -835,8 +842,10 @@
        * converted them to a real space. Let's verify this. */
       for( p=s; *p && *p != edelim && *p; p++ ) {
 	if( p[0] == '\\' && p[1] == '\n' ) {
+	  size_t len;
 	  p[1] = ' ';
-	  strcpy( p, p+1 );
+	  len = strlen(p+1)+1;
+	  memmove( p, p+1, len );
 	}
       }
       if( !*p )
@@ -1120,7 +1129,10 @@
       *flag = 1;
       res   = Expand( start );
 
-      if( (t = DmStrSpn( res, " \t" )) != res ) strcpy( res, t );
+      if( (t = DmStrSpn( res, " \t" )) != res ) {
+          size_t len = strlen(t)+1;
+          memmove( res, t, len );
+      }
    }
 
    FREE( start );       /* this is ok! start is assigned a DmSubStr above */
Index: dmake/getinp.c
===================================================================
--- dmake/getinp.c	(.../tags/DEV300_m55)	(revision 275310)
+++ dmake/getinp.c	(.../cws/cmcfixes62)	(revision 275310)
@@ -169,7 +169,8 @@
 	  * text lines on input.  The maximum size of this is governened by
 	  * Buffer_size */
 	    if( q != p && q[-1] == CONTINUATION_CHAR ) {
-	       strcpy( q, q+1 );
+	       size_t len = strlen(q+1)+1;
+	       memmove( q, q+1, len );
 	       q--;
 	       cont = FALSE;
 	    }
@@ -290,7 +291,8 @@
    while( (c = strchr(c, COMMENT_CHAR)) != NIL(char) ) {
       if( Comment || State == NORMAL_SCAN )
 	 if( c != str && c[-1] == ESCAPE_CHAR ) {
-	    strcpy( c-1, c );        /* copy it left, due to \# */
+	    size_t len = strlen(c)+1;
+	    memmove( c-1, c, len );  /* copy it left, due to \# */
 	    if( pend ) (*pend)--;    /* shift tail pointer left */
 	 }
 	 else {
Index: dmake/path.c
===================================================================
--- dmake/path.c	(.../tags/DEV300_m55)	(revision 275310)
+++ dmake/path.c	(.../cws/cmcfixes62)	(revision 275310)
@@ -172,6 +172,7 @@
    char *tpath;
    int hasdriveletter = 0;
    int delentry;
+   size_t len;
 
    DB_ENTER( "Clean_path" );
 
@@ -231,14 +232,16 @@
 	    p++;
 	 }
 	 while( *p == *DirSepStr);
-	 strcpy(t+1,p);
+	 len = strlen(p)+1;
+	 memmove(t+1,p,len);
 	 continue;
       }
 
       /* Remove './'. If OOODMAKEMODE is set do this only if it is not at
        * the start of the path. */
       if ( p-q == 1 && *q == '.' && (q != path || !STOBOOL(OOoDmMode)) ) {
-	 strcpy(q,p+1);
+	 len = strlen(p+1)+1;
+	 memmove(q,p+1,len);
 	 q = tpath;
 	 continue;
       }
@@ -268,7 +271,8 @@
 	 }
 	 while( *t == *DirSepStr);
 	 /* q points to first letter of the current directory/file. */
-	 strcpy(q,t);
+	 len = strlen(t)+1;
+	 memmove(q,t,len);
 	 q = tpath;
       }
       else
Index: dmake/rulparse.c
===================================================================
--- dmake/rulparse.c	(.../tags/DEV300_m55)	(revision 275310)
+++ dmake/rulparse.c	(.../cws/cmcfixes62)	(revision 275310)
@@ -897,7 +897,7 @@
 	 /* Handle %-targets. */
 	 CELLPTR cur;
 	 CELLPTR tpq = NIL(CELL);
-	 CELLPTR nprq;
+	 CELLPTR nprq = NULL;
 
 #ifdef DBUG
 	 DB_PRINT( "%", ("Handling %%-target [%s : : <prerequisites follow, maybe empty>]",
@@ -915,7 +915,8 @@
 
 	    if( *name == '\'' && name[len-1]=='\'' ){
 	       name[len-1] = '\0';
-	       strcpy(name,name+1);
+	       len = strlen(name+1)+1;
+	       memmove(name,name+1,len);
 	       /* add indirect prerequisite */
 	       _add_indirect_prereq( cur );
 	    }
Index: postprocess/prj/build.lst
===================================================================
--- postprocess/prj/build.lst	(.../tags/DEV300_m55)	(revision 275310)
+++ postprocess/prj/build.lst	(.../cws/cmcfixes62)	(revision 275310)
@@ -1,4 +1,4 @@
-po	postprocess	::	accessibility automation basctl bean fondu BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io JAVAINSTALLER2:javainstaller2 lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins sccomp scp2 scripting sd setup_native slideshow starmath sw sysui testshl2 testtools ucb UnoControls unoxml ure wizards xmerge xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top unodevtools JFREEREPORT:jfreereport REPORTBUILDER:reportbuilder reportdesign SDEXT:sdext SWEXT:swext writerfilter oox NULL
+po	postprocess	::	accessibility automation basctl bean fondu BINFILTER:binfilter chart2 configmgr CRASHREP:crashrep dbaccess desktop dtrans embeddedobj embedserv EPM:epm eventattacher extensions extras fileaccess filter forms fpicker helpcontent2 hwpfilter io JAVAINSTALLER2:javainstaller2 lingucomponent MATHMLDTD:MathMLDTD MSFONTEXTRACT:msfontextract ODK:odk officecfg package padmin psprint_config remotebridges sc scaddins sccomp scp2 scripting sd setup_native shell slideshow starmath sw sysui testshl2 testtools ucb UnoControls unoxml ure wizards xmerge xmlsecurity BITSTREAM_VERA_FONTS:bitstream_vera_fonts DICTIONARIES:dictionaries OOo:pyuno OOo:readlicense_oo SO:top unodevtools JFREEREPORT:jfreereport REPORTBUILDER:reportbuilder reportdesign SDEXT:sdext SWEXT:swext writerfilter oox NULL
 po	postprocess			    	usr1	-	all	po_mkout NULL
 po	postprocess\checkxml		nmake	-	all	po_checkxml NULL
 po	postprocess\packconfig		nmake	-	all	po_packconfig po_checkxml NULL


Index: openoffice.org.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org/devel/openoffice.org.spec,v
retrieving revision 1.1990
retrieving revision 1.1991
diff -u -p -r1.1990 -r1.1991
--- openoffice.org.spec	24 Aug 2009 07:43:45 -0000	1.1990
+++ openoffice.org.spec	24 Aug 2009 13:03:19 -0000	1.1991
@@ -152,11 +152,10 @@ Patch74: workspace.dr72.patch
 Patch75: workspace.vcl103.patch
 Patch76: workspace.cmcfixes61.patch
 Patch77: workspace.os132.patch
-Patch78: openoffice.org-3.1.1.oooXXXXX.dmake.patch
+Patch78: workspace.cmcfixes62.patch
 Patch79: openoffice.org-3.1.0.ooo104280.xmloff.lcl_IsAtEnd.wrong.patch
-Patch80: openoffice.org-3.1.1.ooo104306.moverecentlyused.patch
-Patch81: openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch
-Patch82: workspace.os131.patch
+Patch80: openoffice.org-3.1.1.ooo104329.dbaccess.primarykeys.patch
+Patch81: workspace.os131.patch
 
 %define python_py_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")
 %define instdir %{_libdir}
@@ -1694,11 +1693,10 @@ cat %{PATCH11} >> svtools/source/dialogs
 %patch75 -p0 -b .workspace.vcl103.patch
 %patch76 -p0 -b .workspace.cmcfixes61.patch
 %patch77 -p0 -b .workspace.os132.patch
-%patch78 -p0 -b .oooXXXXX.dmake.patch
+%patch78 -p0 -b .workspace.cmcfixes62.patch
 %patch79 -p0 -b .ooo104280.xmloff.lcl_IsAtEnd.wrong.patch
-%patch80 -p0 -b .ooo104306.moverecentlyused.patch
-%patch81 -p0 -b .ooo104329.dbaccess.primarykeys.patch
-%patch82 -p0 -b .workspace.os131.patch
+%patch80 -p0 -b .ooo104329.dbaccess.primarykeys.patch
+%patch81 -p0 -b .workspace.os131.patch
 
 %build
 echo build start time is `date`, diskspace: `df -h . | tail -n 1`
@@ -4210,6 +4208,8 @@ fi
 %changelog
 * Mon Aug 24 2009 Caolán McNamara <caolanm at redhat.com> - 1:3.1.1-19.2
 - hyphen-as require
+- add workspace.cmcfixes62.patch for 64bit odbc goodness and rebuild
+  against now 64bit-safe unixODBC headers
 
 * Fri Aug 21 2009 Tomas Mraz <tmraz at redhat.com> - 1:3.1.1-19.1.1
 - rebuilt with new openssl


--- openoffice.org-3.1.1.ooo104306.moverecentlyused.patch DELETED ---


--- openoffice.org-3.1.1.oooXXXXX.dmake.patch DELETED ---




More information about the scm-commits mailing list