16 #ifndef _QDOCUMENT_LINE_P_H_ 17 #define _QDOCUMENT_LINE_P_H_ 37 #include <QTextLayout> 39 #if QT_VERSION < 0x040400 75 int xToCursor(
int x)
const;
76 int cursorToX(
int i)
const;
78 int wrappedLineForCursor(
int cpos)
const;
80 int documentOffsetToCursor(
int x,
int y)
const;
81 void cursorToDocumentOffset(
int cpos,
int& x,
int& y)
const;
83 QPoint cursorToDocumentOffset(
int cpos)
const;
87 int nextNonSpaceChar(uint pos)
const;
88 int previousNonSpaceChar(
int pos)
const;
90 bool hasFlag(
int flag)
const;
91 void setFlag(
int flag,
bool y =
true)
const;
98 void updateWrap()
const;
102 void clearOverlays();
106 void shiftOverlays(
int position,
int offset);
108 void draw( QPainter *p,
116 inline QString& textBuffer() { setFlag(QDocumentLine::LayoutDirty,
true);
return m_text; }
118 inline void ref() { m_ref.ref(); }
119 inline void deref() {
if ( m_ref ) m_ref.deref();
if ( !m_ref )
delete this; }
126 void applyOverlays()
const;
133 #if QT_VERSION < 0x040400 138 mutable int m_indent;
140 mutable QTextLayout *m_layout;
153 #endif // !_QDOCUMENT_LINE_P_H_ #define QCE_EXPORT
Macro needed for cross-platform shared libraries creation.
Definition: qce-config.h:40
Utility file for shared library creation.
Definition of the QDocumentLine class.
A class storing a document.
Definition: qdocument.h:62
Definition: qdocument_p.h:54
Private implementation of a document line.
Definition: qdocumentline_p.h:55
Definition of the core QNFA syntax engine.
A reference to line objects.
Definition: qdocumentline.h:63
Definition: qdocumentbuffer.h:27