##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QTextFormat.h
86 lines | 8.3 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTFORMAT_H
#define PYTHONQTWRAPPER_QTEXTFORMAT_H
#include <qtextformat.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qdatastream.h>
#include <qpen.h>
#include <qtextformat.h>
#include <qvector.h>
class PythonQtWrapper_QTextFormat : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Property FormatType ObjectTypes PageBreakFlag )
Q_FLAGS(PageBreakFlags )
enum Property{
ObjectIndex = QTextFormat::ObjectIndex, CssFloat = QTextFormat::CssFloat, LayoutDirection = QTextFormat::LayoutDirection, OutlinePen = QTextFormat::OutlinePen, BackgroundBrush = QTextFormat::BackgroundBrush, ForegroundBrush = QTextFormat::ForegroundBrush, BackgroundImageUrl = QTextFormat::BackgroundImageUrl, BlockAlignment = QTextFormat::BlockAlignment, BlockTopMargin = QTextFormat::BlockTopMargin, BlockBottomMargin = QTextFormat::BlockBottomMargin, BlockLeftMargin = QTextFormat::BlockLeftMargin, BlockRightMargin = QTextFormat::BlockRightMargin, TextIndent = QTextFormat::TextIndent, TabPositions = QTextFormat::TabPositions, BlockIndent = QTextFormat::BlockIndent, BlockNonBreakableLines = QTextFormat::BlockNonBreakableLines, BlockTrailingHorizontalRulerWidth = QTextFormat::BlockTrailingHorizontalRulerWidth, FirstFontProperty = QTextFormat::FirstFontProperty, FontCapitalization = QTextFormat::FontCapitalization, FontLetterSpacing = QTextFormat::FontLetterSpacing, FontWordSpacing = QTextFormat::FontWordSpacing, FontFamily = QTextFormat::FontFamily, FontPointSize = QTextFormat::FontPointSize, FontSizeAdjustment = QTextFormat::FontSizeAdjustment, FontSizeIncrement = QTextFormat::FontSizeIncrement, FontWeight = QTextFormat::FontWeight, FontItalic = QTextFormat::FontItalic, FontUnderline = QTextFormat::FontUnderline, FontOverline = QTextFormat::FontOverline, FontStrikeOut = QTextFormat::FontStrikeOut, FontFixedPitch = QTextFormat::FontFixedPitch, FontPixelSize = QTextFormat::FontPixelSize, LastFontProperty = QTextFormat::LastFontProperty, TextUnderlineColor = QTextFormat::TextUnderlineColor, TextVerticalAlignment = QTextFormat::TextVerticalAlignment, TextOutline = QTextFormat::TextOutline, TextUnderlineStyle = QTextFormat::TextUnderlineStyle, TextToolTip = QTextFormat::TextToolTip, IsAnchor = QTextFormat::IsAnchor, AnchorHref = QTextFormat::AnchorHref, AnchorName = QTextFormat::AnchorName, ObjectType = QTextFormat::ObjectType, ListStyle = QTextFormat::ListStyle, ListIndent = QTextFormat::ListIndent, FrameBorder = QTextFormat::FrameBorder, FrameMargin = QTextFormat::FrameMargin, FramePadding = QTextFormat::FramePadding, FrameWidth = QTextFormat::FrameWidth, FrameHeight = QTextFormat::FrameHeight, FrameTopMargin = QTextFormat::FrameTopMargin, FrameBottomMargin = QTextFormat::FrameBottomMargin, FrameLeftMargin = QTextFormat::FrameLeftMargin, FrameRightMargin = QTextFormat::FrameRightMargin, FrameBorderBrush = QTextFormat::FrameBorderBrush, FrameBorderStyle = QTextFormat::FrameBorderStyle, TableColumns = QTextFormat::TableColumns, TableColumnWidthConstraints = QTextFormat::TableColumnWidthConstraints, TableCellSpacing = QTextFormat::TableCellSpacing, TableCellPadding = QTextFormat::TableCellPadding, TableHeaderRowCount = QTextFormat::TableHeaderRowCount, TableCellRowSpan = QTextFormat::TableCellRowSpan, TableCellColumnSpan = QTextFormat::TableCellColumnSpan, TableCellTopPadding = QTextFormat::TableCellTopPadding, TableCellBottomPadding = QTextFormat::TableCellBottomPadding, TableCellLeftPadding = QTextFormat::TableCellLeftPadding, TableCellRightPadding = QTextFormat::TableCellRightPadding, ImageName = QTextFormat::ImageName, ImageWidth = QTextFormat::ImageWidth, ImageHeight = QTextFormat::ImageHeight, FullWidthSelection = QTextFormat::FullWidthSelection, PageBreakPolicy = QTextFormat::PageBreakPolicy, UserProperty = QTextFormat::UserProperty};
enum FormatType{
InvalidFormat = QTextFormat::InvalidFormat, BlockFormat = QTextFormat::BlockFormat, CharFormat = QTextFormat::CharFormat, ListFormat = QTextFormat::ListFormat, TableFormat = QTextFormat::TableFormat, FrameFormat = QTextFormat::FrameFormat, UserFormat = QTextFormat::UserFormat};
enum ObjectTypes{
NoObject = QTextFormat::NoObject, ImageObject = QTextFormat::ImageObject, TableObject = QTextFormat::TableObject, TableCellObject = QTextFormat::TableCellObject, UserObject = QTextFormat::UserObject};
enum PageBreakFlag{
PageBreak_Auto = QTextFormat::PageBreak_Auto, PageBreak_AlwaysBefore = QTextFormat::PageBreak_AlwaysBefore, PageBreak_AlwaysAfter = QTextFormat::PageBreak_AlwaysAfter};
Q_DECLARE_FLAGS(PageBreakFlags, PageBreakFlag)
public slots:
QTextFormat* new_QTextFormat();
QTextFormat* new_QTextFormat(const QTextFormat& rhs);
QTextFormat* new_QTextFormat(int type);
void delete_QTextFormat(QTextFormat* obj) { delete obj; }
int type(QTextFormat* theWrappedObject) const;
int intProperty(QTextFormat* theWrappedObject, int propertyId) const;
void merge(QTextFormat* theWrappedObject, const QTextFormat& other);
void setObjectType(QTextFormat* theWrappedObject, int type);
bool isTableCellFormat(QTextFormat* theWrappedObject) const;
Qt::LayoutDirection layoutDirection(QTextFormat* theWrappedObject) const;
int objectIndex(QTextFormat* theWrappedObject) const;
void clearBackground(QTextFormat* theWrappedObject);
QTextCharFormat toCharFormat(QTextFormat* theWrappedObject) const;
int propertyCount(QTextFormat* theWrappedObject) const;
QTextListFormat toListFormat(QTextFormat* theWrappedObject) const;
int objectType(QTextFormat* theWrappedObject) const;
QVariant property(QTextFormat* theWrappedObject, int propertyId) const;
bool isValid(QTextFormat* theWrappedObject) const;
void clearProperty(QTextFormat* theWrappedObject, int propertyId);
QMap<int , QVariant > properties(QTextFormat* theWrappedObject) const;
void setLayoutDirection(QTextFormat* theWrappedObject, Qt::LayoutDirection direction);
qreal doubleProperty(QTextFormat* theWrappedObject, int propertyId) const;
void readFrom(QTextFormat* theWrappedObject, QDataStream& arg__1);
void writeTo(QTextFormat* theWrappedObject, QDataStream& arg__1);
void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVariant& value);
bool isListFormat(QTextFormat* theWrappedObject) const;
bool operator_equal(QTextFormat* theWrappedObject, const QTextFormat& rhs) const;
QColor colorProperty(QTextFormat* theWrappedObject, int propertyId) const;
bool isFrameFormat(QTextFormat* theWrappedObject) const;
bool isImageFormat(QTextFormat* theWrappedObject) const;
QString stringProperty(QTextFormat* theWrappedObject, int propertyId) const;
QBrush brushProperty(QTextFormat* theWrappedObject, int propertyId) const;
QPen penProperty(QTextFormat* theWrappedObject, int propertyId) const;
bool boolProperty(QTextFormat* theWrappedObject, int propertyId) const;
QTextFrameFormat toFrameFormat(QTextFormat* theWrappedObject) const;
QTextImageFormat toImageFormat(QTextFormat* theWrappedObject) const;
bool isBlockFormat(QTextFormat* theWrappedObject) const;
QBrush foreground(QTextFormat* theWrappedObject) const;
void setBackground(QTextFormat* theWrappedObject, const QBrush& brush);
bool hasProperty(QTextFormat* theWrappedObject, int propertyId) const;
void setObjectIndex(QTextFormat* theWrappedObject, int object);
QTextLength lengthProperty(QTextFormat* theWrappedObject, int propertyId) const;
QBrush background(QTextFormat* theWrappedObject) const;
void setProperty(QTextFormat* theWrappedObject, int propertyId, const QVector<QTextLength >& lengths);
void clearForeground(QTextFormat* theWrappedObject);
QVector<QTextLength > lengthVectorProperty(QTextFormat* theWrappedObject, int propertyId) const;
QTextTableCellFormat toTableCellFormat(QTextFormat* theWrappedObject) const;
QTextBlockFormat toBlockFormat(QTextFormat* theWrappedObject) const;
void setForeground(QTextFormat* theWrappedObject, const QBrush& brush);
bool isTableFormat(QTextFormat* theWrappedObject) const;
QTextTableFormat toTableFormat(QTextFormat* theWrappedObject) const;
bool isCharFormat(QTextFormat* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTEXTFORMAT_H