Extending Qt Creator Manual | TextDocumentManipulator

Extending Qt Creator Manual 4.4.0

# TextDocumentManipulator Class

(TextEditor::TextDocumentManipulator)

Inherits: | TextEditor::TextDocumentManipulatorInterface

- List of all members, including inherited members

## Public Functions

| TextDocumentManipulator(TextEditorWidget *textEditorWidget)

## Reimplemented Public Functions

virtual void | autoIndent(int position, int length)
virtual QChar | characterAt(int position) const final
virtual int | currentPosition() const final
virtual void | encourageApply() final
virtual void | insertCodeSnippet(int position, const QString &text) final
virtual void | paste() final
virtual int | positionAt(TextPositionOperation textPositionOperation) const final
virtual bool | replace(int position, int length, const QString &text) final
virtual void | setAutoCompleteSkipPosition(int position) final
virtual void | setCursorPosition(int position) final
virtual QString | textAt(int position, int length) const final
virtual QTextCursor | textCursorAt(int position) const final

- 12 public functions inherited from TextEditor::TextDocumentManipulatorInterface

## Member Function Documentation

### TextDocumentManipulator::TextDocumentManipulator(TextEditorWidget *textEditorWidget)

Default constructs an instance of TextDocumentManipulator.

### `[virtual]` void TextDocumentManipulator::autoIndent(int position, int length)

### `[final virtual]` QChar TextDocumentManipulator::characterAt(int position) const

### `[final virtual]` int TextDocumentManipulator::currentPosition() const

### `[final virtual]` void TextDocumentManipulator::encourageApply()

### `[final virtual]` void TextDocumentManipulator::insertCodeSnippet(int position, const QString &text)

### `[final virtual]` void TextDocumentManipulator::paste()

### `[final virtual]` int TextDocumentManipulator::positionAt(TextPositionOperation textPositionOperation) const

### `[final virtual]` bool TextDocumentManipulator::replace(int position, int length, const QString &text)

### `[final virtual]` void TextDocumentManipulator::setAutoCompleteSkipPosition(int position)

### `[final virtual]` void TextDocumentManipulator::setCursorPosition(int position)

### `[final virtual]` QString TextDocumentManipulator::textAt(int position, int length) const

### `[final virtual]` QTextCursor TextDocumentManipulator::textCursorAt(int position) const