Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines
IEHtmlDocument.cpp File Reference
#include "stdafx.h"
#include "IEHtmlDocument.h"
#include "IEHtmlElementCollection.h"
#include "IEHtmlElement.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIDOMNSHTMLDocument.h"
#include "nsIDOMNSDocument.h"
#include "MozillaBrowser.h"
#include "IEHtmlSelectionObject.h"

Go to the source code of this file.

Classes

struct  HtmlPos

Defines

#define IMPL_SET_COLOR(name, v)
#define IMPL_GET_COLOR(name, v)

Define Documentation

#define IMPL_GET_COLOR (   name,
  v 
)
Value:
if (p == NULL) return E_INVALIDARG; \
    if (!mDOMDocument) return E_UNEXPECTED; \
    nsCOMPtr<nsIDOMNSHTMLDocument> htmlDoc = do_QueryInterface(mDOMDocument); \
    if (!htmlDoc) return E_FAIL; \
    USES_CONVERSION; \
    nsAutoString val; \
    htmlDoc->Get ## name(val); \
    p->vt = VT_BSTR; \
    p->bstrVal = ::SysAllocString(W2COLE(val.get())); \
    return S_OK;

Definition at line 419 of file IEHtmlDocument.cpp.

#define IMPL_SET_COLOR (   name,
  v 
)
Value:
CComVariant vStr; \
    if (FAILED(::VariantChangeType(&vStr, &v, 0, VT_BSTR))) \
        return E_INVALIDARG; \
    if (!mDOMDocument) \
        return E_UNEXPECTED; \
    nsCOMPtr<nsIDOMNSHTMLDocument> htmlDoc = do_QueryInterface(mDOMDocument); \
    if (!htmlDoc) \
        return E_FAIL; \
    USES_CONVERSION; \
    nsAutoString val(OLE2W(vStr.bstrVal)); \
    htmlDoc->Set ## name(val); \
    return S_OK;

Definition at line 405 of file IEHtmlDocument.cpp.