Editor_Interface Class Reference

Editor_Interface Class Reference

#include <MXS_Editor_Interface.h>

Public Types

enum  OpenFlags {
  ofNone =0, ofNoSaveIfDirty =1, ofForceLoad =2, ofPreserveUndo =4,
  ofQuiet =8
}
 

Public Member Functions

 Editor_Interface (Editor *instance)
 
virtual ~Editor_Interface ()
 
virtual void DeleteThis ()
 
virtual void SetTabWidth (int tabWidth)
 
virtual HWND GetMainHWND ()
 
virtual HWND GetEditHWND ()
 
virtual bool Run (HWND parentHWND)
 
virtual bool 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)
 
virtual int NumberDocuments ()
 
virtual const MCHARGetDocumentFilename (int i)
 
virtual void SetDocumentFilename (int i, const MCHAR *file_name)
 
virtual const MCHARGetDocumentFilename ()
 
virtual void SetDocumentFilename (const MCHAR *file_name)
 
virtual bool IsEditorMessage (MSG &msg)
 
virtual bool CloseEditor ()
 
virtual void DeleteEditor ()
 
virtual void Show (bool show, bool setFocus=false)
 
virtual void SetTitle (const MCHAR *title)
 
virtual void SetProperty (const MCHAR *prop_name, const MCHAR *prop_value)
 
virtual const MCHARGetProperty (const MCHAR *prop_name)
 
virtual int GetIntProperty (const MCHAR *prop_name, int defaultValue=0)
 
virtual void SetCodePageAndCharacterSet (int code_page, int character_set)
 
virtual void GetCodePageAndCharacterSet (int &code_page, int &character_set)
 
virtual EditorStyleDef GetEditorStyleDef (const MCHAR *lang, int style)
 

Public Attributes

Editor * Editor_Instance
 

Member Enumeration Documentation

enum OpenFlags
Enumerator
ofNone 
ofNoSaveIfDirty 
ofForceLoad 
ofPreserveUndo 
ofQuiet 
40  {
41  ofNone=0, // Default
42  ofNoSaveIfDirty=1, // Suppress check for unsaved changes
43  ofForceLoad=2, // Reload file even if already in a buffer
44  ofPreserveUndo=4, // Do not delete undo history
45  ofQuiet=8 // Avoid "Could not open file" message
46  };
Definition: MXS_Editor_Interface.h:42
Definition: MXS_Editor_Interface.h:41
Definition: MXS_Editor_Interface.h:43
Definition: MXS_Editor_Interface.h:45
Definition: MXS_Editor_Interface.h:44

Constructor & Destructor Documentation

Editor_Interface ( Editor *  instance)
inline
48 : Editor_Instance(instance) {}
Editor * Editor_Instance
Definition: MXS_Editor_Interface.h:38
virtual ~Editor_Interface ( )
inlinevirtual
49 {}

Member Function Documentation

virtual void DeleteThis ( )
virtual
virtual void SetTabWidth ( int  tabWidth)
virtual
virtual HWND GetMainHWND ( )
virtual
virtual HWND GetEditHWND ( )
virtual
virtual bool Run ( HWND  parentHWND)
virtual
virtual bool 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 
)
virtual
virtual int NumberDocuments ( )
virtual
virtual const MCHAR* GetDocumentFilename ( int  i)
virtual
virtual void SetDocumentFilename ( int  i,
const MCHAR file_name 
)
virtual
virtual const MCHAR* GetDocumentFilename ( )
virtual
virtual void SetDocumentFilename ( const MCHAR file_name)
virtual
virtual bool IsEditorMessage ( MSG &  msg)
virtual
virtual bool CloseEditor ( )
virtual
virtual void DeleteEditor ( )
virtual
virtual void Show ( bool  show,
bool  setFocus = false 
)
virtual
virtual void SetTitle ( const MCHAR title)
virtual
virtual void SetProperty ( const MCHAR prop_name,
const MCHAR prop_value 
)
virtual
virtual const MCHAR* GetProperty ( const MCHAR prop_name)
virtual
virtual int GetIntProperty ( const MCHAR prop_name,
int  defaultValue = 0 
)
virtual
virtual void SetCodePageAndCharacterSet ( int  code_page,
int  character_set 
)
virtual
virtual void GetCodePageAndCharacterSet ( int code_page,
int character_set 
)
virtual
virtual EditorStyleDef GetEditorStyleDef ( const MCHAR lang,
int  style 
)
virtual

Member Data Documentation

Editor* Editor_Instance