Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GDocView Class Reference

TextView class is a base for all text controls. More...

#include <GDocView.h>

Inheritance diagram for GDocView:

GLayout GView GTarget GEvent GFlags GHtml GTextView3 List of all members.

Public Member Functions

virtual bool Open (char *Name, char *Cs=0)
 Open a file handler.
virtual bool Save (char *Name, char *Cs=0)
 Save a file handler.
virtual bool DoFind ()
 Find window handler.
virtual bool DoReplace ()
 Replace window handler.
virtual GDocumentEnvGetEnv ()
 Get the current environment.
virtual void SetEnv (GDocumentEnv *e)
 Set the current environment.
virtual void SetCursor (int i, bool Select, bool ForceFullUpdate=false)
virtual int GetCursor (bool Cursor=true)
virtual bool HasSelection ()
 True if there is a selection.
virtual void UnSelectAll ()
 Unselect all the text.
virtual void SelectWord (int From)
 Select the word from index 'From'.
virtual void SelectAll ()
 Select all the text in the control.
virtual char * GetSelection ()
 Get the selection as a dynamicially allocated utf-8 string.
virtual int IndexAt (int x, int y)
 Returns the character index at the x,y location.
virtual void PositionAt (int &x, int &y, int Index=-1)
 Index=-1 returns the x,y of the cursor, Index >=0 returns the specified x,y.
virtual bool IsDirty ()
 True if the document has changed.
virtual int GetLines ()
 Gets the number of lines of text.
virtual void GetTextExtent (int &x, int &y)
 Gets the pixels required to display all the text.
virtual bool Cut ()
 Cuts the selection from the document and puts it on the clipboard.
virtual bool Copy ()
 Copies the selection from the document to the clipboard.
virtual bool Paste ()
 Pastes the current contents of the clipboard into the document.
virtual void OnEscape (GKey &K)
 Called when the user hits the escape key.
virtual void OnEnter (GKey &k)
 Called when the user hits the enter key.
virtual void OnUrl (char *Url)
 Called when the user clicks a URL.

Detailed Description

TextView class is a base for all text controls.


Member Function Documentation

virtual int GDocView::GetCursor bool  Cursor = true  )  [inline, virtual]
 

Cursor=false means the other end of the selection if any. The cursor is alwasy at one end of the selection.

Reimplemented in GTextView3.

virtual void GDocView::SetCursor int  i,
bool  Select,
bool  ForceFullUpdate = false
[inline, virtual]
 

Set the cursor position, to select an area, move the cursor with Select=false then set the other end of the region with Select=true.

Reimplemented in GTextView3.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:46:58 2005 for Lgi by  doxygen 1.4.1