📄 toolsapi.pas
字号:
property WholeFile: Boolean read GetWholeFile write SetWholeFile;
property WordBoundary: Boolean read GetWordBoundary write SetWordBoundary;
end;
IOTAReplaceOptions = interface(IOTASearchOptions)
['{D1766F8C-D915-11D2-A8C1-00C04FA32F53}']
function GetPromptOnReplace: Boolean;
function GetReplaceAll: Boolean;
function GetReplaceText: string;
procedure SetPromptOnReplace(Value: Boolean);
procedure SetReplaceAll(Value: Boolean);
procedure SetReplaceText(const Value: string);
property PromptOnReplace: Boolean read GetPromptOnReplace write SetPromptOnReplace;
property ReplaceAll: Boolean read GetReplaceAll write SetReplaceAll;
property ReplaceText: string read GetReplaceText write SetReplaceText;
end;
IOTAEditPosition = interface(IUnknown)
['{9C510464-C7BC-11D2-9AEB-00A02457621F}']
procedure Align(Magnitude: Integer);
function BackspaceDelete(HowMany: Integer): Boolean;
function Delete(HowMany: Integer): Boolean;
function DistanceToTab(Direction: TSearchDirection): Integer;
function GetCharacter: Char;
function GetColumn: Integer;
function GetIsSpecialCharacter: Boolean;
function GetIsWhitespace: Boolean;
function GetIsWordCharacter: Boolean;
function GetLastRow: Integer;
function GetReplaceOptions: IOTAReplaceOptions;
function GetRow: Integer;
function GetSearchErrorString(ErrorCode: Integer): string;
function GetSearchOptions: IOTASearchOptions;
function GotoLine(LineNumber: Integer): Boolean;
procedure InsertBlock(const Block: IOTAEditBlock);
procedure InsertCharacter(Character: Char);
procedure InsertFile(const FileName: string);
procedure InsertText(const Text: string);
function Move(Row, Col: Integer): Boolean;
function MoveBOL: Boolean;
function MoveCursor(MoveMask: TMoveCursorMasks): Boolean;
function MoveEOF: Boolean;
function MoveEOL: Boolean;
function MoveReal(Row, Col: Integer): Boolean;
function MoveRelative(Row, Col: Integer): Boolean;
procedure Paste;
function Read(NumberOfCharacters: Integer): string;
function RepeatLastSearchOrReplace: Boolean;
function Replace(const Pattern, ReplaceText: string; CaseSensitive,
RegularExpression, WholeFile: Boolean; Direction: TSearchDirection;
var ErrorCode: Integer): Integer; overload;
function Replace: Integer; overload;
function ReplaceAgain: Integer;
procedure Restore;
function RipText(const ValidChars: TSysCharSet; RipFlags: Integer): string; overload;
function RipText(const ValidChars: string; RipFlags: Integer): string; overload;
procedure Save;
function Search(const Pattern: string; CaseSensitive, RegularExpression,
WholeFile: Boolean; Direction: TSearchDirection;
var ErrorCode: Integer): Boolean; overload;
function Search: Boolean; overload;
function SearchAgain: Boolean;
procedure Tab(Magnitude: Integer);
property Character: Char read GetCharacter;
property Column: Integer read GetColumn;
property IsSpecialCharacter: Boolean read GetIsSpecialCharacter;
property IsWhiteSpace: Boolean read GetIsWhiteSpace;
property IsWordCharacter: Boolean read GetIsWordCharacter;
property LastRow: Integer read GetLastRow;
property ReplaceOptions: IOTAReplaceOptions read GetReplaceOptions;
property Row: Integer read GetRow;
property SearchOptions: IOTASearchOptions read GetSearchOptions;
end;
IOTAEditBlock = interface(IUnknown)
['{9C510463-C7BC-11D2-9AEB-00A02457621F}']
procedure BeginBlock;
procedure Copy(Append: Boolean);
procedure Cut(Append: Boolean);
function Delete: Boolean;
procedure EndBlock;
function Extend(NewRow, NewCol: Integer): Boolean;
function ExtendPageUp: Boolean;
function ExtendPageDown: Boolean;
function ExtendReal(NewRow, NewCol: Integer): Boolean;
function ExtendRelative(DeltaRow, DeltaCol: Integer): Boolean;
function GetEndingColumn: Integer;
function GetEndingRow: Integer;
function GetIsValid: Boolean;
function GetSize: Integer;
function GetStartingColumn: Integer;
function GetStartingRow: Integer;
function GetStyle: TOTABlockType;
function GetText: string;
function GetVisible: Boolean;
procedure Indent(Magnitude: Integer);
procedure LowerCase;
function Print: Boolean;
procedure Reset;
procedure Restore;
procedure Save;
function SaveToFile(const FileName: string): Boolean;
procedure SetStyle(Value: TOTABlockType);
procedure SetVisible(Value: Boolean);
procedure ToggleCase;
procedure UpperCase;
property EndingColumn: Integer read GetEndingColumn;
property EndingRow: Integer read GetEndingRow;
property IsValid: Boolean read GetIsValid;
property Size: Integer read GetSize;
property StartingColumn: Integer read GetStartingColumn;
property StartingRow: Integer read GetStartingRow;
property Style: TOTABlockType read GetStyle write SetStyle;
property Text: string read GetText;
property Visible: Boolean read GetVisible write SetVisible;
end;
INTAEditWindow = interface(IUnknown)
['{8CC6430B-E721-11D2-A8CC-00C04FA32F53}']
function GetForm: TCustomForm;
function GetStatusBar: TStatusBar;
property Form: TCustomForm read GetForm;
property StatusBar: TStatusBar read GetStatusBar;
end;
{$IFDEF LINUX}
{$NODEFINE INTAEditWindow}
{$ENDIF}
IOTAEditView = interface(IOTAEditView40)
['{9C510462-C7BC-11D2-9AEB-00A02457621F}']
function BookmarkGoto(BookmarkID: Integer): Boolean;
function BookmarkRecord(BookmarkID: Integer): Boolean;
function BookmarkToggle(BookmarkID: Integer): Boolean;
procedure Center(Row, Col: Integer);
function GetBlock: IOTAEditBlock;
function GetBookmarkPos(BookmarkID: Integer): TOTACharPos;
function GetBottomRow: Integer;
function GetBuffer: IOTAEditBuffer;
function GetEditWindow: INTAEditWindow;
function GetLastEditColumn: Integer;
function GetLastEditRow: Integer;
function GetLeftColumn: Integer;
function GetPosition: IOTAEditPosition;
function GetRightColumn: Integer;
function GetTopRow: Integer;
procedure MoveCursorToView;
procedure MoveViewToCursor;
procedure PageDown;
procedure PageUp;
procedure Paint;
function Scroll(DeltaRow: Integer; DeltaCol: Integer): Integer;
procedure SetTopLeft(TopRow, LeftCol: Integer);
procedure SetTempMsg(const Msg: string);
property Block: IOTAEditBlock read GetBlock;
property BottomRow: Integer read GetBottomRow;
property BookmarkPos[BookMarkID: Integer]: TOTACharPos read GetBookmarkPos;
property Buffer: IOTAEditBuffer read GetBuffer;
property LastEditColumn: Integer read GetLastEditColumn;
property LastEditRow: Integer read GetLastEditRow;
property LeftColumn: Integer read GetLeftColumn;
property Position: IOTAEditPosition read GetPosition;
property RightColumn: Integer read GetRightColumn;
property TopRow: Integer read GetTopRow;
end;
TClassNavigateStyle = Byte;
TCodeCompleteStyle = Byte;
IOTAEditActions60 = interface(IUnknown)
['{ECB23623-E2D8-11D2-ABE5-00C04FB16FB3}']
procedure AddWatch;
procedure AddWatchAtCursor;
procedure BrowseSymbolAtCursor;
procedure ClassComplete;
procedure ClassNavigate(Reserved: TClassNavigateStyle);
procedure ClosePage;
procedure CodeTemplate;
procedure CodeCompletion(Style: TCodeCompleteStyle);
procedure EvaluateModify;
procedure HelpKeyword;
procedure IncrementalSearch;
procedure InsertCompilerOptions;
procedure InsertNewGUID;
procedure InspectAtCursor;
procedure CompileProject;
procedure NextError;
procedure NextPage;
procedure OpenFile;
procedure OpenFileAtCursor;
procedure PriorError;
procedure PriorPage;
procedure ProgramReset;
procedure RunProgram;
procedure RunToCursor;
procedure SaveAll;
procedure Save;
procedure SaveAs;
procedure StepOver;
procedure SwapSourceFormView;
procedure SwapCPPHeader;
procedure ToggleFormUnit;
procedure TraceInto;
procedure TraceToSource;
procedure ViewExplorer;
procedure ViewForms;
procedure ViewObjectInspector;
procedure ViewUnits;
procedure WindowList;
procedure ZoomWindow;
end;
IOTAEditActions = interface(IOTAEditActions60)
['{9A073F11-2732-D611-958B-00C04FA06AFC}']
procedure NextBufferView;
procedure PreviousBufferView;
end;
IOTASourceEditor = interface(IOTAEditor)
['{F17A7BD1-E07D-11D1-AB0B-00C04FB16FB3}']
{ Create and return an IOTAEditReader }
function CreateReader: IOTAEditReader;
{ Create and return an IOTAEditWriter. Changes are not undoable }
function CreateWriter: IOTAEditWriter;
{ Create and return an IOTAEditWriter. Changes are undoable }
function CreateUndoableWriter: IOTAEditWriter;
{ Return the number of active views on this editor }
function GetEditViewCount: Integer;
{ Return the Indexed view }
function GetEditView(Index: Integer): IOTAEditView;
{ Returns the total number of lines in this source editor }
function GetLinesInBuffer: Longint;
{ Change the syntax highlighter for this buffer or if shQuery is set,
simply return the currently set highlighter.
SetSyntaxHighlighter is deprecated. Use the IOTAEditOptions. }
function SetSyntaxHighlighter(SyntaxHighlighter: TOTASyntaxHighlighter): TOTASyntaxHighlighter; deprecated;
{ These functions will affect all views on this buffer. }
function GetBlockAfter: TOTACharPos;
function GetBlockStart: TOTACharPos;
function GetBlockType: TOTABlockType;
function GetBlockVisible: Boolean;
procedure SetBlockAfter(const Value: TOTACharPos);
procedure SetBlockStart(const Value: TOTACharPos);
procedure SetBlockType(Value: TOTABlockType);
procedure SetBlockVisible(Value: Boolean);
property BlockStart: TOTACharPos read GetBlockStart write SetBlockStart;
property BlockAfter: TOTACharPos read GetBlockAfter write SetBlockAfter;
property BlockType: TOTABlockType read GetBlockType write SetBlockType;
property BlockVisible: Boolean read GetBlockVisible write SetBlockVisible;
property EditViewCount: Integer read GetEditViewCount;
property EditViews[Index: Integer]: IOTAEditView read GetEditView;
end;
{ IOTAResourceEntry is a raw interface to a resource entry in the project's
resource file (<projectname>.RES).
This interface is very raw. No implication on what is contained within
a particular entry is made. Is if up to the add-in developer to interpret
the data accessed through this interface. NOTE: The 'MAINICON' entry and
related entries should not be modified as these are maintained by Delphi/
C++Builder. }
TOTAResHeaderValue = (hvFlags, hvLanguage, hvDataVersion, hvVersion,
hvCharacteristics);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -