diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-05 16:29:02 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-05 16:29:02 +0000 |
commit | d02a0802cd226cbbf73470dc76a1384f19f10199 (patch) | |
tree | 8d057025083179d6685b8480be7d7ba9ba1395eb /proto.h | |
parent | [w3m-dev 03528] area without alt (diff) | |
download | w3m-d02a0802cd226cbbf73470dc76a1384f19f10199.tar.gz w3m-d02a0802cd226cbbf73470dc76a1384f19f10199.zip |
[w3m-dev 03529] Support of title, accesskey of anchor
* anchor.c (putAnchor): arg title, key
initialize slave
(registerHref): arg title, key
(registerName): title = NULL, key = '\0'
(registerForm): title = NULL, key = '\0'
(_put_anchor_news): title = NULL, key = '\0'
(_put_anchor_all): title = NULL, key = '\0'
(addMultirowsImg): register title, accesskey
(addMultirowsForm): title = NULL, key = '\0'
(getAnchorText): added
* display.c (displayBuffer): show title if any
* file.c (set_breakpoint): use bcopy
(back_to_breakpoint): use bcopy
(flushline): s/anchor/anchor.url/
s/anchor_hseq/anchor.hseq/
s/anchor_target/anchor.target/
add anchor.*
(close_effect0): s/anchor/anchor.url/
s/anchor_hseq/anchor.hseq/
(close_anchor): use bzero
(process_img): ATTR_TITLE,
(HTMLtagproc1): s/anchor/anchor.url/
target, referer, title, accesskey, hseq
(HTMLlineproc2body): ATTR_TITLE, ATTR_ACCESSKEY
(init_henv): use bzero
* fm.h (Anchor): add title, accesskey, slave
(Breakpoint): use Anchor
(struct readbuffer): use Anchor
* funcname.tab (ACCESSKEY): added
(LINK_MENU): added
* html.c (ALST_A): add ATTR_TITLE, ATTR_ACCESSKEY
(ALST_IMG): add ATTR_TITLE
(ALST_IMG_ALT): add ATTR_TITLE
(AttrMAP): add accesskey, renum
* html.h (ATTR_ACCESSKEY): added
(ATTR_*): renum 50->60
* main.c (linkMn): added
(accessKey): added
* menu.c (LinkMenu): deleted
(LinkV): deleted
(initLinkMenu): deleted
(lmGoURL): deleted
(popupMenu): delete initLinkMenu()
(initMenu): delete Link
(link_menu): added
(accesskey_menu): added
* proto.h (linkMn): added
(link_menu): added
(accessKey): added
(accesskey_menu): added
(putAnchor): arg title, key
(registerHref): arg title, key
(registerImg): arg title
(getAnchorText): added
* doc/README.func (ACCESSKEY): added
(LINK_MENU): added
* doc-jp/README.func (ACCESSKEY): added
(LINK_MENU): added
* scripts/w3mhelp.cgi.in (Hyperlink operation): add linkMn accessKey
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | proto.h | 21 |
1 files changed, 17 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.65 2002/12/04 16:45:41 ukai Exp $ */ +/* $Id: proto.h,v 1.66 2002/12/05 16:29:10 ukai Exp $ */ /* * This file was automatically generated by version 1.7 of cextract. * Manual editing not recommended. @@ -131,6 +131,15 @@ extern void tabrURL(void); extern void tabR(void); extern void tabL(void); extern void ldDL(void); +#ifdef USE_MENU +extern void linkMn(void); +extern LinkList *link_menu(Buffer *buf); +extern void accessKey(void); +extern Anchor *accesskey_menu(Buffer *buf); +#else +#define linkMn nulcmd +#define accessKey nulcmd +#endif extern int currentLn(Buffer *buf); extern void tmpClearBuffer(Buffer *buf); @@ -500,12 +509,15 @@ extern Str readFTPDir(ParsedURL *pu); extern void closeFTP(FILE * f); extern int Ftpfclose(FILE * f); extern AnchorList *putAnchor(AnchorList *al, char *url, char *target, - Anchor **anchor_return, char *referer, int line, + Anchor **anchor_return, char *referer, + char *title, unsigned char key, int line, int pos); extern Anchor *registerHref(Buffer *buf, char *url, char *target, - char *referer, int line, int pos); + char *referer, char *title, unsigned char key, + int line, int pos); extern Anchor *registerName(Buffer *buf, char *url, int line, int pos); -extern Anchor *registerImg(Buffer *buf, char *url, int line, int pos); +extern Anchor *registerImg(Buffer *buf, char *url, char *title, int line, + int pos); extern Anchor *registerForm(Buffer *buf, FormList *flist, struct parsed_tag *tag, int line, int pos); extern int onAnchor(Anchor *a, int line, int pos); @@ -527,6 +539,7 @@ extern Anchor *closest_prev_anchor(AnchorList *a, Anchor *an, int x, int y); void addMultirowsImg(Buffer *buf, AnchorList *al); #endif extern HmarkerList *putHmarker(HmarkerList *ml, int line, int pos, int seq); +extern char *getAnchorText(Buffer *buf, Anchor *a); extern Str decodeB(char **ww); extern Str decodeQ(char **ww); extern Str decodeQP(char **ww); |