whipfile.AddContour en contour.AddPoint toegevoegd svn path=/Slnkdwf/trunk/; revision=18350
44 lines
908 B
C++
44 lines
908 B
C++
// Options.cpp : Implementation of COptions
|
|
|
|
#include "stdafx.h"
|
|
#include "Options.h"
|
|
|
|
CSLNKOptions g_SLNKOptions; // The one and only
|
|
|
|
// Set all default values
|
|
CSLNKOptions::CSLNKOptions()
|
|
{
|
|
m_SkipContLeader = FALSE; // ARKEY tekeningen hebben een leading lijntje voor de contour
|
|
}
|
|
// COptions
|
|
|
|
STDMETHODIMP COptions::InterfaceSupportsErrorInfo(REFIID riid)
|
|
{
|
|
static const IID* arr[] =
|
|
{
|
|
&IID_IOptions
|
|
};
|
|
|
|
for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
|
|
{
|
|
if (InlineIsEqualGUID(*arr[i],riid))
|
|
return S_OK;
|
|
}
|
|
return S_FALSE;
|
|
}
|
|
|
|
STDMETHODIMP COptions::SetOption(BSTR optionName, VARIANT OptionValue)
|
|
{
|
|
CComVariant val(OptionValue);
|
|
CString nm(optionName);
|
|
nm.MakeUpper();
|
|
|
|
if (nm=="SKIPCONTLEADER")
|
|
{
|
|
HRESULT hr = val.ChangeType(VT_BOOL);
|
|
if (FAILED(hr)) return hr;
|
|
g_SLNKOptions.m_SkipContLeader = val.boolVal;
|
|
}
|
|
return S_OK;
|
|
}
|