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

GDocumentEnv Class Reference

An environment class to handle requests from the text view to the outside world. More...

#include <GDocView.h>

Inheritance diagram for GDocumentEnv:

GDefaultDocumentEnv List of all members.

Public Member Functions

virtual bool AppendItems (GSubMenu *Menu, int Base=1000)
virtual bool OnMenu (GDocView *View, int Id)
virtual bool GetImageUri (char *Uri, GSurface **pDC, char *FileName=0, int FileBufSize=0)
virtual bool OnNavigate (char *Uri)
 Handle a click on URI.
virtual char * OnDynamicContent (char *Code)

Friends

class GDocView

Detailed Description

An environment class to handle requests from the text view to the outside world.


Member Function Documentation

virtual bool GDocumentEnv::AppendItems GSubMenu Menu,
int  Base = 1000
[inline, virtual]
 

Creating a context menu, usually when the user right clicks on the document.

virtual bool GDocumentEnv::GetImageUri char *  Uri,
GSurface **  pDC,
char *  FileName = 0,
int  FileBufSize = 0
[inline, virtual]
 

Return an external image resource based on URI

Either by setting *pDC to something or by sending the GDocView a M_IMAGE_LOADED message sometime down the track with the Uri loaded and the image handle. This is useful for loading images in the background. In that case you should still return true here but leave the *pDC as NULL.

Reimplemented in GDefaultDocumentEnv.

virtual char* GDocumentEnv::OnDynamicContent char *  Code  )  [inline, virtual]
 

Process dynamic content, returning a dynamically allocated string for the result of the executed script. Dynamic content is enclosed between <? and ?>.

virtual bool GDocumentEnv::OnMenu GDocView View,
int  Id
[inline, virtual]
 

Do something when the menu items created by GDocumentEnv::AppendItems are clicked.


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