move the public form API
This commit is contained in:
parent
a60c4749ff
commit
66d0f14b32
|
@ -31,8 +31,8 @@
|
|||
#include "utils/log.h"
|
||||
#include "utils/utf8.h"
|
||||
#include "utils/utils.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "render/box.h"
|
||||
#include "render/form.h"
|
||||
#include "render/html_internal.h"
|
||||
#include "render/font.h"
|
||||
#include "render/textplain.h"
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
#include "utils/talloc.h"
|
||||
#include "utils/utf8.h"
|
||||
#include "utils/utils.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "render/box.h"
|
||||
#include "render/form.h"
|
||||
#include "render/html_internal.h"
|
||||
#include "render/layout.h"
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "utils/errors.h"
|
||||
#include "utils/log.h"
|
||||
#include "utils/messages.h"
|
||||
#include "render/form.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "netsurf/mouse.h"
|
||||
|
||||
#include "amiga/gui.h"
|
||||
|
|
|
@ -57,19 +57,19 @@ extern "C" {
|
|||
#include "utils/utils.h"
|
||||
#include "utils/log.h"
|
||||
#include "utils/nsurl.h"
|
||||
#include "utils/nsoption.h"
|
||||
#include "netsurf/netsurf.h"
|
||||
#include "netsurf/plotters.h"
|
||||
#include "netsurf/clipboard.h"
|
||||
#include "netsurf/content.h"
|
||||
#include "netsurf/content_type.h"
|
||||
#include "desktop/browser_history.h"
|
||||
#include "netsurf/browser_window.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "desktop/browser_history.h"
|
||||
#include "desktop/version.h"
|
||||
#include "desktop/searchweb.h"
|
||||
#include "desktop/search.h"
|
||||
#include "utils/nsoption.h"
|
||||
#include "desktop/textinput.h"
|
||||
#include "render/form.h"
|
||||
}
|
||||
|
||||
#include "beos/about.h"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#import "utils/utils.h"
|
||||
#import "netsurf/browser_window.h"
|
||||
#import "render/form.h"
|
||||
#import "netsurf/form.h"
|
||||
|
||||
static inline NSRect cocoa_rect_for_control( struct browser_window *bw, struct form_control *control)
|
||||
{
|
||||
|
|
|
@ -41,9 +41,9 @@
|
|||
#include "netsurf/mouse.h"
|
||||
#include "netsurf/window.h"
|
||||
#include "netsurf/plotters.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "desktop/searchweb.h"
|
||||
#include "desktop/textinput.h"
|
||||
#include "render/form.h"
|
||||
|
||||
#include "gtk/window.h"
|
||||
#include "gtk/selection.h"
|
||||
|
|
|
@ -46,12 +46,12 @@
|
|||
#include "netsurf/window.h"
|
||||
#include "netsurf/bitmap.h"
|
||||
#include "netsurf/content.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "desktop/hotlist.h"
|
||||
#include "desktop/global_history.h"
|
||||
#include "desktop/version.h"
|
||||
#include "desktop/save_complete.h"
|
||||
#include "desktop/save_text.h"
|
||||
#include "render/form.h"
|
||||
|
||||
#include "riscos/bitmap.h"
|
||||
#include "riscos/dialog.h"
|
||||
|
|
|
@ -58,11 +58,11 @@
|
|||
#include "netsurf/window.h"
|
||||
#include "netsurf/bitmap.h"
|
||||
#include "netsurf/url_db.h"
|
||||
#include "netsurf/form.h"
|
||||
#include "desktop/browser_history.h"
|
||||
#include "desktop/cookie_manager.h"
|
||||
#include "desktop/scrollbar.h"
|
||||
#include "desktop/textinput.h"
|
||||
#include "render/form.h"
|
||||
|
||||
#include "riscos/bitmap.h"
|
||||
#include "riscos/buffer.h"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
||||
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
||||
* Copyright 2009 Paul Blokus <paul_pl@users.sourceforge.net>
|
||||
* Copyright 2009 Paul Blokus <paul_pl@users.sourceforge.net>
|
||||
*
|
||||
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
||||
*
|
||||
|
@ -18,12 +18,13 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** \file
|
||||
* Form handling functions (interface).
|
||||
/**
|
||||
* \file
|
||||
* Form handling public interface.
|
||||
*/
|
||||
|
||||
#ifndef _NETSURF_RENDER_FORM_H_
|
||||
#define _NETSURF_RENDER_FORM_H_
|
||||
#ifndef _NETSURF_FORM_H_
|
||||
#define _NETSURF_FORM_H_
|
||||
|
||||
struct form_control;
|
||||
struct rect;
|
|
@ -1402,7 +1402,7 @@ static nserror form__select_process_selection(html_content *html,
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* exported interface documented in render/form.h */
|
||||
/* exported interface documented in netsurf/form.h */
|
||||
nserror form_select_process_selection(struct form_control *control, int item)
|
||||
{
|
||||
assert(control != NULL);
|
||||
|
@ -1410,7 +1410,7 @@ nserror form_select_process_selection(struct form_control *control, int item)
|
|||
return form__select_process_selection(control->html, control, item);
|
||||
}
|
||||
|
||||
/* exported interface documented in render/form.h */
|
||||
/* exported interface documented in netsurf/form.h */
|
||||
struct form_option *
|
||||
form_select_get_option(struct form_control *control, int item)
|
||||
{
|
||||
|
@ -1424,13 +1424,13 @@ form_select_get_option(struct form_control *control, int item)
|
|||
return opt;
|
||||
}
|
||||
|
||||
/* exported interface documented in render/form.h */
|
||||
/* exported interface documented in netsurf/form.h */
|
||||
char *form_control_get_name(struct form_control *control)
|
||||
{
|
||||
return control->name;
|
||||
}
|
||||
|
||||
/* exported interface documented in render/form.h */
|
||||
/* exported interface documented in netsurf/form.h */
|
||||
nserror form_control_bounding_rect(struct form_control *control, struct rect *r)
|
||||
{
|
||||
box_bounds( control->box, r );
|
||||
|
|
|
@ -24,10 +24,10 @@
|
|||
#ifndef _NETSURF_RENDER_FORM_INTERNAL_H_
|
||||
#define _NETSURF_RENDER_FORM_INTERNAL_H_
|
||||
|
||||
#include "render/form.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "netsurf/form.h"
|
||||
|
||||
struct box;
|
||||
struct form_control;
|
||||
struct form_option;
|
||||
|
|
Loading…
Reference in New Issue