Quick tip: if you need to type \bar{x} in open office:

x <ctrl> <shft> U0304 <enter>

does the trick!

Or, within Insert –> special characters, look for combining diacritical marks, just before Basic Greek, and insert that after the x.