aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.h
diff options
context:
space:
mode:
authormitchell <unknown>2018-05-05 23:10:51 -0400
committermitchell <unknown>2018-05-05 23:10:51 -0400
commit92676970616a5163636329e49c4cc825e46d6c7f (patch)
tree9e2cc612919e2bc1ee50a31dc0fd8bb7652d94d7 /src/CellBuffer.h
parent74d9510a055d6b9aa9d7679522f255db62de76d0 (diff)
downloadscintilla-mirror-92676970616a5163636329e49c4cc825e46d6c7f.tar.gz
Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.
This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r--src/CellBuffer.h5
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.