Set the selection state of a range of document ids, from firstItem to lastItem, to the selection state indicated by fSelected.