예제 #1
0
파일: Lexing.cs 프로젝트: pclancy/ODBX
        internal KeywordCollection(Scintilla scintilla)
            : base(scintilla)
        {
            //	Auugh, this plagued me for a while. Each of the lexers cna define their own "Name"
            //	and also asign themsleves to a Scintilla Lexer Constant. Most of the time these
            //	match the defined constant, but sometimes they don't. We'll always use the constant
            //	name since it's easier to use, consistent and will always have valid characters.
            //	However its still valid to access the lexers by this name (as SetLexerLanguage
            //	uses this value) so we'll create a lookup.
            _lexerAliasMap = new Dictionary<string, Lexer>(StringComparer.OrdinalIgnoreCase);

            //	I have no idea how Progress fits into this. It's defined with the PS lexer const
            //	and a name of "progress"

            _lexerAliasMap.Add("PL/M", Lexer.Plm);
            _lexerAliasMap.Add("props", Lexer.Properties);
            _lexerAliasMap.Add("inno", Lexer.InnoSetup);
            _lexerAliasMap.Add("clarion", Lexer.Clw);
            _lexerAliasMap.Add("clarionnocase", Lexer.ClwNoCase	);

            //_lexerKeywordListMap = new Dictionary<string,string[]>(StringComparer.OrdinalIgnoreCase);

            //_lexerKeywordListMap.Add("xml", new string[] { "HTML elements and attributes", "JavaScript keywords", "VBScript keywords", "Python keywords", "PHP keywords", "SGML and DTD keywords" });
            //_lexerKeywordListMap.Add("yaml", new string[] { "Keywords" });
            //	baan, kix, ave, scriptol, diff, props, makefile, errorlist, latex, null, lot, haskell
            //	lexers don't have keyword list names
        }
예제 #2
0
		public Range(int start, int end, Scintilla scintilla) : base(scintilla)
		{
			if(start < end)
			{
				_start	= start;
				_end	= end;
			}
			else
			{
				_start	= end;
				_end	= start;
			}
		}
예제 #3
0
		internal StyleCollection(Scintilla scintilla) : base(scintilla)
		{
			Bits = 7;

			//	Defaulting CallTip Settings to Platform defaults
			Style s = CallTip;
			s.ForeColor = SystemColors.InfoText;
			s.BackColor = SystemColors.Info;
			s.Font = SystemFonts.StatusFont;

			//	Making Line Number's BackColor have a named system color
			//	instead of just the value
			LineNumber.BackColor = SystemColors.Control;
		}
예제 #4
0
		internal Lexing(Scintilla scintilla)
			: base(scintilla) 
		{
			WhiteSpaceChars = DEFAULT_WHITECHARS;
			WordChars = DEFAULT_WORDCHARS;
			_keywords = new KeywordCollection(scintilla);

			//	Language names are a superset lexer names. For instance the c and cs (c#)
			//	langauges both use the cpp lexer (by default). Languages are kind of a 
			//	SCite concept, while Scintilla only cares about Lexers. However we don't
			//	need to explicetly map a language to a lexer if they are the same name
			//	like cpp.
			_lexerLanguageMap.Add("cs", "cpp");
			_lexerLanguageMap.Add("html", "hypertext");
			_lexerLanguageMap.Add("xml", "hypertext");
		}
예제 #5
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 /// <param name="oScintillaControl">Scintilla control being printed</param>
 public PrintDocument(Scintilla oScintillaControl)
 {
     m_oScintillaControl = oScintillaControl;
     DefaultPageSettings = new DBDiff.Scintilla.PageSettings();
 }
예제 #6
0
파일: LongLines.cs 프로젝트: pclancy/ODBX
 internal LongLines(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #7
0
파일: Indicator.cs 프로젝트: pclancy/ODBX
 internal Indicator(int number, Scintilla scintilla)
     : base(scintilla)
 {
     _number	= number;
 }
예제 #8
0
파일: Document.cs 프로젝트: pclancy/ODBX
 internal Document(Scintilla scintilla, IntPtr handle)
     : base(scintilla)
 {
     _handle = handle;
 }
예제 #9
0
파일: Printing.cs 프로젝트: pclancy/ODBX
 internal Printing(Scintilla scintilla)
     : base(scintilla)
 {
     _printDocument = new PrintDocument(scintilla);
 }
예제 #10
0
		internal WhiteSpace(Scintilla scintilla) : base(scintilla) { }
예제 #11
0
파일: Indentation.cs 프로젝트: pclancy/ODBX
 internal Indentation(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #12
0
파일: Clipboard.cs 프로젝트: pclancy/ODBX
 internal Clipboard(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #13
0
파일: Caret.cs 프로젝트: pclancy/ODBX
 protected internal CaretInfo(Scintilla scintilla)
     : base(scintilla)
 {
     BlinkRate = SystemInformation.CaretBlinkTime;
     Width = SystemInformation.CaretWidth;
 }
예제 #14
0
		internal UndoRedo(Scintilla scintilla) : base(scintilla) { }
예제 #15
0
		protected internal Selection(Scintilla scintilla) : base(scintilla) 
		{			
			NativeScintilla.SetSelBack(true, Utilities.ColorToRgb(BackColor));
			NativeScintilla.SetSelFore(true, Utilities.ColorToRgb(ForeColor));
		}
예제 #16
0
파일: Scrolling.cs 프로젝트: pclancy/ODBX
 internal Scrolling(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #17
0
		internal HotspotStyle(Scintilla scintilla) : base(scintilla) 
		{
			ActiveForeColor = SystemColors.HotTrack;
			ActiveBackColor = SystemColors.Window;
		}
예제 #18
0
파일: Line.cs 프로젝트: pclancy/ODBX
 protected internal Line(Scintilla scintilla, int number)
     : base(scintilla)
 {
     _number = number;
 }
예제 #19
0
파일: EndOfLine.cs 프로젝트: pclancy/ODBX
 internal EndOfLine(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #20
0
파일: Document.cs 프로젝트: pclancy/ODBX
 internal DocumentHandler(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #21
0
파일: GoTo.cs 프로젝트: pclancy/ODBX
 internal GoTo(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #22
0
파일: Indicator.cs 프로젝트: pclancy/ODBX
 internal IndicatorCollection(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #23
0
 protected internal LinesCollection(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #24
0
		internal Style(int index, Scintilla scintilla)
			: base(scintilla)
		{
			_index = index;
		}
예제 #25
0
파일: LineWrap.cs 프로젝트: pclancy/ODBX
 internal LineWrap(Scintilla scintilla)
     : base(scintilla)
 {
 }
예제 #26
0
파일: Range.cs 프로젝트: pclancy/ODBX
 public ManagedRange(int start, int end, Scintilla scintilla)
     : base(start, end, scintilla)
 {
 }
예제 #27
0
		protected internal ScintillaHelperBase(Scintilla scintilla)
		{
			_scintilla	= scintilla;
			_nativeScintilla	= (INativeScintilla)scintilla;
		}