Public Types | Public Member Functions | Public Attributes

Editor_Interface Class Reference

Search for all occurrences

#include <MXS_Editor_Interface.h>

List of all members.

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 char *filename=NULL, bool useOpenfilenameDialogIfFilenameNull=false, const char *initialPath=NULL, int openToPos=-1, Editor_Interface::OpenFlags of=Editor_Interface::ofNone, bool unhide=true, bool setFocus=true)
virtual int  NumberDocuments ()
virtual const char *  GetDocumentFilename (int i)
virtual void  SetDocumentFilename (int i, const char *file_name)
virtual const char *  GetDocumentFilename ()
virtual void  SetDocumentFilename (const char *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 char *title)
virtual void  SetProperty (const char *prop_name, const char *prop_value)
virtual const char *  GetProperty (const char *prop_name)
virtual int  GetIntProperty (const char *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 char *lang, int style)

Public Attributes

Editor *  Editor_Instance

Member Enumeration Documentation

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

Constructor & Destructor Documentation

Editor_Interface ( Editor *  instance ) [inline]
: Editor_Instance(instance) {}
virtual ~Editor_Interface ( ) [inline, virtual]
{}

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 char *  filename = NULL,
bool  useOpenfilenameDialogIfFilenameNull = false,
const char *  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 char* GetDocumentFilename ( int  i ) [virtual]
virtual void SetDocumentFilename ( int  i,
const char *  file_name 
) [virtual]
virtual const char* GetDocumentFilename ( ) [virtual]
virtual void SetDocumentFilename ( const char *  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 char *  title ) [virtual]
virtual void SetProperty ( const char *  prop_name,
const char *  prop_value 
) [virtual]
virtual const char* GetProperty ( const char *  prop_name ) [virtual]
virtual int GetIntProperty ( const char *  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 char *  lang,
int  style 
) [virtual]

Member Data Documentation

Editor* Editor_Instance

Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface
Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface Editor_Interface