1 | // @file ScintillaEdit.cpp |
2 | // Extended version of ScintillaEditBase with a method for each API |
3 | // Copyright (c) 2011 Archaeopteryx Software, Inc. d/b/a Wingware |
4 | |
5 | #include "ScintillaEdit.h" |
6 | |
7 | using namespace Scintilla; |
8 | |
9 | ScintillaEdit::ScintillaEdit(QWidget *parent) : ScintillaEditBase(parent) { |
10 | } |
11 | |
12 | ScintillaEdit::~ScintillaEdit() { |
13 | } |
14 | |
15 | QByteArray ScintillaEdit::TextReturner(int message, uptr_t wParam) const { |
16 | int length = send(message, wParam, 0); |
17 | QByteArray ba(length, '\0'); |
18 | send(message, wParam, (sptr_t)ba.data()); |
19 | // Remove extra NULs |
20 | if (ba.size() > 0 && ba.at(ba.size()-1) == 0) |
21 | ba.chop(1); |
22 | return ba; |
23 | } |
24 | |
25 | QPair<int, int>ScintillaEdit::find_text(int flags, const char *text, int cpMin, int cpMax) { |
26 | struct Sci_TextToFind ft = {{0, 0}, 0, {0, 0}}; |
27 | ft.chrg.cpMin = cpMin; |
28 | ft.chrg.cpMax = cpMax; |
29 | ft.chrgText.cpMin = cpMin; |
30 | ft.chrgText.cpMax = cpMax; |
31 | ft.lpstrText = text; |
32 | |
33 | int start = send(SCI_FINDTEXT, flags, (uptr_t) (&ft)); |
34 | |
35 | return QPair<int,int>(start, ft.chrgText.cpMax); |
36 | } |
37 | |
38 | QByteArray ScintillaEdit::get_text_range(int start, int end) { |
39 | if (start > end) |
40 | start = end; |
41 | |
42 | int length = end-start; |
43 | QByteArray ba(length+1, '\0'); |
44 | struct Sci_TextRange tr = {{start, end}, ba.data()}; |
45 | |
46 | send(SCI_GETTEXTRANGE, 0, (sptr_t)&tr); |
47 | ba.chop(1); // Remove extra NUL |
48 | |
49 | return ba; |
50 | } |
51 | |
52 | ScintillaDocument *ScintillaEdit::get_doc() { |
53 | return new ScintillaDocument(0, (void *)send(SCI_GETDOCPOINTER, 0, 0)); |
54 | } |
55 | |
56 | void ScintillaEdit::set_doc(ScintillaDocument *pdoc_) { |
57 | send(SCI_SETDOCPOINTER, 0, (sptr_t)(pdoc_->pointer())); |
58 | } |
59 | |
60 | long ScintillaEdit::format_range(bool draw, QPaintDevice* target, QPaintDevice* measure, |
61 | const QRect& print_rect, const QRect& page_rect, |
62 | long range_start, long range_end) |
63 | { |
64 | Sci_RangeToFormat to_format; |
65 | |
66 | to_format.hdc = target; |
67 | to_format.hdcTarget = measure; |
68 | |
69 | to_format.rc.left = print_rect.left(); |
70 | to_format.rc.top = print_rect.top(); |
71 | to_format.rc.right = print_rect.right(); |
72 | to_format.rc.bottom = print_rect.bottom(); |
73 | |
74 | to_format.rcPage.left = page_rect.left(); |
75 | to_format.rcPage.top = page_rect.top(); |
76 | to_format.rcPage.right = page_rect.right(); |
77 | to_format.rcPage.bottom = page_rect.bottom(); |
78 | |
79 | to_format.chrg.cpMin = range_start; |
80 | to_format.chrg.cpMax = range_end; |
81 | |
82 | return send(SCI_FORMATRANGE, draw, reinterpret_cast<sptr_t>(&to_format)); |
83 | } |
84 | |
85 | /* ++Autogenerated -- start of section automatically generated from Scintilla.iface */ |
86 | void ScintillaEdit::addText(sptr_t length, const char * text) { |
87 | send(SCI_ADDTEXT, length, (sptr_t)text); |
88 | } |
89 | |
90 | void ScintillaEdit::addStyledText(sptr_t length, const char * c) { |
91 | send(SCI_ADDSTYLEDTEXT, length, (sptr_t)c); |
92 | } |
93 | |
94 | void ScintillaEdit::insertText(sptr_t pos, const char * text) { |
95 | send(SCI_INSERTTEXT, pos, (sptr_t)text); |
96 | } |
97 | |
98 | void ScintillaEdit::changeInsertion(sptr_t length, const char * text) { |
99 | send(SCI_CHANGEINSERTION, length, (sptr_t)text); |
100 | } |
101 | |
102 | void ScintillaEdit::clearAll() { |
103 | send(SCI_CLEARALL, 0, 0); |
104 | } |
105 | |
106 | void ScintillaEdit::deleteRange(sptr_t start, sptr_t lengthDelete) { |
107 | send(SCI_DELETERANGE, start, lengthDelete); |
108 | } |
109 | |
110 | void ScintillaEdit::clearDocumentStyle() { |
111 | send(SCI_CLEARDOCUMENTSTYLE, 0, 0); |
112 | } |
113 | |
114 | sptr_t ScintillaEdit::length() const { |
115 | return send(SCI_GETLENGTH, 0, 0); |
116 | } |
117 | |
118 | sptr_t ScintillaEdit::charAt(sptr_t pos) const { |
119 | return send(SCI_GETCHARAT, pos, 0); |
120 | } |
121 | |
122 | sptr_t ScintillaEdit::currentPos() const { |
123 | return send(SCI_GETCURRENTPOS, 0, 0); |
124 | } |
125 | |
126 | sptr_t ScintillaEdit::anchor() const { |
127 | return send(SCI_GETANCHOR, 0, 0); |
128 | } |
129 | |
130 | sptr_t ScintillaEdit::styleAt(sptr_t pos) const { |
131 | return send(SCI_GETSTYLEAT, pos, 0); |
132 | } |
133 | |
134 | void ScintillaEdit::redo() { |
135 | send(SCI_REDO, 0, 0); |
136 | } |
137 | |
138 | void ScintillaEdit::setUndoCollection(bool collectUndo) { |
139 | send(SCI_SETUNDOCOLLECTION, collectUndo, 0); |
140 | } |
141 | |
142 | void ScintillaEdit::selectAll() { |
143 | send(SCI_SELECTALL, 0, 0); |
144 | } |
145 | |
146 | void ScintillaEdit::setSavePoint() { |
147 | send(SCI_SETSAVEPOINT, 0, 0); |
148 | } |
149 | |
150 | bool ScintillaEdit::canRedo() { |
151 | return send(SCI_CANREDO, 0, 0); |
152 | } |
153 | |
154 | sptr_t ScintillaEdit::markerLineFromHandle(sptr_t markerHandle) { |
155 | return send(SCI_MARKERLINEFROMHANDLE, markerHandle, 0); |
156 | } |
157 | |
158 | void ScintillaEdit::markerDeleteHandle(sptr_t markerHandle) { |
159 | send(SCI_MARKERDELETEHANDLE, markerHandle, 0); |
160 | } |
161 | |
162 | sptr_t ScintillaEdit::markerHandleFromLine(sptr_t line, sptr_t which) { |
163 | return send(SCI_MARKERHANDLEFROMLINE, line, which); |
164 | } |
165 | |
166 | sptr_t ScintillaEdit::markerNumberFromLine(sptr_t line, sptr_t which) { |
167 | return send(SCI_MARKERNUMBERFROMLINE, line, which); |
168 | } |
169 | |
170 | bool ScintillaEdit::undoCollection() const { |
171 | return send(SCI_GETUNDOCOLLECTION, 0, 0); |
172 | } |
173 | |
174 | sptr_t ScintillaEdit::viewWS() const { |
175 | return send(SCI_GETVIEWWS, 0, 0); |
176 | } |
177 | |
178 | void ScintillaEdit::setViewWS(sptr_t viewWS) { |
179 | send(SCI_SETVIEWWS, viewWS, 0); |
180 | } |
181 | |
182 | sptr_t ScintillaEdit::tabDrawMode() const { |
183 | return send(SCI_GETTABDRAWMODE, 0, 0); |
184 | } |
185 | |
186 | void ScintillaEdit::setTabDrawMode(sptr_t tabDrawMode) { |
187 | send(SCI_SETTABDRAWMODE, tabDrawMode, 0); |
188 | } |
189 | |
190 | sptr_t ScintillaEdit::positionFromPoint(sptr_t x, sptr_t y) { |
191 | return send(SCI_POSITIONFROMPOINT, x, y); |
192 | } |
193 | |
194 | sptr_t ScintillaEdit::positionFromPointClose(sptr_t x, sptr_t y) { |
195 | return send(SCI_POSITIONFROMPOINTCLOSE, x, y); |
196 | } |
197 | |
198 | void ScintillaEdit::gotoLine(sptr_t line) { |
199 | send(SCI_GOTOLINE, line, 0); |
200 | } |
201 | |
202 | void ScintillaEdit::gotoPos(sptr_t caret) { |
203 | send(SCI_GOTOPOS, caret, 0); |
204 | } |
205 | |
206 | void ScintillaEdit::setAnchor(sptr_t anchor) { |
207 | send(SCI_SETANCHOR, anchor, 0); |
208 | } |
209 | |
210 | QByteArray ScintillaEdit::getCurLine(sptr_t length) { |
211 | return TextReturner(SCI_GETCURLINE, length); |
212 | } |
213 | |
214 | sptr_t ScintillaEdit::endStyled() const { |
215 | return send(SCI_GETENDSTYLED, 0, 0); |
216 | } |
217 | |
218 | void ScintillaEdit::convertEOLs(sptr_t eolMode) { |
219 | send(SCI_CONVERTEOLS, eolMode, 0); |
220 | } |
221 | |
222 | sptr_t ScintillaEdit::eOLMode() const { |
223 | return send(SCI_GETEOLMODE, 0, 0); |
224 | } |
225 | |
226 | void ScintillaEdit::setEOLMode(sptr_t eolMode) { |
227 | send(SCI_SETEOLMODE, eolMode, 0); |
228 | } |
229 | |
230 | void ScintillaEdit::startStyling(sptr_t start, sptr_t unused) { |
231 | send(SCI_STARTSTYLING, start, unused); |
232 | } |
233 | |
234 | void ScintillaEdit::setStyling(sptr_t length, sptr_t style) { |
235 | send(SCI_SETSTYLING, length, style); |
236 | } |
237 | |
238 | bool ScintillaEdit::bufferedDraw() const { |
239 | return send(SCI_GETBUFFEREDDRAW, 0, 0); |
240 | } |
241 | |
242 | void ScintillaEdit::setBufferedDraw(bool buffered) { |
243 | send(SCI_SETBUFFEREDDRAW, buffered, 0); |
244 | } |
245 | |
246 | void ScintillaEdit::setTabWidth(sptr_t tabWidth) { |
247 | send(SCI_SETTABWIDTH, tabWidth, 0); |
248 | } |
249 | |
250 | sptr_t ScintillaEdit::tabWidth() const { |
251 | return send(SCI_GETTABWIDTH, 0, 0); |
252 | } |
253 | |
254 | void ScintillaEdit::setTabMinimumWidth(sptr_t pixels) { |
255 | send(SCI_SETTABMINIMUMWIDTH, pixels, 0); |
256 | } |
257 | |
258 | sptr_t ScintillaEdit::tabMinimumWidth() const { |
259 | return send(SCI_GETTABMINIMUMWIDTH, 0, 0); |
260 | } |
261 | |
262 | void ScintillaEdit::clearTabStops(sptr_t line) { |
263 | send(SCI_CLEARTABSTOPS, line, 0); |
264 | } |
265 | |
266 | void ScintillaEdit::addTabStop(sptr_t line, sptr_t x) { |
267 | send(SCI_ADDTABSTOP, line, x); |
268 | } |
269 | |
270 | sptr_t ScintillaEdit::getNextTabStop(sptr_t line, sptr_t x) { |
271 | return send(SCI_GETNEXTTABSTOP, line, x); |
272 | } |
273 | |
274 | void ScintillaEdit::setCodePage(sptr_t codePage) { |
275 | send(SCI_SETCODEPAGE, codePage, 0); |
276 | } |
277 | |
278 | void ScintillaEdit::setFontLocale(const char * localeName) { |
279 | send(SCI_SETFONTLOCALE, 0, (sptr_t)localeName); |
280 | } |
281 | |
282 | QByteArray ScintillaEdit::fontLocale() const { |
283 | return TextReturner(SCI_GETFONTLOCALE, 0); |
284 | } |
285 | |
286 | sptr_t ScintillaEdit::iMEInteraction() const { |
287 | return send(SCI_GETIMEINTERACTION, 0, 0); |
288 | } |
289 | |
290 | void ScintillaEdit::setIMEInteraction(sptr_t imeInteraction) { |
291 | send(SCI_SETIMEINTERACTION, imeInteraction, 0); |
292 | } |
293 | |
294 | void ScintillaEdit::markerDefine(sptr_t markerNumber, sptr_t markerSymbol) { |
295 | send(SCI_MARKERDEFINE, markerNumber, markerSymbol); |
296 | } |
297 | |
298 | void ScintillaEdit::markerSetFore(sptr_t markerNumber, sptr_t fore) { |
299 | send(SCI_MARKERSETFORE, markerNumber, fore); |
300 | } |
301 | |
302 | void ScintillaEdit::markerSetBack(sptr_t markerNumber, sptr_t back) { |
303 | send(SCI_MARKERSETBACK, markerNumber, back); |
304 | } |
305 | |
306 | void ScintillaEdit::markerSetBackSelected(sptr_t markerNumber, sptr_t back) { |
307 | send(SCI_MARKERSETBACKSELECTED, markerNumber, back); |
308 | } |
309 | |
310 | void ScintillaEdit::markerSetForeTranslucent(sptr_t markerNumber, sptr_t fore) { |
311 | send(SCI_MARKERSETFORETRANSLUCENT, markerNumber, fore); |
312 | } |
313 | |
314 | void ScintillaEdit::markerSetBackTranslucent(sptr_t markerNumber, sptr_t back) { |
315 | send(SCI_MARKERSETBACKTRANSLUCENT, markerNumber, back); |
316 | } |
317 | |
318 | void ScintillaEdit::markerSetBackSelectedTranslucent(sptr_t markerNumber, sptr_t back) { |
319 | send(SCI_MARKERSETBACKSELECTEDTRANSLUCENT, markerNumber, back); |
320 | } |
321 | |
322 | void ScintillaEdit::markerSetStrokeWidth(sptr_t markerNumber, sptr_t hundredths) { |
323 | send(SCI_MARKERSETSTROKEWIDTH, markerNumber, hundredths); |
324 | } |
325 | |
326 | void ScintillaEdit::markerEnableHighlight(bool enabled) { |
327 | send(SCI_MARKERENABLEHIGHLIGHT, enabled, 0); |
328 | } |
329 | |
330 | sptr_t ScintillaEdit::markerAdd(sptr_t line, sptr_t markerNumber) { |
331 | return send(SCI_MARKERADD, line, markerNumber); |
332 | } |
333 | |
334 | void ScintillaEdit::markerDelete(sptr_t line, sptr_t markerNumber) { |
335 | send(SCI_MARKERDELETE, line, markerNumber); |
336 | } |
337 | |
338 | void ScintillaEdit::markerDeleteAll(sptr_t markerNumber) { |
339 | send(SCI_MARKERDELETEALL, markerNumber, 0); |
340 | } |
341 | |
342 | sptr_t ScintillaEdit::markerGet(sptr_t line) { |
343 | return send(SCI_MARKERGET, line, 0); |
344 | } |
345 | |
346 | sptr_t ScintillaEdit::markerNext(sptr_t lineStart, sptr_t markerMask) { |
347 | return send(SCI_MARKERNEXT, lineStart, markerMask); |
348 | } |
349 | |
350 | sptr_t ScintillaEdit::markerPrevious(sptr_t lineStart, sptr_t markerMask) { |
351 | return send(SCI_MARKERPREVIOUS, lineStart, markerMask); |
352 | } |
353 | |
354 | void ScintillaEdit::markerDefinePixmap(sptr_t markerNumber, const char * pixmap) { |
355 | send(SCI_MARKERDEFINEPIXMAP, markerNumber, (sptr_t)pixmap); |
356 | } |
357 | |
358 | void ScintillaEdit::markerAddSet(sptr_t line, sptr_t markerSet) { |
359 | send(SCI_MARKERADDSET, line, markerSet); |
360 | } |
361 | |
362 | void ScintillaEdit::markerSetAlpha(sptr_t markerNumber, sptr_t alpha) { |
363 | send(SCI_MARKERSETALPHA, markerNumber, alpha); |
364 | } |
365 | |
366 | sptr_t ScintillaEdit::markerLayer(sptr_t markerNumber) const { |
367 | return send(SCI_MARKERGETLAYER, markerNumber, 0); |
368 | } |
369 | |
370 | void ScintillaEdit::markerSetLayer(sptr_t markerNumber, sptr_t layer) { |
371 | send(SCI_MARKERSETLAYER, markerNumber, layer); |
372 | } |
373 | |
374 | void ScintillaEdit::setMarginTypeN(sptr_t margin, sptr_t marginType) { |
375 | send(SCI_SETMARGINTYPEN, margin, marginType); |
376 | } |
377 | |
378 | sptr_t ScintillaEdit::marginTypeN(sptr_t margin) const { |
379 | return send(SCI_GETMARGINTYPEN, margin, 0); |
380 | } |
381 | |
382 | void ScintillaEdit::setMarginWidthN(sptr_t margin, sptr_t pixelWidth) { |
383 | send(SCI_SETMARGINWIDTHN, margin, pixelWidth); |
384 | } |
385 | |
386 | sptr_t ScintillaEdit::marginWidthN(sptr_t margin) const { |
387 | return send(SCI_GETMARGINWIDTHN, margin, 0); |
388 | } |
389 | |
390 | void ScintillaEdit::setMarginMaskN(sptr_t margin, sptr_t mask) { |
391 | send(SCI_SETMARGINMASKN, margin, mask); |
392 | } |
393 | |
394 | sptr_t ScintillaEdit::marginMaskN(sptr_t margin) const { |
395 | return send(SCI_GETMARGINMASKN, margin, 0); |
396 | } |
397 | |
398 | void ScintillaEdit::setMarginSensitiveN(sptr_t margin, bool sensitive) { |
399 | send(SCI_SETMARGINSENSITIVEN, margin, sensitive); |
400 | } |
401 | |
402 | bool ScintillaEdit::marginSensitiveN(sptr_t margin) const { |
403 | return send(SCI_GETMARGINSENSITIVEN, margin, 0); |
404 | } |
405 | |
406 | void ScintillaEdit::setMarginCursorN(sptr_t margin, sptr_t cursor) { |
407 | send(SCI_SETMARGINCURSORN, margin, cursor); |
408 | } |
409 | |
410 | sptr_t ScintillaEdit::marginCursorN(sptr_t margin) const { |
411 | return send(SCI_GETMARGINCURSORN, margin, 0); |
412 | } |
413 | |
414 | void ScintillaEdit::setMarginBackN(sptr_t margin, sptr_t back) { |
415 | send(SCI_SETMARGINBACKN, margin, back); |
416 | } |
417 | |
418 | sptr_t ScintillaEdit::marginBackN(sptr_t margin) const { |
419 | return send(SCI_GETMARGINBACKN, margin, 0); |
420 | } |
421 | |
422 | void ScintillaEdit::setMargins(sptr_t margins) { |
423 | send(SCI_SETMARGINS, margins, 0); |
424 | } |
425 | |
426 | sptr_t ScintillaEdit::margins() const { |
427 | return send(SCI_GETMARGINS, 0, 0); |
428 | } |
429 | |
430 | void ScintillaEdit::styleClearAll() { |
431 | send(SCI_STYLECLEARALL, 0, 0); |
432 | } |
433 | |
434 | void ScintillaEdit::styleSetFore(sptr_t style, sptr_t fore) { |
435 | send(SCI_STYLESETFORE, style, fore); |
436 | } |
437 | |
438 | void ScintillaEdit::styleSetBack(sptr_t style, sptr_t back) { |
439 | send(SCI_STYLESETBACK, style, back); |
440 | } |
441 | |
442 | void ScintillaEdit::styleSetBold(sptr_t style, bool bold) { |
443 | send(SCI_STYLESETBOLD, style, bold); |
444 | } |
445 | |
446 | void ScintillaEdit::styleSetItalic(sptr_t style, bool italic) { |
447 | send(SCI_STYLESETITALIC, style, italic); |
448 | } |
449 | |
450 | void ScintillaEdit::styleSetSize(sptr_t style, sptr_t sizePoints) { |
451 | send(SCI_STYLESETSIZE, style, sizePoints); |
452 | } |
453 | |
454 | void ScintillaEdit::styleSetFont(sptr_t style, const char * fontName) { |
455 | send(SCI_STYLESETFONT, style, (sptr_t)fontName); |
456 | } |
457 | |
458 | void ScintillaEdit::styleSetEOLFilled(sptr_t style, bool eolFilled) { |
459 | send(SCI_STYLESETEOLFILLED, style, eolFilled); |
460 | } |
461 | |
462 | void ScintillaEdit::styleResetDefault() { |
463 | send(SCI_STYLERESETDEFAULT, 0, 0); |
464 | } |
465 | |
466 | void ScintillaEdit::styleSetUnderline(sptr_t style, bool underline) { |
467 | send(SCI_STYLESETUNDERLINE, style, underline); |
468 | } |
469 | |
470 | sptr_t ScintillaEdit::styleFore(sptr_t style) const { |
471 | return send(SCI_STYLEGETFORE, style, 0); |
472 | } |
473 | |
474 | sptr_t ScintillaEdit::styleBack(sptr_t style) const { |
475 | return send(SCI_STYLEGETBACK, style, 0); |
476 | } |
477 | |
478 | bool ScintillaEdit::styleBold(sptr_t style) const { |
479 | return send(SCI_STYLEGETBOLD, style, 0); |
480 | } |
481 | |
482 | bool ScintillaEdit::styleItalic(sptr_t style) const { |
483 | return send(SCI_STYLEGETITALIC, style, 0); |
484 | } |
485 | |
486 | sptr_t ScintillaEdit::styleSize(sptr_t style) const { |
487 | return send(SCI_STYLEGETSIZE, style, 0); |
488 | } |
489 | |
490 | QByteArray ScintillaEdit::styleFont(sptr_t style) const { |
491 | return TextReturner(SCI_STYLEGETFONT, style); |
492 | } |
493 | |
494 | bool ScintillaEdit::styleEOLFilled(sptr_t style) const { |
495 | return send(SCI_STYLEGETEOLFILLED, style, 0); |
496 | } |
497 | |
498 | bool ScintillaEdit::styleUnderline(sptr_t style) const { |
499 | return send(SCI_STYLEGETUNDERLINE, style, 0); |
500 | } |
501 | |
502 | sptr_t ScintillaEdit::styleCase(sptr_t style) const { |
503 | return send(SCI_STYLEGETCASE, style, 0); |
504 | } |
505 | |
506 | sptr_t ScintillaEdit::styleCharacterSet(sptr_t style) const { |
507 | return send(SCI_STYLEGETCHARACTERSET, style, 0); |
508 | } |
509 | |
510 | bool ScintillaEdit::styleVisible(sptr_t style) const { |
511 | return send(SCI_STYLEGETVISIBLE, style, 0); |
512 | } |
513 | |
514 | bool ScintillaEdit::styleChangeable(sptr_t style) const { |
515 | return send(SCI_STYLEGETCHANGEABLE, style, 0); |
516 | } |
517 | |
518 | bool ScintillaEdit::styleHotSpot(sptr_t style) const { |
519 | return send(SCI_STYLEGETHOTSPOT, style, 0); |
520 | } |
521 | |
522 | void ScintillaEdit::styleSetCase(sptr_t style, sptr_t caseVisible) { |
523 | send(SCI_STYLESETCASE, style, caseVisible); |
524 | } |
525 | |
526 | void ScintillaEdit::styleSetSizeFractional(sptr_t style, sptr_t sizeHundredthPoints) { |
527 | send(SCI_STYLESETSIZEFRACTIONAL, style, sizeHundredthPoints); |
528 | } |
529 | |
530 | sptr_t ScintillaEdit::styleSizeFractional(sptr_t style) const { |
531 | return send(SCI_STYLEGETSIZEFRACTIONAL, style, 0); |
532 | } |
533 | |
534 | void ScintillaEdit::styleSetWeight(sptr_t style, sptr_t weight) { |
535 | send(SCI_STYLESETWEIGHT, style, weight); |
536 | } |
537 | |
538 | sptr_t ScintillaEdit::styleWeight(sptr_t style) const { |
539 | return send(SCI_STYLEGETWEIGHT, style, 0); |
540 | } |
541 | |
542 | void ScintillaEdit::styleSetCharacterSet(sptr_t style, sptr_t characterSet) { |
543 | send(SCI_STYLESETCHARACTERSET, style, characterSet); |
544 | } |
545 | |
546 | void ScintillaEdit::styleSetHotSpot(sptr_t style, bool hotspot) { |
547 | send(SCI_STYLESETHOTSPOT, style, hotspot); |
548 | } |
549 | |
550 | void ScintillaEdit::styleSetCheckMonospaced(sptr_t style, bool checkMonospaced) { |
551 | send(SCI_STYLESETCHECKMONOSPACED, style, checkMonospaced); |
552 | } |
553 | |
554 | bool ScintillaEdit::styleCheckMonospaced(sptr_t style) const { |
555 | return send(SCI_STYLEGETCHECKMONOSPACED, style, 0); |
556 | } |
557 | |
558 | void ScintillaEdit::setElementColour(sptr_t element, sptr_t colourElement) { |
559 | send(SCI_SETELEMENTCOLOUR, element, colourElement); |
560 | } |
561 | |
562 | sptr_t ScintillaEdit::elementColour(sptr_t element) const { |
563 | return send(SCI_GETELEMENTCOLOUR, element, 0); |
564 | } |
565 | |
566 | void ScintillaEdit::resetElementColour(sptr_t element) { |
567 | send(SCI_RESETELEMENTCOLOUR, element, 0); |
568 | } |
569 | |
570 | bool ScintillaEdit::elementIsSet(sptr_t element) const { |
571 | return send(SCI_GETELEMENTISSET, element, 0); |
572 | } |
573 | |
574 | bool ScintillaEdit::elementAllowsTranslucent(sptr_t element) const { |
575 | return send(SCI_GETELEMENTALLOWSTRANSLUCENT, element, 0); |
576 | } |
577 | |
578 | sptr_t ScintillaEdit::elementBaseColour(sptr_t element) const { |
579 | return send(SCI_GETELEMENTBASECOLOUR, element, 0); |
580 | } |
581 | |
582 | void ScintillaEdit::setSelFore(bool useSetting, sptr_t fore) { |
583 | send(SCI_SETSELFORE, useSetting, fore); |
584 | } |
585 | |
586 | void ScintillaEdit::setSelBack(bool useSetting, sptr_t back) { |
587 | send(SCI_SETSELBACK, useSetting, back); |
588 | } |
589 | |
590 | sptr_t ScintillaEdit::selAlpha() const { |
591 | return send(SCI_GETSELALPHA, 0, 0); |
592 | } |
593 | |
594 | void ScintillaEdit::setSelAlpha(sptr_t alpha) { |
595 | send(SCI_SETSELALPHA, alpha, 0); |
596 | } |
597 | |
598 | bool ScintillaEdit::selEOLFilled() const { |
599 | return send(SCI_GETSELEOLFILLED, 0, 0); |
600 | } |
601 | |
602 | void ScintillaEdit::setSelEOLFilled(bool filled) { |
603 | send(SCI_SETSELEOLFILLED, filled, 0); |
604 | } |
605 | |
606 | sptr_t ScintillaEdit::selectionLayer() const { |
607 | return send(SCI_GETSELECTIONLAYER, 0, 0); |
608 | } |
609 | |
610 | void ScintillaEdit::setSelectionLayer(sptr_t layer) { |
611 | send(SCI_SETSELECTIONLAYER, layer, 0); |
612 | } |
613 | |
614 | sptr_t ScintillaEdit::caretLineLayer() const { |
615 | return send(SCI_GETCARETLINELAYER, 0, 0); |
616 | } |
617 | |
618 | void ScintillaEdit::setCaretLineLayer(sptr_t layer) { |
619 | send(SCI_SETCARETLINELAYER, layer, 0); |
620 | } |
621 | |
622 | void ScintillaEdit::setCaretFore(sptr_t fore) { |
623 | send(SCI_SETCARETFORE, fore, 0); |
624 | } |
625 | |
626 | void ScintillaEdit::assignCmdKey(sptr_t keyDefinition, sptr_t sciCommand) { |
627 | send(SCI_ASSIGNCMDKEY, keyDefinition, sciCommand); |
628 | } |
629 | |
630 | void ScintillaEdit::clearCmdKey(sptr_t keyDefinition) { |
631 | send(SCI_CLEARCMDKEY, keyDefinition, 0); |
632 | } |
633 | |
634 | void ScintillaEdit::clearAllCmdKeys() { |
635 | send(SCI_CLEARALLCMDKEYS, 0, 0); |
636 | } |
637 | |
638 | void ScintillaEdit::setStylingEx(sptr_t length, const char * styles) { |
639 | send(SCI_SETSTYLINGEX, length, (sptr_t)styles); |
640 | } |
641 | |
642 | void ScintillaEdit::styleSetVisible(sptr_t style, bool visible) { |
643 | send(SCI_STYLESETVISIBLE, style, visible); |
644 | } |
645 | |
646 | sptr_t ScintillaEdit::caretPeriod() const { |
647 | return send(SCI_GETCARETPERIOD, 0, 0); |
648 | } |
649 | |
650 | void ScintillaEdit::setCaretPeriod(sptr_t periodMilliseconds) { |
651 | send(SCI_SETCARETPERIOD, periodMilliseconds, 0); |
652 | } |
653 | |
654 | void ScintillaEdit::setWordChars(const char * characters) { |
655 | send(SCI_SETWORDCHARS, 0, (sptr_t)characters); |
656 | } |
657 | |
658 | QByteArray ScintillaEdit::wordChars() const { |
659 | return TextReturner(SCI_GETWORDCHARS, 0); |
660 | } |
661 | |
662 | void ScintillaEdit::setCharacterCategoryOptimization(sptr_t countCharacters) { |
663 | send(SCI_SETCHARACTERCATEGORYOPTIMIZATION, countCharacters, 0); |
664 | } |
665 | |
666 | sptr_t ScintillaEdit::characterCategoryOptimization() const { |
667 | return send(SCI_GETCHARACTERCATEGORYOPTIMIZATION, 0, 0); |
668 | } |
669 | |
670 | void ScintillaEdit::beginUndoAction() { |
671 | send(SCI_BEGINUNDOACTION, 0, 0); |
672 | } |
673 | |
674 | void ScintillaEdit::endUndoAction() { |
675 | send(SCI_ENDUNDOACTION, 0, 0); |
676 | } |
677 | |
678 | void ScintillaEdit::indicSetStyle(sptr_t indicator, sptr_t indicatorStyle) { |
679 | send(SCI_INDICSETSTYLE, indicator, indicatorStyle); |
680 | } |
681 | |
682 | sptr_t ScintillaEdit::indicStyle(sptr_t indicator) const { |
683 | return send(SCI_INDICGETSTYLE, indicator, 0); |
684 | } |
685 | |
686 | void ScintillaEdit::indicSetFore(sptr_t indicator, sptr_t fore) { |
687 | send(SCI_INDICSETFORE, indicator, fore); |
688 | } |
689 | |
690 | sptr_t ScintillaEdit::indicFore(sptr_t indicator) const { |
691 | return send(SCI_INDICGETFORE, indicator, 0); |
692 | } |
693 | |
694 | void ScintillaEdit::indicSetUnder(sptr_t indicator, bool under) { |
695 | send(SCI_INDICSETUNDER, indicator, under); |
696 | } |
697 | |
698 | bool ScintillaEdit::indicUnder(sptr_t indicator) const { |
699 | return send(SCI_INDICGETUNDER, indicator, 0); |
700 | } |
701 | |
702 | void ScintillaEdit::indicSetHoverStyle(sptr_t indicator, sptr_t indicatorStyle) { |
703 | send(SCI_INDICSETHOVERSTYLE, indicator, indicatorStyle); |
704 | } |
705 | |
706 | sptr_t ScintillaEdit::indicHoverStyle(sptr_t indicator) const { |
707 | return send(SCI_INDICGETHOVERSTYLE, indicator, 0); |
708 | } |
709 | |
710 | void ScintillaEdit::indicSetHoverFore(sptr_t indicator, sptr_t fore) { |
711 | send(SCI_INDICSETHOVERFORE, indicator, fore); |
712 | } |
713 | |
714 | sptr_t ScintillaEdit::indicHoverFore(sptr_t indicator) const { |
715 | return send(SCI_INDICGETHOVERFORE, indicator, 0); |
716 | } |
717 | |
718 | void ScintillaEdit::indicSetFlags(sptr_t indicator, sptr_t flags) { |
719 | send(SCI_INDICSETFLAGS, indicator, flags); |
720 | } |
721 | |
722 | sptr_t ScintillaEdit::indicFlags(sptr_t indicator) const { |
723 | return send(SCI_INDICGETFLAGS, indicator, 0); |
724 | } |
725 | |
726 | void ScintillaEdit::indicSetStrokeWidth(sptr_t indicator, sptr_t hundredths) { |
727 | send(SCI_INDICSETSTROKEWIDTH, indicator, hundredths); |
728 | } |
729 | |
730 | sptr_t ScintillaEdit::indicStrokeWidth(sptr_t indicator) const { |
731 | return send(SCI_INDICGETSTROKEWIDTH, indicator, 0); |
732 | } |
733 | |
734 | void ScintillaEdit::setWhitespaceFore(bool useSetting, sptr_t fore) { |
735 | send(SCI_SETWHITESPACEFORE, useSetting, fore); |
736 | } |
737 | |
738 | void ScintillaEdit::setWhitespaceBack(bool useSetting, sptr_t back) { |
739 | send(SCI_SETWHITESPACEBACK, useSetting, back); |
740 | } |
741 | |
742 | void ScintillaEdit::setWhitespaceSize(sptr_t size) { |
743 | send(SCI_SETWHITESPACESIZE, size, 0); |
744 | } |
745 | |
746 | sptr_t ScintillaEdit::whitespaceSize() const { |
747 | return send(SCI_GETWHITESPACESIZE, 0, 0); |
748 | } |
749 | |
750 | void ScintillaEdit::setLineState(sptr_t line, sptr_t state) { |
751 | send(SCI_SETLINESTATE, line, state); |
752 | } |
753 | |
754 | sptr_t ScintillaEdit::lineState(sptr_t line) const { |
755 | return send(SCI_GETLINESTATE, line, 0); |
756 | } |
757 | |
758 | sptr_t ScintillaEdit::maxLineState() const { |
759 | return send(SCI_GETMAXLINESTATE, 0, 0); |
760 | } |
761 | |
762 | bool ScintillaEdit::caretLineVisible() const { |
763 | return send(SCI_GETCARETLINEVISIBLE, 0, 0); |
764 | } |
765 | |
766 | void ScintillaEdit::setCaretLineVisible(bool show) { |
767 | send(SCI_SETCARETLINEVISIBLE, show, 0); |
768 | } |
769 | |
770 | sptr_t ScintillaEdit::caretLineBack() const { |
771 | return send(SCI_GETCARETLINEBACK, 0, 0); |
772 | } |
773 | |
774 | void ScintillaEdit::setCaretLineBack(sptr_t back) { |
775 | send(SCI_SETCARETLINEBACK, back, 0); |
776 | } |
777 | |
778 | sptr_t ScintillaEdit::caretLineFrame() const { |
779 | return send(SCI_GETCARETLINEFRAME, 0, 0); |
780 | } |
781 | |
782 | void ScintillaEdit::setCaretLineFrame(sptr_t width) { |
783 | send(SCI_SETCARETLINEFRAME, width, 0); |
784 | } |
785 | |
786 | void ScintillaEdit::styleSetChangeable(sptr_t style, bool changeable) { |
787 | send(SCI_STYLESETCHANGEABLE, style, changeable); |
788 | } |
789 | |
790 | void ScintillaEdit::autoCShow(sptr_t lengthEntered, const char * itemList) { |
791 | send(SCI_AUTOCSHOW, lengthEntered, (sptr_t)itemList); |
792 | } |
793 | |
794 | void ScintillaEdit::autoCCancel() { |
795 | send(SCI_AUTOCCANCEL, 0, 0); |
796 | } |
797 | |
798 | bool ScintillaEdit::autoCActive() { |
799 | return send(SCI_AUTOCACTIVE, 0, 0); |
800 | } |
801 | |
802 | sptr_t ScintillaEdit::autoCPosStart() { |
803 | return send(SCI_AUTOCPOSSTART, 0, 0); |
804 | } |
805 | |
806 | void ScintillaEdit::autoCComplete() { |
807 | send(SCI_AUTOCCOMPLETE, 0, 0); |
808 | } |
809 | |
810 | void ScintillaEdit::autoCStops(const char * characterSet) { |
811 | send(SCI_AUTOCSTOPS, 0, (sptr_t)characterSet); |
812 | } |
813 | |
814 | void ScintillaEdit::autoCSetSeparator(sptr_t separatorCharacter) { |
815 | send(SCI_AUTOCSETSEPARATOR, separatorCharacter, 0); |
816 | } |
817 | |
818 | sptr_t ScintillaEdit::autoCSeparator() const { |
819 | return send(SCI_AUTOCGETSEPARATOR, 0, 0); |
820 | } |
821 | |
822 | void ScintillaEdit::autoCSelect(const char * select) { |
823 | send(SCI_AUTOCSELECT, 0, (sptr_t)select); |
824 | } |
825 | |
826 | void ScintillaEdit::autoCSetCancelAtStart(bool cancel) { |
827 | send(SCI_AUTOCSETCANCELATSTART, cancel, 0); |
828 | } |
829 | |
830 | bool ScintillaEdit::autoCCancelAtStart() const { |
831 | return send(SCI_AUTOCGETCANCELATSTART, 0, 0); |
832 | } |
833 | |
834 | void ScintillaEdit::autoCSetFillUps(const char * characterSet) { |
835 | send(SCI_AUTOCSETFILLUPS, 0, (sptr_t)characterSet); |
836 | } |
837 | |
838 | void ScintillaEdit::autoCSetChooseSingle(bool chooseSingle) { |
839 | send(SCI_AUTOCSETCHOOSESINGLE, chooseSingle, 0); |
840 | } |
841 | |
842 | bool ScintillaEdit::autoCChooseSingle() const { |
843 | return send(SCI_AUTOCGETCHOOSESINGLE, 0, 0); |
844 | } |
845 | |
846 | void ScintillaEdit::autoCSetIgnoreCase(bool ignoreCase) { |
847 | send(SCI_AUTOCSETIGNORECASE, ignoreCase, 0); |
848 | } |
849 | |
850 | bool ScintillaEdit::autoCIgnoreCase() const { |
851 | return send(SCI_AUTOCGETIGNORECASE, 0, 0); |
852 | } |
853 | |
854 | void ScintillaEdit::userListShow(sptr_t listType, const char * itemList) { |
855 | send(SCI_USERLISTSHOW, listType, (sptr_t)itemList); |
856 | } |
857 | |
858 | void ScintillaEdit::autoCSetAutoHide(bool autoHide) { |
859 | send(SCI_AUTOCSETAUTOHIDE, autoHide, 0); |
860 | } |
861 | |
862 | bool ScintillaEdit::autoCAutoHide() const { |
863 | return send(SCI_AUTOCGETAUTOHIDE, 0, 0); |
864 | } |
865 | |
866 | void ScintillaEdit::autoCSetOptions(sptr_t options) { |
867 | send(SCI_AUTOCSETOPTIONS, options, 0); |
868 | } |
869 | |
870 | sptr_t ScintillaEdit::autoCOptions() const { |
871 | return send(SCI_AUTOCGETOPTIONS, 0, 0); |
872 | } |
873 | |
874 | void ScintillaEdit::autoCSetDropRestOfWord(bool dropRestOfWord) { |
875 | send(SCI_AUTOCSETDROPRESTOFWORD, dropRestOfWord, 0); |
876 | } |
877 | |
878 | bool ScintillaEdit::autoCDropRestOfWord() const { |
879 | return send(SCI_AUTOCGETDROPRESTOFWORD, 0, 0); |
880 | } |
881 | |
882 | void ScintillaEdit::registerImage(sptr_t type, const char * xpmData) { |
883 | send(SCI_REGISTERIMAGE, type, (sptr_t)xpmData); |
884 | } |
885 | |
886 | void ScintillaEdit::clearRegisteredImages() { |
887 | send(SCI_CLEARREGISTEREDIMAGES, 0, 0); |
888 | } |
889 | |
890 | sptr_t ScintillaEdit::autoCTypeSeparator() const { |
891 | return send(SCI_AUTOCGETTYPESEPARATOR, 0, 0); |
892 | } |
893 | |
894 | void ScintillaEdit::autoCSetTypeSeparator(sptr_t separatorCharacter) { |
895 | send(SCI_AUTOCSETTYPESEPARATOR, separatorCharacter, 0); |
896 | } |
897 | |
898 | void ScintillaEdit::autoCSetMaxWidth(sptr_t characterCount) { |
899 | send(SCI_AUTOCSETMAXWIDTH, characterCount, 0); |
900 | } |
901 | |
902 | sptr_t ScintillaEdit::autoCMaxWidth() const { |
903 | return send(SCI_AUTOCGETMAXWIDTH, 0, 0); |
904 | } |
905 | |
906 | void ScintillaEdit::autoCSetMaxHeight(sptr_t rowCount) { |
907 | send(SCI_AUTOCSETMAXHEIGHT, rowCount, 0); |
908 | } |
909 | |
910 | sptr_t ScintillaEdit::autoCMaxHeight() const { |
911 | return send(SCI_AUTOCGETMAXHEIGHT, 0, 0); |
912 | } |
913 | |
914 | void ScintillaEdit::setIndent(sptr_t indentSize) { |
915 | send(SCI_SETINDENT, indentSize, 0); |
916 | } |
917 | |
918 | sptr_t ScintillaEdit::indent() const { |
919 | return send(SCI_GETINDENT, 0, 0); |
920 | } |
921 | |
922 | void ScintillaEdit::setUseTabs(bool useTabs) { |
923 | send(SCI_SETUSETABS, useTabs, 0); |
924 | } |
925 | |
926 | bool ScintillaEdit::useTabs() const { |
927 | return send(SCI_GETUSETABS, 0, 0); |
928 | } |
929 | |
930 | void ScintillaEdit::setLineIndentation(sptr_t line, sptr_t indentation) { |
931 | send(SCI_SETLINEINDENTATION, line, indentation); |
932 | } |
933 | |
934 | sptr_t ScintillaEdit::lineIndentation(sptr_t line) const { |
935 | return send(SCI_GETLINEINDENTATION, line, 0); |
936 | } |
937 | |
938 | sptr_t ScintillaEdit::lineIndentPosition(sptr_t line) const { |
939 | return send(SCI_GETLINEINDENTPOSITION, line, 0); |
940 | } |
941 | |
942 | sptr_t ScintillaEdit::column(sptr_t pos) const { |
943 | return send(SCI_GETCOLUMN, pos, 0); |
944 | } |
945 | |
946 | sptr_t ScintillaEdit::countCharacters(sptr_t start, sptr_t end) { |
947 | return send(SCI_COUNTCHARACTERS, start, end); |
948 | } |
949 | |
950 | sptr_t ScintillaEdit::countCodeUnits(sptr_t start, sptr_t end) { |
951 | return send(SCI_COUNTCODEUNITS, start, end); |
952 | } |
953 | |
954 | void ScintillaEdit::setHScrollBar(bool visible) { |
955 | send(SCI_SETHSCROLLBAR, visible, 0); |
956 | } |
957 | |
958 | bool ScintillaEdit::hScrollBar() const { |
959 | return send(SCI_GETHSCROLLBAR, 0, 0); |
960 | } |
961 | |
962 | void ScintillaEdit::setIndentationGuides(sptr_t indentView) { |
963 | send(SCI_SETINDENTATIONGUIDES, indentView, 0); |
964 | } |
965 | |
966 | sptr_t ScintillaEdit::indentationGuides() const { |
967 | return send(SCI_GETINDENTATIONGUIDES, 0, 0); |
968 | } |
969 | |
970 | void ScintillaEdit::setHighlightGuide(sptr_t column) { |
971 | send(SCI_SETHIGHLIGHTGUIDE, column, 0); |
972 | } |
973 | |
974 | sptr_t ScintillaEdit::highlightGuide() const { |
975 | return send(SCI_GETHIGHLIGHTGUIDE, 0, 0); |
976 | } |
977 | |
978 | sptr_t ScintillaEdit::lineEndPosition(sptr_t line) const { |
979 | return send(SCI_GETLINEENDPOSITION, line, 0); |
980 | } |
981 | |
982 | sptr_t ScintillaEdit::codePage() const { |
983 | return send(SCI_GETCODEPAGE, 0, 0); |
984 | } |
985 | |
986 | sptr_t ScintillaEdit::caretFore() const { |
987 | return send(SCI_GETCARETFORE, 0, 0); |
988 | } |
989 | |
990 | bool ScintillaEdit::readOnly() const { |
991 | return send(SCI_GETREADONLY, 0, 0); |
992 | } |
993 | |
994 | void ScintillaEdit::setCurrentPos(sptr_t caret) { |
995 | send(SCI_SETCURRENTPOS, caret, 0); |
996 | } |
997 | |
998 | void ScintillaEdit::setSelectionStart(sptr_t anchor) { |
999 | send(SCI_SETSELECTIONSTART, anchor, 0); |
1000 | } |
1001 | |
1002 | sptr_t ScintillaEdit::selectionStart() const { |
1003 | return send(SCI_GETSELECTIONSTART, 0, 0); |
1004 | } |
1005 | |
1006 | void ScintillaEdit::setSelectionEnd(sptr_t caret) { |
1007 | send(SCI_SETSELECTIONEND, caret, 0); |
1008 | } |
1009 | |
1010 | sptr_t ScintillaEdit::selectionEnd() const { |
1011 | return send(SCI_GETSELECTIONEND, 0, 0); |
1012 | } |
1013 | |
1014 | void ScintillaEdit::setEmptySelection(sptr_t caret) { |
1015 | send(SCI_SETEMPTYSELECTION, caret, 0); |
1016 | } |
1017 | |
1018 | void ScintillaEdit::setPrintMagnification(sptr_t magnification) { |
1019 | send(SCI_SETPRINTMAGNIFICATION, magnification, 0); |
1020 | } |
1021 | |
1022 | sptr_t ScintillaEdit::printMagnification() const { |
1023 | return send(SCI_GETPRINTMAGNIFICATION, 0, 0); |
1024 | } |
1025 | |
1026 | void ScintillaEdit::setPrintColourMode(sptr_t mode) { |
1027 | send(SCI_SETPRINTCOLOURMODE, mode, 0); |
1028 | } |
1029 | |
1030 | sptr_t ScintillaEdit::printColourMode() const { |
1031 | return send(SCI_GETPRINTCOLOURMODE, 0, 0); |
1032 | } |
1033 | |
1034 | sptr_t ScintillaEdit::firstVisibleLine() const { |
1035 | return send(SCI_GETFIRSTVISIBLELINE, 0, 0); |
1036 | } |
1037 | |
1038 | QByteArray ScintillaEdit::getLine(sptr_t line) { |
1039 | return TextReturner(SCI_GETLINE, line); |
1040 | } |
1041 | |
1042 | sptr_t ScintillaEdit::lineCount() const { |
1043 | return send(SCI_GETLINECOUNT, 0, 0); |
1044 | } |
1045 | |
1046 | void ScintillaEdit::allocateLines(sptr_t lines) { |
1047 | send(SCI_ALLOCATELINES, lines, 0); |
1048 | } |
1049 | |
1050 | void ScintillaEdit::setMarginLeft(sptr_t pixelWidth) { |
1051 | send(SCI_SETMARGINLEFT, 0, pixelWidth); |
1052 | } |
1053 | |
1054 | sptr_t ScintillaEdit::marginLeft() const { |
1055 | return send(SCI_GETMARGINLEFT, 0, 0); |
1056 | } |
1057 | |
1058 | void ScintillaEdit::setMarginRight(sptr_t pixelWidth) { |
1059 | send(SCI_SETMARGINRIGHT, 0, pixelWidth); |
1060 | } |
1061 | |
1062 | sptr_t ScintillaEdit::marginRight() const { |
1063 | return send(SCI_GETMARGINRIGHT, 0, 0); |
1064 | } |
1065 | |
1066 | bool ScintillaEdit::modify() const { |
1067 | return send(SCI_GETMODIFY, 0, 0); |
1068 | } |
1069 | |
1070 | void ScintillaEdit::setSel(sptr_t anchor, sptr_t caret) { |
1071 | send(SCI_SETSEL, anchor, caret); |
1072 | } |
1073 | |
1074 | QByteArray ScintillaEdit::getSelText() { |
1075 | return TextReturner(SCI_GETSELTEXT, 0); |
1076 | } |
1077 | |
1078 | void ScintillaEdit::hideSelection(bool hide) { |
1079 | send(SCI_HIDESELECTION, hide, 0); |
1080 | } |
1081 | |
1082 | sptr_t ScintillaEdit::pointXFromPosition(sptr_t pos) { |
1083 | return send(SCI_POINTXFROMPOSITION, 0, pos); |
1084 | } |
1085 | |
1086 | sptr_t ScintillaEdit::pointYFromPosition(sptr_t pos) { |
1087 | return send(SCI_POINTYFROMPOSITION, 0, pos); |
1088 | } |
1089 | |
1090 | sptr_t ScintillaEdit::lineFromPosition(sptr_t pos) { |
1091 | return send(SCI_LINEFROMPOSITION, pos, 0); |
1092 | } |
1093 | |
1094 | sptr_t ScintillaEdit::positionFromLine(sptr_t line) { |
1095 | return send(SCI_POSITIONFROMLINE, line, 0); |
1096 | } |
1097 | |
1098 | void ScintillaEdit::lineScroll(sptr_t columns, sptr_t lines) { |
1099 | send(SCI_LINESCROLL, columns, lines); |
1100 | } |
1101 | |
1102 | void ScintillaEdit::scrollCaret() { |
1103 | send(SCI_SCROLLCARET, 0, 0); |
1104 | } |
1105 | |
1106 | void ScintillaEdit::scrollRange(sptr_t secondary, sptr_t primary) { |
1107 | send(SCI_SCROLLRANGE, secondary, primary); |
1108 | } |
1109 | |
1110 | void ScintillaEdit::replaceSel(const char * text) { |
1111 | send(SCI_REPLACESEL, 0, (sptr_t)text); |
1112 | } |
1113 | |
1114 | void ScintillaEdit::setReadOnly(bool readOnly) { |
1115 | send(SCI_SETREADONLY, readOnly, 0); |
1116 | } |
1117 | |
1118 | void ScintillaEdit::null() { |
1119 | send(SCI_NULL, 0, 0); |
1120 | } |
1121 | |
1122 | bool ScintillaEdit::canPaste() { |
1123 | return send(SCI_CANPASTE, 0, 0); |
1124 | } |
1125 | |
1126 | bool ScintillaEdit::canUndo() { |
1127 | return send(SCI_CANUNDO, 0, 0); |
1128 | } |
1129 | |
1130 | void ScintillaEdit::emptyUndoBuffer() { |
1131 | send(SCI_EMPTYUNDOBUFFER, 0, 0); |
1132 | } |
1133 | |
1134 | void ScintillaEdit::undo() { |
1135 | send(SCI_UNDO, 0, 0); |
1136 | } |
1137 | |
1138 | void ScintillaEdit::cut() { |
1139 | send(SCI_CUT, 0, 0); |
1140 | } |
1141 | |
1142 | void ScintillaEdit::copy() { |
1143 | send(SCI_COPY, 0, 0); |
1144 | } |
1145 | |
1146 | void ScintillaEdit::paste() { |
1147 | send(SCI_PASTE, 0, 0); |
1148 | } |
1149 | |
1150 | void ScintillaEdit::clear() { |
1151 | send(SCI_CLEAR, 0, 0); |
1152 | } |
1153 | |
1154 | void ScintillaEdit::setText(const char * text) { |
1155 | send(SCI_SETTEXT, 0, (sptr_t)text); |
1156 | } |
1157 | |
1158 | QByteArray ScintillaEdit::getText(sptr_t length) { |
1159 | return TextReturner(SCI_GETTEXT, length); |
1160 | } |
1161 | |
1162 | sptr_t ScintillaEdit::textLength() const { |
1163 | return send(SCI_GETTEXTLENGTH, 0, 0); |
1164 | } |
1165 | |
1166 | sptr_t ScintillaEdit::directFunction() const { |
1167 | return send(SCI_GETDIRECTFUNCTION, 0, 0); |
1168 | } |
1169 | |
1170 | sptr_t ScintillaEdit::directStatusFunction() const { |
1171 | return send(SCI_GETDIRECTSTATUSFUNCTION, 0, 0); |
1172 | } |
1173 | |
1174 | sptr_t ScintillaEdit::directPointer() const { |
1175 | return send(SCI_GETDIRECTPOINTER, 0, 0); |
1176 | } |
1177 | |
1178 | void ScintillaEdit::setOvertype(bool overType) { |
1179 | send(SCI_SETOVERTYPE, overType, 0); |
1180 | } |
1181 | |
1182 | bool ScintillaEdit::overtype() const { |
1183 | return send(SCI_GETOVERTYPE, 0, 0); |
1184 | } |
1185 | |
1186 | void ScintillaEdit::setCaretWidth(sptr_t pixelWidth) { |
1187 | send(SCI_SETCARETWIDTH, pixelWidth, 0); |
1188 | } |
1189 | |
1190 | sptr_t ScintillaEdit::caretWidth() const { |
1191 | return send(SCI_GETCARETWIDTH, 0, 0); |
1192 | } |
1193 | |
1194 | void ScintillaEdit::setTargetStart(sptr_t start) { |
1195 | send(SCI_SETTARGETSTART, start, 0); |
1196 | } |
1197 | |
1198 | sptr_t ScintillaEdit::targetStart() const { |
1199 | return send(SCI_GETTARGETSTART, 0, 0); |
1200 | } |
1201 | |
1202 | void ScintillaEdit::setTargetStartVirtualSpace(sptr_t space) { |
1203 | send(SCI_SETTARGETSTARTVIRTUALSPACE, space, 0); |
1204 | } |
1205 | |
1206 | sptr_t ScintillaEdit::targetStartVirtualSpace() const { |
1207 | return send(SCI_GETTARGETSTARTVIRTUALSPACE, 0, 0); |
1208 | } |
1209 | |
1210 | void ScintillaEdit::setTargetEnd(sptr_t end) { |
1211 | send(SCI_SETTARGETEND, end, 0); |
1212 | } |
1213 | |
1214 | sptr_t ScintillaEdit::targetEnd() const { |
1215 | return send(SCI_GETTARGETEND, 0, 0); |
1216 | } |
1217 | |
1218 | void ScintillaEdit::setTargetEndVirtualSpace(sptr_t space) { |
1219 | send(SCI_SETTARGETENDVIRTUALSPACE, space, 0); |
1220 | } |
1221 | |
1222 | sptr_t ScintillaEdit::targetEndVirtualSpace() const { |
1223 | return send(SCI_GETTARGETENDVIRTUALSPACE, 0, 0); |
1224 | } |
1225 | |
1226 | void ScintillaEdit::setTargetRange(sptr_t start, sptr_t end) { |
1227 | send(SCI_SETTARGETRANGE, start, end); |
1228 | } |
1229 | |
1230 | QByteArray ScintillaEdit::targetText() const { |
1231 | return TextReturner(SCI_GETTARGETTEXT, 0); |
1232 | } |
1233 | |
1234 | void ScintillaEdit::targetFromSelection() { |
1235 | send(SCI_TARGETFROMSELECTION, 0, 0); |
1236 | } |
1237 | |
1238 | void ScintillaEdit::targetWholeDocument() { |
1239 | send(SCI_TARGETWHOLEDOCUMENT, 0, 0); |
1240 | } |
1241 | |
1242 | sptr_t ScintillaEdit::replaceTarget(sptr_t length, const char * text) { |
1243 | return send(SCI_REPLACETARGET, length, (sptr_t)text); |
1244 | } |
1245 | |
1246 | sptr_t ScintillaEdit::replaceTargetRE(sptr_t length, const char * text) { |
1247 | return send(SCI_REPLACETARGETRE, length, (sptr_t)text); |
1248 | } |
1249 | |
1250 | sptr_t ScintillaEdit::searchInTarget(sptr_t length, const char * text) { |
1251 | return send(SCI_SEARCHINTARGET, length, (sptr_t)text); |
1252 | } |
1253 | |
1254 | void ScintillaEdit::setSearchFlags(sptr_t searchFlags) { |
1255 | send(SCI_SETSEARCHFLAGS, searchFlags, 0); |
1256 | } |
1257 | |
1258 | sptr_t ScintillaEdit::searchFlags() const { |
1259 | return send(SCI_GETSEARCHFLAGS, 0, 0); |
1260 | } |
1261 | |
1262 | void ScintillaEdit::callTipShow(sptr_t pos, const char * definition) { |
1263 | send(SCI_CALLTIPSHOW, pos, (sptr_t)definition); |
1264 | } |
1265 | |
1266 | void ScintillaEdit::callTipCancel() { |
1267 | send(SCI_CALLTIPCANCEL, 0, 0); |
1268 | } |
1269 | |
1270 | bool ScintillaEdit::callTipActive() { |
1271 | return send(SCI_CALLTIPACTIVE, 0, 0); |
1272 | } |
1273 | |
1274 | sptr_t ScintillaEdit::callTipPosStart() { |
1275 | return send(SCI_CALLTIPPOSSTART, 0, 0); |
1276 | } |
1277 | |
1278 | void ScintillaEdit::callTipSetPosStart(sptr_t posStart) { |
1279 | send(SCI_CALLTIPSETPOSSTART, posStart, 0); |
1280 | } |
1281 | |
1282 | void ScintillaEdit::callTipSetHlt(sptr_t highlightStart, sptr_t highlightEnd) { |
1283 | send(SCI_CALLTIPSETHLT, highlightStart, highlightEnd); |
1284 | } |
1285 | |
1286 | void ScintillaEdit::callTipSetBack(sptr_t back) { |
1287 | send(SCI_CALLTIPSETBACK, back, 0); |
1288 | } |
1289 | |
1290 | void ScintillaEdit::callTipSetFore(sptr_t fore) { |
1291 | send(SCI_CALLTIPSETFORE, fore, 0); |
1292 | } |
1293 | |
1294 | void ScintillaEdit::callTipSetForeHlt(sptr_t fore) { |
1295 | send(SCI_CALLTIPSETFOREHLT, fore, 0); |
1296 | } |
1297 | |
1298 | void ScintillaEdit::callTipUseStyle(sptr_t tabSize) { |
1299 | send(SCI_CALLTIPUSESTYLE, tabSize, 0); |
1300 | } |
1301 | |
1302 | void ScintillaEdit::callTipSetPosition(bool above) { |
1303 | send(SCI_CALLTIPSETPOSITION, above, 0); |
1304 | } |
1305 | |
1306 | sptr_t ScintillaEdit::visibleFromDocLine(sptr_t docLine) { |
1307 | return send(SCI_VISIBLEFROMDOCLINE, docLine, 0); |
1308 | } |
1309 | |
1310 | sptr_t ScintillaEdit::docLineFromVisible(sptr_t displayLine) { |
1311 | return send(SCI_DOCLINEFROMVISIBLE, displayLine, 0); |
1312 | } |
1313 | |
1314 | sptr_t ScintillaEdit::wrapCount(sptr_t docLine) { |
1315 | return send(SCI_WRAPCOUNT, docLine, 0); |
1316 | } |
1317 | |
1318 | void ScintillaEdit::setFoldLevel(sptr_t line, sptr_t level) { |
1319 | send(SCI_SETFOLDLEVEL, line, level); |
1320 | } |
1321 | |
1322 | sptr_t ScintillaEdit::foldLevel(sptr_t line) const { |
1323 | return send(SCI_GETFOLDLEVEL, line, 0); |
1324 | } |
1325 | |
1326 | sptr_t ScintillaEdit::lastChild(sptr_t line, sptr_t level) const { |
1327 | return send(SCI_GETLASTCHILD, line, level); |
1328 | } |
1329 | |
1330 | sptr_t ScintillaEdit::foldParent(sptr_t line) const { |
1331 | return send(SCI_GETFOLDPARENT, line, 0); |
1332 | } |
1333 | |
1334 | void ScintillaEdit::showLines(sptr_t lineStart, sptr_t lineEnd) { |
1335 | send(SCI_SHOWLINES, lineStart, lineEnd); |
1336 | } |
1337 | |
1338 | void ScintillaEdit::hideLines(sptr_t lineStart, sptr_t lineEnd) { |
1339 | send(SCI_HIDELINES, lineStart, lineEnd); |
1340 | } |
1341 | |
1342 | bool ScintillaEdit::lineVisible(sptr_t line) const { |
1343 | return send(SCI_GETLINEVISIBLE, line, 0); |
1344 | } |
1345 | |
1346 | bool ScintillaEdit::allLinesVisible() const { |
1347 | return send(SCI_GETALLLINESVISIBLE, 0, 0); |
1348 | } |
1349 | |
1350 | void ScintillaEdit::setFoldExpanded(sptr_t line, bool expanded) { |
1351 | send(SCI_SETFOLDEXPANDED, line, expanded); |
1352 | } |
1353 | |
1354 | bool ScintillaEdit::foldExpanded(sptr_t line) const { |
1355 | return send(SCI_GETFOLDEXPANDED, line, 0); |
1356 | } |
1357 | |
1358 | void ScintillaEdit::toggleFold(sptr_t line) { |
1359 | send(SCI_TOGGLEFOLD, line, 0); |
1360 | } |
1361 | |
1362 | void ScintillaEdit::toggleFoldShowText(sptr_t line, const char * text) { |
1363 | send(SCI_TOGGLEFOLDSHOWTEXT, line, (sptr_t)text); |
1364 | } |
1365 | |
1366 | void ScintillaEdit::foldDisplayTextSetStyle(sptr_t style) { |
1367 | send(SCI_FOLDDISPLAYTEXTSETSTYLE, style, 0); |
1368 | } |
1369 | |
1370 | sptr_t ScintillaEdit::foldDisplayTextStyle() const { |
1371 | return send(SCI_FOLDDISPLAYTEXTGETSTYLE, 0, 0); |
1372 | } |
1373 | |
1374 | void ScintillaEdit::setDefaultFoldDisplayText(const char * text) { |
1375 | send(SCI_SETDEFAULTFOLDDISPLAYTEXT, 0, (sptr_t)text); |
1376 | } |
1377 | |
1378 | QByteArray ScintillaEdit::getDefaultFoldDisplayText() { |
1379 | return TextReturner(SCI_GETDEFAULTFOLDDISPLAYTEXT, 0); |
1380 | } |
1381 | |
1382 | void ScintillaEdit::foldLine(sptr_t line, sptr_t action) { |
1383 | send(SCI_FOLDLINE, line, action); |
1384 | } |
1385 | |
1386 | void ScintillaEdit::foldChildren(sptr_t line, sptr_t action) { |
1387 | send(SCI_FOLDCHILDREN, line, action); |
1388 | } |
1389 | |
1390 | void ScintillaEdit::expandChildren(sptr_t line, sptr_t level) { |
1391 | send(SCI_EXPANDCHILDREN, line, level); |
1392 | } |
1393 | |
1394 | void ScintillaEdit::foldAll(sptr_t action) { |
1395 | send(SCI_FOLDALL, action, 0); |
1396 | } |
1397 | |
1398 | void ScintillaEdit::ensureVisible(sptr_t line) { |
1399 | send(SCI_ENSUREVISIBLE, line, 0); |
1400 | } |
1401 | |
1402 | void ScintillaEdit::setAutomaticFold(sptr_t automaticFold) { |
1403 | send(SCI_SETAUTOMATICFOLD, automaticFold, 0); |
1404 | } |
1405 | |
1406 | sptr_t ScintillaEdit::automaticFold() const { |
1407 | return send(SCI_GETAUTOMATICFOLD, 0, 0); |
1408 | } |
1409 | |
1410 | void ScintillaEdit::setFoldFlags(sptr_t flags) { |
1411 | send(SCI_SETFOLDFLAGS, flags, 0); |
1412 | } |
1413 | |
1414 | void ScintillaEdit::ensureVisibleEnforcePolicy(sptr_t line) { |
1415 | send(SCI_ENSUREVISIBLEENFORCEPOLICY, line, 0); |
1416 | } |
1417 | |
1418 | void ScintillaEdit::setTabIndents(bool tabIndents) { |
1419 | send(SCI_SETTABINDENTS, tabIndents, 0); |
1420 | } |
1421 | |
1422 | bool ScintillaEdit::tabIndents() const { |
1423 | return send(SCI_GETTABINDENTS, 0, 0); |
1424 | } |
1425 | |
1426 | void ScintillaEdit::setBackSpaceUnIndents(bool bsUnIndents) { |
1427 | send(SCI_SETBACKSPACEUNINDENTS, bsUnIndents, 0); |
1428 | } |
1429 | |
1430 | bool ScintillaEdit::backSpaceUnIndents() const { |
1431 | return send(SCI_GETBACKSPACEUNINDENTS, 0, 0); |
1432 | } |
1433 | |
1434 | void ScintillaEdit::setMouseDwellTime(sptr_t periodMilliseconds) { |
1435 | send(SCI_SETMOUSEDWELLTIME, periodMilliseconds, 0); |
1436 | } |
1437 | |
1438 | sptr_t ScintillaEdit::mouseDwellTime() const { |
1439 | return send(SCI_GETMOUSEDWELLTIME, 0, 0); |
1440 | } |
1441 | |
1442 | sptr_t ScintillaEdit::wordStartPosition(sptr_t pos, bool onlyWordCharacters) { |
1443 | return send(SCI_WORDSTARTPOSITION, pos, onlyWordCharacters); |
1444 | } |
1445 | |
1446 | sptr_t ScintillaEdit::wordEndPosition(sptr_t pos, bool onlyWordCharacters) { |
1447 | return send(SCI_WORDENDPOSITION, pos, onlyWordCharacters); |
1448 | } |
1449 | |
1450 | bool ScintillaEdit::isRangeWord(sptr_t start, sptr_t end) { |
1451 | return send(SCI_ISRANGEWORD, start, end); |
1452 | } |
1453 | |
1454 | void ScintillaEdit::setIdleStyling(sptr_t idleStyling) { |
1455 | send(SCI_SETIDLESTYLING, idleStyling, 0); |
1456 | } |
1457 | |
1458 | sptr_t ScintillaEdit::idleStyling() const { |
1459 | return send(SCI_GETIDLESTYLING, 0, 0); |
1460 | } |
1461 | |
1462 | void ScintillaEdit::setWrapMode(sptr_t wrapMode) { |
1463 | send(SCI_SETWRAPMODE, wrapMode, 0); |
1464 | } |
1465 | |
1466 | sptr_t ScintillaEdit::wrapMode() const { |
1467 | return send(SCI_GETWRAPMODE, 0, 0); |
1468 | } |
1469 | |
1470 | void ScintillaEdit::setWrapVisualFlags(sptr_t wrapVisualFlags) { |
1471 | send(SCI_SETWRAPVISUALFLAGS, wrapVisualFlags, 0); |
1472 | } |
1473 | |
1474 | sptr_t ScintillaEdit::wrapVisualFlags() const { |
1475 | return send(SCI_GETWRAPVISUALFLAGS, 0, 0); |
1476 | } |
1477 | |
1478 | void ScintillaEdit::setWrapVisualFlagsLocation(sptr_t wrapVisualFlagsLocation) { |
1479 | send(SCI_SETWRAPVISUALFLAGSLOCATION, wrapVisualFlagsLocation, 0); |
1480 | } |
1481 | |
1482 | sptr_t ScintillaEdit::wrapVisualFlagsLocation() const { |
1483 | return send(SCI_GETWRAPVISUALFLAGSLOCATION, 0, 0); |
1484 | } |
1485 | |
1486 | void ScintillaEdit::setWrapStartIndent(sptr_t indent) { |
1487 | send(SCI_SETWRAPSTARTINDENT, indent, 0); |
1488 | } |
1489 | |
1490 | sptr_t ScintillaEdit::wrapStartIndent() const { |
1491 | return send(SCI_GETWRAPSTARTINDENT, 0, 0); |
1492 | } |
1493 | |
1494 | void ScintillaEdit::setWrapIndentMode(sptr_t wrapIndentMode) { |
1495 | send(SCI_SETWRAPINDENTMODE, wrapIndentMode, 0); |
1496 | } |
1497 | |
1498 | sptr_t ScintillaEdit::wrapIndentMode() const { |
1499 | return send(SCI_GETWRAPINDENTMODE, 0, 0); |
1500 | } |
1501 | |
1502 | void ScintillaEdit::setLayoutCache(sptr_t cacheMode) { |
1503 | send(SCI_SETLAYOUTCACHE, cacheMode, 0); |
1504 | } |
1505 | |
1506 | sptr_t ScintillaEdit::layoutCache() const { |
1507 | return send(SCI_GETLAYOUTCACHE, 0, 0); |
1508 | } |
1509 | |
1510 | void ScintillaEdit::setScrollWidth(sptr_t pixelWidth) { |
1511 | send(SCI_SETSCROLLWIDTH, pixelWidth, 0); |
1512 | } |
1513 | |
1514 | sptr_t ScintillaEdit::scrollWidth() const { |
1515 | return send(SCI_GETSCROLLWIDTH, 0, 0); |
1516 | } |
1517 | |
1518 | void ScintillaEdit::setScrollWidthTracking(bool tracking) { |
1519 | send(SCI_SETSCROLLWIDTHTRACKING, tracking, 0); |
1520 | } |
1521 | |
1522 | bool ScintillaEdit::scrollWidthTracking() const { |
1523 | return send(SCI_GETSCROLLWIDTHTRACKING, 0, 0); |
1524 | } |
1525 | |
1526 | sptr_t ScintillaEdit::textWidth(sptr_t style, const char * text) { |
1527 | return send(SCI_TEXTWIDTH, style, (sptr_t)text); |
1528 | } |
1529 | |
1530 | void ScintillaEdit::setEndAtLastLine(bool endAtLastLine) { |
1531 | send(SCI_SETENDATLASTLINE, endAtLastLine, 0); |
1532 | } |
1533 | |
1534 | bool ScintillaEdit::endAtLastLine() const { |
1535 | return send(SCI_GETENDATLASTLINE, 0, 0); |
1536 | } |
1537 | |
1538 | sptr_t ScintillaEdit::textHeight(sptr_t line) { |
1539 | return send(SCI_TEXTHEIGHT, line, 0); |
1540 | } |
1541 | |
1542 | void ScintillaEdit::setVScrollBar(bool visible) { |
1543 | send(SCI_SETVSCROLLBAR, visible, 0); |
1544 | } |
1545 | |
1546 | bool ScintillaEdit::vScrollBar() const { |
1547 | return send(SCI_GETVSCROLLBAR, 0, 0); |
1548 | } |
1549 | |
1550 | void ScintillaEdit::appendText(sptr_t length, const char * text) { |
1551 | send(SCI_APPENDTEXT, length, (sptr_t)text); |
1552 | } |
1553 | |
1554 | sptr_t ScintillaEdit::phasesDraw() const { |
1555 | return send(SCI_GETPHASESDRAW, 0, 0); |
1556 | } |
1557 | |
1558 | void ScintillaEdit::setPhasesDraw(sptr_t phases) { |
1559 | send(SCI_SETPHASESDRAW, phases, 0); |
1560 | } |
1561 | |
1562 | void ScintillaEdit::setFontQuality(sptr_t fontQuality) { |
1563 | send(SCI_SETFONTQUALITY, fontQuality, 0); |
1564 | } |
1565 | |
1566 | sptr_t ScintillaEdit::fontQuality() const { |
1567 | return send(SCI_GETFONTQUALITY, 0, 0); |
1568 | } |
1569 | |
1570 | void ScintillaEdit::setFirstVisibleLine(sptr_t displayLine) { |
1571 | send(SCI_SETFIRSTVISIBLELINE, displayLine, 0); |
1572 | } |
1573 | |
1574 | void ScintillaEdit::setMultiPaste(sptr_t multiPaste) { |
1575 | send(SCI_SETMULTIPASTE, multiPaste, 0); |
1576 | } |
1577 | |
1578 | sptr_t ScintillaEdit::multiPaste() const { |
1579 | return send(SCI_GETMULTIPASTE, 0, 0); |
1580 | } |
1581 | |
1582 | QByteArray ScintillaEdit::tag(sptr_t tagNumber) const { |
1583 | return TextReturner(SCI_GETTAG, tagNumber); |
1584 | } |
1585 | |
1586 | void ScintillaEdit::linesJoin() { |
1587 | send(SCI_LINESJOIN, 0, 0); |
1588 | } |
1589 | |
1590 | void ScintillaEdit::linesSplit(sptr_t pixelWidth) { |
1591 | send(SCI_LINESSPLIT, pixelWidth, 0); |
1592 | } |
1593 | |
1594 | void ScintillaEdit::setFoldMarginColour(bool useSetting, sptr_t back) { |
1595 | send(SCI_SETFOLDMARGINCOLOUR, useSetting, back); |
1596 | } |
1597 | |
1598 | void ScintillaEdit::setFoldMarginHiColour(bool useSetting, sptr_t fore) { |
1599 | send(SCI_SETFOLDMARGINHICOLOUR, useSetting, fore); |
1600 | } |
1601 | |
1602 | void ScintillaEdit::setAccessibility(sptr_t accessibility) { |
1603 | send(SCI_SETACCESSIBILITY, accessibility, 0); |
1604 | } |
1605 | |
1606 | sptr_t ScintillaEdit::accessibility() const { |
1607 | return send(SCI_GETACCESSIBILITY, 0, 0); |
1608 | } |
1609 | |
1610 | void ScintillaEdit::lineDown() { |
1611 | send(SCI_LINEDOWN, 0, 0); |
1612 | } |
1613 | |
1614 | void ScintillaEdit::lineDownExtend() { |
1615 | send(SCI_LINEDOWNEXTEND, 0, 0); |
1616 | } |
1617 | |
1618 | void ScintillaEdit::lineUp() { |
1619 | send(SCI_LINEUP, 0, 0); |
1620 | } |
1621 | |
1622 | void ScintillaEdit::lineUpExtend() { |
1623 | send(SCI_LINEUPEXTEND, 0, 0); |
1624 | } |
1625 | |
1626 | void ScintillaEdit::charLeft() { |
1627 | send(SCI_CHARLEFT, 0, 0); |
1628 | } |
1629 | |
1630 | void ScintillaEdit::charLeftExtend() { |
1631 | send(SCI_CHARLEFTEXTEND, 0, 0); |
1632 | } |
1633 | |
1634 | void ScintillaEdit::charRight() { |
1635 | send(SCI_CHARRIGHT, 0, 0); |
1636 | } |
1637 | |
1638 | void ScintillaEdit::charRightExtend() { |
1639 | send(SCI_CHARRIGHTEXTEND, 0, 0); |
1640 | } |
1641 | |
1642 | void ScintillaEdit::wordLeft() { |
1643 | send(SCI_WORDLEFT, 0, 0); |
1644 | } |
1645 | |
1646 | void ScintillaEdit::wordLeftExtend() { |
1647 | send(SCI_WORDLEFTEXTEND, 0, 0); |
1648 | } |
1649 | |
1650 | void ScintillaEdit::wordRight() { |
1651 | send(SCI_WORDRIGHT, 0, 0); |
1652 | } |
1653 | |
1654 | void ScintillaEdit::wordRightExtend() { |
1655 | send(SCI_WORDRIGHTEXTEND, 0, 0); |
1656 | } |
1657 | |
1658 | void ScintillaEdit::home() { |
1659 | send(SCI_HOME, 0, 0); |
1660 | } |
1661 | |
1662 | void ScintillaEdit::homeExtend() { |
1663 | send(SCI_HOMEEXTEND, 0, 0); |
1664 | } |
1665 | |
1666 | void ScintillaEdit::lineEnd() { |
1667 | send(SCI_LINEEND, 0, 0); |
1668 | } |
1669 | |
1670 | void ScintillaEdit::lineEndExtend() { |
1671 | send(SCI_LINEENDEXTEND, 0, 0); |
1672 | } |
1673 | |
1674 | void ScintillaEdit::documentStart() { |
1675 | send(SCI_DOCUMENTSTART, 0, 0); |
1676 | } |
1677 | |
1678 | void ScintillaEdit::documentStartExtend() { |
1679 | send(SCI_DOCUMENTSTARTEXTEND, 0, 0); |
1680 | } |
1681 | |
1682 | void ScintillaEdit::documentEnd() { |
1683 | send(SCI_DOCUMENTEND, 0, 0); |
1684 | } |
1685 | |
1686 | void ScintillaEdit::documentEndExtend() { |
1687 | send(SCI_DOCUMENTENDEXTEND, 0, 0); |
1688 | } |
1689 | |
1690 | void ScintillaEdit::pageUp() { |
1691 | send(SCI_PAGEUP, 0, 0); |
1692 | } |
1693 | |
1694 | void ScintillaEdit::pageUpExtend() { |
1695 | send(SCI_PAGEUPEXTEND, 0, 0); |
1696 | } |
1697 | |
1698 | void ScintillaEdit::pageDown() { |
1699 | send(SCI_PAGEDOWN, 0, 0); |
1700 | } |
1701 | |
1702 | void ScintillaEdit::pageDownExtend() { |
1703 | send(SCI_PAGEDOWNEXTEND, 0, 0); |
1704 | } |
1705 | |
1706 | void ScintillaEdit::editToggleOvertype() { |
1707 | send(SCI_EDITTOGGLEOVERTYPE, 0, 0); |
1708 | } |
1709 | |
1710 | void ScintillaEdit::cancel() { |
1711 | send(SCI_CANCEL, 0, 0); |
1712 | } |
1713 | |
1714 | void ScintillaEdit::deleteBack() { |
1715 | send(SCI_DELETEBACK, 0, 0); |
1716 | } |
1717 | |
1718 | void ScintillaEdit::tab() { |
1719 | send(SCI_TAB, 0, 0); |
1720 | } |
1721 | |
1722 | void ScintillaEdit::backTab() { |
1723 | send(SCI_BACKTAB, 0, 0); |
1724 | } |
1725 | |
1726 | void ScintillaEdit::newLine() { |
1727 | send(SCI_NEWLINE, 0, 0); |
1728 | } |
1729 | |
1730 | void ScintillaEdit::formFeed() { |
1731 | send(SCI_FORMFEED, 0, 0); |
1732 | } |
1733 | |
1734 | void ScintillaEdit::vCHome() { |
1735 | send(SCI_VCHOME, 0, 0); |
1736 | } |
1737 | |
1738 | void ScintillaEdit::vCHomeExtend() { |
1739 | send(SCI_VCHOMEEXTEND, 0, 0); |
1740 | } |
1741 | |
1742 | void ScintillaEdit::zoomIn() { |
1743 | send(SCI_ZOOMIN, 0, 0); |
1744 | } |
1745 | |
1746 | void ScintillaEdit::zoomOut() { |
1747 | send(SCI_ZOOMOUT, 0, 0); |
1748 | } |
1749 | |
1750 | void ScintillaEdit::delWordLeft() { |
1751 | send(SCI_DELWORDLEFT, 0, 0); |
1752 | } |
1753 | |
1754 | void ScintillaEdit::delWordRight() { |
1755 | send(SCI_DELWORDRIGHT, 0, 0); |
1756 | } |
1757 | |
1758 | void ScintillaEdit::delWordRightEnd() { |
1759 | send(SCI_DELWORDRIGHTEND, 0, 0); |
1760 | } |
1761 | |
1762 | void ScintillaEdit::lineCut() { |
1763 | send(SCI_LINECUT, 0, 0); |
1764 | } |
1765 | |
1766 | void ScintillaEdit::lineDelete() { |
1767 | send(SCI_LINEDELETE, 0, 0); |
1768 | } |
1769 | |
1770 | void ScintillaEdit::lineTranspose() { |
1771 | send(SCI_LINETRANSPOSE, 0, 0); |
1772 | } |
1773 | |
1774 | void ScintillaEdit::lineReverse() { |
1775 | send(SCI_LINEREVERSE, 0, 0); |
1776 | } |
1777 | |
1778 | void ScintillaEdit::lineDuplicate() { |
1779 | send(SCI_LINEDUPLICATE, 0, 0); |
1780 | } |
1781 | |
1782 | void ScintillaEdit::lowerCase() { |
1783 | send(SCI_LOWERCASE, 0, 0); |
1784 | } |
1785 | |
1786 | void ScintillaEdit::upperCase() { |
1787 | send(SCI_UPPERCASE, 0, 0); |
1788 | } |
1789 | |
1790 | void ScintillaEdit::lineScrollDown() { |
1791 | send(SCI_LINESCROLLDOWN, 0, 0); |
1792 | } |
1793 | |
1794 | void ScintillaEdit::lineScrollUp() { |
1795 | send(SCI_LINESCROLLUP, 0, 0); |
1796 | } |
1797 | |
1798 | void ScintillaEdit::deleteBackNotLine() { |
1799 | send(SCI_DELETEBACKNOTLINE, 0, 0); |
1800 | } |
1801 | |
1802 | void ScintillaEdit::homeDisplay() { |
1803 | send(SCI_HOMEDISPLAY, 0, 0); |
1804 | } |
1805 | |
1806 | void ScintillaEdit::homeDisplayExtend() { |
1807 | send(SCI_HOMEDISPLAYEXTEND, 0, 0); |
1808 | } |
1809 | |
1810 | void ScintillaEdit::lineEndDisplay() { |
1811 | send(SCI_LINEENDDISPLAY, 0, 0); |
1812 | } |
1813 | |
1814 | void ScintillaEdit::lineEndDisplayExtend() { |
1815 | send(SCI_LINEENDDISPLAYEXTEND, 0, 0); |
1816 | } |
1817 | |
1818 | void ScintillaEdit::homeWrap() { |
1819 | send(SCI_HOMEWRAP, 0, 0); |
1820 | } |
1821 | |
1822 | void ScintillaEdit::homeWrapExtend() { |
1823 | send(SCI_HOMEWRAPEXTEND, 0, 0); |
1824 | } |
1825 | |
1826 | void ScintillaEdit::lineEndWrap() { |
1827 | send(SCI_LINEENDWRAP, 0, 0); |
1828 | } |
1829 | |
1830 | void ScintillaEdit::lineEndWrapExtend() { |
1831 | send(SCI_LINEENDWRAPEXTEND, 0, 0); |
1832 | } |
1833 | |
1834 | void ScintillaEdit::vCHomeWrap() { |
1835 | send(SCI_VCHOMEWRAP, 0, 0); |
1836 | } |
1837 | |
1838 | void ScintillaEdit::vCHomeWrapExtend() { |
1839 | send(SCI_VCHOMEWRAPEXTEND, 0, 0); |
1840 | } |
1841 | |
1842 | void ScintillaEdit::lineCopy() { |
1843 | send(SCI_LINECOPY, 0, 0); |
1844 | } |
1845 | |
1846 | void ScintillaEdit::moveCaretInsideView() { |
1847 | send(SCI_MOVECARETINSIDEVIEW, 0, 0); |
1848 | } |
1849 | |
1850 | sptr_t ScintillaEdit::lineLength(sptr_t line) { |
1851 | return send(SCI_LINELENGTH, line, 0); |
1852 | } |
1853 | |
1854 | void ScintillaEdit::braceHighlight(sptr_t posA, sptr_t posB) { |
1855 | send(SCI_BRACEHIGHLIGHT, posA, posB); |
1856 | } |
1857 | |
1858 | void ScintillaEdit::braceHighlightIndicator(bool useSetting, sptr_t indicator) { |
1859 | send(SCI_BRACEHIGHLIGHTINDICATOR, useSetting, indicator); |
1860 | } |
1861 | |
1862 | void ScintillaEdit::braceBadLight(sptr_t pos) { |
1863 | send(SCI_BRACEBADLIGHT, pos, 0); |
1864 | } |
1865 | |
1866 | void ScintillaEdit::braceBadLightIndicator(bool useSetting, sptr_t indicator) { |
1867 | send(SCI_BRACEBADLIGHTINDICATOR, useSetting, indicator); |
1868 | } |
1869 | |
1870 | sptr_t ScintillaEdit::braceMatch(sptr_t pos, sptr_t maxReStyle) { |
1871 | return send(SCI_BRACEMATCH, pos, maxReStyle); |
1872 | } |
1873 | |
1874 | sptr_t ScintillaEdit::braceMatchNext(sptr_t pos, sptr_t startPos) { |
1875 | return send(SCI_BRACEMATCHNEXT, pos, startPos); |
1876 | } |
1877 | |
1878 | bool ScintillaEdit::viewEOL() const { |
1879 | return send(SCI_GETVIEWEOL, 0, 0); |
1880 | } |
1881 | |
1882 | void ScintillaEdit::setViewEOL(bool visible) { |
1883 | send(SCI_SETVIEWEOL, visible, 0); |
1884 | } |
1885 | |
1886 | sptr_t ScintillaEdit::docPointer() const { |
1887 | return send(SCI_GETDOCPOINTER, 0, 0); |
1888 | } |
1889 | |
1890 | void ScintillaEdit::setDocPointer(sptr_t doc) { |
1891 | send(SCI_SETDOCPOINTER, 0, doc); |
1892 | } |
1893 | |
1894 | void ScintillaEdit::setModEventMask(sptr_t eventMask) { |
1895 | send(SCI_SETMODEVENTMASK, eventMask, 0); |
1896 | } |
1897 | |
1898 | sptr_t ScintillaEdit::edgeColumn() const { |
1899 | return send(SCI_GETEDGECOLUMN, 0, 0); |
1900 | } |
1901 | |
1902 | void ScintillaEdit::setEdgeColumn(sptr_t column) { |
1903 | send(SCI_SETEDGECOLUMN, column, 0); |
1904 | } |
1905 | |
1906 | sptr_t ScintillaEdit::edgeMode() const { |
1907 | return send(SCI_GETEDGEMODE, 0, 0); |
1908 | } |
1909 | |
1910 | void ScintillaEdit::setEdgeMode(sptr_t edgeMode) { |
1911 | send(SCI_SETEDGEMODE, edgeMode, 0); |
1912 | } |
1913 | |
1914 | sptr_t ScintillaEdit::edgeColour() const { |
1915 | return send(SCI_GETEDGECOLOUR, 0, 0); |
1916 | } |
1917 | |
1918 | void ScintillaEdit::setEdgeColour(sptr_t edgeColour) { |
1919 | send(SCI_SETEDGECOLOUR, edgeColour, 0); |
1920 | } |
1921 | |
1922 | void ScintillaEdit::multiEdgeAddLine(sptr_t column, sptr_t edgeColour) { |
1923 | send(SCI_MULTIEDGEADDLINE, column, edgeColour); |
1924 | } |
1925 | |
1926 | void ScintillaEdit::multiEdgeClearAll() { |
1927 | send(SCI_MULTIEDGECLEARALL, 0, 0); |
1928 | } |
1929 | |
1930 | sptr_t ScintillaEdit::multiEdgeColumn(sptr_t which) const { |
1931 | return send(SCI_GETMULTIEDGECOLUMN, which, 0); |
1932 | } |
1933 | |
1934 | void ScintillaEdit::searchAnchor() { |
1935 | send(SCI_SEARCHANCHOR, 0, 0); |
1936 | } |
1937 | |
1938 | sptr_t ScintillaEdit::searchNext(sptr_t searchFlags, const char * text) { |
1939 | return send(SCI_SEARCHNEXT, searchFlags, (sptr_t)text); |
1940 | } |
1941 | |
1942 | sptr_t ScintillaEdit::searchPrev(sptr_t searchFlags, const char * text) { |
1943 | return send(SCI_SEARCHPREV, searchFlags, (sptr_t)text); |
1944 | } |
1945 | |
1946 | sptr_t ScintillaEdit::linesOnScreen() const { |
1947 | return send(SCI_LINESONSCREEN, 0, 0); |
1948 | } |
1949 | |
1950 | void ScintillaEdit::(sptr_t ) { |
1951 | send(SCI_USEPOPUP, popUpMode, 0); |
1952 | } |
1953 | |
1954 | bool ScintillaEdit::selectionIsRectangle() const { |
1955 | return send(SCI_SELECTIONISRECTANGLE, 0, 0); |
1956 | } |
1957 | |
1958 | void ScintillaEdit::setZoom(sptr_t zoomInPoints) { |
1959 | send(SCI_SETZOOM, zoomInPoints, 0); |
1960 | } |
1961 | |
1962 | sptr_t ScintillaEdit::zoom() const { |
1963 | return send(SCI_GETZOOM, 0, 0); |
1964 | } |
1965 | |
1966 | sptr_t ScintillaEdit::createDocument(sptr_t bytes, sptr_t documentOptions) { |
1967 | return send(SCI_CREATEDOCUMENT, bytes, documentOptions); |
1968 | } |
1969 | |
1970 | void ScintillaEdit::addRefDocument(sptr_t doc) { |
1971 | send(SCI_ADDREFDOCUMENT, 0, doc); |
1972 | } |
1973 | |
1974 | void ScintillaEdit::releaseDocument(sptr_t doc) { |
1975 | send(SCI_RELEASEDOCUMENT, 0, doc); |
1976 | } |
1977 | |
1978 | sptr_t ScintillaEdit::documentOptions() const { |
1979 | return send(SCI_GETDOCUMENTOPTIONS, 0, 0); |
1980 | } |
1981 | |
1982 | sptr_t ScintillaEdit::modEventMask() const { |
1983 | return send(SCI_GETMODEVENTMASK, 0, 0); |
1984 | } |
1985 | |
1986 | void ScintillaEdit::setCommandEvents(bool commandEvents) { |
1987 | send(SCI_SETCOMMANDEVENTS, commandEvents, 0); |
1988 | } |
1989 | |
1990 | bool ScintillaEdit::commandEvents() const { |
1991 | return send(SCI_GETCOMMANDEVENTS, 0, 0); |
1992 | } |
1993 | |
1994 | void ScintillaEdit::setFocus(bool focus) { |
1995 | send(SCI_SETFOCUS, focus, 0); |
1996 | } |
1997 | |
1998 | bool ScintillaEdit::focus() const { |
1999 | return send(SCI_GETFOCUS, 0, 0); |
2000 | } |
2001 | |
2002 | void ScintillaEdit::setStatus(sptr_t status) { |
2003 | send(SCI_SETSTATUS, status, 0); |
2004 | } |
2005 | |
2006 | sptr_t ScintillaEdit::status() const { |
2007 | return send(SCI_GETSTATUS, 0, 0); |
2008 | } |
2009 | |
2010 | void ScintillaEdit::setMouseDownCaptures(bool captures) { |
2011 | send(SCI_SETMOUSEDOWNCAPTURES, captures, 0); |
2012 | } |
2013 | |
2014 | bool ScintillaEdit::mouseDownCaptures() const { |
2015 | return send(SCI_GETMOUSEDOWNCAPTURES, 0, 0); |
2016 | } |
2017 | |
2018 | void ScintillaEdit::setMouseWheelCaptures(bool captures) { |
2019 | send(SCI_SETMOUSEWHEELCAPTURES, captures, 0); |
2020 | } |
2021 | |
2022 | bool ScintillaEdit::mouseWheelCaptures() const { |
2023 | return send(SCI_GETMOUSEWHEELCAPTURES, 0, 0); |
2024 | } |
2025 | |
2026 | void ScintillaEdit::setCursor(sptr_t cursorType) { |
2027 | send(SCI_SETCURSOR, cursorType, 0); |
2028 | } |
2029 | |
2030 | sptr_t ScintillaEdit::cursor() const { |
2031 | return send(SCI_GETCURSOR, 0, 0); |
2032 | } |
2033 | |
2034 | void ScintillaEdit::setControlCharSymbol(sptr_t symbol) { |
2035 | send(SCI_SETCONTROLCHARSYMBOL, symbol, 0); |
2036 | } |
2037 | |
2038 | sptr_t ScintillaEdit::controlCharSymbol() const { |
2039 | return send(SCI_GETCONTROLCHARSYMBOL, 0, 0); |
2040 | } |
2041 | |
2042 | void ScintillaEdit::wordPartLeft() { |
2043 | send(SCI_WORDPARTLEFT, 0, 0); |
2044 | } |
2045 | |
2046 | void ScintillaEdit::wordPartLeftExtend() { |
2047 | send(SCI_WORDPARTLEFTEXTEND, 0, 0); |
2048 | } |
2049 | |
2050 | void ScintillaEdit::wordPartRight() { |
2051 | send(SCI_WORDPARTRIGHT, 0, 0); |
2052 | } |
2053 | |
2054 | void ScintillaEdit::wordPartRightExtend() { |
2055 | send(SCI_WORDPARTRIGHTEXTEND, 0, 0); |
2056 | } |
2057 | |
2058 | void ScintillaEdit::setVisiblePolicy(sptr_t visiblePolicy, sptr_t visibleSlop) { |
2059 | send(SCI_SETVISIBLEPOLICY, visiblePolicy, visibleSlop); |
2060 | } |
2061 | |
2062 | void ScintillaEdit::delLineLeft() { |
2063 | send(SCI_DELLINELEFT, 0, 0); |
2064 | } |
2065 | |
2066 | void ScintillaEdit::delLineRight() { |
2067 | send(SCI_DELLINERIGHT, 0, 0); |
2068 | } |
2069 | |
2070 | void ScintillaEdit::setXOffset(sptr_t xOffset) { |
2071 | send(SCI_SETXOFFSET, xOffset, 0); |
2072 | } |
2073 | |
2074 | sptr_t ScintillaEdit::xOffset() const { |
2075 | return send(SCI_GETXOFFSET, 0, 0); |
2076 | } |
2077 | |
2078 | void ScintillaEdit::chooseCaretX() { |
2079 | send(SCI_CHOOSECARETX, 0, 0); |
2080 | } |
2081 | |
2082 | void ScintillaEdit::grabFocus() { |
2083 | send(SCI_GRABFOCUS, 0, 0); |
2084 | } |
2085 | |
2086 | void ScintillaEdit::setXCaretPolicy(sptr_t caretPolicy, sptr_t caretSlop) { |
2087 | send(SCI_SETXCARETPOLICY, caretPolicy, caretSlop); |
2088 | } |
2089 | |
2090 | void ScintillaEdit::setYCaretPolicy(sptr_t caretPolicy, sptr_t caretSlop) { |
2091 | send(SCI_SETYCARETPOLICY, caretPolicy, caretSlop); |
2092 | } |
2093 | |
2094 | void ScintillaEdit::setPrintWrapMode(sptr_t wrapMode) { |
2095 | send(SCI_SETPRINTWRAPMODE, wrapMode, 0); |
2096 | } |
2097 | |
2098 | sptr_t ScintillaEdit::printWrapMode() const { |
2099 | return send(SCI_GETPRINTWRAPMODE, 0, 0); |
2100 | } |
2101 | |
2102 | void ScintillaEdit::setHotspotActiveFore(bool useSetting, sptr_t fore) { |
2103 | send(SCI_SETHOTSPOTACTIVEFORE, useSetting, fore); |
2104 | } |
2105 | |
2106 | sptr_t ScintillaEdit::hotspotActiveFore() const { |
2107 | return send(SCI_GETHOTSPOTACTIVEFORE, 0, 0); |
2108 | } |
2109 | |
2110 | void ScintillaEdit::setHotspotActiveBack(bool useSetting, sptr_t back) { |
2111 | send(SCI_SETHOTSPOTACTIVEBACK, useSetting, back); |
2112 | } |
2113 | |
2114 | sptr_t ScintillaEdit::hotspotActiveBack() const { |
2115 | return send(SCI_GETHOTSPOTACTIVEBACK, 0, 0); |
2116 | } |
2117 | |
2118 | void ScintillaEdit::setHotspotActiveUnderline(bool underline) { |
2119 | send(SCI_SETHOTSPOTACTIVEUNDERLINE, underline, 0); |
2120 | } |
2121 | |
2122 | bool ScintillaEdit::hotspotActiveUnderline() const { |
2123 | return send(SCI_GETHOTSPOTACTIVEUNDERLINE, 0, 0); |
2124 | } |
2125 | |
2126 | void ScintillaEdit::setHotspotSingleLine(bool singleLine) { |
2127 | send(SCI_SETHOTSPOTSINGLELINE, singleLine, 0); |
2128 | } |
2129 | |
2130 | bool ScintillaEdit::hotspotSingleLine() const { |
2131 | return send(SCI_GETHOTSPOTSINGLELINE, 0, 0); |
2132 | } |
2133 | |
2134 | void ScintillaEdit::paraDown() { |
2135 | send(SCI_PARADOWN, 0, 0); |
2136 | } |
2137 | |
2138 | void ScintillaEdit::paraDownExtend() { |
2139 | send(SCI_PARADOWNEXTEND, 0, 0); |
2140 | } |
2141 | |
2142 | void ScintillaEdit::paraUp() { |
2143 | send(SCI_PARAUP, 0, 0); |
2144 | } |
2145 | |
2146 | void ScintillaEdit::paraUpExtend() { |
2147 | send(SCI_PARAUPEXTEND, 0, 0); |
2148 | } |
2149 | |
2150 | sptr_t ScintillaEdit::positionBefore(sptr_t pos) { |
2151 | return send(SCI_POSITIONBEFORE, pos, 0); |
2152 | } |
2153 | |
2154 | sptr_t ScintillaEdit::positionAfter(sptr_t pos) { |
2155 | return send(SCI_POSITIONAFTER, pos, 0); |
2156 | } |
2157 | |
2158 | sptr_t ScintillaEdit::positionRelative(sptr_t pos, sptr_t relative) { |
2159 | return send(SCI_POSITIONRELATIVE, pos, relative); |
2160 | } |
2161 | |
2162 | sptr_t ScintillaEdit::positionRelativeCodeUnits(sptr_t pos, sptr_t relative) { |
2163 | return send(SCI_POSITIONRELATIVECODEUNITS, pos, relative); |
2164 | } |
2165 | |
2166 | void ScintillaEdit::copyRange(sptr_t start, sptr_t end) { |
2167 | send(SCI_COPYRANGE, start, end); |
2168 | } |
2169 | |
2170 | void ScintillaEdit::copyText(sptr_t length, const char * text) { |
2171 | send(SCI_COPYTEXT, length, (sptr_t)text); |
2172 | } |
2173 | |
2174 | void ScintillaEdit::setSelectionMode(sptr_t selectionMode) { |
2175 | send(SCI_SETSELECTIONMODE, selectionMode, 0); |
2176 | } |
2177 | |
2178 | sptr_t ScintillaEdit::selectionMode() const { |
2179 | return send(SCI_GETSELECTIONMODE, 0, 0); |
2180 | } |
2181 | |
2182 | bool ScintillaEdit::moveExtendsSelection() const { |
2183 | return send(SCI_GETMOVEEXTENDSSELECTION, 0, 0); |
2184 | } |
2185 | |
2186 | sptr_t ScintillaEdit::getLineSelStartPosition(sptr_t line) { |
2187 | return send(SCI_GETLINESELSTARTPOSITION, line, 0); |
2188 | } |
2189 | |
2190 | sptr_t ScintillaEdit::getLineSelEndPosition(sptr_t line) { |
2191 | return send(SCI_GETLINESELENDPOSITION, line, 0); |
2192 | } |
2193 | |
2194 | void ScintillaEdit::lineDownRectExtend() { |
2195 | send(SCI_LINEDOWNRECTEXTEND, 0, 0); |
2196 | } |
2197 | |
2198 | void ScintillaEdit::lineUpRectExtend() { |
2199 | send(SCI_LINEUPRECTEXTEND, 0, 0); |
2200 | } |
2201 | |
2202 | void ScintillaEdit::charLeftRectExtend() { |
2203 | send(SCI_CHARLEFTRECTEXTEND, 0, 0); |
2204 | } |
2205 | |
2206 | void ScintillaEdit::charRightRectExtend() { |
2207 | send(SCI_CHARRIGHTRECTEXTEND, 0, 0); |
2208 | } |
2209 | |
2210 | void ScintillaEdit::homeRectExtend() { |
2211 | send(SCI_HOMERECTEXTEND, 0, 0); |
2212 | } |
2213 | |
2214 | void ScintillaEdit::vCHomeRectExtend() { |
2215 | send(SCI_VCHOMERECTEXTEND, 0, 0); |
2216 | } |
2217 | |
2218 | void ScintillaEdit::lineEndRectExtend() { |
2219 | send(SCI_LINEENDRECTEXTEND, 0, 0); |
2220 | } |
2221 | |
2222 | void ScintillaEdit::pageUpRectExtend() { |
2223 | send(SCI_PAGEUPRECTEXTEND, 0, 0); |
2224 | } |
2225 | |
2226 | void ScintillaEdit::pageDownRectExtend() { |
2227 | send(SCI_PAGEDOWNRECTEXTEND, 0, 0); |
2228 | } |
2229 | |
2230 | void ScintillaEdit::stutteredPageUp() { |
2231 | send(SCI_STUTTEREDPAGEUP, 0, 0); |
2232 | } |
2233 | |
2234 | void ScintillaEdit::stutteredPageUpExtend() { |
2235 | send(SCI_STUTTEREDPAGEUPEXTEND, 0, 0); |
2236 | } |
2237 | |
2238 | void ScintillaEdit::stutteredPageDown() { |
2239 | send(SCI_STUTTEREDPAGEDOWN, 0, 0); |
2240 | } |
2241 | |
2242 | void ScintillaEdit::stutteredPageDownExtend() { |
2243 | send(SCI_STUTTEREDPAGEDOWNEXTEND, 0, 0); |
2244 | } |
2245 | |
2246 | void ScintillaEdit::wordLeftEnd() { |
2247 | send(SCI_WORDLEFTEND, 0, 0); |
2248 | } |
2249 | |
2250 | void ScintillaEdit::wordLeftEndExtend() { |
2251 | send(SCI_WORDLEFTENDEXTEND, 0, 0); |
2252 | } |
2253 | |
2254 | void ScintillaEdit::wordRightEnd() { |
2255 | send(SCI_WORDRIGHTEND, 0, 0); |
2256 | } |
2257 | |
2258 | void ScintillaEdit::wordRightEndExtend() { |
2259 | send(SCI_WORDRIGHTENDEXTEND, 0, 0); |
2260 | } |
2261 | |
2262 | void ScintillaEdit::setWhitespaceChars(const char * characters) { |
2263 | send(SCI_SETWHITESPACECHARS, 0, (sptr_t)characters); |
2264 | } |
2265 | |
2266 | QByteArray ScintillaEdit::whitespaceChars() const { |
2267 | return TextReturner(SCI_GETWHITESPACECHARS, 0); |
2268 | } |
2269 | |
2270 | void ScintillaEdit::setPunctuationChars(const char * characters) { |
2271 | send(SCI_SETPUNCTUATIONCHARS, 0, (sptr_t)characters); |
2272 | } |
2273 | |
2274 | QByteArray ScintillaEdit::punctuationChars() const { |
2275 | return TextReturner(SCI_GETPUNCTUATIONCHARS, 0); |
2276 | } |
2277 | |
2278 | void ScintillaEdit::setCharsDefault() { |
2279 | send(SCI_SETCHARSDEFAULT, 0, 0); |
2280 | } |
2281 | |
2282 | sptr_t ScintillaEdit::autoCCurrent() const { |
2283 | return send(SCI_AUTOCGETCURRENT, 0, 0); |
2284 | } |
2285 | |
2286 | QByteArray ScintillaEdit::autoCCurrentText() const { |
2287 | return TextReturner(SCI_AUTOCGETCURRENTTEXT, 0); |
2288 | } |
2289 | |
2290 | void ScintillaEdit::autoCSetCaseInsensitiveBehaviour(sptr_t behaviour) { |
2291 | send(SCI_AUTOCSETCASEINSENSITIVEBEHAVIOUR, behaviour, 0); |
2292 | } |
2293 | |
2294 | sptr_t ScintillaEdit::autoCCaseInsensitiveBehaviour() const { |
2295 | return send(SCI_AUTOCGETCASEINSENSITIVEBEHAVIOUR, 0, 0); |
2296 | } |
2297 | |
2298 | void ScintillaEdit::autoCSetMulti(sptr_t multi) { |
2299 | send(SCI_AUTOCSETMULTI, multi, 0); |
2300 | } |
2301 | |
2302 | sptr_t ScintillaEdit::autoCMulti() const { |
2303 | return send(SCI_AUTOCGETMULTI, 0, 0); |
2304 | } |
2305 | |
2306 | void ScintillaEdit::autoCSetOrder(sptr_t order) { |
2307 | send(SCI_AUTOCSETORDER, order, 0); |
2308 | } |
2309 | |
2310 | sptr_t ScintillaEdit::autoCOrder() const { |
2311 | return send(SCI_AUTOCGETORDER, 0, 0); |
2312 | } |
2313 | |
2314 | void ScintillaEdit::allocate(sptr_t bytes) { |
2315 | send(SCI_ALLOCATE, bytes, 0); |
2316 | } |
2317 | |
2318 | QByteArray ScintillaEdit::targetAsUTF8() { |
2319 | return TextReturner(SCI_TARGETASUTF8, 0); |
2320 | } |
2321 | |
2322 | void ScintillaEdit::setLengthForEncode(sptr_t bytes) { |
2323 | send(SCI_SETLENGTHFORENCODE, bytes, 0); |
2324 | } |
2325 | |
2326 | QByteArray ScintillaEdit::encodedFromUTF8(const char * utf8) { |
2327 | return TextReturner(SCI_ENCODEDFROMUTF8, (sptr_t)utf8); |
2328 | } |
2329 | |
2330 | sptr_t ScintillaEdit::findColumn(sptr_t line, sptr_t column) { |
2331 | return send(SCI_FINDCOLUMN, line, column); |
2332 | } |
2333 | |
2334 | sptr_t ScintillaEdit::caretSticky() const { |
2335 | return send(SCI_GETCARETSTICKY, 0, 0); |
2336 | } |
2337 | |
2338 | void ScintillaEdit::setCaretSticky(sptr_t useCaretStickyBehaviour) { |
2339 | send(SCI_SETCARETSTICKY, useCaretStickyBehaviour, 0); |
2340 | } |
2341 | |
2342 | void ScintillaEdit::toggleCaretSticky() { |
2343 | send(SCI_TOGGLECARETSTICKY, 0, 0); |
2344 | } |
2345 | |
2346 | void ScintillaEdit::setPasteConvertEndings(bool convert) { |
2347 | send(SCI_SETPASTECONVERTENDINGS, convert, 0); |
2348 | } |
2349 | |
2350 | bool ScintillaEdit::pasteConvertEndings() const { |
2351 | return send(SCI_GETPASTECONVERTENDINGS, 0, 0); |
2352 | } |
2353 | |
2354 | void ScintillaEdit::replaceRectangular(sptr_t length, const char * text) { |
2355 | send(SCI_REPLACERECTANGULAR, length, (sptr_t)text); |
2356 | } |
2357 | |
2358 | void ScintillaEdit::selectionDuplicate() { |
2359 | send(SCI_SELECTIONDUPLICATE, 0, 0); |
2360 | } |
2361 | |
2362 | void ScintillaEdit::setCaretLineBackAlpha(sptr_t alpha) { |
2363 | send(SCI_SETCARETLINEBACKALPHA, alpha, 0); |
2364 | } |
2365 | |
2366 | sptr_t ScintillaEdit::caretLineBackAlpha() const { |
2367 | return send(SCI_GETCARETLINEBACKALPHA, 0, 0); |
2368 | } |
2369 | |
2370 | void ScintillaEdit::setCaretStyle(sptr_t caretStyle) { |
2371 | send(SCI_SETCARETSTYLE, caretStyle, 0); |
2372 | } |
2373 | |
2374 | sptr_t ScintillaEdit::caretStyle() const { |
2375 | return send(SCI_GETCARETSTYLE, 0, 0); |
2376 | } |
2377 | |
2378 | void ScintillaEdit::setIndicatorCurrent(sptr_t indicator) { |
2379 | send(SCI_SETINDICATORCURRENT, indicator, 0); |
2380 | } |
2381 | |
2382 | sptr_t ScintillaEdit::indicatorCurrent() const { |
2383 | return send(SCI_GETINDICATORCURRENT, 0, 0); |
2384 | } |
2385 | |
2386 | void ScintillaEdit::setIndicatorValue(sptr_t value) { |
2387 | send(SCI_SETINDICATORVALUE, value, 0); |
2388 | } |
2389 | |
2390 | sptr_t ScintillaEdit::indicatorValue() const { |
2391 | return send(SCI_GETINDICATORVALUE, 0, 0); |
2392 | } |
2393 | |
2394 | void ScintillaEdit::indicatorFillRange(sptr_t start, sptr_t lengthFill) { |
2395 | send(SCI_INDICATORFILLRANGE, start, lengthFill); |
2396 | } |
2397 | |
2398 | void ScintillaEdit::indicatorClearRange(sptr_t start, sptr_t lengthClear) { |
2399 | send(SCI_INDICATORCLEARRANGE, start, lengthClear); |
2400 | } |
2401 | |
2402 | sptr_t ScintillaEdit::indicatorAllOnFor(sptr_t pos) { |
2403 | return send(SCI_INDICATORALLONFOR, pos, 0); |
2404 | } |
2405 | |
2406 | sptr_t ScintillaEdit::indicatorValueAt(sptr_t indicator, sptr_t pos) { |
2407 | return send(SCI_INDICATORVALUEAT, indicator, pos); |
2408 | } |
2409 | |
2410 | sptr_t ScintillaEdit::indicatorStart(sptr_t indicator, sptr_t pos) { |
2411 | return send(SCI_INDICATORSTART, indicator, pos); |
2412 | } |
2413 | |
2414 | sptr_t ScintillaEdit::indicatorEnd(sptr_t indicator, sptr_t pos) { |
2415 | return send(SCI_INDICATOREND, indicator, pos); |
2416 | } |
2417 | |
2418 | void ScintillaEdit::setPositionCache(sptr_t size) { |
2419 | send(SCI_SETPOSITIONCACHE, size, 0); |
2420 | } |
2421 | |
2422 | sptr_t ScintillaEdit::positionCache() const { |
2423 | return send(SCI_GETPOSITIONCACHE, 0, 0); |
2424 | } |
2425 | |
2426 | void ScintillaEdit::copyAllowLine() { |
2427 | send(SCI_COPYALLOWLINE, 0, 0); |
2428 | } |
2429 | |
2430 | sptr_t ScintillaEdit::characterPointer() const { |
2431 | return send(SCI_GETCHARACTERPOINTER, 0, 0); |
2432 | } |
2433 | |
2434 | sptr_t ScintillaEdit::rangePointer(sptr_t start, sptr_t lengthRange) const { |
2435 | return send(SCI_GETRANGEPOINTER, start, lengthRange); |
2436 | } |
2437 | |
2438 | sptr_t ScintillaEdit::gapPosition() const { |
2439 | return send(SCI_GETGAPPOSITION, 0, 0); |
2440 | } |
2441 | |
2442 | void ScintillaEdit::indicSetAlpha(sptr_t indicator, sptr_t alpha) { |
2443 | send(SCI_INDICSETALPHA, indicator, alpha); |
2444 | } |
2445 | |
2446 | sptr_t ScintillaEdit::indicAlpha(sptr_t indicator) const { |
2447 | return send(SCI_INDICGETALPHA, indicator, 0); |
2448 | } |
2449 | |
2450 | void ScintillaEdit::indicSetOutlineAlpha(sptr_t indicator, sptr_t alpha) { |
2451 | send(SCI_INDICSETOUTLINEALPHA, indicator, alpha); |
2452 | } |
2453 | |
2454 | sptr_t ScintillaEdit::indicOutlineAlpha(sptr_t indicator) const { |
2455 | return send(SCI_INDICGETOUTLINEALPHA, indicator, 0); |
2456 | } |
2457 | |
2458 | void ScintillaEdit::(sptr_t ) { |
2459 | send(SCI_SETEXTRAASCENT, extraAscent, 0); |
2460 | } |
2461 | |
2462 | sptr_t ScintillaEdit::() const { |
2463 | return send(SCI_GETEXTRAASCENT, 0, 0); |
2464 | } |
2465 | |
2466 | void ScintillaEdit::(sptr_t ) { |
2467 | send(SCI_SETEXTRADESCENT, extraDescent, 0); |
2468 | } |
2469 | |
2470 | sptr_t ScintillaEdit::() const { |
2471 | return send(SCI_GETEXTRADESCENT, 0, 0); |
2472 | } |
2473 | |
2474 | sptr_t ScintillaEdit::markerSymbolDefined(sptr_t markerNumber) { |
2475 | return send(SCI_MARKERSYMBOLDEFINED, markerNumber, 0); |
2476 | } |
2477 | |
2478 | void ScintillaEdit::marginSetText(sptr_t line, const char * text) { |
2479 | send(SCI_MARGINSETTEXT, line, (sptr_t)text); |
2480 | } |
2481 | |
2482 | QByteArray ScintillaEdit::marginText(sptr_t line) const { |
2483 | return TextReturner(SCI_MARGINGETTEXT, line); |
2484 | } |
2485 | |
2486 | void ScintillaEdit::marginSetStyle(sptr_t line, sptr_t style) { |
2487 | send(SCI_MARGINSETSTYLE, line, style); |
2488 | } |
2489 | |
2490 | sptr_t ScintillaEdit::marginStyle(sptr_t line) const { |
2491 | return send(SCI_MARGINGETSTYLE, line, 0); |
2492 | } |
2493 | |
2494 | void ScintillaEdit::marginSetStyles(sptr_t line, const char * styles) { |
2495 | send(SCI_MARGINSETSTYLES, line, (sptr_t)styles); |
2496 | } |
2497 | |
2498 | QByteArray ScintillaEdit::marginStyles(sptr_t line) const { |
2499 | return TextReturner(SCI_MARGINGETSTYLES, line); |
2500 | } |
2501 | |
2502 | void ScintillaEdit::marginTextClearAll() { |
2503 | send(SCI_MARGINTEXTCLEARALL, 0, 0); |
2504 | } |
2505 | |
2506 | void ScintillaEdit::marginSetStyleOffset(sptr_t style) { |
2507 | send(SCI_MARGINSETSTYLEOFFSET, style, 0); |
2508 | } |
2509 | |
2510 | sptr_t ScintillaEdit::marginStyleOffset() const { |
2511 | return send(SCI_MARGINGETSTYLEOFFSET, 0, 0); |
2512 | } |
2513 | |
2514 | void ScintillaEdit::setMarginOptions(sptr_t marginOptions) { |
2515 | send(SCI_SETMARGINOPTIONS, marginOptions, 0); |
2516 | } |
2517 | |
2518 | sptr_t ScintillaEdit::marginOptions() const { |
2519 | return send(SCI_GETMARGINOPTIONS, 0, 0); |
2520 | } |
2521 | |
2522 | void ScintillaEdit::annotationSetText(sptr_t line, const char * text) { |
2523 | send(SCI_ANNOTATIONSETTEXT, line, (sptr_t)text); |
2524 | } |
2525 | |
2526 | QByteArray ScintillaEdit::annotationText(sptr_t line) const { |
2527 | return TextReturner(SCI_ANNOTATIONGETTEXT, line); |
2528 | } |
2529 | |
2530 | void ScintillaEdit::annotationSetStyle(sptr_t line, sptr_t style) { |
2531 | send(SCI_ANNOTATIONSETSTYLE, line, style); |
2532 | } |
2533 | |
2534 | sptr_t ScintillaEdit::annotationStyle(sptr_t line) const { |
2535 | return send(SCI_ANNOTATIONGETSTYLE, line, 0); |
2536 | } |
2537 | |
2538 | void ScintillaEdit::annotationSetStyles(sptr_t line, const char * styles) { |
2539 | send(SCI_ANNOTATIONSETSTYLES, line, (sptr_t)styles); |
2540 | } |
2541 | |
2542 | QByteArray ScintillaEdit::annotationStyles(sptr_t line) const { |
2543 | return TextReturner(SCI_ANNOTATIONGETSTYLES, line); |
2544 | } |
2545 | |
2546 | sptr_t ScintillaEdit::annotationLines(sptr_t line) const { |
2547 | return send(SCI_ANNOTATIONGETLINES, line, 0); |
2548 | } |
2549 | |
2550 | void ScintillaEdit::annotationClearAll() { |
2551 | send(SCI_ANNOTATIONCLEARALL, 0, 0); |
2552 | } |
2553 | |
2554 | void ScintillaEdit::annotationSetVisible(sptr_t visible) { |
2555 | send(SCI_ANNOTATIONSETVISIBLE, visible, 0); |
2556 | } |
2557 | |
2558 | sptr_t ScintillaEdit::annotationVisible() const { |
2559 | return send(SCI_ANNOTATIONGETVISIBLE, 0, 0); |
2560 | } |
2561 | |
2562 | void ScintillaEdit::annotationSetStyleOffset(sptr_t style) { |
2563 | send(SCI_ANNOTATIONSETSTYLEOFFSET, style, 0); |
2564 | } |
2565 | |
2566 | sptr_t ScintillaEdit::annotationStyleOffset() const { |
2567 | return send(SCI_ANNOTATIONGETSTYLEOFFSET, 0, 0); |
2568 | } |
2569 | |
2570 | void ScintillaEdit::releaseAllExtendedStyles() { |
2571 | send(SCI_RELEASEALLEXTENDEDSTYLES, 0, 0); |
2572 | } |
2573 | |
2574 | sptr_t ScintillaEdit::allocateExtendedStyles(sptr_t numberStyles) { |
2575 | return send(SCI_ALLOCATEEXTENDEDSTYLES, numberStyles, 0); |
2576 | } |
2577 | |
2578 | void ScintillaEdit::addUndoAction(sptr_t token, sptr_t flags) { |
2579 | send(SCI_ADDUNDOACTION, token, flags); |
2580 | } |
2581 | |
2582 | sptr_t ScintillaEdit::charPositionFromPoint(sptr_t x, sptr_t y) { |
2583 | return send(SCI_CHARPOSITIONFROMPOINT, x, y); |
2584 | } |
2585 | |
2586 | sptr_t ScintillaEdit::charPositionFromPointClose(sptr_t x, sptr_t y) { |
2587 | return send(SCI_CHARPOSITIONFROMPOINTCLOSE, x, y); |
2588 | } |
2589 | |
2590 | void ScintillaEdit::setMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch) { |
2591 | send(SCI_SETMOUSESELECTIONRECTANGULARSWITCH, mouseSelectionRectangularSwitch, 0); |
2592 | } |
2593 | |
2594 | bool ScintillaEdit::mouseSelectionRectangularSwitch() const { |
2595 | return send(SCI_GETMOUSESELECTIONRECTANGULARSWITCH, 0, 0); |
2596 | } |
2597 | |
2598 | void ScintillaEdit::setMultipleSelection(bool multipleSelection) { |
2599 | send(SCI_SETMULTIPLESELECTION, multipleSelection, 0); |
2600 | } |
2601 | |
2602 | bool ScintillaEdit::multipleSelection() const { |
2603 | return send(SCI_GETMULTIPLESELECTION, 0, 0); |
2604 | } |
2605 | |
2606 | void ScintillaEdit::setAdditionalSelectionTyping(bool additionalSelectionTyping) { |
2607 | send(SCI_SETADDITIONALSELECTIONTYPING, additionalSelectionTyping, 0); |
2608 | } |
2609 | |
2610 | bool ScintillaEdit::additionalSelectionTyping() const { |
2611 | return send(SCI_GETADDITIONALSELECTIONTYPING, 0, 0); |
2612 | } |
2613 | |
2614 | void ScintillaEdit::setAdditionalCaretsBlink(bool additionalCaretsBlink) { |
2615 | send(SCI_SETADDITIONALCARETSBLINK, additionalCaretsBlink, 0); |
2616 | } |
2617 | |
2618 | bool ScintillaEdit::additionalCaretsBlink() const { |
2619 | return send(SCI_GETADDITIONALCARETSBLINK, 0, 0); |
2620 | } |
2621 | |
2622 | void ScintillaEdit::setAdditionalCaretsVisible(bool additionalCaretsVisible) { |
2623 | send(SCI_SETADDITIONALCARETSVISIBLE, additionalCaretsVisible, 0); |
2624 | } |
2625 | |
2626 | bool ScintillaEdit::additionalCaretsVisible() const { |
2627 | return send(SCI_GETADDITIONALCARETSVISIBLE, 0, 0); |
2628 | } |
2629 | |
2630 | sptr_t ScintillaEdit::selections() const { |
2631 | return send(SCI_GETSELECTIONS, 0, 0); |
2632 | } |
2633 | |
2634 | bool ScintillaEdit::selectionEmpty() const { |
2635 | return send(SCI_GETSELECTIONEMPTY, 0, 0); |
2636 | } |
2637 | |
2638 | void ScintillaEdit::clearSelections() { |
2639 | send(SCI_CLEARSELECTIONS, 0, 0); |
2640 | } |
2641 | |
2642 | void ScintillaEdit::setSelection(sptr_t caret, sptr_t anchor) { |
2643 | send(SCI_SETSELECTION, caret, anchor); |
2644 | } |
2645 | |
2646 | void ScintillaEdit::addSelection(sptr_t caret, sptr_t anchor) { |
2647 | send(SCI_ADDSELECTION, caret, anchor); |
2648 | } |
2649 | |
2650 | void ScintillaEdit::dropSelectionN(sptr_t selection) { |
2651 | send(SCI_DROPSELECTIONN, selection, 0); |
2652 | } |
2653 | |
2654 | void ScintillaEdit::setMainSelection(sptr_t selection) { |
2655 | send(SCI_SETMAINSELECTION, selection, 0); |
2656 | } |
2657 | |
2658 | sptr_t ScintillaEdit::mainSelection() const { |
2659 | return send(SCI_GETMAINSELECTION, 0, 0); |
2660 | } |
2661 | |
2662 | void ScintillaEdit::setSelectionNCaret(sptr_t selection, sptr_t caret) { |
2663 | send(SCI_SETSELECTIONNCARET, selection, caret); |
2664 | } |
2665 | |
2666 | sptr_t ScintillaEdit::selectionNCaret(sptr_t selection) const { |
2667 | return send(SCI_GETSELECTIONNCARET, selection, 0); |
2668 | } |
2669 | |
2670 | void ScintillaEdit::setSelectionNAnchor(sptr_t selection, sptr_t anchor) { |
2671 | send(SCI_SETSELECTIONNANCHOR, selection, anchor); |
2672 | } |
2673 | |
2674 | sptr_t ScintillaEdit::selectionNAnchor(sptr_t selection) const { |
2675 | return send(SCI_GETSELECTIONNANCHOR, selection, 0); |
2676 | } |
2677 | |
2678 | void ScintillaEdit::setSelectionNCaretVirtualSpace(sptr_t selection, sptr_t space) { |
2679 | send(SCI_SETSELECTIONNCARETVIRTUALSPACE, selection, space); |
2680 | } |
2681 | |
2682 | sptr_t ScintillaEdit::selectionNCaretVirtualSpace(sptr_t selection) const { |
2683 | return send(SCI_GETSELECTIONNCARETVIRTUALSPACE, selection, 0); |
2684 | } |
2685 | |
2686 | void ScintillaEdit::setSelectionNAnchorVirtualSpace(sptr_t selection, sptr_t space) { |
2687 | send(SCI_SETSELECTIONNANCHORVIRTUALSPACE, selection, space); |
2688 | } |
2689 | |
2690 | sptr_t ScintillaEdit::selectionNAnchorVirtualSpace(sptr_t selection) const { |
2691 | return send(SCI_GETSELECTIONNANCHORVIRTUALSPACE, selection, 0); |
2692 | } |
2693 | |
2694 | void ScintillaEdit::setSelectionNStart(sptr_t selection, sptr_t anchor) { |
2695 | send(SCI_SETSELECTIONNSTART, selection, anchor); |
2696 | } |
2697 | |
2698 | sptr_t ScintillaEdit::selectionNStart(sptr_t selection) const { |
2699 | return send(SCI_GETSELECTIONNSTART, selection, 0); |
2700 | } |
2701 | |
2702 | sptr_t ScintillaEdit::selectionNStartVirtualSpace(sptr_t selection) const { |
2703 | return send(SCI_GETSELECTIONNSTARTVIRTUALSPACE, selection, 0); |
2704 | } |
2705 | |
2706 | void ScintillaEdit::setSelectionNEnd(sptr_t selection, sptr_t caret) { |
2707 | send(SCI_SETSELECTIONNEND, selection, caret); |
2708 | } |
2709 | |
2710 | sptr_t ScintillaEdit::selectionNEndVirtualSpace(sptr_t selection) const { |
2711 | return send(SCI_GETSELECTIONNENDVIRTUALSPACE, selection, 0); |
2712 | } |
2713 | |
2714 | sptr_t ScintillaEdit::selectionNEnd(sptr_t selection) const { |
2715 | return send(SCI_GETSELECTIONNEND, selection, 0); |
2716 | } |
2717 | |
2718 | void ScintillaEdit::setRectangularSelectionCaret(sptr_t caret) { |
2719 | send(SCI_SETRECTANGULARSELECTIONCARET, caret, 0); |
2720 | } |
2721 | |
2722 | sptr_t ScintillaEdit::rectangularSelectionCaret() const { |
2723 | return send(SCI_GETRECTANGULARSELECTIONCARET, 0, 0); |
2724 | } |
2725 | |
2726 | void ScintillaEdit::setRectangularSelectionAnchor(sptr_t anchor) { |
2727 | send(SCI_SETRECTANGULARSELECTIONANCHOR, anchor, 0); |
2728 | } |
2729 | |
2730 | sptr_t ScintillaEdit::rectangularSelectionAnchor() const { |
2731 | return send(SCI_GETRECTANGULARSELECTIONANCHOR, 0, 0); |
2732 | } |
2733 | |
2734 | void ScintillaEdit::setRectangularSelectionCaretVirtualSpace(sptr_t space) { |
2735 | send(SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE, space, 0); |
2736 | } |
2737 | |
2738 | sptr_t ScintillaEdit::rectangularSelectionCaretVirtualSpace() const { |
2739 | return send(SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE, 0, 0); |
2740 | } |
2741 | |
2742 | void ScintillaEdit::setRectangularSelectionAnchorVirtualSpace(sptr_t space) { |
2743 | send(SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE, space, 0); |
2744 | } |
2745 | |
2746 | sptr_t ScintillaEdit::rectangularSelectionAnchorVirtualSpace() const { |
2747 | return send(SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE, 0, 0); |
2748 | } |
2749 | |
2750 | void ScintillaEdit::setVirtualSpaceOptions(sptr_t virtualSpaceOptions) { |
2751 | send(SCI_SETVIRTUALSPACEOPTIONS, virtualSpaceOptions, 0); |
2752 | } |
2753 | |
2754 | sptr_t ScintillaEdit::virtualSpaceOptions() const { |
2755 | return send(SCI_GETVIRTUALSPACEOPTIONS, 0, 0); |
2756 | } |
2757 | |
2758 | void ScintillaEdit::setRectangularSelectionModifier(sptr_t modifier) { |
2759 | send(SCI_SETRECTANGULARSELECTIONMODIFIER, modifier, 0); |
2760 | } |
2761 | |
2762 | sptr_t ScintillaEdit::rectangularSelectionModifier() const { |
2763 | return send(SCI_GETRECTANGULARSELECTIONMODIFIER, 0, 0); |
2764 | } |
2765 | |
2766 | void ScintillaEdit::setAdditionalSelFore(sptr_t fore) { |
2767 | send(SCI_SETADDITIONALSELFORE, fore, 0); |
2768 | } |
2769 | |
2770 | void ScintillaEdit::setAdditionalSelBack(sptr_t back) { |
2771 | send(SCI_SETADDITIONALSELBACK, back, 0); |
2772 | } |
2773 | |
2774 | void ScintillaEdit::setAdditionalSelAlpha(sptr_t alpha) { |
2775 | send(SCI_SETADDITIONALSELALPHA, alpha, 0); |
2776 | } |
2777 | |
2778 | sptr_t ScintillaEdit::additionalSelAlpha() const { |
2779 | return send(SCI_GETADDITIONALSELALPHA, 0, 0); |
2780 | } |
2781 | |
2782 | void ScintillaEdit::setAdditionalCaretFore(sptr_t fore) { |
2783 | send(SCI_SETADDITIONALCARETFORE, fore, 0); |
2784 | } |
2785 | |
2786 | sptr_t ScintillaEdit::additionalCaretFore() const { |
2787 | return send(SCI_GETADDITIONALCARETFORE, 0, 0); |
2788 | } |
2789 | |
2790 | void ScintillaEdit::rotateSelection() { |
2791 | send(SCI_ROTATESELECTION, 0, 0); |
2792 | } |
2793 | |
2794 | void ScintillaEdit::swapMainAnchorCaret() { |
2795 | send(SCI_SWAPMAINANCHORCARET, 0, 0); |
2796 | } |
2797 | |
2798 | void ScintillaEdit::multipleSelectAddNext() { |
2799 | send(SCI_MULTIPLESELECTADDNEXT, 0, 0); |
2800 | } |
2801 | |
2802 | void ScintillaEdit::multipleSelectAddEach() { |
2803 | send(SCI_MULTIPLESELECTADDEACH, 0, 0); |
2804 | } |
2805 | |
2806 | sptr_t ScintillaEdit::changeLexerState(sptr_t start, sptr_t end) { |
2807 | return send(SCI_CHANGELEXERSTATE, start, end); |
2808 | } |
2809 | |
2810 | sptr_t ScintillaEdit::contractedFoldNext(sptr_t lineStart) { |
2811 | return send(SCI_CONTRACTEDFOLDNEXT, lineStart, 0); |
2812 | } |
2813 | |
2814 | void ScintillaEdit::verticalCentreCaret() { |
2815 | send(SCI_VERTICALCENTRECARET, 0, 0); |
2816 | } |
2817 | |
2818 | void ScintillaEdit::moveSelectedLinesUp() { |
2819 | send(SCI_MOVESELECTEDLINESUP, 0, 0); |
2820 | } |
2821 | |
2822 | void ScintillaEdit::moveSelectedLinesDown() { |
2823 | send(SCI_MOVESELECTEDLINESDOWN, 0, 0); |
2824 | } |
2825 | |
2826 | void ScintillaEdit::setIdentifier(sptr_t identifier) { |
2827 | send(SCI_SETIDENTIFIER, identifier, 0); |
2828 | } |
2829 | |
2830 | sptr_t ScintillaEdit::identifier() const { |
2831 | return send(SCI_GETIDENTIFIER, 0, 0); |
2832 | } |
2833 | |
2834 | void ScintillaEdit::rGBAImageSetWidth(sptr_t width) { |
2835 | send(SCI_RGBAIMAGESETWIDTH, width, 0); |
2836 | } |
2837 | |
2838 | void ScintillaEdit::rGBAImageSetHeight(sptr_t height) { |
2839 | send(SCI_RGBAIMAGESETHEIGHT, height, 0); |
2840 | } |
2841 | |
2842 | void ScintillaEdit::rGBAImageSetScale(sptr_t scalePercent) { |
2843 | send(SCI_RGBAIMAGESETSCALE, scalePercent, 0); |
2844 | } |
2845 | |
2846 | void ScintillaEdit::markerDefineRGBAImage(sptr_t markerNumber, const char * pixels) { |
2847 | send(SCI_MARKERDEFINERGBAIMAGE, markerNumber, (sptr_t)pixels); |
2848 | } |
2849 | |
2850 | void ScintillaEdit::registerRGBAImage(sptr_t type, const char * pixels) { |
2851 | send(SCI_REGISTERRGBAIMAGE, type, (sptr_t)pixels); |
2852 | } |
2853 | |
2854 | void ScintillaEdit::scrollToStart() { |
2855 | send(SCI_SCROLLTOSTART, 0, 0); |
2856 | } |
2857 | |
2858 | void ScintillaEdit::scrollToEnd() { |
2859 | send(SCI_SCROLLTOEND, 0, 0); |
2860 | } |
2861 | |
2862 | void ScintillaEdit::setTechnology(sptr_t technology) { |
2863 | send(SCI_SETTECHNOLOGY, technology, 0); |
2864 | } |
2865 | |
2866 | sptr_t ScintillaEdit::technology() const { |
2867 | return send(SCI_GETTECHNOLOGY, 0, 0); |
2868 | } |
2869 | |
2870 | sptr_t ScintillaEdit::createLoader(sptr_t bytes, sptr_t documentOptions) { |
2871 | return send(SCI_CREATELOADER, bytes, documentOptions); |
2872 | } |
2873 | |
2874 | void ScintillaEdit::findIndicatorShow(sptr_t start, sptr_t end) { |
2875 | send(SCI_FINDINDICATORSHOW, start, end); |
2876 | } |
2877 | |
2878 | void ScintillaEdit::findIndicatorFlash(sptr_t start, sptr_t end) { |
2879 | send(SCI_FINDINDICATORFLASH, start, end); |
2880 | } |
2881 | |
2882 | void ScintillaEdit::findIndicatorHide() { |
2883 | send(SCI_FINDINDICATORHIDE, 0, 0); |
2884 | } |
2885 | |
2886 | void ScintillaEdit::vCHomeDisplay() { |
2887 | send(SCI_VCHOMEDISPLAY, 0, 0); |
2888 | } |
2889 | |
2890 | void ScintillaEdit::vCHomeDisplayExtend() { |
2891 | send(SCI_VCHOMEDISPLAYEXTEND, 0, 0); |
2892 | } |
2893 | |
2894 | bool ScintillaEdit::caretLineVisibleAlways() const { |
2895 | return send(SCI_GETCARETLINEVISIBLEALWAYS, 0, 0); |
2896 | } |
2897 | |
2898 | void ScintillaEdit::setCaretLineVisibleAlways(bool alwaysVisible) { |
2899 | send(SCI_SETCARETLINEVISIBLEALWAYS, alwaysVisible, 0); |
2900 | } |
2901 | |
2902 | void ScintillaEdit::setLineEndTypesAllowed(sptr_t lineEndBitSet) { |
2903 | send(SCI_SETLINEENDTYPESALLOWED, lineEndBitSet, 0); |
2904 | } |
2905 | |
2906 | sptr_t ScintillaEdit::lineEndTypesAllowed() const { |
2907 | return send(SCI_GETLINEENDTYPESALLOWED, 0, 0); |
2908 | } |
2909 | |
2910 | sptr_t ScintillaEdit::lineEndTypesActive() const { |
2911 | return send(SCI_GETLINEENDTYPESACTIVE, 0, 0); |
2912 | } |
2913 | |
2914 | void ScintillaEdit::setRepresentation(const char * encodedCharacter, const char * representation) { |
2915 | send(SCI_SETREPRESENTATION, (sptr_t)encodedCharacter, (sptr_t)representation); |
2916 | } |
2917 | |
2918 | QByteArray ScintillaEdit::representation(const char * encodedCharacter) const { |
2919 | return TextReturner(SCI_GETREPRESENTATION, (sptr_t)encodedCharacter); |
2920 | } |
2921 | |
2922 | void ScintillaEdit::clearRepresentation(const char * encodedCharacter) { |
2923 | send(SCI_CLEARREPRESENTATION, (sptr_t)encodedCharacter, 0); |
2924 | } |
2925 | |
2926 | void ScintillaEdit::clearAllRepresentations() { |
2927 | send(SCI_CLEARALLREPRESENTATIONS, 0, 0); |
2928 | } |
2929 | |
2930 | void ScintillaEdit::setRepresentationAppearance(const char * encodedCharacter, sptr_t appearance) { |
2931 | send(SCI_SETREPRESENTATIONAPPEARANCE, (sptr_t)encodedCharacter, appearance); |
2932 | } |
2933 | |
2934 | sptr_t ScintillaEdit::representationAppearance(const char * encodedCharacter) const { |
2935 | return send(SCI_GETREPRESENTATIONAPPEARANCE, (sptr_t)encodedCharacter, 0); |
2936 | } |
2937 | |
2938 | void ScintillaEdit::setRepresentationColour(const char * encodedCharacter, sptr_t colour) { |
2939 | send(SCI_SETREPRESENTATIONCOLOUR, (sptr_t)encodedCharacter, colour); |
2940 | } |
2941 | |
2942 | sptr_t ScintillaEdit::representationColour(const char * encodedCharacter) const { |
2943 | return send(SCI_GETREPRESENTATIONCOLOUR, (sptr_t)encodedCharacter, 0); |
2944 | } |
2945 | |
2946 | void ScintillaEdit::eOLAnnotationSetText(sptr_t line, const char * text) { |
2947 | send(SCI_EOLANNOTATIONSETTEXT, line, (sptr_t)text); |
2948 | } |
2949 | |
2950 | QByteArray ScintillaEdit::eOLAnnotationText(sptr_t line) const { |
2951 | return TextReturner(SCI_EOLANNOTATIONGETTEXT, line); |
2952 | } |
2953 | |
2954 | void ScintillaEdit::eOLAnnotationSetStyle(sptr_t line, sptr_t style) { |
2955 | send(SCI_EOLANNOTATIONSETSTYLE, line, style); |
2956 | } |
2957 | |
2958 | sptr_t ScintillaEdit::eOLAnnotationStyle(sptr_t line) const { |
2959 | return send(SCI_EOLANNOTATIONGETSTYLE, line, 0); |
2960 | } |
2961 | |
2962 | void ScintillaEdit::eOLAnnotationClearAll() { |
2963 | send(SCI_EOLANNOTATIONCLEARALL, 0, 0); |
2964 | } |
2965 | |
2966 | void ScintillaEdit::eOLAnnotationSetVisible(sptr_t visible) { |
2967 | send(SCI_EOLANNOTATIONSETVISIBLE, visible, 0); |
2968 | } |
2969 | |
2970 | sptr_t ScintillaEdit::eOLAnnotationVisible() const { |
2971 | return send(SCI_EOLANNOTATIONGETVISIBLE, 0, 0); |
2972 | } |
2973 | |
2974 | void ScintillaEdit::eOLAnnotationSetStyleOffset(sptr_t style) { |
2975 | send(SCI_EOLANNOTATIONSETSTYLEOFFSET, style, 0); |
2976 | } |
2977 | |
2978 | sptr_t ScintillaEdit::eOLAnnotationStyleOffset() const { |
2979 | return send(SCI_EOLANNOTATIONGETSTYLEOFFSET, 0, 0); |
2980 | } |
2981 | |
2982 | bool ScintillaEdit::supportsFeature(sptr_t feature) const { |
2983 | return send(SCI_SUPPORTSFEATURE, feature, 0); |
2984 | } |
2985 | |
2986 | sptr_t ScintillaEdit::lineCharacterIndex() const { |
2987 | return send(SCI_GETLINECHARACTERINDEX, 0, 0); |
2988 | } |
2989 | |
2990 | void ScintillaEdit::allocateLineCharacterIndex(sptr_t lineCharacterIndex) { |
2991 | send(SCI_ALLOCATELINECHARACTERINDEX, lineCharacterIndex, 0); |
2992 | } |
2993 | |
2994 | void ScintillaEdit::releaseLineCharacterIndex(sptr_t lineCharacterIndex) { |
2995 | send(SCI_RELEASELINECHARACTERINDEX, lineCharacterIndex, 0); |
2996 | } |
2997 | |
2998 | sptr_t ScintillaEdit::lineFromIndexPosition(sptr_t pos, sptr_t lineCharacterIndex) { |
2999 | return send(SCI_LINEFROMINDEXPOSITION, pos, lineCharacterIndex); |
3000 | } |
3001 | |
3002 | sptr_t ScintillaEdit::indexPositionFromLine(sptr_t line, sptr_t lineCharacterIndex) { |
3003 | return send(SCI_INDEXPOSITIONFROMLINE, line, lineCharacterIndex); |
3004 | } |
3005 | |
3006 | void ScintillaEdit::startRecord() { |
3007 | send(SCI_STARTRECORD, 0, 0); |
3008 | } |
3009 | |
3010 | void ScintillaEdit::stopRecord() { |
3011 | send(SCI_STOPRECORD, 0, 0); |
3012 | } |
3013 | |
3014 | sptr_t ScintillaEdit::lexer() const { |
3015 | return send(SCI_GETLEXER, 0, 0); |
3016 | } |
3017 | |
3018 | void ScintillaEdit::colourise(sptr_t start, sptr_t end) { |
3019 | send(SCI_COLOURISE, start, end); |
3020 | } |
3021 | |
3022 | void ScintillaEdit::setProperty(const char * key, const char * value) { |
3023 | send(SCI_SETPROPERTY, (sptr_t)key, (sptr_t)value); |
3024 | } |
3025 | |
3026 | void ScintillaEdit::setKeyWords(sptr_t keyWordSet, const char * keyWords) { |
3027 | send(SCI_SETKEYWORDS, keyWordSet, (sptr_t)keyWords); |
3028 | } |
3029 | |
3030 | QByteArray ScintillaEdit::property(const char * key) const { |
3031 | return TextReturner(SCI_GETPROPERTY, (sptr_t)key); |
3032 | } |
3033 | |
3034 | QByteArray ScintillaEdit::propertyExpanded(const char * key) const { |
3035 | return TextReturner(SCI_GETPROPERTYEXPANDED, (sptr_t)key); |
3036 | } |
3037 | |
3038 | sptr_t ScintillaEdit::propertyInt(const char * key, sptr_t defaultValue) const { |
3039 | return send(SCI_GETPROPERTYINT, (sptr_t)key, defaultValue); |
3040 | } |
3041 | |
3042 | QByteArray ScintillaEdit::lexerLanguage() const { |
3043 | return TextReturner(SCI_GETLEXERLANGUAGE, 0); |
3044 | } |
3045 | |
3046 | sptr_t ScintillaEdit::privateLexerCall(sptr_t operation, sptr_t pointer) { |
3047 | return send(SCI_PRIVATELEXERCALL, operation, pointer); |
3048 | } |
3049 | |
3050 | QByteArray ScintillaEdit::propertyNames() { |
3051 | return TextReturner(SCI_PROPERTYNAMES, 0); |
3052 | } |
3053 | |
3054 | sptr_t ScintillaEdit::propertyType(const char * name) { |
3055 | return send(SCI_PROPERTYTYPE, (sptr_t)name, 0); |
3056 | } |
3057 | |
3058 | QByteArray ScintillaEdit::describeProperty(const char * name) { |
3059 | return TextReturner(SCI_DESCRIBEPROPERTY, (sptr_t)name); |
3060 | } |
3061 | |
3062 | QByteArray ScintillaEdit::describeKeyWordSets() { |
3063 | return TextReturner(SCI_DESCRIBEKEYWORDSETS, 0); |
3064 | } |
3065 | |
3066 | sptr_t ScintillaEdit::lineEndTypesSupported() const { |
3067 | return send(SCI_GETLINEENDTYPESSUPPORTED, 0, 0); |
3068 | } |
3069 | |
3070 | sptr_t ScintillaEdit::allocateSubStyles(sptr_t styleBase, sptr_t numberStyles) { |
3071 | return send(SCI_ALLOCATESUBSTYLES, styleBase, numberStyles); |
3072 | } |
3073 | |
3074 | sptr_t ScintillaEdit::subStylesStart(sptr_t styleBase) const { |
3075 | return send(SCI_GETSUBSTYLESSTART, styleBase, 0); |
3076 | } |
3077 | |
3078 | sptr_t ScintillaEdit::subStylesLength(sptr_t styleBase) const { |
3079 | return send(SCI_GETSUBSTYLESLENGTH, styleBase, 0); |
3080 | } |
3081 | |
3082 | sptr_t ScintillaEdit::styleFromSubStyle(sptr_t subStyle) const { |
3083 | return send(SCI_GETSTYLEFROMSUBSTYLE, subStyle, 0); |
3084 | } |
3085 | |
3086 | sptr_t ScintillaEdit::primaryStyleFromStyle(sptr_t style) const { |
3087 | return send(SCI_GETPRIMARYSTYLEFROMSTYLE, style, 0); |
3088 | } |
3089 | |
3090 | void ScintillaEdit::freeSubStyles() { |
3091 | send(SCI_FREESUBSTYLES, 0, 0); |
3092 | } |
3093 | |
3094 | void ScintillaEdit::setIdentifiers(sptr_t style, const char * identifiers) { |
3095 | send(SCI_SETIDENTIFIERS, style, (sptr_t)identifiers); |
3096 | } |
3097 | |
3098 | sptr_t ScintillaEdit::distanceToSecondaryStyles() const { |
3099 | return send(SCI_DISTANCETOSECONDARYSTYLES, 0, 0); |
3100 | } |
3101 | |
3102 | QByteArray ScintillaEdit::subStyleBases() const { |
3103 | return TextReturner(SCI_GETSUBSTYLEBASES, 0); |
3104 | } |
3105 | |
3106 | sptr_t ScintillaEdit::namedStyles() const { |
3107 | return send(SCI_GETNAMEDSTYLES, 0, 0); |
3108 | } |
3109 | |
3110 | QByteArray ScintillaEdit::nameOfStyle(sptr_t style) { |
3111 | return TextReturner(SCI_NAMEOFSTYLE, style); |
3112 | } |
3113 | |
3114 | QByteArray ScintillaEdit::tagsOfStyle(sptr_t style) { |
3115 | return TextReturner(SCI_TAGSOFSTYLE, style); |
3116 | } |
3117 | |
3118 | QByteArray ScintillaEdit::descriptionOfStyle(sptr_t style) { |
3119 | return TextReturner(SCI_DESCRIPTIONOFSTYLE, style); |
3120 | } |
3121 | |
3122 | void ScintillaEdit::setILexer(sptr_t ilexer) { |
3123 | send(SCI_SETILEXER, 0, ilexer); |
3124 | } |
3125 | |
3126 | sptr_t ScintillaEdit::bidirectional() const { |
3127 | return send(SCI_GETBIDIRECTIONAL, 0, 0); |
3128 | } |
3129 | |
3130 | void ScintillaEdit::setBidirectional(sptr_t bidirectional) { |
3131 | send(SCI_SETBIDIRECTIONAL, bidirectional, 0); |
3132 | } |
3133 | |
3134 | /* --Autogenerated -- end of section automatically generated from Scintilla.iface */ |
3135 | |