Commits

Anonymous 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.

Comments (0)

Files changed (3)

accessibility/source/extended/accessiblelistbox.cxx

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

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();

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.