Tag: cws_src680_oj14
User: oj      
Date: 06/01/03 05:21:27

Modified:
 /dba/dbaccess/source/ui/dlg/
  indexdialog.cxx

Log:
 RESYNC: (1.22-1.23); FILE MERGED

File Changes:

Directory: /dba/dbaccess/source/ui/dlg/
=======================================

File [changed]: indexdialog.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/indexdialog.cxx?r1=1.22.4.1&r2=1.22.4.2
Delta lines:  +13 -13
---------------------
--- indexdialog.cxx     3 Jan 2006 07:49:10 -0000       1.22.4.1
+++ indexdialog.cxx     3 Jan 2006 13:21:24 -0000       1.22.4.2
@@ -329,7 +329,7 @@
                if (pSelected)
                {
                        // is the current entry modified?
-                       Indexes::const_iterator aSelectedPos = 
m_pIndexes->begin() + reinterpret_cast<sal_Int32>(pSelected->GetUserData());
+                       Indexes::const_iterator aSelectedPos = 
m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(pSelected->GetUserData());
                        m_aActions.EnableItem(ID_INDEX_SAVE, 
aSelectedPos->isModified() || aSelectedPos->isNew());
                        m_aActions.EnableItem(ID_INDEX_RESET, 
aSelectedPos->isModified() || aSelectedPos->isNew());
             bSelectedAnything = bSelectedAnything && 
!aSelectedPos->bPrimaryKey;
@@ -385,7 +385,7 @@
        {
                DBG_ASSERT(_pEntry, "DbaIndexDialog::implCommit: invalid 
entry!");
 
-               Indexes::iterator aCommitPos = m_pIndexes->begin() + 
reinterpret_cast< sal_Int32 >(_pEntry->GetUserData());
+               Indexes::iterator aCommitPos = m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData());
 
                // if it's not a new index, remove it
                // (we can't modify indexes, only drop'n'insert)
@@ -493,7 +493,7 @@
        sal_Bool DbaIndexDialog::implDropIndex(SvLBoxEntry* _pEntry, sal_Bool 
_bRemoveFromCollection)
        {
                // do the drop
-               Indexes::iterator aDropPos = m_pIndexes->begin() + 
reinterpret_cast< sal_Int32 >(_pEntry->GetUserData());
+               Indexes::iterator aDropPos = m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData());
                DBG_ASSERT(aDropPos != m_pIndexes->end(), 
"DbaIndexDialog::OnDropIndex: did not find the index in my collection!");
 
                SQLExceptionInfo aExceptionInfo;
@@ -575,7 +575,7 @@
                SvLBoxEntry* pSelected = m_aIndexes.FirstSelected();
                DBG_ASSERT(pSelected, "DbaIndexDialog::OnResetIndex: invalid 
call!");
 
-               Indexes::iterator aResetPos = m_pIndexes->begin() + 
reinterpret_cast< sal_Int32 >(pSelected->GetUserData());
+               Indexes::iterator aResetPos = m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(pSelected->GetUserData());
 
                if (aResetPos->isNew())
                {
@@ -648,7 +648,7 @@
                if (pSelected)
                {
                        // the descriptor
-                       Indexes::const_iterator aSelected = m_pIndexes->begin() 
+ reinterpret_cast<sal_Int32>(pSelected->GetUserData());
+                       Indexes::const_iterator aSelected = m_pIndexes->begin() 
+ reinterpret_cast<sal_IntPtr>(pSelected->GetUserData());
                        
                        if (aSelected->isModified() || aSelected->isNew())
                        {
@@ -685,7 +685,7 @@
        //------------------------------------------------------------------
        IMPL_LINK( DbaIndexDialog, OnEntryEdited, SvLBoxEntry*, _pEntry )
        {
-               Indexes::iterator aPosition = m_pIndexes->begin() + 
reinterpret_cast<sal_Int32>(_pEntry->GetUserData());
+               Indexes::iterator aPosition = m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData());
                
                DBG_ASSERT(aPosition >= m_pIndexes->begin() && aPosition < 
m_pIndexes->end(),
                        "DbaIndexDialog::OnEntryEdited: invalid entry!");
@@ -734,7 +734,7 @@
                        if (m_pFields->IsModified() && 
!m_pFields->SaveModified())
                                return sal_False;
 
-                       Indexes::iterator aPreviouslySelected = 
m_pIndexes->begin() + 
reinterpret_cast<sal_Int32>(m_pPreviousSelection->GetUserData());
+                       Indexes::iterator aPreviouslySelected = 
m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(m_pPreviousSelection->GetUserData());
 
                        // the unique flag
                        aPreviouslySelected->bUnique = m_aUnique.IsChecked();
@@ -795,7 +795,7 @@
        {
                if (m_pPreviousSelection)
                {
-                       Indexes::iterator aPreviouslySelected = 
m_pIndexes->begin() + 
reinterpret_cast<sal_Int32>(m_pPreviousSelection->GetUserData());
+                       Indexes::iterator aPreviouslySelected = 
m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(m_pPreviousSelection->GetUserData());
 
                        if (!implSaveModified())
                                return sal_False;
@@ -812,7 +812,7 @@
        IMPL_LINK( DbaIndexDialog, OnModified, void*, NOTINTERESTEDIN )
        {
                DBG_ASSERT(m_pPreviousSelection, "DbaIndexDialog, OnModified: 
invalid call!");
-               Indexes::iterator aPosition = m_pIndexes->begin() + 
reinterpret_cast<sal_Int32>(m_pPreviousSelection->GetUserData());
+               Indexes::iterator aPosition = m_pIndexes->begin() + 
reinterpret_cast<sal_IntPtr>(m_pPreviousSelection->GetUserData());
 
                aPosition->setModified(sal_True);
                updateToolbox();
@@ -826,7 +826,7 @@
                if (_pEntry)
                {
                        // the descriptor of the selected index
-                       Indexes::const_iterator aSelectedIndex = 
m_pIndexes->begin() + reinterpret_cast<sal_Int32>(_pEntry->GetUserData());
+                       Indexes::const_iterator aSelectedIndex = 
m_pIndexes->begin() + reinterpret_cast<sal_IntPtr>(_pEntry->GetUserData());
 
                        // fill the controls
                        m_aUnique.Check(aSelectedIndex->bUnique);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to