Commits

Frank Schoenheit [fs]  committed f8452c8

accfixes3: replaced SvImpLBox'es usage of VCLEVENT_LISTBOX_SELECT with a dedicated event VCLEVENT_LISTBOX_ENTRYREMOVED
VCLEVENT_LISTBOX_SELECT is used by VCL's ListBox, and the pData parameter passed there is incompatible with what
SvImpLBox passes. So, to avoid confusion, we have a dedicated event now.

  • Participants
  • Parent commits cbf50e3

Comments (0)

Files changed (3)

File accessibility/source/extended/accessiblelistbox.cxx

 						}			
 					}
 					break;
-				case VCLEVENT_LISTBOX_ITEMREMOVED:
+				case VCLEVENT_LISTBOX_ENTRYREMOVED:
 					{
 						SvLBoxEntry* pEntry = static_cast< SvLBoxEntry* >( rVclWindowEvent.GetData() );
 						if ( pEntry )

File svtools/source/contnr/svimpbox.cxx

 	aContextBmpWidthVector.clear();
 
 	// IA2 CWS
-	CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED, NULL );
+	CallEventListeners( VCLEVENT_LISTBOX_ENTRYREMOVED, NULL );
 }
 
 // *********************************************************************
 void SvImpLBox::RemovingEntry( SvLBoxEntry* pEntry )
 {
 	//IAccessibility2 Implementation 2009-----
-	CallEventListeners( VCLEVENT_LISTBOX_ITEMREMOVED , pEntry );
+	CallEventListeners( VCLEVENT_LISTBOX_ENTRYREMOVED , pEntry );
 	//-----IAccessibility2 Implementation 2009
 
 	DestroyAnchor();

File vcl/inc/vcl/vclevent.hxx

 #define VCLEVENT_LISTBOX_FOCUSITEMCHANGED	1180
 // #define VCLEVENT_EDIT_CARETCHANGED  		xxxx	// IA2 CWS. MT: VCL only has selection API - difference for selection_changed vs. caret_changed is handled in accessibility wrapper since OOo 3.2
 //-----IAccessibility2 Implementation 2009
+#define VCLEVENT_LISTBOX_ENTRYREMOVED       1181        // pData = SvLBoxEntry*, or NULL
 
 // VclMenuEvent
 #define VCLEVENT_MENU_ACTIVATE              1200