#include <QtGui/qabstracttextdocumentlayout.h> #ifndef QABSTRACTTEXTDOCUMENTLAYOUT_H class QAbstractTextDocumentLayout: public QObject{ /* Some contents are skipped to improve readability */ public: struct Selection{ /* ... */ public: class QTextCursor cursor; /* ... */ }; /* ... */ }; #endif // QABSTRACTTEXTDOCUMENTLAYOUT_H