summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-write/qstylesheet.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-write/qstylesheet.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-write/qstylesheet.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/noncore/apps/opie-write/qstylesheet.h b/noncore/apps/opie-write/qstylesheet.h
index bb209fa..cb786f5 100644
--- a/noncore/apps/opie-write/qstylesheet.h
+++ b/noncore/apps/opie-write/qstylesheet.h
@@ -99,48 +99,52 @@ public:
99 99
100 int logicalFontSizeStep() const; 100 int logicalFontSizeStep() const;
101 void setLogicalFontSizeStep( int s ); 101 void setLogicalFontSizeStep( int s );
102 102
103 int fontSize() const; 103 int fontSize() const;
104 void setFontSize(int s); 104 void setFontSize(int s);
105 105
106 QString fontFamily() const; 106 QString fontFamily() const;
107 void setFontFamily( const QString& ); 107 void setFontFamily( const QString& );
108 108
109 int numberOfColumns() const; 109 int numberOfColumns() const;
110 void setNumberOfColumns(int ncols); 110 void setNumberOfColumns(int ncols);
111 111
112 QColor color() const; 112 QColor color() const;
113 void setColor( const QColor &); 113 void setColor( const QColor &);
114 114
115 bool fontItalic() const; 115 bool fontItalic() const;
116 void setFontItalic( bool ); 116 void setFontItalic( bool );
117 bool definesFontItalic() const; 117 bool definesFontItalic() const;
118 118
119 bool fontUnderline() const; 119 bool fontUnderline() const;
120 void setFontUnderline( bool ); 120 void setFontUnderline( bool );
121 bool definesFontUnderline() const; 121 bool definesFontUnderline() const;
122 122
123 bool fontStrikeOut() const;
124 void setFontStrikeOut( bool );
125 bool definesFontStrikeOut() const;
126
123 bool isAnchor() const; 127 bool isAnchor() const;
124 void setAnchor(bool anc); 128 void setAnchor(bool anc);
125 129
126 enum WhiteSpaceMode { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap }; 130 enum WhiteSpaceMode { WhiteSpaceNormal, WhiteSpacePre, WhiteSpaceNoWrap };
127 WhiteSpaceMode whiteSpaceMode() const; 131 WhiteSpaceMode whiteSpaceMode() const;
128 void setWhiteSpaceMode(WhiteSpaceMode m); 132 void setWhiteSpaceMode(WhiteSpaceMode m);
129 133
130 enum Margin { 134 enum Margin {
131 MarginLeft, 135 MarginLeft,
132 MarginRight, 136 MarginRight,
133 MarginTop, 137 MarginTop,
134 MarginBottom, 138 MarginBottom,
135 MarginFirstLine, 139 MarginFirstLine,
136 MarginAll, 140 MarginAll,
137 MarginVertical, 141 MarginVertical,
138 MarginHorizontal 142 MarginHorizontal
139 }; 143 };
140 144
141 int margin( Margin m) const; 145 int margin( Margin m) const;
142 void setMargin( Margin, int); 146 void setMargin( Margin, int);
143 147
144 enum ListStyle { 148 enum ListStyle {
145 ListDisc, 149 ListDisc,
146 ListCircle, 150 ListCircle,
@@ -150,52 +154,52 @@ public:
150 ListUpperAlpha 154 ListUpperAlpha
151 }; 155 };
152 156
153 ListStyle listStyle() const; 157 ListStyle listStyle() const;
154 void setListStyle( ListStyle ); 158 void setListStyle( ListStyle );
155 159
156 QString contexts() const; 160 QString contexts() const;
157 void setContexts( const QString& ); 161 void setContexts( const QString& );
158 bool allowedInContext( const QStyleSheetItem* ) const; 162 bool allowedInContext( const QStyleSheetItem* ) const;
159 163
160 bool selfNesting() const; 164 bool selfNesting() const;
161 void setSelfNesting( bool ); 165 void setSelfNesting( bool );
162 166
163 void setLineSpacing( int ls ); 167 void setLineSpacing( int ls );
164 int lineSpacing() const; 168 int lineSpacing() const;
165 169
166private: 170private:
167 void init(); 171 void init();
168 QStyleSheetItemData* d; 172 QStyleSheetItemData* d;
169}; 173};
170 174
171 175
172#if defined(Q_TEMPLATEDLL) 176#if defined(Q_TEMPLATEDLL)
173// MOC_SKIP_BEGIN 177// MOC_SKIP_BEGIN
174template class Q_EXPORT QDict<QStyleSheetItem>; 178Q_TEMPLATE_EXTERN template class Q_EXPORT QDict<QStyleSheetItem>;
175template class Q_EXPORT QValueList< QPtrVector<QStyleSheetItem> >; 179Q_TEMPLATE_EXTERN template class Q_EXPORT QValueList< QPtrVector<QStyleSheetItem> >;
176template class Q_EXPORT QPtrVector<QStyleSheetItem>; 180Q_TEMPLATE_EXTERN template class Q_EXPORT QPtrVector<QStyleSheetItem>;
177template class Q_EXPORT QValueList<QStyleSheetItem::ListStyle>; 181Q_TEMPLATE_EXTERN template class Q_EXPORT QValueList<QStyleSheetItem::ListStyle>;
178// MOC_SKIP_END 182// MOC_SKIP_END
179#endif 183#endif
180 184
181class QTextCustomItem; 185class QTextCustomItem;
182 186
183class Q_EXPORT QStyleSheet : public QObject 187class Q_EXPORT QStyleSheet : public QObject
184{ 188{
185 Q_OBJECT 189 Q_OBJECT
186public: 190public:
187 QStyleSheet( QObject *parent=0, const char *name=0 ); 191 QStyleSheet( QObject *parent=0, const char *name=0 );
188 virtual ~QStyleSheet(); 192 virtual ~QStyleSheet();
189 193
190 static QStyleSheet* defaultSheet(); 194 static QStyleSheet* defaultSheet();
191 static void setDefaultSheet( QStyleSheet* ); 195 static void setDefaultSheet( QStyleSheet* );
192 196
193 197
194 QStyleSheetItem* item( const QString& name); 198 QStyleSheetItem* item( const QString& name);
195 const QStyleSheetItem* item( const QString& name) const; 199 const QStyleSheetItem* item( const QString& name) const;
196 200
197 void insert( QStyleSheetItem* item); 201 void insert( QStyleSheetItem* item);
198 202
199 virtual QTextCustomItem* tag( const QString& name, 203 virtual QTextCustomItem* tag( const QString& name,
200 const QMap<QString, QString> &attr, 204 const QMap<QString, QString> &attr,
201 const QString& context, 205 const QString& context,