Class TNppPlugin
Unit
Declaration
type TNppPlugin = class(TObject)
Description
Default plugin implementation
Hierarchy
- TObject
- TNppPlugin
Overview
Fields
| Protected | PluginName: nppString; |
| Protected | FuncArray: array of _TFuncItem; |
| Public | NppData: TNppData; |
Methods
| Public | constructor Create; |
| Public | destructor Destroy; override; |
| Public | function CmdIdFromDlgId(DlgId: Integer): Integer; |
| Public | function DoOpen(filename: String): Boolean; overload; |
| Public | function DoOpen(filename: String; Line: Sci_Position): Boolean; overload; |
| Public | function GetCurrentBufferPath(const BufferID: NativeUInt = 0): nppString; |
| Public | function GetCurrentFileExt(const BufferID: NativeUInt = 0): nppString; |
| Public | function GetFuncsArray(var FuncsCount: Integer): Pointer; |
| Public | function GetName: nppPChar; |
| Public | function GetWord: nppString; |
| Public | function IsDarkModeEnabled: Boolean; |
| Protected | function AddFuncItem(Name: nppString; Func: PFUNCPLUGINCMD): Integer; overload; |
| Protected | function AddFuncItem(Name: nppString; Func: PFUNCPLUGINCMD; ShortcutKey: PShortcutKey): Integer; overload; |
| Protected | function GetApiLevel: TSciApiLevel; |
| Protected | function GetNppVersion: Cardinal; |
| Protected | function GetPluginsConfigDir: nppString; |
| Protected | function HasFullRangeApis: Boolean; |
| Protected | function HasMinimalReplacementApi: Boolean; |
| Protected | function HasV5Apis: Boolean; |
| Protected | function MakeShortcutKey(const Ctrl, Alt, Shift: Boolean; const AKey: UCHAR) : PShortcutKey; |
| Protected | function SendNppMessage(Msg: Cardinal; _WParam: NativeUInt = 0; _LParam: NativeInt = 0): LRESULT; overload; |
| Protected | function SendNppMessage(Msg: Cardinal; _WParam: NativeUInt; APParam: Pointer = nil): LRESULT; overload; |
| Protected | function SupportsBigFiles: Boolean; |
| Protected | function SupportsDarkMode: Boolean; |
| Protected | function SupportsDarkModeSubclassing: Boolean; |
| Public | procedure BeforeDestruction; override; |
| Public | procedure BeNotified(sn: PSciNotification); virtual; |
| Public | procedure DoModified(const hwnd: HWND; const modificationType: Integer); virtual; |
| Public | procedure DoNppnBufferActivated(const BufferID: NativeUInt); virtual; |
| Public | procedure DoNppnFileClosed(const BufferID: NativeUInt); virtual; |
| Public | procedure DoNppnShutdown; virtual; |
| Public | procedure DoNppnToolbarModification; virtual; |
| Public | procedure DoUpdateUI(const hwnd: HWND; const updated: Integer); virtual; |
| Public | procedure GetDarkModeColors(PColors: PDarkModeColors); |
| Public | procedure GetFileLine(var filename: String; var Line: Sci_Position); |
| Public | procedure MessageProc(var Msg: TMessage); virtual; |
| Public | procedure SetInfo(NppData: TNppData); virtual; |
Properties
| Public | property CanSubclass: Boolean read SupportsDarkModeSubclassing; |
| Public | property CurrentScintilla: HWND read GetCurrentScintilla; |
Description
Fields
| Protected | PluginName: nppString; |
|
This item has no description. | |
| Protected | FuncArray: array of _TFuncItem; |
|
Manager of _TFuncItem objects | |
| Public | NppData: TNppData; |
|
This item has no description. | |
Methods
| Public | constructor Create; |
|
This item has no description. | |
| Public | destructor Destroy; override; |
|
This item has no description. | |
| Public | function CmdIdFromDlgId(DlgId: Integer): Integer; |
|
This item has no description. | |
| Public | function DoOpen(filename: String): Boolean; overload; |
|
This item has no description. | |
| Public | function DoOpen(filename: String; Line: Sci_Position): Boolean; overload; |
|
This item has no description. | |
| Public | function GetCurrentBufferPath(const BufferID: NativeUInt = 0): nppString; |
|
This item has no description. | |
| Public | function GetCurrentFileExt(const BufferID: NativeUInt = 0): nppString; |
|
This item has no description. | |
| Public | function GetFuncsArray(var FuncsCount: Integer): Pointer; |
|
Exposes the FuncArray member to DLLExports.getFuncsArray | |
| Public | function GetName: nppPChar; |
|
Exposes the PluginName member to DLLExports.getName | |
| Public | function GetWord: nppString; |
|
This item has no description. | |
| Public | function IsDarkModeEnabled: Boolean; |
|
Returns | |
| Protected | function AddFuncItem(Name: nppString; Func: PFUNCPLUGINCMD): Integer; overload; |
|
Initializes a plugin command with no keyboard shortcut. Parameters
| |
| Protected | function AddFuncItem(Name: nppString; Func: PFUNCPLUGINCMD; ShortcutKey: PShortcutKey): Integer; overload; |
|
Initializes a plugin command with a keyboard shortcut. Parameters
| |
| Protected | function GetApiLevel: TSciApiLevel; |
|
This item has no description. | |
| Protected | function GetNppVersion: Cardinal; |
|
This item has no description. | |
| Protected | function GetPluginsConfigDir: nppString; |
|
This item has no description. | |
| Protected | function HasFullRangeApis: Boolean; |
|
Returns | |
| Protected | function HasMinimalReplacementApi: Boolean; |
|
Returns | |
| Protected | function HasV5Apis: Boolean; |
|
Returns
| |
| Protected | function MakeShortcutKey(const Ctrl, Alt, Shift: Boolean; const AKey: UCHAR) : PShortcutKey; |
|
This item has no description. | |
| Protected | function SendNppMessage(Msg: Cardinal; _WParam: NativeUInt = 0; _LParam: NativeInt = 0): LRESULT; overload; |
|
Sends a plugin API message to the Notepad++ window | |
| Protected | function SendNppMessage(Msg: Cardinal; _WParam: NativeUInt; APParam: Pointer = nil): LRESULT; overload; |
|
Sends a plugin API message to the Notepad++ window when the | |
| Protected | function SupportsBigFiles: Boolean; |
|
Returns | |
| Protected | function SupportsDarkMode: Boolean; |
|
Returns | |
| Protected | function SupportsDarkModeSubclassing: Boolean; |
|
Returns | |
| Public | procedure BeforeDestruction; override; |
|
This item has no description. | |
| Public | procedure BeNotified(sn: PSciNotification); virtual; |
|
Performs plugin-specific logic when DLLExports.beNotified executes | |
| Public | procedure DoModified(const hwnd: HWND; const modificationType: Integer); virtual; |
|
Empty, customizable handler for the SCN_MODIFIED notification | |
| Public | procedure DoNppnBufferActivated(const BufferID: NativeUInt); virtual; |
|
Empty, customizable handler for the NPPN_BUFFERACTIVATED notification | |
| Public | procedure DoNppnFileClosed(const BufferID: NativeUInt); virtual; |
|
Empty, customizable handler for the NPPN_FILECLOSED notification | |
| Public | procedure DoNppnShutdown; virtual; |
|
Empty, customizable handler for the NPPN_SHUTDOWN notification | |
| Public | procedure DoNppnToolbarModification; virtual; |
|
Empty, customizable handler for the NPPN_TBMODIFICATION notification | |
| Public | procedure DoUpdateUI(const hwnd: HWND; const updated: Integer); virtual; |
|
Empty, customizable handler for the SCN_UPDATEUI notification | |
| Public | procedure GetDarkModeColors(PColors: PDarkModeColors); |
|
Initializes a TDarkModeColors instance with the editor's active dark mode styles | |
| Public | procedure GetFileLine(var filename: String; var Line: Sci_Position); |
|
This item has no description. | |
| Public | procedure MessageProc(var Msg: TMessage); virtual; |
|
Performs plugin-specific logic when DLLExports.messageProc executes | |
| Public | procedure SetInfo(NppData: TNppData); virtual; |
|
Performs plugin-specific logic when DLLExports.setInfo executes | |
Properties
| Public | property CanSubclass: Boolean read SupportsDarkModeSubclassing; |
|
This item has no description. | |
| Public | property CurrentScintilla: HWND read GetCurrentScintilla; |
|
This item has no description. | |