~ubuntu-branches/ubuntu/wily/geany/wily-proposed

« back to all changes in this revision

Viewing changes to scintilla/src/Document.h

  • Committer: Package Import Robot
  • Author(s): Chow Loong Jin
  • Date: 2013-05-10 15:27:35 UTC
  • mfrom: (4.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130510152735-bvm7jw5k95ahpp8q
Tags: 1.23+dfsg-2
* Upload to unstable, fixes FTBFS (Closes: #707368)
* [a472a80] Enable parallel builds
* [17a6378] No-change bump of Standards-Version to 3.9.4
* [ea78f31] Add README.source describing git branch structure

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
 
194
194
/**
195
195
 */
196
 
class Document : PerLine, public IDocument {
 
196
class Document : PerLine, public IDocument, public ILoader {
197
197
 
198
198
public:
199
199
        /** Used to pair watcher pointer with user data. */
212
212
        int refCount;
213
213
        CellBuffer cb;
214
214
        CharClassify charClass;
 
215
        CaseFolder *pcf;
215
216
        char stylingMask;
216
217
        int endStyled;
217
218
        int styleClock;
252
253
        virtual ~Document();
253
254
 
254
255
        int AddRef();
255
 
        int Release();
 
256
        int SCI_METHOD Release();
256
257
 
257
258
        virtual void Init();
 
259
        bool SetDBCSCodePage(int dbcsCodePage_);
258
260
        virtual void InsertLine(int line);
259
261
        virtual void RemoveLine(int line);
260
262
 
281
283
        void CheckReadOnly();
282
284
        bool DeleteChars(int pos, int len);
283
285
        bool InsertString(int position, const char *s, int insertLength);
 
286
        int SCI_METHOD AddData(char *data, int length);
 
287
        void * SCI_METHOD ConvertToDocument();
284
288
        int Undo();
285
289
        int Redo();
286
290
        bool CanUndo() { return cb.CanUndo(); }
296
300
        void SetSavePoint();
297
301
        bool IsSavePoint() { return cb.IsSavePoint(); }
298
302
        const char * SCI_METHOD BufferPointer() { return cb.BufferPointer(); }
 
303
        const char *RangePointer(int position, int rangeLength) { return cb.RangePointer(position, rangeLength); }
 
304
        int GapPosition() const { return cb.GapPosition(); }
299
305
 
300
306
        int SCI_METHOD GetLineIndentation(int line);
301
307
        void SetLineIndentation(int line, int indent);
302
308
        int GetLineIndentPosition(int line) const;
303
309
        int GetColumn(int position);
 
310
        int CountCharacters(int startPos, int endPos);
304
311
        int FindColumn(int line, int column);
305
312
        void Indent(bool forwards, int lineBottom, int lineTop);
306
313
        static char *TransformLineEnds(int *pLenOut, const char *s, size_t len, int eolModeWanted);
323
330
                cb.GetStyleRange(buffer, position, lengthRetrieve);
324
331
        }
325
332
        int GetMark(int line);
 
333
        int MarkerNext(int lineStart, int mask) const;
326
334
        int AddMark(int line, int markerNum);
327
335
        void AddMarkSet(int line, int valueSet);
328
336
        void DeleteMark(int line, int markerNum);
348
356
        int NextWordEnd(int pos, int delta);
349
357
        int SCI_METHOD Length() const { return cb.Length(); }
350
358
        void Allocate(int newSize) { cb.Allocate(newSize); }
351
 
        size_t ExtractChar(int pos, char *bytes);
352
359
        bool MatchesWordOptions(bool word, bool wordStart, int pos, int length);
 
360
        bool HasCaseFolder(void) const;
 
361
        void SetCaseFolder(CaseFolder *pcf_);
353
362
        long FindText(int minPos, int maxPos, const char *search, bool caseSensitive, bool word,
354
 
                bool wordStart, bool regExp, int flags, int *length, CaseFolder *pcf);
 
363
                bool wordStart, bool regExp, int flags, int *length);
355
364
        const char *SubstituteByPosition(const char *text, int *length);
356
365
        int LinesTotal() const;
357
366
 
359
368
 
360
369
        void SetDefaultCharClasses(bool includeWordClass);
361
370
        void SetCharClasses(const unsigned char *chars, CharClassify::cc newCharClass);
 
371
        int GetCharsOfClass(CharClassify::cc charClass, unsigned char *buffer);
362
372
        void SetStylingBits(int bits);
363
373
        void SCI_METHOD StartStyling(int position, char mask);
364
374
        bool SCI_METHOD SetStyleFor(int length, char style);