PythonQtWrapper_QTextCursor.cpp
341 lines
| 10.1 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QTextCursor.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QTextBlock> | ||
#include <QTextDocumentFragment> | ||||
#include <QVariant> | ||||
#include <qtextcursor.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtextdocumentfragment.h> | ||||
#include <qtextformat.h> | ||||
#include <qtextlist.h> | ||||
#include <qtextobject.h> | ||||
#include <qtexttable.h> | ||||
QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor() | ||||
{ | ||||
return new QTextCursor(); } | ||||
QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(QTextDocument* document) | ||||
{ | ||||
return new QTextCursor(document); } | ||||
QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(QTextFrame* frame) | ||||
{ | ||||
return new QTextCursor(frame); } | ||||
QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(const QTextBlock& block) | ||||
{ | ||||
return new QTextCursor(block); } | ||||
QTextCursor* PythonQtWrapper_QTextCursor::new_QTextCursor(const QTextCursor& cursor) | ||||
{ | ||||
return new QTextCursor(cursor); } | ||||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertText(QTextCursor* theWrappedObject, const QString& text, const QTextCharFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertText(text, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextCursor::position(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->position()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextList* PythonQtWrapper_QTextCursor::createList(QTextCursor* theWrappedObject, QTextListFormat::Style style) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->createList(style)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextCursor::selectionStart(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->selectionStart()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::isNull(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isNull()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextTable* PythonQtWrapper_QTextCursor::insertTable(QTextCursor* theWrappedObject, int rows, int cols, const QTextTableFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->insertTable(rows, cols, format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertText(QTextCursor* theWrappedObject, const QString& text) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertText(text)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCharFormat PythonQtWrapper_QTextCursor::charFormat(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->charFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextTable* PythonQtWrapper_QTextCursor::currentTable(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->currentTable()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::atEnd(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->atEnd()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertHtml(QTextCursor* theWrappedObject, const QString& html) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertHtml(html)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format, const QTextCharFormat& charFormat) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertBlock(format, charFormat)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::setCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setCharFormat(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::visualNavigation(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->visualNavigation()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertFragment(QTextCursor* theWrappedObject, const QTextDocumentFragment& fragment) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertFragment(fragment)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::setVisualNavigation(QTextCursor* theWrappedObject, bool b) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setVisualNavigation(b)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::setPosition(QTextCursor* theWrappedObject, int pos, QTextCursor::MoveMode mode) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setPosition(pos, mode)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlock PythonQtWrapper_QTextCursor::block(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->block()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::atBlockStart(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->atBlockStart()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextCursor::columnNumber(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->columnNumber()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::mergeBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& modifier) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->mergeBlockFormat(modifier)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextBlockFormat PythonQtWrapper_QTextCursor::blockFormat(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->blockFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextTable* PythonQtWrapper_QTextCursor::insertTable(QTextCursor* theWrappedObject, int rows, int cols) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->insertTable(rows, cols)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextCursor::anchor(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->anchor()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::movePosition(QTextCursor* theWrappedObject, QTextCursor::MoveOperation op, QTextCursor::MoveMode arg__2, int n) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->movePosition(op, arg__2, n)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextCursor::blockNumber(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->blockNumber()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertBlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::isCopyOf(QTextCursor* theWrappedObject, const QTextCursor& other) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isCopyOf(other)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format, QTextFrameFormat::Position alignment) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertImage(format, alignment)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QTextCursor::selectedText(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->selectedText()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::hasSelection(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->hasSelection()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertBlock(QTextCursor* theWrappedObject, const QTextBlockFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertBlock(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QTextImageFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertImage(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::operator_equal(QTextCursor* theWrappedObject, const QTextCursor& rhs) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)== rhs); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::deleteChar(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->deleteChar()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::insertImage(QTextCursor* theWrappedObject, const QString& name) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertImage(name)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::endEditBlock(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->endEditBlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::joinPreviousEditBlock(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->joinPreviousEditBlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::select(QTextCursor* theWrappedObject, QTextCursor::SelectionType selection) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->select(selection)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextCharFormat PythonQtWrapper_QTextCursor::blockCharFormat(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->blockCharFormat()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::atStart(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->atStart()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::hasComplexSelection(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->hasComplexSelection()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::selectedTableCells(QTextCursor* theWrappedObject, int* firstRow, int* numRows, int* firstColumn, int* numColumns) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->selectedTableCells(firstRow, numRows, firstColumn, numColumns)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::removeSelectedText(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->removeSelectedText()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextList* PythonQtWrapper_QTextCursor::insertList(QTextCursor* theWrappedObject, const QTextListFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->insertList(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextFrame* PythonQtWrapper_QTextCursor::insertFrame(QTextCursor* theWrappedObject, const QTextFrameFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->insertFrame(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::mergeBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->mergeBlockCharFormat(modifier)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::atBlockEnd(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->atBlockEnd()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::clearSelection(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->clearSelection()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::setBlockFormat(QTextCursor* theWrappedObject, const QTextBlockFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setBlockFormat(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextList* PythonQtWrapper_QTextCursor::currentList(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->currentList()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextList* PythonQtWrapper_QTextCursor::createList(QTextCursor* theWrappedObject, const QTextListFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->createList(format)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextFrame* PythonQtWrapper_QTextCursor::currentFrame(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->currentFrame()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::deletePreviousChar(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->deletePreviousChar()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::beginEditBlock(QTextCursor* theWrappedObject) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->beginEditBlock()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QTextCursor::mergeCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& modifier) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->mergeCharFormat(modifier)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QTextCursor::selectionEnd(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->selectionEnd()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextList* PythonQtWrapper_QTextCursor::insertList(QTextCursor* theWrappedObject, QTextListFormat::Style style) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->insertList(style)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QTextCursor::operator_less(QTextCursor* theWrappedObject, const QTextCursor& rhs) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( (*theWrappedObject)< rhs); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QTextDocumentFragment PythonQtWrapper_QTextCursor::selection(QTextCursor* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->selection()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QTextCursor::setBlockCharFormat(QTextCursor* theWrappedObject, const QTextCharFormat& format) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setBlockCharFormat(format)); | ||
florianlink
|
r13 | } | ||