This procedure inserts the currently selected type of item. The item type is selected in the main XF window from one of the three lists. The procedure takes one parameter that can be ``add'' or ``config''. This parameter specifies the way that the new element is inserted. ``Adding'' means that the inserted widget is created with default parameters, ``configuring'' means that the widget is configured by the user first and then inserted.