aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-04-21 16:13:28 +1000
committernyamatongwe <unknown>2013-04-21 16:13:28 +1000
commitabbece7c96a9cf85705e09b22239f37f727c5fba (patch)
tree9c8cb2db529f372c47f4bda3973bca30a66ee2dd /src/Editor.h
parentc377165a857db1c15270ecf673fdd3f323e9bebe (diff)
downloadscintilla-mirror-abbece7c96a9cf85705e09b22239f37f727c5fba.tar.gz
Implement commonly needed folding methods based on code from SciTE.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 4e6c7aee9..935fe1513 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -569,10 +569,16 @@ protected: // ScintillaBase subclass needs access to much of Editor
void SetAnnotationVisible(int visible);
- void Expand(int &line, bool doExpand);
- void ToggleContraction(int line);
+ int ExpandLine(int line);
+ void SetFoldExpanded(int lineDoc, bool expanded);
+ void FoldLine(int line, int action);
+ void FoldExpand(int line, int action, int level);
int ContractedFoldNext(int lineStart);
void EnsureLineVisible(int lineDoc, bool enforcePolicy);
+ void FoldChanged(int line, int levelNow, int levelPrev);
+ void NeedShown(int pos, int len);
+ void FoldAll(int action);
+
int GetTag(char *tagValue, int tagNumber);
int ReplaceTarget(bool replacePatterns, const char *text, int length=-1);