-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathNppMessager.h
38 lines (32 loc) · 1.17 KB
/
NppMessager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "NPP/PluginInterface.h"
class CNppMessager
{
protected:
NppData m_nppData;
public:
CNppMessager();
CNppMessager( const NppData& nppd );
virtual ~CNppMessager();
LRESULT SendNppMsg( UINT uMsg, WPARAM wParam = 0, LPARAM lParam = 0 );
LRESULT SendNppMsg( UINT uMsg, WPARAM wParam = 0, LPARAM lParam = 0 ) const;
BOOL getCurrentFileFullPath( int strLen, TCHAR *str ) const;
BOOL getCurrentFileDirectory( int strLen, TCHAR *str ) const;
BOOL getCurrentFileNameExt( int strLen, TCHAR *str ) const;
BOOL getCurrentFileNamePart( int strLen, TCHAR *str ) const;
BOOL getCurrentFileExtPart( int strLen, TCHAR *str ) const;
INT getCurrentBufferID() const;
HWND getCurrentScintillaWnd() const;
BOOL getCurrentWord( int strLen, TCHAR *str ) const;
BOOL getNppDirectory( int strLen, TCHAR *str ) const;
HWND getNppWnd() const {
return m_nppData._nppHandle;
}
HMENU getNppMainMenu() const;
HMENU getNppPluginMenu() const;
void getPluginsConfigDir( int strLen, TCHAR *str ) const;
void makeCurrentBufferDirty();
void setNppData( const NppData& nppd ) {
m_nppData = nppd;
}
};