comparison gtk/dw.c @ 586:b9d903cde2f4

Added stubs for HTML renderer on Unix.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 22 May 2005 18:23:05 +0000
parents ac067e8ea2b4
children 9e81f23b57ae
comparison
equal deleted inserted replaced
585:4df2d1639005 586:b9d903cde2f4
9840 9840
9841 return dw_exec(browser, DW_EXEC_GUI, execargs); 9841 return dw_exec(browser, DW_EXEC_GUI, execargs);
9842 } 9842 }
9843 9843
9844 /* 9844 /*
9845 * Causes the embedded HTML widget to take action.
9846 * Parameters:
9847 * handle: Handle to the window.
9848 * action: One of the DW_HTML_* constants.
9849 */
9850 void dw_html_action(HWND handle, int action)
9851 {
9852 }
9853
9854 /*
9855 * Render raw HTML code in the embedded HTML widget..
9856 * Parameters:
9857 * handle: Handle to the window.
9858 * string: String buffer containt HTML code to
9859 * be rendered.
9860 * Returns:
9861 * 0 on success.
9862 */
9863 int dw_html_raw(HWND handle, char *string)
9864 {
9865 return -1;
9866 }
9867
9868 /*
9869 * Render file or web page in the embedded HTML widget..
9870 * Parameters:
9871 * handle: Handle to the window.
9872 * url: Universal Resource Locator of the web or
9873 * file object to be rendered.
9874 * Returns:
9875 * 0 on success.
9876 */
9877 int dw_html_url(HWND handle, char *url)
9878 {
9879 return -1;
9880 }
9881
9882 /*
9883 * Create a new Entryfield window (widget) to be packed.
9884 * Parameters:
9885 * text: The default text to be in the entryfield widget.
9886 * id: An ID to be used with dw_window_from_id() or 0L.
9887 */
9888 HWND dw_html_new(unsigned long id)
9889 {
9890 return dw_box_new(DW_HORZ, 0);
9891 }
9892
9893 /*
9845 * Returns a pointer to a static buffer which containes the 9894 * Returns a pointer to a static buffer which containes the
9846 * current user directory. Or the root directory (C:\ on 9895 * current user directory. Or the root directory (C:\ on
9847 * OS/2 and Windows). 9896 * OS/2 and Windows).
9848 */ 9897 */
9849 char *dw_user_dir(void) 9898 char *dw_user_dir(void)