#include <GDocView.h>
Inheritance diagram for GDocView:
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 GDocumentEnv * | GetEnv () |
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. |
|
Cursor=false means the other end of the selection if any. The cursor is alwasy at one end of the selection. Reimplemented in GTextView3. |
|
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. |