1 //******************************************************************************
2 //  Copyright (c) 2005-2013 by Jan Van hijfte
3 //
4 //  See the included file COPYING.TXT for details about the copyright.
5 //
6 //  This program is distributed in the hope that it will be useful,
7 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 //******************************************************************************
10 
11 
12 #ifndef QTEXTFORMAT_C_H
13 #define QTEXTFORMAT_C_H
14 
15 #include <QtGui>
16 #include "pascalbind.h"
17 
18 C_EXPORT QTextLengthH QTextLength_Create();
19 C_EXPORT void QTextLength_Destroy(QTextLengthH handle);
20 C_EXPORT QTextLengthH QTextLength_Create2(QTextLength::Type type, qreal value);
21 C_EXPORT QTextLength::Type QTextLength_type(QTextLengthH handle);
22 C_EXPORT qreal QTextLength_value(QTextLengthH handle, qreal maximumLength);
23 C_EXPORT qreal QTextLength_rawValue(QTextLengthH handle);
24 C_EXPORT QTextFormatH QTextFormat_Create();
25 C_EXPORT void QTextFormat_Destroy(QTextFormatH handle);
26 C_EXPORT QTextFormatH QTextFormat_Create2(int type);
27 C_EXPORT QTextFormatH QTextFormat_Create3(const QTextFormatH rhs);
28 C_EXPORT void QTextFormat_swap(QTextFormatH handle, QTextFormatH other);
29 C_EXPORT void QTextFormat_merge(QTextFormatH handle, const QTextFormatH other);
30 C_EXPORT bool QTextFormat_isEmpty(QTextFormatH handle);
31 C_EXPORT bool QTextFormat_isValid(QTextFormatH handle);
32 C_EXPORT int QTextFormat_type(QTextFormatH handle);
33 C_EXPORT int QTextFormat_objectIndex(QTextFormatH handle);
34 C_EXPORT void QTextFormat_setObjectIndex(QTextFormatH handle, int object);
35 C_EXPORT void QTextFormat_property(QTextFormatH handle, QVariantH retval, int propertyId);
36 C_EXPORT void QTextFormat_setProperty(QTextFormatH handle, int propertyId, const QVariantH value);
37 C_EXPORT void QTextFormat_clearProperty(QTextFormatH handle, int propertyId);
38 C_EXPORT bool QTextFormat_hasProperty(QTextFormatH handle, int propertyId);
39 C_EXPORT bool QTextFormat_boolProperty(QTextFormatH handle, int propertyId);
40 C_EXPORT int QTextFormat_intProperty(QTextFormatH handle, int propertyId);
41 C_EXPORT qreal QTextFormat_doubleProperty(QTextFormatH handle, int propertyId);
42 C_EXPORT void QTextFormat_stringProperty(QTextFormatH handle, PWideString retval, int propertyId);
43 C_EXPORT void QTextFormat_colorProperty(QTextFormatH handle, PQColor retval, int propertyId);
44 C_EXPORT void QTextFormat_penProperty(QTextFormatH handle, QPenH retval, int propertyId);
45 C_EXPORT void QTextFormat_brushProperty(QTextFormatH handle, QBrushH retval, int propertyId);
46 C_EXPORT void QTextFormat_lengthProperty(QTextFormatH handle, QTextLengthH retval, int propertyId);
47 C_EXPORT int QTextFormat_propertyCount(QTextFormatH handle);
48 C_EXPORT void QTextFormat_setObjectType(QTextFormatH handle, int type);
49 C_EXPORT int QTextFormat_objectType(QTextFormatH handle);
50 C_EXPORT bool QTextFormat_isCharFormat(QTextFormatH handle);
51 C_EXPORT bool QTextFormat_isBlockFormat(QTextFormatH handle);
52 C_EXPORT bool QTextFormat_isListFormat(QTextFormatH handle);
53 C_EXPORT bool QTextFormat_isFrameFormat(QTextFormatH handle);
54 C_EXPORT bool QTextFormat_isImageFormat(QTextFormatH handle);
55 C_EXPORT bool QTextFormat_isTableFormat(QTextFormatH handle);
56 C_EXPORT bool QTextFormat_isTableCellFormat(QTextFormatH handle);
57 C_EXPORT void QTextFormat_toBlockFormat(QTextFormatH handle, QTextBlockFormatH retval);
58 C_EXPORT void QTextFormat_toCharFormat(QTextFormatH handle, QTextCharFormatH retval);
59 C_EXPORT void QTextFormat_toListFormat(QTextFormatH handle, QTextListFormatH retval);
60 C_EXPORT void QTextFormat_toTableFormat(QTextFormatH handle, QTextTableFormatH retval);
61 C_EXPORT void QTextFormat_toFrameFormat(QTextFormatH handle, QTextFrameFormatH retval);
62 C_EXPORT void QTextFormat_toImageFormat(QTextFormatH handle, QTextImageFormatH retval);
63 C_EXPORT void QTextFormat_toTableCellFormat(QTextFormatH handle, QTextTableCellFormatH retval);
64 C_EXPORT void QTextFormat_setLayoutDirection(QTextFormatH handle, Qt::LayoutDirection direction);
65 C_EXPORT Qt::LayoutDirection QTextFormat_layoutDirection(QTextFormatH handle);
66 C_EXPORT void QTextFormat_setBackground(QTextFormatH handle, const QBrushH brush);
67 C_EXPORT void QTextFormat_background(QTextFormatH handle, QBrushH retval);
68 C_EXPORT void QTextFormat_clearBackground(QTextFormatH handle);
69 C_EXPORT void QTextFormat_setForeground(QTextFormatH handle, const QBrushH brush);
70 C_EXPORT void QTextFormat_foreground(QTextFormatH handle, QBrushH retval);
71 C_EXPORT void QTextFormat_clearForeground(QTextFormatH handle);
72 C_EXPORT QTextCharFormatH QTextCharFormat_Create();
73 C_EXPORT void QTextCharFormat_Destroy(QTextCharFormatH handle);
74 C_EXPORT bool QTextCharFormat_isValid(QTextCharFormatH handle);
75 C_EXPORT void QTextCharFormat_setFont(QTextCharFormatH handle, const QFontH font);
76 C_EXPORT void QTextCharFormat_font(QTextCharFormatH handle, QFontH retval);
77 C_EXPORT void QTextCharFormat_setFontFamily(QTextCharFormatH handle, PWideString family);
78 C_EXPORT void QTextCharFormat_fontFamily(QTextCharFormatH handle, PWideString retval);
79 C_EXPORT void QTextCharFormat_setFontPointSize(QTextCharFormatH handle, qreal size);
80 C_EXPORT qreal QTextCharFormat_fontPointSize(QTextCharFormatH handle);
81 C_EXPORT void QTextCharFormat_setFontWeight(QTextCharFormatH handle, int weight);
82 C_EXPORT int QTextCharFormat_fontWeight(QTextCharFormatH handle);
83 C_EXPORT void QTextCharFormat_setFontItalic(QTextCharFormatH handle, bool italic);
84 C_EXPORT bool QTextCharFormat_fontItalic(QTextCharFormatH handle);
85 C_EXPORT void QTextCharFormat_setFontCapitalization(QTextCharFormatH handle, QFont::Capitalization capitalization);
86 C_EXPORT QFont::Capitalization QTextCharFormat_fontCapitalization(QTextCharFormatH handle);
87 C_EXPORT void QTextCharFormat_setFontLetterSpacingType(QTextCharFormatH handle, QFont::SpacingType letterSpacingType);
88 C_EXPORT QFont::SpacingType QTextCharFormat_fontLetterSpacingType(QTextCharFormatH handle);
89 C_EXPORT void QTextCharFormat_setFontLetterSpacing(QTextCharFormatH handle, qreal spacing);
90 C_EXPORT qreal QTextCharFormat_fontLetterSpacing(QTextCharFormatH handle);
91 C_EXPORT void QTextCharFormat_setFontWordSpacing(QTextCharFormatH handle, qreal spacing);
92 C_EXPORT qreal QTextCharFormat_fontWordSpacing(QTextCharFormatH handle);
93 C_EXPORT void QTextCharFormat_setFontUnderline(QTextCharFormatH handle, bool underline);
94 C_EXPORT bool QTextCharFormat_fontUnderline(QTextCharFormatH handle);
95 C_EXPORT void QTextCharFormat_setFontOverline(QTextCharFormatH handle, bool overline);
96 C_EXPORT bool QTextCharFormat_fontOverline(QTextCharFormatH handle);
97 C_EXPORT void QTextCharFormat_setFontStrikeOut(QTextCharFormatH handle, bool strikeOut);
98 C_EXPORT bool QTextCharFormat_fontStrikeOut(QTextCharFormatH handle);
99 C_EXPORT void QTextCharFormat_setUnderlineColor(QTextCharFormatH handle, const QColorH color);
100 C_EXPORT void QTextCharFormat_underlineColor(QTextCharFormatH handle, PQColor retval);
101 C_EXPORT void QTextCharFormat_setFontFixedPitch(QTextCharFormatH handle, bool fixedPitch);
102 C_EXPORT bool QTextCharFormat_fontFixedPitch(QTextCharFormatH handle);
103 C_EXPORT void QTextCharFormat_setFontStretch(QTextCharFormatH handle, int factor);
104 C_EXPORT int QTextCharFormat_fontStretch(QTextCharFormatH handle);
105 C_EXPORT void QTextCharFormat_setFontStyleHint(QTextCharFormatH handle, QFont::StyleHint hint, QFont::StyleStrategy strategy);
106 C_EXPORT void QTextCharFormat_setFontStyleStrategy(QTextCharFormatH handle, QFont::StyleStrategy strategy);
107 C_EXPORT QFont::StyleHint QTextCharFormat_fontStyleHint(QTextCharFormatH handle);
108 C_EXPORT QFont::StyleStrategy QTextCharFormat_fontStyleStrategy(QTextCharFormatH handle);
109 C_EXPORT void QTextCharFormat_setFontHintingPreference(QTextCharFormatH handle, QFont::HintingPreference hintingPreference);
110 C_EXPORT QFont::HintingPreference QTextCharFormat_fontHintingPreference(QTextCharFormatH handle);
111 C_EXPORT void QTextCharFormat_setFontKerning(QTextCharFormatH handle, bool enable);
112 C_EXPORT bool QTextCharFormat_fontKerning(QTextCharFormatH handle);
113 C_EXPORT void QTextCharFormat_setUnderlineStyle(QTextCharFormatH handle, QTextCharFormat::UnderlineStyle style);
114 C_EXPORT QTextCharFormat::UnderlineStyle QTextCharFormat_underlineStyle(QTextCharFormatH handle);
115 C_EXPORT void QTextCharFormat_setVerticalAlignment(QTextCharFormatH handle, QTextCharFormat::VerticalAlignment alignment);
116 C_EXPORT QTextCharFormat::VerticalAlignment QTextCharFormat_verticalAlignment(QTextCharFormatH handle);
117 C_EXPORT void QTextCharFormat_setTextOutline(QTextCharFormatH handle, const QPenH pen);
118 C_EXPORT void QTextCharFormat_textOutline(QTextCharFormatH handle, QPenH retval);
119 C_EXPORT void QTextCharFormat_setToolTip(QTextCharFormatH handle, PWideString tip);
120 C_EXPORT void QTextCharFormat_toolTip(QTextCharFormatH handle, PWideString retval);
121 C_EXPORT void QTextCharFormat_setAnchor(QTextCharFormatH handle, bool anchor);
122 C_EXPORT bool QTextCharFormat_isAnchor(QTextCharFormatH handle);
123 C_EXPORT void QTextCharFormat_setAnchorHref(QTextCharFormatH handle, PWideString value);
124 C_EXPORT void QTextCharFormat_anchorHref(QTextCharFormatH handle, PWideString retval);
125 C_EXPORT void QTextCharFormat_setAnchorNames(QTextCharFormatH handle, const QStringListH names);
126 C_EXPORT void QTextCharFormat_anchorNames(QTextCharFormatH handle, QStringListH retval);
127 C_EXPORT void QTextCharFormat_setTableCellRowSpan(QTextCharFormatH handle, int tableCellRowSpan);
128 C_EXPORT int QTextCharFormat_tableCellRowSpan(QTextCharFormatH handle);
129 C_EXPORT void QTextCharFormat_setTableCellColumnSpan(QTextCharFormatH handle, int tableCellColumnSpan);
130 C_EXPORT int QTextCharFormat_tableCellColumnSpan(QTextCharFormatH handle);
131 C_EXPORT QTextBlockFormatH QTextBlockFormat_Create();
132 C_EXPORT void QTextBlockFormat_Destroy(QTextBlockFormatH handle);
133 C_EXPORT bool QTextBlockFormat_isValid(QTextBlockFormatH handle);
134 C_EXPORT void QTextBlockFormat_setAlignment(QTextBlockFormatH handle, unsigned int alignment);
135 C_EXPORT unsigned int QTextBlockFormat_alignment(QTextBlockFormatH handle);
136 C_EXPORT void QTextBlockFormat_setTopMargin(QTextBlockFormatH handle, qreal margin);
137 C_EXPORT qreal QTextBlockFormat_topMargin(QTextBlockFormatH handle);
138 C_EXPORT void QTextBlockFormat_setBottomMargin(QTextBlockFormatH handle, qreal margin);
139 C_EXPORT qreal QTextBlockFormat_bottomMargin(QTextBlockFormatH handle);
140 C_EXPORT void QTextBlockFormat_setLeftMargin(QTextBlockFormatH handle, qreal margin);
141 C_EXPORT qreal QTextBlockFormat_leftMargin(QTextBlockFormatH handle);
142 C_EXPORT void QTextBlockFormat_setRightMargin(QTextBlockFormatH handle, qreal margin);
143 C_EXPORT qreal QTextBlockFormat_rightMargin(QTextBlockFormatH handle);
144 C_EXPORT void QTextBlockFormat_setTextIndent(QTextBlockFormatH handle, qreal aindent);
145 C_EXPORT qreal QTextBlockFormat_textIndent(QTextBlockFormatH handle);
146 C_EXPORT void QTextBlockFormat_setIndent(QTextBlockFormatH handle, int indent);
147 C_EXPORT int QTextBlockFormat_indent(QTextBlockFormatH handle);
148 C_EXPORT void QTextBlockFormat_setLineHeight(QTextBlockFormatH handle, qreal height, int heightType);
149 C_EXPORT qreal QTextBlockFormat_lineHeight(QTextBlockFormatH handle, qreal scriptLineHeight, qreal scaling);
150 C_EXPORT qreal QTextBlockFormat_lineHeight2(QTextBlockFormatH handle);
151 C_EXPORT int QTextBlockFormat_lineHeightType(QTextBlockFormatH handle);
152 C_EXPORT void QTextBlockFormat_setNonBreakableLines(QTextBlockFormatH handle, bool b);
153 C_EXPORT bool QTextBlockFormat_nonBreakableLines(QTextBlockFormatH handle);
154 C_EXPORT void QTextBlockFormat_setPageBreakPolicy(QTextBlockFormatH handle, unsigned int flags);
155 C_EXPORT unsigned int QTextBlockFormat_pageBreakPolicy(QTextBlockFormatH handle);
156 C_EXPORT QTextListFormatH QTextListFormat_Create();
157 C_EXPORT void QTextListFormat_Destroy(QTextListFormatH handle);
158 C_EXPORT bool QTextListFormat_isValid(QTextListFormatH handle);
159 C_EXPORT void QTextListFormat_setStyle(QTextListFormatH handle, QTextListFormat::Style style);
160 C_EXPORT QTextListFormat::Style QTextListFormat_style(QTextListFormatH handle);
161 C_EXPORT void QTextListFormat_setIndent(QTextListFormatH handle, int indent);
162 C_EXPORT int QTextListFormat_indent(QTextListFormatH handle);
163 C_EXPORT void QTextListFormat_setNumberPrefix(QTextListFormatH handle, PWideString numberPrefix);
164 C_EXPORT void QTextListFormat_numberPrefix(QTextListFormatH handle, PWideString retval);
165 C_EXPORT void QTextListFormat_setNumberSuffix(QTextListFormatH handle, PWideString numberSuffix);
166 C_EXPORT void QTextListFormat_numberSuffix(QTextListFormatH handle, PWideString retval);
167 C_EXPORT QTextImageFormatH QTextImageFormat_Create();
168 C_EXPORT void QTextImageFormat_Destroy(QTextImageFormatH handle);
169 C_EXPORT bool QTextImageFormat_isValid(QTextImageFormatH handle);
170 C_EXPORT void QTextImageFormat_setName(QTextImageFormatH handle, PWideString name);
171 C_EXPORT void QTextImageFormat_name(QTextImageFormatH handle, PWideString retval);
172 C_EXPORT void QTextImageFormat_setWidth(QTextImageFormatH handle, qreal width);
173 C_EXPORT qreal QTextImageFormat_width(QTextImageFormatH handle);
174 C_EXPORT void QTextImageFormat_setHeight(QTextImageFormatH handle, qreal height);
175 C_EXPORT qreal QTextImageFormat_height(QTextImageFormatH handle);
176 C_EXPORT QTextFrameFormatH QTextFrameFormat_Create();
177 C_EXPORT void QTextFrameFormat_Destroy(QTextFrameFormatH handle);
178 C_EXPORT bool QTextFrameFormat_isValid(QTextFrameFormatH handle);
179 C_EXPORT void QTextFrameFormat_setPosition(QTextFrameFormatH handle, QTextFrameFormat::Position f);
180 C_EXPORT QTextFrameFormat::Position QTextFrameFormat_position(QTextFrameFormatH handle);
181 C_EXPORT void QTextFrameFormat_setBorder(QTextFrameFormatH handle, qreal border);
182 C_EXPORT qreal QTextFrameFormat_border(QTextFrameFormatH handle);
183 C_EXPORT void QTextFrameFormat_setBorderBrush(QTextFrameFormatH handle, const QBrushH brush);
184 C_EXPORT void QTextFrameFormat_borderBrush(QTextFrameFormatH handle, QBrushH retval);
185 C_EXPORT void QTextFrameFormat_setBorderStyle(QTextFrameFormatH handle, QTextFrameFormat::BorderStyle style);
186 C_EXPORT QTextFrameFormat::BorderStyle QTextFrameFormat_borderStyle(QTextFrameFormatH handle);
187 C_EXPORT void QTextFrameFormat_setMargin(QTextFrameFormatH handle, qreal margin);
188 C_EXPORT qreal QTextFrameFormat_margin(QTextFrameFormatH handle);
189 C_EXPORT void QTextFrameFormat_setTopMargin(QTextFrameFormatH handle, qreal margin);
190 C_EXPORT qreal QTextFrameFormat_topMargin(QTextFrameFormatH handle);
191 C_EXPORT void QTextFrameFormat_setBottomMargin(QTextFrameFormatH handle, qreal margin);
192 C_EXPORT qreal QTextFrameFormat_bottomMargin(QTextFrameFormatH handle);
193 C_EXPORT void QTextFrameFormat_setLeftMargin(QTextFrameFormatH handle, qreal margin);
194 C_EXPORT qreal QTextFrameFormat_leftMargin(QTextFrameFormatH handle);
195 C_EXPORT void QTextFrameFormat_setRightMargin(QTextFrameFormatH handle, qreal margin);
196 C_EXPORT qreal QTextFrameFormat_rightMargin(QTextFrameFormatH handle);
197 C_EXPORT void QTextFrameFormat_setPadding(QTextFrameFormatH handle, qreal padding);
198 C_EXPORT qreal QTextFrameFormat_padding(QTextFrameFormatH handle);
199 C_EXPORT void QTextFrameFormat_setWidth(QTextFrameFormatH handle, qreal width);
200 C_EXPORT void QTextFrameFormat_setWidth2(QTextFrameFormatH handle, const QTextLengthH length);
201 C_EXPORT void QTextFrameFormat_width(QTextFrameFormatH handle, QTextLengthH retval);
202 C_EXPORT void QTextFrameFormat_setHeight(QTextFrameFormatH handle, qreal height);
203 C_EXPORT void QTextFrameFormat_setHeight2(QTextFrameFormatH handle, const QTextLengthH height);
204 C_EXPORT void QTextFrameFormat_height(QTextFrameFormatH handle, QTextLengthH retval);
205 C_EXPORT void QTextFrameFormat_setPageBreakPolicy(QTextFrameFormatH handle, unsigned int flags);
206 C_EXPORT unsigned int QTextFrameFormat_pageBreakPolicy(QTextFrameFormatH handle);
207 C_EXPORT QTextTableFormatH QTextTableFormat_Create();
208 C_EXPORT void QTextTableFormat_Destroy(QTextTableFormatH handle);
209 C_EXPORT bool QTextTableFormat_isValid(QTextTableFormatH handle);
210 C_EXPORT int QTextTableFormat_columns(QTextTableFormatH handle);
211 C_EXPORT void QTextTableFormat_setColumns(QTextTableFormatH handle, int columns);
212 C_EXPORT void QTextTableFormat_clearColumnWidthConstraints(QTextTableFormatH handle);
213 C_EXPORT qreal QTextTableFormat_cellSpacing(QTextTableFormatH handle);
214 C_EXPORT void QTextTableFormat_setCellSpacing(QTextTableFormatH handle, qreal spacing);
215 C_EXPORT qreal QTextTableFormat_cellPadding(QTextTableFormatH handle);
216 C_EXPORT void QTextTableFormat_setCellPadding(QTextTableFormatH handle, qreal padding);
217 C_EXPORT void QTextTableFormat_setAlignment(QTextTableFormatH handle, unsigned int alignment);
218 C_EXPORT unsigned int QTextTableFormat_alignment(QTextTableFormatH handle);
219 C_EXPORT void QTextTableFormat_setHeaderRowCount(QTextTableFormatH handle, int count);
220 C_EXPORT int QTextTableFormat_headerRowCount(QTextTableFormatH handle);
221 C_EXPORT QTextTableCellFormatH QTextTableCellFormat_Create();
222 C_EXPORT void QTextTableCellFormat_Destroy(QTextTableCellFormatH handle);
223 C_EXPORT bool QTextTableCellFormat_isValid(QTextTableCellFormatH handle);
224 C_EXPORT void QTextTableCellFormat_setTopPadding(QTextTableCellFormatH handle, qreal padding);
225 C_EXPORT qreal QTextTableCellFormat_topPadding(QTextTableCellFormatH handle);
226 C_EXPORT void QTextTableCellFormat_setBottomPadding(QTextTableCellFormatH handle, qreal padding);
227 C_EXPORT qreal QTextTableCellFormat_bottomPadding(QTextTableCellFormatH handle);
228 C_EXPORT void QTextTableCellFormat_setLeftPadding(QTextTableCellFormatH handle, qreal padding);
229 C_EXPORT qreal QTextTableCellFormat_leftPadding(QTextTableCellFormatH handle);
230 C_EXPORT void QTextTableCellFormat_setRightPadding(QTextTableCellFormatH handle, qreal padding);
231 C_EXPORT qreal QTextTableCellFormat_rightPadding(QTextTableCellFormatH handle);
232 C_EXPORT void QTextTableCellFormat_setPadding(QTextTableCellFormatH handle, qreal padding);
233 
234 #endif
235