#include "GVariant.h"
Go to the source code of this file.
Classes | |
struct | GLinkInfo |
class | GDocumentEnv |
An environment class to handle requests from the text view to the outside world. More... | |
class | GDefaultDocumentEnv |
class | GDocFindReplaceParams |
Find params. More... | |
class | GDocView |
TextView class is a base for all text controls. More... | |
Defines | |
#define | TEXTED_WRAP_NONE 0 |
No word wrapping. | |
#define | TEXTED_WRAP_REFLOW 1 |
Dynamically wrap line to editor width. | |
#define | GTVN_DOC_CHANGED 0x01 |
GView::OnNotify flag: the document has changed. | |
#define | GTVN_CURSOR_CHANGED 0x02 |
GView::OnNotify flag: the cursor moved. | |
#define | GTVN_CODEPAGE_CHANGED 0x04 |
GView::OnNotify flag: the charset has changed. | |
#define | GTVN_FIXED_WIDTH_CHANGED 0x08 |
GView::OnNotify flag: the fixed width font setting has changed. | |
#define | GTVN_SHOW_IMGS_CHANGED 0x10 |
GView::OnNotify flag: the show images setting has changed. | |
#define | IsAlpha(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z')) |
Returns true if 'c' is an ascii character. | |
#define | IsWhiteSpace(c) ((c) < 126 && strchr(GDocView::WhiteSpace, c) != 0) |
Returns true if 'c' is whitespace. | |
#define | IsDelimiter(c) ((c) < 126 && strchr(GDocView::Delimiters, c) != 0) |
Returns true if 'c' is a delimiter. | |
#define | IsDigit(c) ((c) >= '0' && (c) <= '9') |
Returns true if 'c' is a digit (number). | |
#define | IsLetter(c) (((c) >= 'a' && (c) <= 'z') || ((c) >= 'A' && (c) <= 'Z')) |
Returns true if 'c' is letter. | |
#define | IsText(c) (IsDigit(c) || IsAlpha(c) || (c) == '_') |
Returns true if 'c' is a letter or number. | |
#define | IsWordBoundry(c) (strchr(GDocView::WhiteSpace, c) || strchr(GDocView::Delimiters, c)) |
Returns true if 'c' is word boundry. | |
#define | AlphaOrDigit(c) (IsDigit(c) || IsLetter(c)) |
Returns true if 'c' is alphanumeric or a digit. | |
#define | UrlChar(c) |
Returns true if 'c' is a valid URL character. | |
#define | EmailChar(c) (strchr("._-:+", (c)) || AlphaOrDigit((c))) |
Returns true if 'c' is email address character. | |
Functions | |
bool | LgiDetectLinks (GArray< GLinkInfo > &Links, char16 *Text, int Size=-1) |
Detects links in text, returning their location and type. |