| 0: | // HTMLInterfaces.cs | |
| 1: | // These interfaces are required for the communication with the browser component. | |
| 2: | // Copyright (C) 2001 Mike Krueger | |
| 3: | // | |
| 4: | // This program is free software; you can redistribute it and/or modify | |
| 5: | // it under the terms of the GNU General Public License as published by | |
| 6: | // the Free Software Foundation; either version 2 of the License, or | |
| 7: | // (at your option) any later version. | |
| 8: | // | |
| 9: | // This program is distributed in the hope that it will be useful, | |
| 10: | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 11: | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 12: | // GNU General Public License for more details. | |
| 13: | // | |
| 14: | // You should have received a copy of the GNU General Public License | |
| 15: | // along with this program; if not, write to the Free Software | |
| 16: | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 17: | ||
| 18: | namespace AxSHDocVw { | |
| 19: | ||
| 20: | [System.Runtime.InteropServices.GuidAttribute("626FC520-A41E-11CF-A731-00A0C9082637")] | |
| 21: | [System.Runtime.InteropServices.ComVisibleAttribute(true)] | |
| 22: | [System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)] | |
| 23: | public interface IHTMLDocument | |
| 24: | { | |
| 25: | object GetScript(); | |
| 26: | } | |
| 27: | ||
| 28: | [System.Runtime.InteropServices.ComVisibleAttribute(true)] | |
| 29: | [System.Runtime.InteropServices.GuidAttribute("3050F2E3-98B5-11CF-BB82-00AA00BDCE0B")] | |
| 30: | [System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)] | |
| 31: | public interface IHTMLStyleSheet | |
| 32: | { | |
| 33: | object GetRules(); | |
| 34: | string GetCssText(); | |
| 35: | void SetCssText(string p); | |
| 36: | string GetMedia(); | |
| 37: | void SetMedia(string p); | |
| 38: | void RemoveRule(int lIndex); | |
| 39: | void RemoveImport(int lIndex); | |
| 40: | int AddRule(string bstrSelector, string bstrStyle, int lIndex); | |
| 41: | int AddImport(string bstrURL, int lIndex); | |
| 42: | string GetId(); | |
| 43: | string GetStyleSheetType(); | |
| 44: | string GetHref(); | |
| 45: | void SetHref(string p); | |
| 46: | object GetImports(); | |
| 47: | bool GetReadOnly(); | |
| 48: | bool GetDisabled(); | |
| 49: | void SetDisabled(bool p); | |
| 50: | IHTMLElement GetOwningElement(); | |
| 51: | IHTMLStyleSheet GetParentStyleSheet(); | |
| 52: | string GetTitle(); | |
| 53: | void SetTitle(string p); | |
| 54: | } | |
| 55: | ||
| 56: | [System.Runtime.InteropServices.ComVisibleAttribute(true)] | |
| 57: | [System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)] | |
| 58: | [System.Runtime.InteropServices.GuidAttribute("3050F25E-98B5-11CF-BB82-00AA00BDCE0B")] | |
| 59: | public interface IHTMLStyle | |
| 60: | { | |
| 61: | bool RemoveAttribute(string strAttributeName, int lFlags); | |
| 62: | object GetAttribute(string strAttributeName, int lFlags); | |
| 63: | void SetAttribute(string strAttributeName, object AttributeValue, int lFlags); | |
| 64: | string GetFilter(); | |
| 65: | void SetFilter(string p); | |
| 66: | string GetClip(); | |
| 67: | void SetClip(string p); | |
| 68: | string GetCursor(); | |
| 69: | void SetCursor(string p); | |
| 70: | float GetPosHeight(); | |
| 71: | void SetPosHeight(float p); | |
| 72: | float GetPosWidth(); | |
| 73: | void SetPosWidth(float p); | |
| 74: | float GetPosLeft(); | |
| 75: | void SetPosLeft(float p); | |
| 76: | float GetPosTop(); | |
| 77: | void SetPosTop(float p); | |
| 78: | int GetPixelHeight(); | |
| 79: | void SetPixelHeight(int p); | |
| 80: | int GetPixelWidth(); | |
| 81: | void SetPixelWidth(int p); | |
| 82: | int GetPixelLeft(); | |
| 83: | void SetPixelLeft(int p); | |
| 84: | int GetPixelTop(); | |
| 85: | void SetPixelTop(int p); | |
| 86: | string GetCssText(); | |
| 87: | void SetCssText(string p); | |
| 88: | string GetPageBreakAfter(); | |
| 89: | void SetPageBreakAfter(string p); | |
| 90: | string GetPageBreakBefore(); | |
| 91: | void SetPageBreakBefore(string p); | |
| 92: | string GetOverflow(); | |
| 93: | void SetOverflow(string p); | |
| 94: | object GetZIndex(); | |
| 95: | void SetZIndex(object p); | |
| 96: | string GetPosition(); | |
| 97: | object GetLeft(); | |
| 98: | void SetLeft(object p); | |
| 99: | object GetTop(); | |
| 100: | void SetTop(object p); | |
| 101: | string GetWhiteSpace(); | |
| 102: | void SetWhiteSpace(string p); | |
| 103: | string GetListStyle(); | |
| 104: | void SetListStyle(string p); | |
| 105: | string GetListStyleImage(); | |
| 106: | void SetListStyleImage(string p); | |
| 107: | string GetListStylePosition(); | |
| 108: | void SetListStylePosition(string p); | |
| 109: | string GetListStyleType(); | |
| 110: | void SetListStyleType(string p); | |
| 111: | string GetVisibility(); | |
| 112: | void SetVisibility(string p); | |
| 113: | string GetDisplay(); | |
| 114: | void SetDisplay(string p); | |
| 115: | string GetClear(); | |
| 116: | void SetClear(string p); | |
| 117: | string GetStyleFloat(); | |
| 118: | void SetStyleFloat(string p); | |
| 119: | object GetHeight(); | |
| 120: | void SetHeight(object p); | |
| 121: | object GetWidth(); | |
| 122: | void SetWidth(object p); | |
| 123: | string GetBorderLeftStyle(); | |
| 124: | void SetBorderLeftStyle(string p); | |
| 125: | string GetBorderBottomStyle(); | |
| 126: | void SetBorderBottomStyle(string p); | |
| 127: | string GetBorderRightStyle(); | |
| 128: | void SetBorderRightStyle(string p); | |
| 129: | string GetBorderTopStyle(); | |
| 130: | void SetBorderTopStyle(string p); | |
| 131: | string GetBorderStyle(); | |
| 132: | void SetBorderStyle(string p); | |
| 133: | object GetBorderLeftWidth(); | |
| 134: | void SetBorderLeftWidth(object p); | |
| 135: | object GetBorderBottomWidth(); | |
| 136: | void SetBorderBottomWidth(object p); | |
| 137: | object GetBorderRightWidth(); | |
| 138: | void SetBorderRightWidth(object p); | |
| 139: | object GetBorderTopWidth(); | |
| 140: | void SetBorderTopWidth(object p); | |
| 141: | string GetBorderWidth(); | |
| 142: | void SetBorderWidth(string p); | |
| 143: | object GetBorderLeftColor(); | |
| 144: | void SetBorderLeftColor(object p); | |
| 145: | object GetBorderBottomColor(); | |
| 146: | void SetBorderBottomColor(object p); | |
| 147: | object GetBorderRightColor(); | |
| 148: | void SetBorderRightColor(object p); | |
| 149: | object GetBorderTopColor(); | |
| 150: | void SetBorderTopColor(object p); | |
| 151: | string GetBorderColor(); | |
| 152: | void SetBorderColor(string p); | |
| 153: | string GetBorderLeft(); | |
| 154: | void SetBorderLeft(string p); | |
| 155: | string GetBorderBottom(); | |
| 156: | void SetBorderBottom(string p); | |
| 157: | string GetBorderRight(); | |
| 158: | void SetBorderRight(string p); | |
| 159: | string GetBorderTop(); | |
| 160: | void SetBorderTop(string p); | |
| 161: | string GetBorder(); | |
| 162: | void SetBorder(string p); | |
| 163: | string GetPadding(); | |
| 164: | void SetPadding(string p); | |
| 165: | object GetPaddingLeft(); | |
| 166: | void SetPaddingLeft(object p); | |
| 167: | object GetPaddingBottom(); | |
| 168: | void SetPaddingBottom(object p); | |
| 169: | object GetPaddingRight(); | |
| 170: | void SetPaddingRight(object p); | |
| 171: | object GetPaddingTop(); | |
| 172: | void SetPaddingTop(object p); | |
| 173: | string GetMargin(); | |
| 174: | void SetMargin(string p); | |
| 175: | object GetMarginLeft(); | |
| 176: | void SetMarginLeft(object p); | |
| 177: | object GetMarginBottom(); | |
| 178: | void SetMarginBottom(object p); | |
| 179: | object GetMarginRight(); | |
| 180: | void SetMarginRight(object p); | |
| 181: | object GetMarginTop(); | |
| 182: | void SetMarginTop(object p); | |
| 183: | object GetLineHeight(); | |
| 184: | void SetLineHeight(object p); | |
| 185: | object GetTextIndent(); | |
| 186: | void SetTextIndent(object p); | |
| 187: | string GetTextAlign(); | |
| 188: | void SetTextAlign(string p); | |
| 189: | string GetTextTransform(); | |
| 190: | void SetTextTransform(string p); | |
| 191: | object GetVerticalAlign(); | |
| 192: | void SetVerticalAlign(object p); | |
| 193: | bool GetTextDecorationBlink(); | |
| 194: | void SetTextDecorationBlink(bool p); | |
| 195: | bool GetTextDecorationLineThrough(); | |
| 196: | void SetTextDecorationLineThrough(bool p); | |
| 197: | bool GetTextDecorationOverline(); | |
| 198: | void SetTextDecorationOverline(bool p); | |
| 199: | bool GetTextDecorationUnderline(); | |
| 200: | void SetTextDecorationUnderline(bool p); | |
| 201: | bool GetTextDecorationNone(); | |
| 202: | void SetTextDecorationNone(bool p); | |
| 203: | string GetTextDecoration(); | |
| 204: | void SetTextDecoration(string p); | |
| 205: | object GetLetterSpacing(); | |
| 206: | void SetLetterSpacing(object p); | |
| 207: | object GetWordSpacing(); | |
| 208: | void SetWordSpacing(object p); | |
| 209: | object GetBackgroundPositionY(); | |
| 210: | void SetBackgroundPositionY(object p); | |
| 211: | object GetBackgroundPositionX(); | |
| 212: | void SetBackgroundPositionX(object p); | |
| 213: | string GetBackgroundPosition(); | |
| 214: | void SetBackgroundPosition(string p); | |
| 215: | string GetBackgroundAttachment(); | |
| 216: | void SetBackgroundAttachment(string p); | |
| 217: | string GetBackgroundRepeat(); | |
| 218: | void SetBackgroundRepeat(string p); | |
| 219: | string GetBackgroundImage(); | |
| 220: | void SetBackgroundImage(string p); | |
| 221: | object GetBackgroundColor(); | |
| 222: | void SetBackgroundColor(object p); | |
| 223: | string GetBackground(); | |
| 224: | void SetBackground(string p); | |
| 225: | object GetColor(); | |
| 226: | void SetColor(object p); | |
| 227: | string GetFont(); | |
| 228: | void SetFont(string p); | |
| 229: | object GetFontSize(); | |
| 230: | void SetFontSize(object p); | |
| 231: | string GetFontWeight(); | |
| 232: | void SetFontWeight(string p); | |
| 233: | string GetFontObject(); | |
| 234: | void SetFontObject(string p); | |
| 235: | string GetFontStyle(); | |
| 236: | void SetFontStyle(string p); | |
| 237: | string GetFontFamily(); | |
| 238: | void SetFontFamily(string p); | |
| 239: | } | |
| 240: | ||
| 241: | [System.Runtime.InteropServices.ComVisibleAttribute(true)] | |
| 242: | [System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)] | |
| 243: | [System.Runtime.InteropServices.GuidAttribute("332C4425-26CB-11D0-B483-00C04FD90119")] | |
| 244: | public interface IHTMLDocument2 | |
| 245: | { | |
| 246: | IHTMLStyleSheet CreateStyleSheet(string bstrHref, int lIndex); | |
| 247: | string toString(); | |
| 248: | object GetOnerrorupdate(); | |
| 249: | void SetOnerrorupdate(object p); | |
| 250: | object GetOnbeforeupdate(); | |
| 251: | void SetOnbeforeupdate(object p); | |
| 252: | object GetStyleSheets(); | |
| 253: | object GetParentWindow(); | |
| 254: | IHTMLElement ElementFromPoint(int x, int y); | |
| 255: | object GetOnselectstart(); | |
| 256: | void SetOnselectstart(object p); | |
| 257: | object GetOndragstart(); | |
| 258: | void SetOndragstart(object p); | |
| 259: | object GetOnrowenter(); | |
| 260: | void SetOnrowenter(object p); | |
| 261: | object GetOnrowexit(); | |
| 262: | void SetOnrowexit(object p); | |
| 263: | object GetOnafterupdate(); | |
| 264: | void SetOnafterupdate(object p); | |
| 265: | object GetOnreadystatechange(); | |
| 266: | void SetOnreadystatechange(object p); | |
| 267: | object GetOnmouseover(); | |
| 268: | void SetOnmouseover(object p); | |
| 269: | object GetOnmouseout(); | |
| 270: | void SetOnmouseout(object p); | |
| 271: | object GetOnmousemove(); | |
| 272: | void SetOnmousemove(object p); | |
| 273: | object GetOnmousedown(); | |
| 274: | void SetOnmousedown(object p); | |
| 275: | object GetOnmouseup(); | |
| 276: | void SetOnmouseup(object p); | |
| 277: | object GetOnkeypress(); | |
| 278: | void SetOnkeypress(object p); | |
| 279: | object GetOnkeydown(); | |
| 280: | void SetOnkeydown(object p); | |
| 281: | object GetOnkeyup(); | |
| 282: | void SetOnkeyup(object p); | |
| 283: | object GetOndblclick(); | |
| 284: | void SetOndblclick(object p); | |
| 285: | object GetOnclick(); | |
| 286: | void SetOnclick(object p); | |
| 287: | object GetOnhelp(); | |
| 288: | void SetOnhelp(object p); | |
| 289: | IHTMLElement CreateElement(string eTag); | |
| 290: | bool ExecCommandShowHelp(string cmdID); | |
| 291: | bool ExecCommand(string cmdID, bool showUI, object value); | |
| 292: | object QueryCommandValue(string cmdID); | |
| 293: | string QueryCommandText(string cmdID); | |
| 294: | bool QueryCommandIndeterm(string cmdID); | |
| 295: | bool QueryCommandState(string cmdID); | |
| 296: | bool QueryCommandEnabled(string cmdID); | |
| 297: | bool QueryCommandSupported(string cmdID); | |
| 298: | void Clear(); | |
| 299: | void Close(); | |
| 300: | object Open(string URL, object name, object features, object replace); | |
| 301: | void DummyWriteln(int psarray); | |
| 302: | void DummyWrite(int psarray); | |
| 303: | string GetNameProp(); | |
| 304: | string GetProtocol(); | |
| 305: | string GetSecurity(); | |
| 306: | string GetFileUpdatedDate(); | |
| 307: | string GetFileModifiedDate(); | |
| 308: | string GetFileCreatedDate(); | |
| 309: | string GetFileSize(); | |
| 310: | string GetMimeType(); | |
| 311: | string GetDefaultCharset(); | |
| 312: | void SetDefaultCharset(string p); | |
| 313: | string GetCharset(); | |
| 314: | void SetCharset(string p); | |
| 315: | bool GetExpando(); | |
| 316: | void SetExpando(bool p); | |
| 317: | string GetCookie(); | |
| 318: | void SetCookie(string p); | |
| 319: | string GetDomain(); | |
| 320: | void SetDomain(string p); | |
| 321: | string GetURL(); | |
| 322: | void SetURL(string p); | |
| 323: | string GetLastModified(); | |
| 324: | object GetLocation(); | |
| 325: | string GetReferrer(); | |
| 326: | object GetVlinkColor(); | |
| 327: | void SetVlinkColor(object p); | |
| 328: | object GetLinkColor(); | |
| 329: | void SetLinkColor(object p); | |
| 330: | object GetFgColor(); | |
| 331: | void SetFgColor(object p); | |
| 332: | object GetBgColor(); | |
| 333: | void SetBgColor(object p); | |
| 334: | object GetAlinkColor(); | |
| 335: | void SetAlinkColor(object p); | |
| 336: | IHTMLElementCollection GetPlugins(); | |
| 337: | IHTMLElementCollection GetEmbeds(); | |
| 338: | object GetFrames(); | |
| 339: | string GetReadyState(); | |
| 340: | object GetSelection(); | |
| 341: | string GetDesignMode(); | |
| 342: | void SetDesignMode(string p); | |
| 343: | IHTMLElementCollection GetScripts(); | |
| 344: | string GetTitle(); | |
| 345: | void SetTitle(string p); | |
| 346: | IHTMLElementCollection GetAnchors(); | |
| 347: | IHTMLElementCollection GetForms(); | |
| 348: | IHTMLElementCollection GetLinks(); | |
| 349: | IHTMLElementCollection GetApplets(); | |
| 350: | IHTMLElementCollection GetImages(); | |
| 351: | IHTMLElement GetActiveElement(); | |
| 352: | IHTMLElement GetBody(); | |
| 353: | IHTMLElementCollection GetAll(); | |
| 354: | object GetScript(); | |
| 355: | } | |
| 356: | ||
| 357: | ||
| 358: | [System.Runtime.InteropServices.InterfaceTypeAttribute(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsDual)] | |
| 359: | [System.Runtime.InteropServices.ComVisibleAttribute(true)] | |
| 360: | [System.Runtime.InteropServices.GuidAttribute("3050F1FF-98B5-11CF-BB82-00AA00BDCE0B")] | |
| 361: | public interface IHTMLElement | |
| 362: | { | |
| 363: | object GetAll(); | |
| 364: | object GetChildren(); | |
| 365: | object GetOnfilterchange(); | |
| 366: | void SetOnfilterchange(object p); | |
| 367: | object GetOndatasetcomplete(); | |
| 368: | void SetOndatasetcomplete(object p); | |
| 369: | object GetOndataavailable(); | |
| 370: | void SetOndataavailable(object p); | |
| 371: | object GetOndatasetchanged(); | |
| 372: | void SetOndatasetchanged(object p |