Added setObjectRectType, setObjectRectState and localized brush and pen