MXS_Editor_Interface Class Reference
 
 
 
MXS_Editor_Interface Class Reference

#include <MXS_Editor_Interface.h>

Public Member Functions

  MXS_Editor_Interface ()
  ~MXS_Editor_Interface ()
HWND  Editor_GetMainHWND ()
HWND  Editor_GetEditHWND ()
bool  Editor_Run (HWND parentHWND)
bool  Editor_EditFile (const MCHAR *filename=NULL, bool useOpenfilenameDialogIfFilenameNull=false, const MCHAR *initialPath=NULL, int openToPos=-1, Editor_Interface::OpenFlags of=Editor_Interface::ofNone, bool unhide=true, bool setFocus=true)
int  Editor_NumberDocuments ()
const MCHAR *  Editor_GetDocumentFilename (int i)
void  Editor_SetDocumentFilename (int i, const MCHAR *file_name)
const MCHAR *  Editor_GetDocumentFilename ()
void  Editor_SetDocumentFilename (const MCHAR *file_name)
bool  Editor_IsEditorMessage (MSG &msg)
void  Editor_SetTabWidth (int tabWidth)
bool  Editor_CloseEditor ()
void  Editor_DeleteEditor ()
void  Editor_Show (bool show, bool setFocus=false)
void  Editor_SetTitle (const MCHAR *title)
void  Editor_SetProperty (const MCHAR *prop_name, const MCHAR *prop_value)
const MCHAR *  Editor_GetProperty (const MCHAR *prop_name)
int  Editor_GetIntProperty (const MCHAR *prop_name, int defaultValue=0)
void  Editor_SetCodePageAndCharacterSet (int code_page, int character_set)
void  Editor_GetCodePageAndCharacterSet (int &code_page, int &character_set)
EditorStyleDef  Editor_GetEditorStyleDef (const MCHAR *lang, int style)
void  MXS_DisableAccelerators ()
void  MXS_EnableAccelerators ()
void  MXS_EditorShowStateChanged (bool open)
void  MXS_ShowListener ()
void  MXS_PositionListenerAtEOF ()
void  MXS_ExecuteString (const wchar_t *executeString, const MCHAR *file_name, unsigned int file_offset, unsigned int file_linenum)
void  MXS_DoLoadProperties ()
const MCHAR *  MXS_GetLocalUserDataDirectory ()
void  MXS_DisplayHelp (const MCHAR *word)
void  MXS_NewRollout (HWND mainHWND, HWND editHWND)
void  MXS_EditRollout (HWND mainHWND, HWND editHWND)
UINT  GetSaveCodePage ()
UINT  GetLoadCodePage ()
UINT  GetSaveCodePageEx (bool allow_utf8)
UINT  LegacyFilesCanBeStoredUsingUTF8 ()

Public Attributes

Editor_Interface Editor_Interface_Instance
MXSEditor_Interface2 MXSEditor_Interface_Instance

Constructor & Destructor Documentation


Member Function Documentation

HWND Editor_GetMainHWND ( ) [inline]
HWND Editor_GetEditHWND ( ) [inline]
bool Editor_Run ( HWND  parentHWND ) [inline]
bool Editor_EditFile ( const MCHAR *  filename = NULL,
bool  useOpenfilenameDialogIfFilenameNull = false,
const MCHAR *  initialPath = NULL,
int  openToPos = -1,
Editor_Interface::OpenFlags  of = Editor_Interface::ofNone,
bool  unhide = true,
bool  setFocus = true 
) [inline]
                { return Editor_Interface_Instance->EditFile(filename, useOpenfilenameDialogIfFilenameNull, initialPath, openToPos, of, unhide, setFocus); }
int Editor_NumberDocuments ( ) [inline]
const MCHAR* Editor_GetDocumentFilename ( int  i ) [inline]
void Editor_SetDocumentFilename ( int  i,
const MCHAR *  file_name 
) [inline]
const MCHAR* Editor_GetDocumentFilename ( ) [inline]
void Editor_SetDocumentFilename ( const MCHAR *  file_name ) [inline]
bool Editor_IsEditorMessage ( MSG &  msg ) [inline]
void Editor_SetTabWidth ( int  tabWidth ) [inline]
bool Editor_CloseEditor ( ) [inline]
void Editor_DeleteEditor ( ) [inline]
void Editor_Show ( bool  show,
bool  setFocus = false 
) [inline]
void Editor_SetTitle ( const MCHAR *  title ) [inline]
void Editor_SetProperty ( const MCHAR *  prop_name,
const MCHAR *  prop_value 
) [inline]
const MCHAR* Editor_GetProperty ( const MCHAR *  prop_name ) [inline]
int Editor_GetIntProperty ( const MCHAR *  prop_name,
int  defaultValue = 0 
) [inline]
void Editor_SetCodePageAndCharacterSet ( int  code_page,
int  character_set 
) [inline]
void Editor_GetCodePageAndCharacterSet ( int &  code_page,
int &  character_set 
) [inline]
EditorStyleDef Editor_GetEditorStyleDef ( const MCHAR *  lang,
int  style 
) [inline]
void MXS_DisableAccelerators ( ) [inline]
void MXS_EnableAccelerators ( ) [inline]
void MXS_EditorShowStateChanged ( bool  open ) [inline]
void MXS_ShowListener ( ) [inline]
void MXS_PositionListenerAtEOF ( ) [inline]
void MXS_ExecuteString ( const wchar_t *  executeString,
const MCHAR *  file_name,
unsigned int  file_offset,
unsigned int  file_linenum 
) [inline]
                { MXSEditor_Interface_Instance->ExecuteString(executeString, file_name, file_offset, file_linenum); }
void MXS_DoLoadProperties ( ) [inline]
const MCHAR* MXS_GetLocalUserDataDirectory ( ) [inline]
void MXS_DisplayHelp ( const MCHAR *  word ) [inline]
void MXS_NewRollout ( HWND  mainHWND,
HWND  editHWND 
) [inline]
void MXS_EditRollout ( HWND  mainHWND,
HWND  editHWND 
) [inline]
UINT GetSaveCodePage ( ) [inline]
UINT GetLoadCodePage ( ) [inline]
UINT GetSaveCodePageEx ( bool  allow_utf8 ) [inline]
UINT LegacyFilesCanBeStoredUsingUTF8 ( ) [inline]

Member Data Documentation