#pragma once #include #include namespace SHDocVw { class IWebBrowser : public QAxBaseObject { Q_OBJECT Q_PROPERTY(IDispatch* Application READ Application STORED false) Q_PROPERTY(bool Busy READ Busy STORED false) Q_PROPERTY(IDispatch* Container READ Container STORED false) Q_PROPERTY(IDispatch* Document READ Document STORED false) Q_PROPERTY(int Height READ Height WRITE SetHeight) Q_PROPERTY(int Left READ Left WRITE SetLeft) Q_PROPERTY(QString LocationName READ LocationName STORED false) Q_PROPERTY(QString LocationURL READ LocationURL STORED false) Q_PROPERTY(IDispatch* Parent READ Parent STORED false) Q_PROPERTY(int Top READ Top WRITE SetTop) Q_PROPERTY(bool TopLevelContainer READ TopLevelContainer STORED false) Q_PROPERTY(QString Type READ Type STORED false) Q_PROPERTY(int Width READ Width WRITE SetWidth) public: enum CommandStateChangeConstants { CSC_UPDATECOMMANDS = -1, CSC_NAVIGATEFORWARD = 1, CSC_NAVIGATEBACK = 2 }; Q_ENUM(CommandStateChangeConstants) enum NewProcessCauseConstants { ProtectedModeRedirect = 1 }; Q_ENUM(NewProcessCauseConstants) enum OLECMDEXECOPT { OLECMDEXECOPT_DODEFAULT = 0, OLECMDEXECOPT_PROMPTUSER= 1, OLECMDEXECOPT_DONTPROMPTUSER= 2, OLECMDEXECOPT_SHOWHELP = 3 }; Q_ENUM(OLECMDEXECOPT) enum OLECMDF { OLECMDF_SUPPORTED = 1, OLECMDF_ENABLED = 2, OLECMDF_LATCHED = 4, OLECMDF_NINCHED = 8, OLECMDF_INVISIBLE = 16, OLECMDF_DEFHIDEONCTXTMENU= 32 }; Q_ENUM(OLECMDF) enum OLECMDID { OLECMDID_OPEN = 1, OLECMDID_NEW = 2, OLECMDID_SAVE = 3, OLECMDID_SAVEAS = 4, OLECMDID_SAVECOPYAS = 5, OLECMDID_PRINT = 6, OLECMDID_PRINTPREVIEW = 7, OLECMDID_PAGESETUP = 8, OLECMDID_SPELL = 9, OLECMDID_PROPERTIES = 10, OLECMDID_CUT = 11, OLECMDID_COPY = 12, OLECMDID_PASTE = 13, OLECMDID_PASTESPECIAL = 14, OLECMDID_UNDO = 15, OLECMDID_REDO = 16, OLECMDID_SELECTALL = 17, OLECMDID_CLEARSELECTION = 18, OLECMDID_ZOOM = 19, OLECMDID_GETZOOMRANGE = 20, OLECMDID_UPDATECOMMANDS = 21, OLECMDID_REFRESH = 22, OLECMDID_STOP = 23, OLECMDID_HIDETOOLBARS = 24, OLECMDID_SETPROGRESSMAX = 25, OLECMDID_SETPROGRESSPOS = 26, OLECMDID_SETPROGRESSTEXT= 27, OLECMDID_SETTITLE = 28, OLECMDID_SETDOWNLOADSTATE= 29, OLECMDID_STOPDOWNLOAD = 30, OLECMDID_ONTOOLBARACTIVATED= 31, OLECMDID_FIND = 32, OLECMDID_DELETE = 33, OLECMDID_HTTPEQUIV = 34, OLECMDID_HTTPEQUIV_DONE = 35, OLECMDID_ENABLE_INTERACTION= 36, OLECMDID_ONUNLOAD = 37, OLECMDID_PROPERTYBAG2 = 38, OLECMDID_PREREFRESH = 39, OLECMDID_SHOWSCRIPTERROR= 40, OLECMDID_SHOWMESSAGE = 41, OLECMDID_SHOWFIND = 42, OLECMDID_SHOWPAGESETUP = 43, OLECMDID_SHOWPRINT = 44, OLECMDID_CLOSE = 45, OLECMDID_ALLOWUILESSSAVEAS= 46, OLECMDID_DONTDOWNLOADCSS= 47, OLECMDID_UPDATEPAGESTATUS= 48, OLECMDID_PRINT2 = 49, OLECMDID_PRINTPREVIEW2 = 50, OLECMDID_SETPRINTTEMPLATE= 51, OLECMDID_GETPRINTTEMPLATE= 52, OLECMDID_PAGEACTIONBLOCKED= 55, OLECMDID_PAGEACTIONUIQUERY= 56, OLECMDID_FOCUSVIEWCONTROLS= 57, OLECMDID_FOCUSVIEWCONTROLSQUERY= 58, OLECMDID_SHOWPAGEACTIONMENU= 59, OLECMDID_ADDTRAVELENTRY = 60, OLECMDID_UPDATETRAVELENTRY= 61, OLECMDID_UPDATEBACKFORWARDSTATE= 62, OLECMDID_OPTICAL_ZOOM = 63, OLECMDID_OPTICAL_GETZOOMRANGE= 64, OLECMDID_WINDOWSTATECHANGED= 65, OLECMDID_ACTIVEXINSTALLSCOPE= 66, OLECMDID_UPDATETRAVELENTRY_DATARECOVERY= 67, OLECMDID_SHOWTASKDLG = 68, OLECMDID_POPSTATEEVENT = 69, OLECMDID_VIEWPORT_MODE = 70, OLECMDID_LAYOUT_VIEWPORT_WIDTH= 71, OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM= 72, OLECMDID_USER_OPTICAL_ZOOM= 73, OLECMDID_PAGEAVAILABLE = 74, OLECMDID_GETUSERSCALABLE= 75, OLECMDID_UPDATE_CARET = 76, OLECMDID_ENABLE_VISIBILITY= 77, OLECMDID_MEDIA_PLAYBACK = 78, OLECMDID_SETFAVICON = 79, OLECMDID_SET_HOST_FULLSCREENMODE= 80, OLECMDID_EXITFULLSCREEN = 81, OLECMDID_SCROLLCOMPLETE = 82, OLECMDID_ONBEFOREUNLOAD = 83, OLECMDID_SHOWMESSAGE_BLOCKABLE= 84, OLECMDID_SHOWTASKDLG_BLOCKABLE= 85 }; Q_ENUM(OLECMDID) enum SecureLockIconConstants { secureLockIconUnsecure = 0, secureLockIconMixed = 1, secureLockIconSecureUnknownBits= 2, secureLockIconSecure40Bit= 3, secureLockIconSecure56Bit= 4, secureLockIconSecureFortezza= 5, secureLockIconSecure128Bit= 6 }; Q_ENUM(SecureLockIconConstants) enum ShellWindowFindWindowOptions { SWFO_NEEDDISPATCH = 1, SWFO_INCLUDEPENDING = 2, SWFO_COOKIEPASSED = 4 }; Q_ENUM(ShellWindowFindWindowOptions) enum ShellWindowTypeConstants { SWC_EXPLORER = 0, SWC_BROWSER = 1, SWC_3RDPARTY = 2, SWC_CALLBACK = 4, SWC_DESKTOP = 8 }; Q_ENUM(ShellWindowTypeConstants) enum tagREADYSTATE { READYSTATE_UNINITIALIZED= 0, READYSTATE_LOADING = 1, READYSTATE_LOADED = 2, READYSTATE_INTERACTIVE = 3, READYSTATE_COMPLETE = 4 }; Q_ENUM(tagREADYSTATE) Q_SIGNALS: public Q_SLOTS: void GoBack(); void GoForward(); void GoHome(); void GoSearch(); void Navigate(QString); void Navigate(QString,QVariant&); void Navigate(QString,QVariant&,QVariant&); void Navigate(QString,QVariant&,QVariant&,QVariant&); void Navigate(QString,QVariant&,QVariant&,QVariant&,QVariant&); void Refresh(); void Refresh2(); void Refresh2(QVariant&); void SetHeight(int); void SetLeft(int); void SetTop(int); void SetWidth(int); void Stop(); }; } // namespace IWebBrowser } // namespace SHDocVw