2005-03-31 10:08:02 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2005 Jacek Caban
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2005-04-11 16:11:52 +00:00
|
|
|
typedef struct {
|
|
|
|
IHTMLDocument2Vtbl *lpHTMLDocument2Vtbl;
|
|
|
|
IPersistMonikerVtbl *lpPersistMonikerVtbl;
|
|
|
|
IPersistFileVtbl *lpPersistFileVtbl;
|
|
|
|
IMonikerPropVtbl *lpMonikerPropVtbl;
|
2005-04-12 11:57:51 +00:00
|
|
|
IOleObjectVtbl *lpOleObjectVtbl;
|
|
|
|
IOleDocumentVtbl *lpOleDocumentVtbl;
|
2005-04-11 16:11:52 +00:00
|
|
|
|
|
|
|
ULONG ref;
|
2005-04-12 11:57:51 +00:00
|
|
|
|
|
|
|
IOleClientSite *client;
|
2005-04-11 16:11:52 +00:00
|
|
|
} HTMLDocument;
|
|
|
|
|
|
|
|
#define HTMLDOC(x) ((IHTMLDocument2*) &(x)->lpHTMLDocument2Vtbl)
|
|
|
|
#define PERSIST(x) ((IPersist*) &(x)->lpPersistFileVtbl)
|
|
|
|
#define PERSISTMON(x) ((IPersistMoniker*) &(x)->lpPersistMonikerVtbl)
|
|
|
|
#define PERSISTFILE(x) ((IPersistFile*) &(x)->lpPersistFileVtbl)
|
|
|
|
#define MONPROP(x) ((IMonikerProp*) &(x)->lpMonikerPropVtbl)
|
2005-04-12 11:57:51 +00:00
|
|
|
#define OLEOBJ(x) ((IOleObject*) &(x)->lpOleObjectVtbl)
|
|
|
|
#define OLEDOC(x) ((IOleDocument*) &(x)->lpOleDocumentVtbl)
|
2005-04-11 16:11:52 +00:00
|
|
|
|
2005-03-31 10:08:02 +00:00
|
|
|
HRESULT HTMLDocument_Create(IUnknown*,REFIID,void**);
|
2005-04-11 16:11:52 +00:00
|
|
|
|
|
|
|
void HTMLDocument_Persist_Init(HTMLDocument*);
|
2005-04-12 11:57:51 +00:00
|
|
|
void HTMLDocument_OleObj_Init(HTMLDocument*);
|