| 80 | } |
| 81 | |
| 82 | Document::Document() { |
| 83 | refCount = 0; |
| 84 | pcf = NULL; |
| 85 | #ifdef _WIN32 |
| 86 | eolMode = SC_EOL_CRLF; |
| 87 | #else |
| 88 | eolMode = SC_EOL_LF; |
| 89 | #endif |
| 90 | dbcsCodePage = 0; |
| 91 | lineEndBitSet = SC_LINE_END_TYPE_DEFAULT; |
| 92 | stylingBits = 5; |
| 93 | stylingBitsMask = 0x1F; |
| 94 | stylingMask = 0; |
| 95 | endStyled = 0; |
| 96 | styleClock = 0; |
| 97 | enteredModification = 0; |
| 98 | enteredStyling = 0; |
| 99 | enteredReadOnlyCount = 0; |
| 100 | tabInChars = 8; |
| 101 | indentInChars = 0; |
| 102 | actualIndentInChars = 8; |
| 103 | useTabs = true; |
| 104 | tabIndents = true; |
| 105 | backspaceUnindents = false; |
| 106 | |
| 107 | matchesValid = false; |
| 108 | regex = 0; |
| 109 | |
| 110 | UTF8BytesOfLeadInitialise(); |
| 111 | |
| 112 | perLineData[ldMarkers] = new LineMarkers(); |
| 113 | perLineData[ldLevels] = new LineLevels(); |
| 114 | perLineData[ldState] = new LineState(); |
| 115 | perLineData[ldMargin] = new LineAnnotation(); |
| 116 | perLineData[ldAnnotation] = new LineAnnotation(); |
| 117 | |
| 118 | cb.SetPerLine(this); |
| 119 | |
| 120 | pli = 0; |
| 121 | } |
| 122 | |
| 123 | Document::~Document() { |
| 124 | for (std::vector<WatcherWithUserData>::iterator it = watchers.begin(); it != watchers.end(); ++it) { |
nothing calls this directly
no test coverage detected