#include <QtGui/qtextformat.h>
#ifndef QTEXTFORMAT_H
class QTextCharFormat: public QTextFormat{
   /* Some contents are skipped to improve readability */
   public: enum VerticalAlignment{
      AlignNormal = 0,
      AlignSuperScript = 1,
      AlignSubScript = 2,
   };
   /* ... */
};
#endif // QTEXTFORMAT_H