added textformat.cpp/.h : TextFormat class