Re: [dev] What is a SLOT and What is a WHICH?

2009-08-05 Thread Niklas Nebel
On 08/05/09 05:28, Zhu Lihua wrote: I think: if nId > 4999, it's a "Slot". if nId <= 4999 and nId !=0 , it's a "Which". What are the terms "slot" and "which" mean? Which-IDs are used to store items in an ItemSet. For most efficient operation, they should be consecutive, so each module uses i

Re: [dev] What is a SLOT and What is a WHICH?

2009-08-05 Thread Joost Andrae
Hi, have a look at the following wiki page: http://wiki.services.openoffice.org/wiki/Framework/Article/OpenOffice.org_2.x_Commands The column ID contains the so called "Slot IDs". These IDs were used to access UI elements from within a URL object. example: slot:5500 will open the "New Docum

[dev] What is a SLOT and What is a WHICH?

2009-08-04 Thread Zhu Lihua
Hi all, I read the following code in OOo source code(itempool.hxx): #define SFX_WHICH_MAX 4999 static int IsWhich(USHORT nId) { return nId && nId <= SFX_WHICH_MAX; } static int IsSlot(USHORT nId) { return n