[NEW] Make NativeLangSpeaker object available for all classes in Notepad++.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@734 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
1e48bf25f1
commit
9b37f57e33
|
@ -121,6 +121,8 @@ Notepad_plus::Notepad_plus(): _mainWindowStatus(0), _pDocTab(NULL), _pEditView(N
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
(NppParameters::getInstance())->setNativeLangSpeaker(&_nativeLangSpeaker);
|
||||||
|
|
||||||
TiXmlDocument *toolIconsDocRoot = (NppParameters::getInstance())->getToolIcons();
|
TiXmlDocument *toolIconsDocRoot = (NppParameters::getInstance())->getToolIcons();
|
||||||
|
|
||||||
if (toolIconsDocRoot)
|
if (toolIconsDocRoot)
|
||||||
|
|
|
@ -1428,6 +1428,12 @@ public:
|
||||||
PluginList & getPluginList() {return _pluginList;};
|
PluginList & getPluginList() {return _pluginList;};
|
||||||
bool importUDLFromFile(generic_string sourceFile);
|
bool importUDLFromFile(generic_string sourceFile);
|
||||||
bool exportUDLToFile(int langIndex2export, generic_string fileName2save);
|
bool exportUDLToFile(int langIndex2export, generic_string fileName2save);
|
||||||
|
NativeLangSpeaker * getNativeLangSpeaker() {
|
||||||
|
return _pNativeLangSpeaker;
|
||||||
|
};
|
||||||
|
void setNativeLangSpeaker(NativeLangSpeaker *nls) {
|
||||||
|
_pNativeLangSpeaker = nls;
|
||||||
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NppParameters();
|
NppParameters();
|
||||||
|
|
|
@ -22,8 +22,8 @@
|
||||||
#include "tinyxmlA.h"
|
#include "tinyxmlA.h"
|
||||||
#endif //TINYXMLA_INCLUDED
|
#endif //TINYXMLA_INCLUDED
|
||||||
|
|
||||||
#include "FindReplaceDlg.h"
|
class FindReplaceDlg;
|
||||||
#include "preferenceDlg.h"
|
class PreferenceDlg;
|
||||||
|
|
||||||
class NativeLangSpeaker {
|
class NativeLangSpeaker {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue