IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
CShell.Modules.Editors.ViewModels.EditorViewModel Class Reference
+ Inheritance diagram for CShell.Modules.Editors.ViewModels.EditorViewModel:
+ Collaboration diagram for CShell.Modules.Editors.ViewModels.EditorViewModel:

Public Member Functions

override void CanClose (System.Action< bool > callback)
 
void Open (Uri uri)
 
override void Save ()
 
override void SaveAs (string newFile)
 
string GetSelectionOrCurrentLine ()
 
override bool Equals (object obj)
 
void Undo ()
 
void Redo ()
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
void SelectAll ()
 
void Select (int start, int length)
 Selects a section in the text. More...
 
void Comment ()
 
void Uncomment ()
 
override void CanClose (System.Action< bool > callback)
 
void Open (Uri uri)
 
override void Save ()
 
override void SaveAs (string newFile)
 
string GetSelectionOrCurrentLine ()
 
override bool Equals (object obj)
 
void Undo ()
 
void Redo ()
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
void SelectAll ()
 
void Select (int start, int length)
 Selects a section in the text. More...
 
void Comment ()
 
void Uncomment ()
 

Protected Member Functions

override void OnViewLoaded (object view)
 
override void OnViewLoaded (object view)
 

Properties

string File [get]
 
override Uri Uri [get, set]
 
override bool IsDirty [get, set]
 
string Text [get, set]
 
- Properties inherited from CShell.Framework.Document
ICommand CloseCommand [get]
 
virtual Uri Uri [get, set]
 
virtual bool IsDirty [get, set]
 
- Properties inherited from CShell.Framework.IDocument
ICommand CloseCommand [get]
 
Uri Uri [get]
 
bool IsDirty [get]
 
- Properties inherited from CShell.Framework.ITextDocument
string Text [get, set]
 

Private Member Functions

IHighlightingDefinition GetHighlighting (string fileExtension)
 
IHighlightingDefinition GetHighlighting (string fileExtension)
 

Private Attributes

string originalText
 
string path
 
string fileName
 
bool isDirty
 
CodeTextEditor textEditor
 
EditorView editorView
 

Member Function Documentation

override void CShell.Modules.Editors.ViewModels.EditorViewModel.CanClose ( System.Action< bool >  callback)
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Open ( Uri  uri)
inline
override void CShell.Modules.Editors.ViewModels.EditorViewModel.OnViewLoaded ( object  view)
inlineprotected
override void CShell.Modules.Editors.ViewModels.EditorViewModel.Save ( )
inlinevirtual

Reimplemented from CShell.Framework.Document.

override void CShell.Modules.Editors.ViewModels.EditorViewModel.SaveAs ( string  newFile)
inlinevirtual

Reimplemented from CShell.Framework.Document.

string CShell.Modules.Editors.ViewModels.EditorViewModel.GetSelectionOrCurrentLine ( )
inline
override bool CShell.Modules.Editors.ViewModels.EditorViewModel.Equals ( object  obj)
inline
IHighlightingDefinition CShell.Modules.Editors.ViewModels.EditorViewModel.GetHighlighting ( string  fileExtension)
inlineprivate
void CShell.Modules.Editors.ViewModels.EditorViewModel.Undo ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Redo ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Cut ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Copy ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Paste ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.SelectAll ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Select ( int  start,
int  length 
)
inline

Selects a section in the text.

Parameters
startThe start index of the selection.
lengthThe length of the selection.

Implements CShell.Framework.ITextDocument.

void CShell.Modules.Editors.ViewModels.EditorViewModel.Comment ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Uncomment ( )
inline
override void CShell.Modules.Editors.ViewModels.EditorViewModel.CanClose ( System.Action< bool >  callback)
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Open ( Uri  uri)
inline
override void CShell.Modules.Editors.ViewModels.EditorViewModel.OnViewLoaded ( object  view)
inlineprotected
override void CShell.Modules.Editors.ViewModels.EditorViewModel.Save ( )
inlinevirtual

Reimplemented from CShell.Framework.Document.

override void CShell.Modules.Editors.ViewModels.EditorViewModel.SaveAs ( string  newFile)
inlinevirtual

Reimplemented from CShell.Framework.Document.

string CShell.Modules.Editors.ViewModels.EditorViewModel.GetSelectionOrCurrentLine ( )
inline
override bool CShell.Modules.Editors.ViewModels.EditorViewModel.Equals ( object  obj)
inline
IHighlightingDefinition CShell.Modules.Editors.ViewModels.EditorViewModel.GetHighlighting ( string  fileExtension)
inlineprivate
void CShell.Modules.Editors.ViewModels.EditorViewModel.Undo ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Redo ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Cut ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Copy ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Paste ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.SelectAll ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Select ( int  start,
int  length 
)
inline

Selects a section in the text.

Parameters
startThe start index of the selection.
lengthThe length of the selection.

Implements CShell.Framework.ITextDocument.

void CShell.Modules.Editors.ViewModels.EditorViewModel.Comment ( )
inline
void CShell.Modules.Editors.ViewModels.EditorViewModel.Uncomment ( )
inline

Member Data Documentation

string CShell.Modules.Editors.ViewModels.EditorViewModel.originalText
private
string CShell.Modules.Editors.ViewModels.EditorViewModel.path
private
string CShell.Modules.Editors.ViewModels.EditorViewModel.fileName
private
bool CShell.Modules.Editors.ViewModels.EditorViewModel.isDirty
private
CodeTextEditor CShell.Modules.Editors.ViewModels.EditorViewModel.textEditor
private
EditorView CShell.Modules.Editors.ViewModels.EditorViewModel.editorView
private

Property Documentation

string CShell.Modules.Editors.ViewModels.EditorViewModel.File
get
override Uri CShell.Modules.Editors.ViewModels.EditorViewModel.Uri
getset
override bool CShell.Modules.Editors.ViewModels.EditorViewModel.IsDirty
getset
string CShell.Modules.Editors.ViewModels.EditorViewModel.Text
getset

The documentation for this class was generated from the following file: