📄 rm_jveditorcommon.hpp
字号:
typedef TJvSelectUndo inherited;
public:
#pragma option push -w-inl
/* TJvSelectUndo.Create */ inline __fastcall TJvUnselectUndo(TJvCustomEditorBase* AJvEditor, int ACaretX, int ACaretY) : TJvSelectUndo(AJvEditor, ACaretX, ACaretY) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TJvUndo.Destroy */ inline __fastcall virtual ~TJvUnselectUndo(void) { }
#pragma option pop
};
class DELPHICLASS TJvBeginCompoundUndo;
class PASCALIMPLEMENTATION TJvBeginCompoundUndo : public TJvUndo
{
typedef TJvUndo inherited;
public:
DYNAMIC void __fastcall Undo(void);
public:
#pragma option push -w-inl
/* TJvUndo.Create */ inline __fastcall TJvBeginCompoundUndo(TJvCustomEditorBase* AJvEditor) : TJvUndo(AJvEditor) { }
#pragma option pop
#pragma option push -w-inl
/* TJvUndo.Destroy */ inline __fastcall virtual ~TJvBeginCompoundUndo(void) { }
#pragma option pop
};
class DELPHICLASS TJvEndCompoundUndo;
class PASCALIMPLEMENTATION TJvEndCompoundUndo : public TJvBeginCompoundUndo
{
typedef TJvBeginCompoundUndo inherited;
public:
#pragma option push -w-inl
/* TJvUndo.Create */ inline __fastcall TJvEndCompoundUndo(TJvCustomEditorBase* AJvEditor) : TJvBeginCompoundUndo(AJvEditor) { }
#pragma option pop
#pragma option push -w-inl
/* TJvUndo.Destroy */ inline __fastcall virtual ~TJvEndCompoundUndo(void) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TJvLineInformation : public System::TObject
{
typedef System::TObject inherited;
private:
int FLine;
TJvLineSelectStyle FSelectStyle;
void *FData;
TJvCustomEditorBase* FEditor;
void __fastcall SetLine(int Value);
void __fastcall SetSelectStyle(const TJvLineSelectStyle Value);
protected:
virtual void __fastcall RepaintLine(int LineNum);
virtual void __fastcall CheckEmpty(void);
public:
__fastcall TJvLineInformation(TJvCustomEditorBase* AEditor, int ALine);
__fastcall virtual ~TJvLineInformation(void);
__property int Line = {read=FLine, write=SetLine, nodefault};
__property TJvLineSelectStyle SelectStyle = {read=FSelectStyle, write=SetSelectStyle, nodefault};
__property void * Data = {read=FData, write=FData};
__property TJvCustomEditorBase* Editor = {read=FEditor};
};
class PASCALIMPLEMENTATION TJvErrorHighlightingItem : public System::TObject
{
typedef System::TObject inherited;
private:
int FCol;
int FLine;
int FLen;
AnsiString FErrorText;
System::TObject* FData;
int FTag;
TJvErrorHighlighting* FOwner;
void __fastcall SetCol(const int Value);
void __fastcall SetLine(const int Value);
public:
__fastcall TJvErrorHighlightingItem(TJvErrorHighlighting* AOwner, int ACol, int ALine, int ALen, const AnsiString AErrorText);
__fastcall virtual ~TJvErrorHighlightingItem(void);
__property int Col = {read=FCol, write=SetCol, nodefault};
__property int Line = {read=FLine, write=SetLine, nodefault};
__property int Len = {read=FLen, nodefault};
__property AnsiString ErrorText = {read=FErrorText};
__property System::TObject* Data = {read=FData, write=FData};
__property int Tag = {read=FTag, write=FTag, nodefault};
};
#pragma option push -b-
enum TJvHighlighter { hlNone, hlPascal, hlCBuilder, hlSql, hlPython, hlJava, hlJScript, hlVB, hlHtml, hlPerl, hlIni, hlCocoR, hlPhp, hlNQC, hlCSharp, hlSyntaxHighlighter };
#pragma option pop
typedef Byte TLongTokenType;
struct TDelphiColor
{
public:
Graphics::TColor ForeColor;
Graphics::TColor BackColor;
Graphics::TFontStyles Style;
} ;
class DELPHICLASS TJvSymbolColor;
class PASCALIMPLEMENTATION TJvSymbolColor : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Graphics::TFontStyles FStyle;
Graphics::TColor FForeColor;
Graphics::TColor FBackColor;
public:
__fastcall TJvSymbolColor(void);
void __fastcall SetColor(const Graphics::TColor ForeColor, const Graphics::TColor BackColor, const Graphics::TFontStyles Style);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property Graphics::TFontStyles Style = {read=FStyle, write=FStyle, default=0};
__property Graphics::TColor ForeColor = {read=FForeColor, write=FForeColor, nodefault};
__property Graphics::TColor BackColor = {read=FBackColor, write=FBackColor, nodefault};
public:
#pragma option push -w-inl
/* TPersistent.Destroy */ inline __fastcall virtual ~TJvSymbolColor(void) { }
#pragma option pop
};
class DELPHICLASS TJvColors;
class PASCALIMPLEMENTATION TJvColors : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TJvSymbolColor* FComment;
TJvSymbolColor* FNumber;
TJvSymbolColor* FString;
TJvSymbolColor* FSymbol;
TJvSymbolColor* FReserved;
TJvSymbolColor* FIdentifier;
TJvSymbolColor* FPreproc;
TJvSymbolColor* FFunctionCall;
TJvSymbolColor* FDeclaration;
TJvSymbolColor* FStatement;
TJvSymbolColor* FPlainText;
public:
__fastcall TJvColors(void);
__fastcall virtual ~TJvColors(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property TJvSymbolColor* Comment = {read=FComment, write=FComment};
__property TJvSymbolColor* Number = {read=FNumber, write=FNumber};
__property TJvSymbolColor* Strings = {read=FString, write=FString};
__property TJvSymbolColor* Symbol = {read=FSymbol, write=FSymbol};
__property TJvSymbolColor* Reserved = {read=FReserved, write=FReserved};
__property TJvSymbolColor* Identifier = {read=FIdentifier, write=FIdentifier};
__property TJvSymbolColor* Preproc = {read=FPreproc, write=FPreproc};
__property TJvSymbolColor* FunctionCall = {read=FFunctionCall, write=FFunctionCall};
__property TJvSymbolColor* Declaration = {read=FDeclaration, write=FDeclaration};
__property TJvSymbolColor* Statement = {read=FStatement, write=FStatement};
__property TJvSymbolColor* PlainText = {read=FPlainText, write=FPlainText};
};
__interface IJvHLEditor;
typedef System::DelphiInterface<IJvHLEditor> _di_IJvHLEditor;
__interface INTERFACE_UUID("{E165FE73-AE7E-40A8-AC9B-7FD20D55A15E}") IJvHLEditor : public IInterface
{
public:
virtual TJvColors* __fastcall GetColors(void) = 0 ;
virtual void __fastcall SetColors(const TJvColors* Value) = 0 ;
virtual bool __fastcall GetSyntaxHighlighting(void) = 0 ;
virtual void __fastcall SetSyntaxHighlighting(bool Value) = 0 ;
virtual TJvHighlighter __fastcall GetHighlighter(void) = 0 ;
virtual void __fastcall SetHighlighter(const TJvHighlighter Value) = 0 ;
__property TJvColors* Colors = {read=GetColors, write=SetColors};
__property bool SyntaxHighlighting = {read=GetSyntaxHighlighting, write=SetSyntaxHighlighting};
__property TJvHighlighter Highlighter = {read=GetHighlighter, write=SetHighlighter};
};
//-- var, const, procedure ---------------------------------------------------
static const Word Max_X = 0x400;
static const Word Max_X_Scroll = 0x400;
static const Shortint GutterRightMargin = 0x2;
static const Word WM_EDITCOMMAND = 0x501;
static const Word WM_COMPOUND = 0x502;
static const Word CM_RESETCAPTURECONTROL = 0xb103;
static const TLongTokenType lgNone = 0x0;
static const TLongTokenType lgComment1 = 0x1;
static const TLongTokenType lgComment2 = 0x2;
static const TLongTokenType lgString = 0x4;
static const TLongTokenType lgTag = 0x5;
static const TLongTokenType lgPreproc = 0x6;
static const TLongTokenType lgPreproc1 = 0x6;
static const TLongTokenType lgPreproc2 = 0x7;
static const Byte lgUndefined = 0xff;
extern PACKAGE TDelphiColor DelphiColor_Comment;
extern PACKAGE TDelphiColor DelphiColor_Preproc;
extern PACKAGE TDelphiColor DelphiColor_Number;
extern PACKAGE TDelphiColor DelphiColor_Strings;
extern PACKAGE TDelphiColor DelphiColor_Symbol;
extern PACKAGE TDelphiColor DelphiColor_Reserved;
extern PACKAGE TDelphiColor DelphiColor_Identifier;
extern PACKAGE TDelphiColor DelphiColor_PlainText;
static const Shortint ecCharFirst = 0x0;
static const Byte ecCharLast = 0xff;
static const Word ecCommandFirst = 0x100;
static const Word ecIntern = 0x1000;
static const Word ecUser = 0x8000;
static const Word ecLeft = 0x101;
static const Word ecUp = 0x102;
static const Word ecRight = 0x103;
static const Word ecDown = 0x104;
static const Word ecSelLeft = 0x109;
static const Word ecSelUp = 0x10a;
static const Word ecSelRight = 0x10b;
static const Word ecSelDown = 0x10c;
static const Word ecSelColumnLeft = 0x1000;
static const Word ecSelColumnUp = 0x1001;
static const Word ecSelColumnRight = 0x1002;
static const Word ecSelColumnDown = 0x1003;
static const Word ecPrevWord = 0x10d;
static const Word ecNextWord = 0x10e;
static const Word ecSelPrevWord = 0x10f;
static const Word ecSelNextWord = 0x110;
static const Word ecSelWord = 0x111;
static const Word ecWindowTop = 0x112;
static const Word ecWindowBottom = 0x113;
static const Word ecPrevPage = 0x114;
static const Word ecNextPage = 0x115;
static const Word ecSelPrevPage = 0x116;
static const Word ecSelNextPage = 0x117;
static const Word ecBeginLine = 0x118;
static const Word ecEndLine = 0x119;
static const Word ecBeginDoc = 0x11a;
static const Word ecEndDoc = 0x11b;
static const Word ecSelBeginLine = 0x11c;
static const Word ecSelEndLine = 0x11d;
static const Word ecSelBeginDoc = 0x11e;
static const Word ecSelEndDoc = 0x11f;
static const Word ecSelAll = 0x120;
static const Word ecScrollLineUp = 0x121;
static const Word ecScrollLineDown = 0x122;
static const Word ecInclusiveBlock = 0x164;
static const Word ecLineBlock = 0x165;
static const Word ecColumnBlock = 0x166;
static const Word ecNonInclusiveBlock = 0x167;
static const Word ecInsertPara = 0x179;
static const Word ecBackspace = 0x17a;
static const Word ecDelete = 0x17b;
static const Word ecChangeInsertMode = 0x17c;
static const Word ecTab = 0x17d;
static const Word ecBackTab = 0x17e;
static const Word ecIndent = 0x17f;
static const Word ecUnindent = 0x180;
static const Word ecBackspaceWord = 0x100a;
static const Word ecDeleteSelected = 0x183;
static const Word ecClipboardCopy = 0x184;
static const Word ecClipboardCut = 0x185;
static const Word ecClipboardPaste = 0x186;
static const Word ecDeleteLine = 0x187;
static const Word ecDeleteWord = 0x188;
static const Word ecToUpperCase = 0x189;
static const Word ecToLowerCase = 0x18a;
static const Word ecChangeCase = 0x18b;
static const Word ecUndo = 0x18c;
static const Word ecRedo = 0x18d;
static const Word ecBeginCompound = 0x18e;
static const Word ecEndCompound = 0x18f;
static const Word ecBeginUpdate = 0x190;
static const Word ecEndUpdate = 0x191;
static const Word ecSetBookmark0 = 0x192;
static const Word ecSetBookmark1 = 0x193;
static const Word ecSetBookmark2 = 0x194;
static const Word ecSetBookmark3 = 0x195;
static const Word ecSetBookmark4 = 0x196;
static const Word ecSetBookmark5 = 0x197;
static const Word ecSetBookmark6 = 0x198;
static const Word ecSetBookmark7 = 0x199;
static const Word ecSetBookmark8 = 0x19a;
static const Word ecSetBookmark9 = 0x19b;
static const Word ecGotoBookmark0 = 0x19c;
static const Word ecGotoBookmark1 = 0x19d;
static const Word ecGotoBookmark2 = 0x19e;
static const Word ecGotoBookmark3 = 0x19f;
static const Word ecGotoBookmark4 = 0x1a0;
static const Word ecGotoBookmark5 = 0x1a1;
static const Word ecGotoBookmark6 = 0x1a2;
static const Word ecGotoBookmark7 = 0x1a3;
static const Word ecGotoBookmark8 = 0x1a4;
static const Word ecGotoBookmark9 = 0x1a5;
static const Word ecCompletionIdentifiers = 0x1a6;
static const Word ecCompletionTemplates = 0x1a7;
static const Word ecRecordMacro = 0x1a8;
static const Word ecPlayMacro = 0x1a9;
static const Word ecBeginRecord = 0x1aa;
static const Word ecEndRecord = 0x1ab;
static const Word twoKeyCommand = 0xffff;
extern PACKAGE bool __fastcall KeyPressed(int VK);
} /* namespace Rm_jveditorcommon */
using namespace Rm_jveditorcommon;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Rm_jveditorcommon
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -