diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-17 08:23:18 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-17 08:23:18 +1000 |
commit | 255d2d33abf4c2c5a918bacde049004e52b7986f (patch) | |
tree | 4a563a7d7a9594be0e67b6be6c2c493d8ffea9ec /src/CellBuffer.h | |
parent | ec79c307ff36cdcce0e520e67bef69e64a3e19b5 (diff) | |
download | scintilla-mirror-255d2d33abf4c2c5a918bacde049004e52b7986f.tar.gz |
Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.
This option is provisional and experimental.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 544a26711..935ea6e69 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -108,6 +108,7 @@ public: class CellBuffer { private: bool hasStyles; + bool largeDocument; SplitVector<char> substance; SplitVector<char> style; bool readOnly; @@ -126,7 +127,7 @@ private: public: - CellBuffer(bool hasStyles_); + CellBuffer(bool hasStyles_, bool largeDocument_); // Deleted so CellBuffer objects can not be copied. CellBuffer(const CellBuffer &) = delete; void operator=(const CellBuffer &) = delete; @@ -163,6 +164,8 @@ public: bool IsReadOnly() const; void SetReadOnly(bool set); + bool IsLarge() const; + bool HasStyles() const; /// The save point is a marker in the undo stack where the container has stated that /// the buffer was saved. Undo and redo can move over the save point. |