diff options
| author | Neil <nyamatongwe@gmail.com> | 2014-08-08 10:01:55 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2014-08-08 10:01:55 +1000 | 
| commit | a2940fd23daf6f8d82c9c821de5c40077ce0da84 (patch) | |
| tree | c90f4a2d63322446821db40a6df3a0106b751035 /src/PerLine.h | |
| parent | 0f69f3794f88db0630d7264c26c557558ed44b60 (diff) | |
| download | scintilla-mirror-a2940fd23daf6f8d82c9c821de5c40077ce0da84.tar.gz | |
Implement explicit tab stops per line.
From Nick Gravgaard.
Diffstat (limited to 'src/PerLine.h')
| -rw-r--r-- | src/PerLine.h | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/PerLine.h b/src/PerLine.h index 70d0023e4..4bf1c88fd 100644 --- a/src/PerLine.h +++ b/src/PerLine.h @@ -112,6 +112,23 @@ public:  	int Lines(int line) const;  }; +typedef std::vector<int> TabstopList; + +class LineTabstops : public PerLine { +	SplitVector<TabstopList *> tabstops; +public: +	LineTabstops() { +	} +	virtual ~LineTabstops(); +	virtual void Init(); +	virtual void InsertLine(int line); +	virtual void RemoveLine(int line); + +	bool ClearTabstops(int line); +	bool AddTabstop(int line, int x); +	int GetNextTabstop(int line, int x) const; +}; +  #ifdef SCI_NAMESPACE  }  #endif | 
