21#define NSCMD_ALIGN "cmd_align"
22#define NSCMD_BEGINLINE "cmd_beginLine"
23#define NSCMD_BOLD "cmd_bold"
24#define NSCMD_CHARNEXT "cmd_charNext"
25#define NSCMD_CHARPREVIOUS "cmd_charPrevious"
26#define NSCMD_COPY "cmd_copy"
27#define NSCMD_CUT "cmd_cut"
28#define NSCMD_DELETECHARFORWARD "cmd_deleteCharForward"
29#define NSCMD_DELETEWORDFORWARD "cmd_deleteWordForward"
30#define NSCMD_ENDLINE "cmd_endLine"
31#define NSCMD_FONTCOLOR "cmd_fontColor"
32#define NSCMD_FONTFACE "cmd_fontFace"
33#define NSCMD_INDENT "cmd_indent"
34#define NSCMD_INSERTHR "cmd_insertHR"
35#define NSCMD_INSERTLINKNOUI "cmd_insertLinkNoUI"
36#define NSCMD_ITALIC "cmd_italic"
37#define NSCMD_LINENEXT "cmd_lineNext"
38#define NSCMD_LINEPREVIOUS "cmd_linePrevious"
39#define NSCMD_MOVEBOTTOM "cmd_moveBottom"
40#define NSCMD_MOVEPAGEDOWN "cmd_movePageDown"
41#define NSCMD_MOVEPAGEUP "cmd_movePageUp"
42#define NSCMD_MOVETOP "cmd_moveTop"
43#define NSCMD_OL "cmd_ol"
44#define NSCMD_OUTDENT "cmd_outdent"
45#define NSCMD_PASTE "cmd_paste"
46#define NSCMD_SELECTBEGINLINE "cmd_selectBeginLine"
47#define NSCMD_SELECTBOTTOM "cmd_selectBottom"
48#define NSCMD_SELECTCHARNEXT "cmd_selectCharNext"
49#define NSCMD_SELECTCHARPREVIOUS "cmd_selectCharPrevious"
50#define NSCMD_SELECTENDLINE "cmd_selectEndLine"
51#define NSCMD_SELECTLINENEXT "cmd_selectLineNext"
52#define NSCMD_SELECTLINEPREVIOUS "cmd_selectLinePrevious"
53#define NSCMD_SELECTPAGEDOWN "cmd_selectPageDown"
54#define NSCMD_SELECTPAGEUP "cmd_selectPageUp"
55#define NSCMD_SELECTTOP "cmd_selectTop"
56#define NSCMD_SELECTWORDNEXT "cmd_selectWordNext"
57#define NSCMD_SELECTWORDPREVIOUS "cmd_selectWordPrevious"
58#define NSCMD_UL "cmd_ul"
59#define NSCMD_UNDERLINE "cmd_underline"
60#define NSCMD_WORDNEXT "cmd_wordNext"
61#define NSCMD_WORDPREVIOUS "cmd_wordPrevious"
63#define NSSTATE_ATTRIBUTE "state_attribute"
64#define NSSTATE_ALL "state_all"
66#define NSALIGN_CENTER "center"
67#define NSALIGN_LEFT "left"
68#define NSALIGN_RIGHT "right"
70#define DOM_VK_LEFT VK_LEFT
71#define DOM_VK_UP VK_UP
72#define DOM_VK_RIGHT VK_RIGHT
73#define DOM_VK_DOWN VK_DOWN
74#define DOM_VK_DELETE VK_DELETE
75#define DOM_VK_HOME VK_HOME
76#define DOM_VK_END VK_END
85 if(
This->doc_obj->usermode !=
EDITMODE || !
This->doc_obj->nscontainer || !
This->doc_obj->nscontainer->editor)
89 nsres = nsIEditor_IncrementModificationCount(
This->doc_obj->nscontainer->editor, 1);
91 ERR(
"IncrementModificationCount failed: %08x\n", nsres);
93 nsres = nsIEditor_ResetModificationCount(
This->doc_obj->nscontainer->editor);
95 ERR(
"ResetModificationCount failed: %08x\n", nsres);
103 if(!
This->editor_controller)
106 nsres = nsIController_DoCommand(
This->editor_controller,
cmd);
118 ERR(
"Could not get nsICommandManager: %08x\n", nsres);
122 nsres = nsICommandManager_GetCommandState(cmdmgr,
cmd,
This->doc->basedoc.window->nswindow, nsparam);
126 nsICommandManager_Release(cmdmgr);
135 if(
This->doc_obj->usermode !=
EDITMODE ||
This->window->readystate < READYSTATE_INTERACTIVE)
136 return OLECMDF_SUPPORTED;
138 if(
This->doc_obj->nscontainer && nscmd) {
142 nsICommandParams_GetBooleanValue(nsparam,
NSSTATE_ALL, &
b);
144 nsICommandParams_Release(nsparam);
147 return OLECMDF_SUPPORTED | OLECMDF_ENABLED | (
b ? OLECMDF_LATCHED : 0);
154 if(!
This->doc_obj->nscontainer)
162 nsICommandParams_Release(nsparam);
167 DWORD ret = OLECMDF_SUPPORTED | OLECMDF_ENABLED;
172 if(
This->doc_obj->usermode !=
EDITMODE ||
This->window->readystate < READYSTATE_INTERACTIVE)
173 return OLECMDF_SUPPORTED;
176 nsres = nsIDOMHTMLDocument_QueryCommandState(
This->doc_node->nsdoc, &justify_str, &
b);
179 ret |= OLECMDF_LATCHED;
190 nsres = nsIDOMWindow_GetSelection(
This->window->nswindow, &nsselection);
192 ERR(
"GetSelection failed %08x\n", nsres);
206 nsIDOMElement_HasChildNodes(
elem, &has_children);
210 nsIDOMElement_GetChildNodes(
elem, &node_list);
211 nsIDOMNodeList_GetLength(node_list, &child_cnt);
213 for(
i=0;
i<child_cnt;
i++) {
214 nsIDOMNodeList_Item(node_list,
i, &child_node);
216 nsIDOMNode_GetNodeType(child_node, &node_type);
217 if(node_type == ELEMENT_NODE) {
222 nsIDOMNode_QueryInterface(child_node, &IID_nsIDOMElement, (
void**)&child_elem);
225 nsIDOMElement_GetTagName(child_elem, &tag_str);
230 nsIDOMElement_RemoveAttribute(child_elem, attr_str);
236 nsIDOMElement_Release(child_elem);
239 nsIDOMNode_Release(child_node);
242 nsIDOMNodeList_Release(node_list);
260 nsISelection_GetFocusNode(nsselection, &
node);
261 nsISelection_Release(nsselection);
264 nsres = nsIDOMNode_GetNodeType(
node, &node_type);
265 if(
NS_FAILED(nsres) || node_type == DOCUMENT_NODE)
268 if(node_type == ELEMENT_NODE) {
269 nsIDOMNode_QueryInterface(
node, &IID_nsIDOMHTMLElement, (
void**)&
elem);
272 nsIDOMHTMLElement_GetTagName(
elem, &tag_str);
291 nsIDOMHTMLElement_Release(
elem);
298 nsIDOMNode_GetParentNode(
node, &
node);
299 nsIDOMNode_Release(tmp_node);
303 nsIDOMNode_Release(
node);
316 if(!
This->doc_node->nsdoc) {
317 WARN(
"NULL nsdoc\n");
325 nsISelection_GetRangeCount(nsselection, &range_cnt);
327 FIXME(
"range_cnt %d not supprted\n", range_cnt);
329 nsISelection_Release(nsselection);
339 nsIDOMHTMLElement_SetAttribute(
elem, &size_str, &val_str);
342 nsISelection_GetRangeAt(nsselection, 0, &
range);
343 nsISelection_GetIsCollapsed(nsselection, &collapsed);
344 nsISelection_RemoveAllRanges(nsselection);
356 nsISelection_Release(nsselection);
357 nsIDOMRange_Release(
range);
358 nsIDOMHTMLElement_Release(
elem);
370 nsIDOMKeyEvent_GetCtrlKey(
event, &
b);
374 nsIDOMKeyEvent_GetShiftKey(
event, &
b);
381 nsIDOMKeyEvent_PreventDefault(
event);
389 nsIDOMEvent_QueryInterface(
event, &IID_nsIDOMKeyEvent, (
void**)&
key_event);
395 static const char *
const cmds[] = {
407 static const char *
const cmds[] = {
419 static const char *
const cmds[] = {
431 static const char *
const cmds[] = {
443 static const char *
const cmds[] = {
454 static const char *
const cmds[] = {
466 static const char *
const cmds[] = {
493 nsICommandParams_Release(nsparam);
500 if(
This->doc_obj->nscontainer)
511 if(!
This->doc_obj->nscontainer) {
550 nsICommandParams_Release(nsparam);
573 sprintf(color_str,
"#%02x%02x%02x",
579 nsICommandParams_Release(nsparam);
588 FIXME(
"unsupported out\n");
641 FIXME(
"unsupported args\n");
643 if(
This->doc_obj->nscontainer)
655 FIXME(
"unsupported args\n");
657 if(
This->doc_obj->nscontainer)
666 static const PRUnichar justifycenterW[] = {
'j',
'u',
's',
't',
'i',
'f',
'y',
'c',
'e',
'n',
't',
'e',
'r',0};
667 static const PRUnichar justifyrightW[] = {
'j',
'u',
's',
't',
'i',
'f',
'y',
'r',
'i',
'g',
'h',
't',0};
677 if(
This->doc_obj->usermode !=
EDITMODE ||
This->window->readystate < READYSTATE_INTERACTIVE)
678 cmd->cmdf = OLECMDF_SUPPORTED;
680 cmd->cmdf = OLECMDF_SUPPORTED | OLECMDF_ENABLED;
696 FIXME(
"unsupported args\n");
708 FIXME(
"unsupported args\n");
720 FIXME(
"unsupported args\n");
732 FIXME(
"unsupported args\n");
744 FIXME(
"unsupported args\n");
756 FIXME(
"unsupported args\n");
768 FIXME(
"unsupported args\n");
780 FIXME(
"unsupported args\n");
792 FIXME(
"unsupported args\n");
844 FIXME(
"set font color\n");
850 FIXME(
"set background color\n");
874 if(!
This->doc_obj->nscontainer)
885 if(!
This->doc_obj->nscontainer)
896 if(!
This->doc_obj->nscontainer)
922 TRACE(
"CGID_MSHTML: IDM_DELETE\n");
926 TRACE(
"CGID_MSHTML: IDM_FONTNAME\n");
930 TRACE(
"CGID_MSHTML: IDM_FONTSIZE\n");
934 TRACE(
"CGID_MSHTML: IDM_BOLD\n");
938 TRACE(
"CGID_MSHTML: IDM_FORECOLOR\n");
942 TRACE(
"CGID_MSHTML: IDM_ITALIC\n");
946 TRACE(
"CGID_MSHTML: IDM_UNDERLINE\n");
950 TRACE(
"CGID_MSHTML: IDM_HORIZONTALLINE\n");
954 TRACE(
"CGID_MSHTML: IDM_ORDERLIST\n");
958 TRACE(
"CGID_MSHTML: IDM_HORIZONTALLINE\n");
962 TRACE(
"CGID_MSHTML: IDM_INDENT\n");
966 TRACE(
"CGID_MSHTML: IDM_OUTDENT\n");
970 TRACE(
"CGID_MSHTML: IDM_HYPERLINK\n");
980 static const WCHAR wszOther[] = {
'(',
'o',
't',
'h',
'e',
'r',
')',0};
985 static const WCHAR wszMailto[] = {
'm',
'a',
'i',
'l',
't',
'o',
':',0};
986 static const WCHAR wszNews[] = {
'n',
'e',
'w',
's',
':',0};
1041 static const WCHAR wszSlashSlash[] = {
'/',
'/'};
1059 if (
p &&
p[1] ==
'/' &&
p[2] ==
'/')
1099 static const WCHAR aW[] = {
'a',0};
1100 static const WCHAR hrefW[] = {
'h',
'r',
'e',
'f',0};
1104 if (cmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER)
1108 WARN(
"invalid arg\n");
1117 return OLECMDERR_E_CANCELED;
1120 if(!
This->doc_node->nsdoc) {
1121 WARN(
"NULL nsdoc\n");
1134 nsIDOMHTMLElement_SetAttribute(anchor_elem, &href_str, &ns_url);
1137 nsISelection_GetIsCollapsed(nsselection, &insert_link_at_caret);
1140 if (insert_link_at_caret) {
1144 nsIDOMHTMLDocument_CreateTextNode(
This->doc_node->nsdoc, &ns_url, &text_node);
1147 nsIDOMHTMLElement_AppendChild(anchor_elem, (
nsIDOMNode*)text_node, &unused_node);
1148 nsIDOMText_Release(text_node);
1149 nsIDOMNode_Release(unused_node);
1154 nsIEditor_QueryInterface(
This->doc_obj->nscontainer->editor, &IID_nsIHTMLEditor, (
void **)&html_editor);
1158 if (insert_link_at_caret) {
1160 nsres = nsIHTMLEditor_InsertElementAtSelection(html_editor, (
nsIDOMElement*)anchor_elem,
FALSE);
1161 nsISelection_SelectAllChildren(nsselection, (
nsIDOMNode*)anchor_elem);
1163 nsres = nsIHTMLEditor_InsertLinkAroundSelection(html_editor, (
nsIDOMElement*)anchor_elem);
1165 nsIHTMLEditor_Release(html_editor);
1169 nsISelection_Release(nsselection);
1170 nsIDOMHTMLElement_Release(anchor_elem);
1172 if (cmdexecopt != OLECMDEXECOPT_DONTPROMPTUSER)
1213 if(!
This->doc_obj->nscontainer || !
This->doc_obj->nscontainer->editor)
1216 nsIEditor_GetDocumentModified(
This->doc_obj->nscontainer->editor, &modified);
1241 IOleInPlaceFrame_SetStatusText(doc->
frame,
NULL);
1248 hres = IOleClientSite_QueryInterface(doc->
client, &IID_IOleCommandTarget, (
void**)&cmdtrg);
1254 IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &
var,
NULL);
1256 IOleCommandTarget_Release(cmdtrg);
1261 DOCHOSTUIINFO hostinfo;
1263 memset(&hostinfo, 0,
sizeof(DOCHOSTUIINFO));
1264 hostinfo.cbSize =
sizeof(DOCHOSTUIINFO);
1265 hres = IDocHostUIHandler_GetHostInfo(doc->
hostui, &hostinfo);
1268 TRACE(
"hostinfo = {%u %08x %08x %s %s}\n",
1269 hostinfo.cbSize, hostinfo.dwFlags, hostinfo.dwDoubleClick,
1280 IMoniker_AddRef(mon);
1282 static const WCHAR about_blankW[] = {
'a',
'b',
'o',
'u',
't',
':',
'b',
'l',
'a',
'n',
'k',0};
1286 FIXME(
"CreateURLMoniker failed: %08x\n",
hres);
1292 IMoniker_Release(mon);
1300 IDocHostUIHandler_HideUI(doc->
hostui);
1304 RECT rcBorderWidths;
1314 memset(&rcBorderWidths, 0,
sizeof(rcBorderWidths));
1316 IOleInPlaceFrame_SetBorderSpace(doc->
frame, &rcBorderWidths);
static char * heap_strdupWtoA(const WCHAR *str)
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define HeapFree(x, y, z)
#define MultiByteToWideChar
static HRESULT exec_underline(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT exec_justifyright(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static DWORD query_ns_edit_status(HTMLDocument *This, const char *nscmd)
static HRESULT exec_fontsize(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_SELECTWORDPREVIOUS
static const WCHAR sizeW[]
static HRESULT query_edit_status(HTMLDocument *This, OLECMD *cmd)
static HRESULT exec_delete(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static const WCHAR fontW[]
#define NSCMD_CHARPREVIOUS
static void set_font_size(HTMLDocument *This, LPCWSTR size)
static HRESULT exec_setdirty(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT exec_justifycenter(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_LINEPREVIOUS
static HRESULT exec_font(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT exec_unorderlist(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT exec_indent(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT exec_outdent(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
HRESULT setup_edit_mode(HTMLDocumentObj *doc)
static void set_ns_align(HTMLDocument *This, const char *align_str)
static HRESULT exec_fontname(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSSTATE_ATTRIBUTE
static INT_PTR CALLBACK hyperlink_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
HRESULT editor_exec_paste(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static void do_ns_editor_command(NSContainer *This, const char *cmd)
static HRESULT exec_hyperlink(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_SELECTBEGINLINE
static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char *const cmds[4])
static void get_font_size(HTMLDocument *This, WCHAR *ret)
HRESULT editor_exec_cut(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
void init_editor(HTMLDocument *This)
static void set_ns_fontname(HTMLDocument *This, const char *fontname)
#define NSCMD_DELETEWORDFORWARD
static HRESULT exec_orderlist(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_SELECTENDLINE
void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
static DWORD query_align_status(HTMLDocument *This, const WCHAR *align)
#define NSCMD_MOVEPAGEDOWN
HRESULT editor_exec_copy(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_SELECTPAGEUP
#define NSCMD_SELECTCHARPREVIOUS
static nsISelection * get_ns_selection(HTMLDocument *This)
static HRESULT exec_horizontalline(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_SELECTBOTTOM
#define NSCMD_SELECTCHARNEXT
static nsresult get_ns_command_state(NSContainer *This, const char *cmd, nsICommandParams *nsparam)
static void remove_child_attr(nsIDOMElement *elem, LPCWSTR tag, nsAString *attr_str)
#define NSCMD_SELECTPAGEDOWN
#define NSCMD_SELECTWORDNEXT
#define NSCMD_WORDPREVIOUS
HRESULT editor_is_dirty(HTMLDocument *This)
static HRESULT exec_composesettings(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT query_justify(HTMLDocument *This, OLECMD *cmd)
static HRESULT exec_italic(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
static HRESULT exec_forecolor(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
void handle_edit_load(HTMLDocument *This)
#define NSCMD_DELETECHARFORWARD
#define NSCMD_SELECTLINEPREVIOUS
static HRESULT exec_justifyleft(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
#define NSCMD_SELECTLINENEXT
static HRESULT exec_bold(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARIANT *out)
const cmdtable_t editmode_cmds[]
void set_dirty(HTMLDocument *This, VARIANT_BOOL dirty)
int align(int length, int align)
GLuint GLuint GLsizei GLenum type
GLboolean GLboolean GLboolean b
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
nsresult get_elem_attr_value(nsIDOMHTMLElement *nselem, const WCHAR *name, nsAString *val_str, const PRUnichar **val)
HRESULT create_nselem(HTMLDocumentNode *doc, const WCHAR *tag, nsIDOMHTMLElement **ret)
#define memcpy(s1, s2, n)
#define memmove(s1, s2, n)
#define sprintf(buf, format,...)
static const char * debugstr_variant(const VARIANT *var)
static const char * strw(LPCWSTR x)
#define IDM_JUSTIFYCENTER
#define IDM_HORIZONTALLINE
#define IDM_COMPOSESETTINGS
coclass HostDialogHelper DOCHOSTUITYPE_AUTHOR
static const WCHAR about_blankW[]
void nsfree(void *) DECLSPEC_HIDDEN
void nsAString_Finish(nsAString *) DECLSPEC_HIDDEN
UINT32 nsAString_GetData(const nsAString *, const PRUnichar **) DECLSPEC_HIDDEN
nsICommandParams * create_nscommand_params(void) DECLSPEC_HIDDEN
void nsAString_InitDepend(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
BOOL nsAString_Init(nsAString *, const PRUnichar *) DECLSPEC_HIDDEN
HRESULT call_set_active_object(IOleInPlaceUIWindow *, IOleInPlaceActiveObject *) DECLSPEC_HIDDEN
void get_editor_controller(NSContainer *) DECLSPEC_HIDDEN
nsresult get_nsinterface(nsISupports *, REFIID, void **) DECLSPEC_HIDDEN
#define NS_SUCCEEDED(res)
void do_ns_command(HTMLDocument *, const char *, nsICommandParams *) DECLSPEC_HIDDEN
void update_doc(HTMLDocument *, DWORD) DECLSPEC_HIDDEN
void remove_target_tasks(LONG) DECLSPEC_HIDDEN
BSTR WINAPI SysAllocString(LPCOLESTR str)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
IOleInPlaceUIWindow * ip_window
IDocHostUIHandler * hostui
IPersistMoniker IPersistMoniker_iface
IOleInPlaceActiveObject IOleInPlaceActiveObject_iface
IOleCommandTarget IOleCommandTarget_iface
void key_event(int scancode, int pressed)
HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk)
static const WCHAR wszHttps[]
static const WCHAR wszFtp[]
static const WCHAR wszFile[]
static const WCHAR wszHttp[]
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
#define GetWindowLongPtrW
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
HWND WINAPI SetFocus(_In_opt_ HWND)
int WINAPI GetWindowTextLengthW(_In_ HWND)
#define MAKEINTRESOURCEW(i)
#define SetWindowLongPtrW
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)