An employer can claim the right to all inventions devised by its workers, even in their spare time, according to a federal ruling involving a part-time employee who used her off hours to create ways of linking electronic files to pictures.