~ubuntu-branches/ubuntu/natty/geany/natty

« back to all changes in this revision

Viewing changes to scintilla/include/WindowAccessor.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-08-07 03:23:12 UTC
  • mfrom: (1.4.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20100807032312-ot70ac9d50cn79we
Tags: upstream-0.19
ImportĀ upstreamĀ versionĀ 0.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
/**
14
14
 */
 
15
 
15
16
class WindowAccessor : public Accessor {
16
17
        // Private so WindowAccessor objects can not be copied
17
18
        WindowAccessor(const WindowAccessor &source) : Accessor(), props(source.props) {}
18
19
        WindowAccessor &operator=(const WindowAccessor &) { return *this; }
19
20
protected:
20
21
        WindowID id;
21
 
        PropSet &props;
 
22
        PropertyGet &props;
22
23
        int lenDoc;
23
24
 
24
25
        char styleBuf[bufferSize];
30
31
        bool InternalIsLeadByte(char ch);
31
32
        void Fill(int position);
32
33
public:
33
 
        WindowAccessor(WindowID id_, PropSet &props_) : 
 
34
        WindowAccessor(WindowID id_, PropertyGet &props_) : 
34
35
                Accessor(), id(id_), props(props_), 
35
36
                lenDoc(-1), validLen(0), chFlags(0), chWhile(0) {
36
37
        }
52
53
        }
53
54
 
54
55
        void StartAt(unsigned int start, char chMask=31);
55
 
        void SetFlags(char chFlags_, char chWhile_) {chFlags = chFlags_; chWhile = chWhile_; };
 
56
        void SetFlags(char chFlags_, char chWhile_) {chFlags = chFlags_; chWhile = chWhile_; }
56
57
        unsigned int GetStartSegment() { return startSeg; }
57
58
        void StartSegment(unsigned int pos);
58
59
        void ColourTo(unsigned int pos, int chAttr);