summaryrefslogtreecommitdiffstats
path: root/src/kernel/qrichtext_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qrichtext_p.h')
-rw-r--r--src/kernel/qrichtext_p.h74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/kernel/qrichtext_p.h b/src/kernel/qrichtext_p.h
index 48c7b0a47..4e26675ab 100644
--- a/src/kernel/qrichtext_p.h
+++ b/src/kernel/qrichtext_p.h
@@ -77,7 +77,7 @@
#include "ntqapplication.h"
#endif // QT_H
-#ifndef QT_NO_RICHTEXT
+#ifndef TQT_NO_RICHTEXT
class TQTextDocument;
class TQTextString;
@@ -89,7 +89,7 @@ class TQTextFormatter;
class TQTextIndent;
class TQTextFormatCollection;
class TQStyleSheetItem;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class TQTextCustomItem;
#endif
class TQTextFlow;
@@ -109,7 +109,7 @@ public:
struct CustomData
{
TQTextFormat *format;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQTextCustomItem *custom;
#endif
TQString anchorName;
@@ -142,15 +142,15 @@ public:
int descent() const;
bool isCustom() const { return (type & Custom) != 0; }
TQTextFormat *format() const;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQTextCustomItem *customItem() const;
#endif
void setFormat( TQTextFormat *f );
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
void setCustomItem( TQTextCustomItem *i );
#endif
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
void loseCustomItem();
#endif
@@ -457,7 +457,7 @@ inline TQTextCommandHistory::~TQTextCommandHistory()
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class Q_EXPORT TQTextCustomItem
{
public:
@@ -513,7 +513,7 @@ public:
// MOC_SKIP_END
#endif
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class Q_EXPORT TQTextImage : public TQTextCustomItem
{
public:
@@ -540,7 +540,7 @@ private:
};
#endif
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class Q_EXPORT TQTextHorizontalLine : public TQTextCustomItem
{
public:
@@ -562,7 +562,7 @@ private:
};
#endif
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
#if defined(Q_TEMPLATEDLL)
// MOC_SKIP_BEGIN
Q_TEMPLATE_EXTERN template class Q_EXPORT TQPtrList<TQTextCustomItem>;
@@ -573,7 +573,7 @@ Q_TEMPLATE_EXTERN template class Q_EXPORT TQPtrList<TQTextCustomItem>;
class Q_EXPORT TQTextFlow
{
friend class TQTextDocument;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
friend class TQTextTableCell;
#endif
@@ -590,7 +590,7 @@ public:
virtual int adjustLMargin( int yp, int h, int margin, int space );
virtual int adjustRMargin( int yp, int h, int margin, int space );
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
virtual void registerFloatingItem( TQTextCustomItem* item );
virtual void unregisterFloatingItem( TQTextCustomItem* item );
#endif
@@ -607,7 +607,7 @@ private:
int w;
int pagesize;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQPtrList<TQTextCustomItem> leftItems;
TQPtrList<TQTextCustomItem> rightItems;
#endif
@@ -615,7 +615,7 @@ private:
inline int TQTextFlow::width() const { return w; }
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class TQTextTable;
class Q_EXPORT TQTextTableCell : public TQLayoutItem
@@ -688,7 +688,7 @@ Q_TEMPLATE_EXTERN template class Q_EXPORT TQMap<TQTextCursor*, int>;
// MOC_SKIP_END
#endif
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class Q_EXPORT TQTextTable: public TQTextCustomItem
{
friend class TQTextTableCell;
@@ -751,7 +751,7 @@ private:
#endif
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
class TQTextTableCell;
class TQTextParagraph;
#endif
@@ -776,7 +776,7 @@ class Q_EXPORT TQTextDocument : public TQObject
{
TQ_OBJECT
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
friend class TQTextTableCell;
#endif
friend class TQTextCursor;
@@ -877,14 +877,14 @@ public:
bool inSelection( int selId, const TQPoint &pos ) const;
TQStyleSheet *styleSheet() const { return sheet_; }
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQMimeSourceFactory *mimeSourceFactory() const { return factory_; }
#endif
TQString context() const { return contxt; }
void setStyleSheet( TQStyleSheet *s );
void setDefaultFormat( const TQFont &font, const TQColor &color );
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
void setMimeSourceFactory( TQMimeSourceFactory *f ) { if ( f ) factory_ = f; }
#endif
void setContext( const TQString &c ) { if ( !c.isEmpty() ) contxt = c; }
@@ -906,7 +906,7 @@ public:
bool onlyChanged = FALSE, bool drawCursor = FALSE, TQTextCursor *cursor = 0,
bool resetChanged = TRUE );
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
void registerCustomItem( TQTextCustomItem *i, TQTextParagraph *p );
void unregisterCustomItem( TQTextCustomItem *i, TQTextParagraph *p );
#endif
@@ -920,7 +920,7 @@ public:
void setUseFormatCollection( bool b ) { useFC = b; }
bool useFormatCollection() const { return useFC; }
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQTextTableCell *tableCell() const { return tc; }
void setTableCell( TQTextTableCell *c ) { tc = c; }
#endif
@@ -968,7 +968,7 @@ private:
// HTML parser
bool hasPrefix(const TQChar* doc, int length, int pos, TQChar c);
bool hasPrefix(const TQChar* doc, int length, int pos, const TQString& s);
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQTextCustomItem* parseTable( const TQMap<TQString, TQString> &attr, const TQTextFormat &fmt,
const TQChar* doc, int length, int& pos, TQTextParagraph *curpar );
#endif
@@ -1014,7 +1014,7 @@ private:
TQTextFlow *flow_;
TQTextDocument *par;
TQTextParagraph *parentPar;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQTextTableCell *tc;
#endif
TQBrush *backBrush;
@@ -1026,7 +1026,7 @@ private:
int rightmargin;
TQTextParagraph *minwParag, *curParag;
TQStyleSheet* sheet_;
-#ifndef QT_NO_MIME
+#ifndef TQT_NO_MIME
TQMimeSourceFactory* factory_;
#endif
TQString contxt;
@@ -1272,7 +1272,7 @@ public:
int rightMargin() const;
int lineSpacing() const;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
void registerFloatingItem( TQTextCustomItem *i );
void unregisterFloatingItem( TQTextCustomItem *i );
#endif
@@ -1280,7 +1280,7 @@ public:
void setFullWidth( bool b ) { fullWidth = b; }
bool isFullWidth() const { return fullWidth; }
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQTextTableCell *tableCell() const;
#endif
@@ -1338,7 +1338,7 @@ protected:
private:
TQMap<int, TQTextParagraphSelection> &selections() const;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQPtrList<TQTextCustomItem> &floatingItems() const;
#endif
TQBrush backgroundBrush( const TQColorGroup&cg ) { if ( bgcol ) return *bgcol; return cg.brush( TQColorGroup::Base ); }
@@ -1367,7 +1367,7 @@ private:
int state, id;
TQTextString *str;
TQMap<int, TQTextParagraphSelection> *mSelections;
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
TQPtrList<TQTextCustomItem> *mFloatingItems;
#endif
short utm, ubm, ulm, urm, uflm, ulinespacing;
@@ -1405,7 +1405,7 @@ public:
protected:
virtual TQTextLineStart *formatLine( TQTextParagraph *parag, TQTextString *string, TQTextLineStart *line, TQTextStringChar *start,
TQTextStringChar *last, int align = TQt::AlignAuto, int space = 0 );
-#ifndef QT_NO_COMPLEXTEXT
+#ifndef TQT_NO_COMPLEXTEXT
virtual TQTextLineStart *bidiReorderLine( TQTextParagraph *parag, TQTextString *string, TQTextLineStart *line, TQTextStringChar *start,
TQTextStringChar *last, int align, int space );
#endif
@@ -2013,7 +2013,7 @@ inline TQTextParagraphPseudoDocument *TQTextParagraph::pseudoDocument() const
}
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
inline TQTextTableCell *TQTextParagraph::tableCell() const
{
return hasdoc ? document()->tableCell () : 0;
@@ -2031,7 +2031,7 @@ inline int TQTextParagraph::alignment() const
return align;
}
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
inline void TQTextParagraph::registerFloatingItem( TQTextCustomItem *i )
{
floatingItems().append( i );
@@ -2045,7 +2045,7 @@ inline void TQTextParagraph::unregisterFloatingItem( TQTextCustomItem *i )
inline TQBrush *TQTextParagraph::background() const
{
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
return tableCell() ? tableCell()->backGround() : 0;
#else
return 0;
@@ -2102,7 +2102,7 @@ inline TQTextFormat *TQTextStringChar::format() const
}
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
inline TQTextCustomItem *TQTextStringChar::customItem() const
{
return isCustom() ? d.custom->custom : 0;
@@ -2111,7 +2111,7 @@ inline TQTextCustomItem *TQTextStringChar::customItem() const
inline int TQTextStringChar::height() const
{
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
return !isCustom() ? format()->height() : ( customItem()->placement() == TQTextCustomItem::PlaceInline ? customItem()->height : 0 );
#else
return format()->height();
@@ -2120,7 +2120,7 @@ inline int TQTextStringChar::height() const
inline int TQTextStringChar::ascent() const
{
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
return !isCustom() ? format()->ascent() : ( customItem()->placement() == TQTextCustomItem::PlaceInline ? customItem()->ascent() : 0 );
#else
return format()->ascent();
@@ -2129,13 +2129,13 @@ inline int TQTextStringChar::ascent() const
inline int TQTextStringChar::descent() const
{
-#ifndef QT_NO_TEXTCUSTOMITEM
+#ifndef TQT_NO_TEXTCUSTOMITEM
return !isCustom() ? format()->descent() : 0;
#else
return format()->descent();
#endif
}
-#endif //QT_NO_RICHTEXT
+#endif //TQT_NO_RICHTEXT
#endif