Mapx.cpp
上传用户:hzwailv
上传日期:2010-01-09
资源大小:405k
文件大小:145k
- SetProperty(0x3, VT_I2, propVal);
- }
- short CMapXStyle::GetLineWidth()
- {
- short result;
- GetProperty(0x4, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetLineWidth(short propVal)
- {
- SetProperty(0x4, VT_I2, propVal);
- }
- unsigned long CMapXStyle::GetRegionColor()
- {
- unsigned long result;
- GetProperty(0x5, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionColor(unsigned long propVal)
- {
- SetProperty(0x5, VT_I4, propVal);
- }
- short CMapXStyle::GetRegionPattern()
- {
- short result;
- GetProperty(0x6, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionPattern(short propVal)
- {
- SetProperty(0x6, VT_I2, propVal);
- }
- BOOL CMapXStyle::GetRegionTransparent()
- {
- BOOL result;
- GetProperty(0x2b, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionTransparent(BOOL propVal)
- {
- SetProperty(0x2b, VT_BOOL, propVal);
- }
- unsigned long CMapXStyle::GetRegionBackColor()
- {
- unsigned long result;
- GetProperty(0x7, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionBackColor(unsigned long propVal)
- {
- SetProperty(0x7, VT_I4, propVal);
- }
- short CMapXStyle::GetRegionBorderStyle()
- {
- short result;
- GetProperty(0x8, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionBorderStyle(short propVal)
- {
- SetProperty(0x8, VT_I2, propVal);
- }
- unsigned long CMapXStyle::GetRegionBorderColor()
- {
- unsigned long result;
- GetProperty(0x9, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionBorderColor(unsigned long propVal)
- {
- SetProperty(0x9, VT_I4, propVal);
- }
- short CMapXStyle::GetRegionBorderWidth()
- {
- short result;
- GetProperty(0xa, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionBorderWidth(short propVal)
- {
- SetProperty(0xa, VT_I2, propVal);
- }
- COleFont CMapXStyle::GetTextFont()
- {
- LPDISPATCH result;
- GetProperty(0xb, VT_DISPATCH, (void*)&result);
- return COleFont(result);
- }
- COleFont CMapXStyle::GetSymbolFont()
- {
- LPDISPATCH result;
- GetProperty(0xc, VT_DISPATCH, (void*)&result);
- return COleFont(result);
- }
- unsigned long CMapXStyle::GetTextFontColor()
- {
- unsigned long result;
- GetProperty(0xd, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontColor(unsigned long propVal)
- {
- SetProperty(0xd, VT_I4, propVal);
- }
- unsigned long CMapXStyle::GetTextFontBackColor()
- {
- unsigned long result;
- GetProperty(0xe, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontBackColor(unsigned long propVal)
- {
- SetProperty(0xe, VT_I4, propVal);
- }
- unsigned long CMapXStyle::GetSymbolFontColor()
- {
- unsigned long result;
- GetProperty(0xf, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolFontColor(unsigned long propVal)
- {
- SetProperty(0xf, VT_I4, propVal);
- }
- unsigned long CMapXStyle::GetSymbolFontBackColor()
- {
- unsigned long result;
- GetProperty(0x10, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolFontBackColor(unsigned long propVal)
- {
- SetProperty(0x10, VT_I4, propVal);
- }
- BOOL CMapXStyle::GetSymbolFontOpaque()
- {
- BOOL result;
- GetProperty(0x11, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolFontOpaque(BOOL propVal)
- {
- SetProperty(0x11, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetTextFontOpaque()
- {
- BOOL result;
- GetProperty(0x12, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontOpaque(BOOL propVal)
- {
- SetProperty(0x12, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetSymbolFontHalo()
- {
- BOOL result;
- GetProperty(0x13, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolFontHalo(BOOL propVal)
- {
- SetProperty(0x13, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetSymbolFontShadow()
- {
- BOOL result;
- GetProperty(0x14, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolFontShadow(BOOL propVal)
- {
- SetProperty(0x14, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetTextFontHalo()
- {
- BOOL result;
- GetProperty(0x15, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontHalo(BOOL propVal)
- {
- SetProperty(0x15, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetTextFontShadow()
- {
- BOOL result;
- GetProperty(0x16, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontShadow(BOOL propVal)
- {
- SetProperty(0x16, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetTextFontAllCaps()
- {
- BOOL result;
- GetProperty(0x17, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontAllCaps(BOOL propVal)
- {
- SetProperty(0x17, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetTextFontDblSpace()
- {
- BOOL result;
- GetProperty(0x18, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontDblSpace(BOOL propVal)
- {
- SetProperty(0x18, VT_BOOL, propVal);
- }
- BOOL CMapXStyle::GetSymbolBitmapTransparent()
- {
- BOOL result;
- GetProperty(0x21, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolBitmapTransparent(BOOL bNewValue)
- {
- SetProperty(0x21, VT_BOOL, bNewValue);
- }
- BOOL CMapXStyle::GetSymbolBitmapOverrideColor()
- {
- BOOL result;
- GetProperty(0x22, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolBitmapOverrideColor(BOOL bNewValue)
- {
- SetProperty(0x22, VT_BOOL, bNewValue);
- }
- unsigned long CMapXStyle::GetSymbolBitmapColor()
- {
- unsigned long result;
- GetProperty(0x23, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolBitmapColor(unsigned long nNewValue)
- {
- SetProperty(0x23, VT_I4, nNewValue);
- }
- CString CMapXStyle::GetSymbolBitmapName()
- {
- CString result;
- GetProperty(0x24, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolBitmapName(LPCTSTR lpszNewValue)
- {
- SetProperty(0x24, VT_BSTR, lpszNewValue);
- }
- short CMapXStyle::GetSymbolType()
- {
- short result;
- GetProperty(0x25, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolType(short nNewValue)
- {
- SetProperty(0x25, VT_I2, nNewValue);
- }
- long CMapXStyle::GetSymbolBitmapSize()
- {
- long result;
- GetProperty(0x26, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolBitmapSize(long nNewValue)
- {
- SetProperty(0x26, VT_I4, nNewValue);
- }
- BOOL CMapXStyle::GetSupportsBitmapSymbols()
- {
- BOOL result;
- GetProperty(0x27, VT_BOOL, (void*)&result);
- return result;
- }
- short CMapXStyle::GetSymbolFontRotation()
- {
- short result;
- GetProperty(0x28, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolFontRotation(short nNewValue)
- {
- SetProperty(0x28, VT_I2, nNewValue);
- }
- long CMapXStyle::GetLineStyleCount()
- {
- long result;
- GetProperty(0x2a, VT_I4, (void*)&result);
- return result;
- }
- BOOL CMapXStyle::GetLineInterleaved()
- {
- BOOL result;
- GetProperty(0x2c, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXStyle::SetLineInterleaved(BOOL bNewValue)
- {
- SetProperty(0x2c, VT_BOOL, bNewValue);
- }
- long CMapXStyle::GetLineWidthUnit()
- {
- long result;
- GetProperty(0x2d, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetLineWidthUnit(long nNewValue)
- {
- SetProperty(0x2d, VT_I4, nNewValue);
- }
- long CMapXStyle::GetRegionBorderWidthUnit()
- {
- long result;
- GetProperty(0x2e, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetRegionBorderWidthUnit(long nNewValue)
- {
- SetProperty(0x2e, VT_I4, nNewValue);
- }
- BOOL CMapXStyle::GetLineSupportsInterleave()
- {
- BOOL result;
- GetProperty(0x2f, VT_BOOL, (void*)&result);
- return result;
- }
- short CMapXStyle::GetTextFontRotation()
- {
- short result;
- GetProperty(0x30, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetTextFontRotation(short propVal)
- {
- SetProperty(0x30, VT_I2, propVal);
- }
- unsigned long CMapXStyle::GetSymbolVectorColor()
- {
- unsigned long result;
- GetProperty(0x35, VT_I4, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolVectorColor(unsigned long propVal)
- {
- SetProperty(0x35, VT_I4, propVal);
- }
- short CMapXStyle::GetSymbolVectorSize()
- {
- short result;
- GetProperty(0x36, VT_I2, (void*)&result);
- return result;
- }
- void CMapXStyle::SetSymbolVectorSize(short nNewValue)
- {
- SetProperty(0x36, VT_I2, nNewValue);
- }
- short CMapXStyle::GetMinVectorSymbolCharacter()
- {
- short result;
- GetProperty(0x37, VT_I2, (void*)&result);
- return result;
- }
- short CMapXStyle::GetMaxVectorSymbolCharacter()
- {
- short result;
- GetProperty(0x38, VT_I2, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXStyle operations
- BOOL CMapXStyle::PickRegion()
- {
- BOOL result;
- InvokeHelper(0x19, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- BOOL CMapXStyle::PickLine()
- {
- BOOL result;
- InvokeHelper(0x1a, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- BOOL CMapXStyle::PickText()
- {
- BOOL result;
- InvokeHelper(0x1b, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- BOOL CMapXStyle::PickSymbol()
- {
- BOOL result;
- InvokeHelper(0x1c, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
- return result;
- }
- void CMapXStyle::DrawTextSample(long hDC, LPDISPATCH Rectangle, LPCTSTR SampleText)
- {
- static BYTE parms[] =
- VTS_I4 VTS_DISPATCH VTS_BSTR;
- InvokeHelper(0x1d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- hDC, Rectangle, SampleText);
- }
- void CMapXStyle::DrawSymbolSample(long hDC, LPDISPATCH Rectangle)
- {
- static BYTE parms[] =
- VTS_I4 VTS_DISPATCH;
- InvokeHelper(0x1e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- hDC, Rectangle);
- }
- void CMapXStyle::DrawRegionSample(long hDC, LPDISPATCH Rectangle)
- {
- static BYTE parms[] =
- VTS_I4 VTS_DISPATCH;
- InvokeHelper(0x1f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- hDC, Rectangle);
- }
- void CMapXStyle::DrawLineSample(long hDC, LPDISPATCH Rectangle)
- {
- static BYTE parms[] =
- VTS_I4 VTS_DISPATCH;
- InvokeHelper(0x20, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- hDC, Rectangle);
- }
- CMapXStyle CMapXStyle::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x29, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXStyle(result);
- }
- void CMapXStyle::ExportSymbolSample(LPCTSTR Destination, short Format, double Width, double Height, const VARIANT& BackgroundColor)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I2 VTS_R8 VTS_R8 VTS_VARIANT;
- InvokeHelper(0x31, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Destination, Format, Width, Height, &BackgroundColor);
- }
- void CMapXStyle::ExportRegionSample(LPCTSTR Destination, short Format, double Width, double Height, const VARIANT& BackgroundColor)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I2 VTS_R8 VTS_R8 VTS_VARIANT;
- InvokeHelper(0x32, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Destination, Format, Width, Height, &BackgroundColor);
- }
- void CMapXStyle::ExportLineSample(LPCTSTR Destination, short Format, double Width, double Height, const VARIANT& BackgroundColor)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I2 VTS_R8 VTS_R8 VTS_VARIANT;
- InvokeHelper(0x33, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Destination, Format, Width, Height, &BackgroundColor);
- }
- void CMapXStyle::ExportTextSample(LPCTSTR Destination, short Format, double Width, double Height, LPCTSTR SampleText, const VARIANT& BackgroundColor)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I2 VTS_R8 VTS_R8 VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x34, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Destination, Format, Width, Height, SampleText, &BackgroundColor);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXIndividualValueCategory properties
- CMapXStyle CMapXIndividualValueCategory::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x1, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXIndividualValueCategory::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x1, VT_DISPATCH, propVal);
- }
- long CMapXIndividualValueCategory::GetNumItems()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- CString CMapXIndividualValueCategory::GetValue()
- {
- CString result;
- GetProperty(0x3, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXIndividualValueCategory::SetValue(LPCTSTR propVal)
- {
- SetProperty(0x3, VT_BSTR, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXMultivarCategory properties
- CMapXStyle CMapXMultivarCategory::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x1, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXMultivarCategory::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x1, VT_DISPATCH, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXMultivarCategory operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXSourceRows properties
- LPENUMVARIANT CMapXSourceRows::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXSourceRows::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXSourceRows operations
- CMapXSourceRow CMapXSourceRows::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXSourceRow(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXSourceRow properties
- long CMapXSourceRow::GetRow()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXSourceRow operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXAnnotation properties
- short CMapXAnnotation::GetType()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- CMapXGraphic CMapXAnnotation::GetGraphic()
- {
- LPDISPATCH result;
- GetProperty(0x2, VT_DISPATCH, (void*)&result);
- return CMapXGraphic(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXAnnotation operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXText properties
- // NOTE: ***OBSOLETE***: Do not use this class use CMapXGraphic instead
- CString CMapXText::GetCaption()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXText::SetCaption(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- double CMapXText::GetX()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- void CMapXText::SetX(double propVal)
- {
- SetProperty(0x2, VT_R8, propVal);
- }
- double CMapXText::GetY()
- {
- double result;
- GetProperty(0x3, VT_R8, (void*)&result);
- return result;
- }
- void CMapXText::SetY(double propVal)
- {
- SetProperty(0x3, VT_R8, propVal);
- }
- short CMapXText::GetPosition()
- {
- short result;
- GetProperty(0x4, VT_I2, (void*)&result);
- return result;
- }
- void CMapXText::SetPosition(short propVal)
- {
- SetProperty(0x4, VT_I2, propVal);
- }
- CMapXStyle CMapXText::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x5, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXText::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x5, VT_DISPATCH, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGraphic operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGraphic properties
- // Used for both Text and Symbol annotations
- CString CMapXGraphic::GetCaption()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXGraphic::SetCaption(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- double CMapXGraphic::GetX()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- void CMapXGraphic::SetX(double propVal)
- {
- SetProperty(0x2, VT_R8, propVal);
- }
- double CMapXGraphic::GetY()
- {
- double result;
- GetProperty(0x3, VT_R8, (void*)&result);
- return result;
- }
- void CMapXGraphic::SetY(double propVal)
- {
- SetProperty(0x3, VT_R8, propVal);
- }
- short CMapXGraphic::GetPosition()
- {
- short result;
- GetProperty(0x4, VT_I2, (void*)&result);
- return result;
- }
- void CMapXGraphic::SetPosition(short propVal)
- {
- SetProperty(0x4, VT_I2, propVal);
- }
- CMapXStyle CMapXGraphic::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x5, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXGraphic::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x5, VT_DISPATCH, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGraphic operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLegendText properties
- CString CMapXLegendText::GetText()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXLegendText::SetText(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- BOOL CMapXLegendText::GetVisible()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLegendText::SetVisible(BOOL bNewValue)
- {
- SetProperty(0x2, VT_BOOL, bNewValue);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLegendText operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLegendTexts properties
- LPENUMVARIANT CMapXLegendTexts::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- BOOL CMapXLegendTexts::GetAutoGenerate()
- {
- BOOL result;
- GetProperty(0x1, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLegendTexts::SetAutoGenerate(BOOL propVal)
- {
- SetProperty(0x1, VT_BOOL, propVal);
- }
- long CMapXLegendTexts::GetCount()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- CMapXLegendText CMapXLegendTexts::GetAllOthersText()
- {
- LPDISPATCH result;
- GetProperty(0x4, VT_DISPATCH, (void*)&result);
- return CMapXLegendText(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLegendTexts operations
- CMapXLegendText CMapXLegendTexts::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXLegendText(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXTitle properties
- CString CMapXTitle::GetCaption()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXTitle::SetCaption(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- CMapXStyle CMapXTitle::GetTextStyle()
- {
- LPDISPATCH result;
- GetProperty(0x2, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXTitle::SetTextStyle(LPDISPATCH propVal)
- {
- SetProperty(0x2, VT_DISPATCH, propVal);
- }
- BOOL CMapXTitle::GetVisible()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXTitle::SetVisible(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
- double CMapXTitle::GetX()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- void CMapXTitle::SetX(double propVal)
- {
- SetProperty(0x4, VT_R8, propVal);
- }
- double CMapXTitle::GetY()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- void CMapXTitle::SetY(double propVal)
- {
- SetProperty(0x5, VT_R8, propVal);
- }
- BOOL CMapXTitle::GetEditable()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXTitle::SetEditable(BOOL propVal)
- {
- SetProperty(0x6, VT_BOOL, propVal);
- }
- short CMapXTitle::GetPosition()
- {
- short result;
- GetProperty(0x7, VT_I2, (void*)&result);
- return result;
- }
- void CMapXTitle::SetPosition(short propVal)
- {
- SetProperty(0x7, VT_I2, propVal);
- }
- BOOL CMapXTitle::GetBorder()
- {
- BOOL result;
- GetProperty(0x8, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXTitle::SetBorder(BOOL propVal)
- {
- SetProperty(0x8, VT_BOOL, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLabelProperties properties
- CMapXStyle CMapXLabelProperties::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x1, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXLabelProperties::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x1, VT_DISPATCH, propVal);
- }
- BOOL CMapXLabelProperties::GetVisible()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetVisible(BOOL propVal)
- {
- SetProperty(0x2, VT_BOOL, propVal);
- }
- BOOL CMapXLabelProperties::GetLabelZoom()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetLabelZoom(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
- double CMapXLabelProperties::GetLabelZoomMin()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetLabelZoomMin(double propVal)
- {
- SetProperty(0x4, VT_R8, propVal);
- }
- double CMapXLabelProperties::GetLabelZoomMax()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetLabelZoomMax(double propVal)
- {
- SetProperty(0x5, VT_R8, propVal);
- }
- short CMapXLabelProperties::GetLineType()
- {
- short result;
- GetProperty(0x6, VT_I2, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetLineType(short propVal)
- {
- SetProperty(0x6, VT_I2, propVal);
- }
- short CMapXLabelProperties::GetOffset()
- {
- short result;
- GetProperty(0x7, VT_I2, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetOffset(short propVal)
- {
- SetProperty(0x7, VT_I2, propVal);
- }
- BOOL CMapXLabelProperties::GetParallel()
- {
- BOOL result;
- GetProperty(0x8, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetParallel(BOOL propVal)
- {
- SetProperty(0x8, VT_BOOL, propVal);
- }
- CMapXDataset CMapXLabelProperties::GetDataset()
- {
- LPDISPATCH result;
- GetProperty(0x9, VT_DISPATCH, (void*)&result);
- return CMapXDataset(result);
- }
- void CMapXLabelProperties::SetDataset(LPDISPATCH propVal)
- {
- SetProperty(0x9, VT_DISPATCH, propVal);
- }
- BOOL CMapXLabelProperties::GetDuplicate()
- {
- BOOL result;
- GetProperty(0xa, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetDuplicate(BOOL propVal)
- {
- SetProperty(0xa, VT_BOOL, propVal);
- }
- BOOL CMapXLabelProperties::GetOverlap()
- {
- BOOL result;
- GetProperty(0xb, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetOverlap(BOOL propVal)
- {
- SetProperty(0xb, VT_BOOL, propVal);
- }
- short CMapXLabelProperties::GetLabelMax()
- {
- short result;
- GetProperty(0xc, VT_I2, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetLabelMax(short propVal)
- {
- SetProperty(0xc, VT_I2, propVal);
- }
- CMapXField CMapXLabelProperties::GetDataField()
- {
- LPDISPATCH result;
- GetProperty(0xd, VT_DISPATCH, (void*)&result);
- return CMapXField(result);
- }
- void CMapXLabelProperties::SetDataField(LPDISPATCH propVal)
- {
- SetProperty(0xd, VT_DISPATCH, propVal);
- }
- short CMapXLabelProperties::GetPosition()
- {
- short result;
- GetProperty(0xe, VT_I2, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetPosition(short propVal)
- {
- SetProperty(0xe, VT_I2, propVal);
- }
- BOOL CMapXLabelProperties::GetPartialSegments()
- {
- BOOL result;
- GetProperty(0xf, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLabelProperties::SetPartialSegments(BOOL propVal)
- {
- SetProperty(0xf, VT_BOOL, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLabelProperties operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXBindLayer properties
- CString CMapXBindLayer::GetLayerName()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetLayerName(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- VARIANT CMapXBindLayer::GetRefColumn1()
- {
- VARIANT result;
- GetProperty(0x2, VT_VARIANT, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetRefColumn1(const VARIANT& propVal)
- {
- SetProperty(0x2, VT_VARIANT, &propVal);
- }
- VARIANT CMapXBindLayer::GetRefColumn2()
- {
- VARIANT result;
- GetProperty(0x3, VT_VARIANT, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetRefColumn2(const VARIANT& propVal)
- {
- SetProperty(0x3, VT_VARIANT, &propVal);
- }
- short CMapXBindLayer::GetLayerType()
- {
- short result;
- GetProperty(0x4, VT_I2, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetLayerType(short propVal)
- {
- SetProperty(0x4, VT_I2, propVal);
- }
- CString CMapXBindLayer::GetReferenceLayer()
- {
- CString result;
- GetProperty(0x5, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetReferenceLayer(LPCTSTR propVal)
- {
- SetProperty(0x5, VT_BSTR, propVal);
- }
- CMapXCoordSys CMapXBindLayer::GetCoordSys()
- {
- LPDISPATCH result;
- GetProperty(0x6, VT_DISPATCH, (void*)&result);
- return CMapXCoordSys(result);
- }
- void CMapXBindLayer::SetCoordSys(LPDISPATCH propVal)
- {
- SetProperty(0x6, VT_DISPATCH, propVal);
- }
- CString CMapXBindLayer::GetFilespec()
- {
- CString result;
- GetProperty(0x7, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetFilespec(LPCTSTR propVal)
- {
- SetProperty(0x7, VT_BSTR, propVal);
- }
- short CMapXBindLayer::GetKeyLength()
- {
- short result;
- GetProperty(0x8, VT_I2, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetKeyLength(short propVal)
- {
- SetProperty(0x8, VT_I2, propVal);
- }
- long CMapXBindLayer::GetReferenceLayerField()
- {
- long result;
- GetProperty(0x9, VT_I4, (void*)&result);
- return result;
- }
- void CMapXBindLayer::SetReferenceLayerField(long propVal)
- {
- SetProperty(0x9, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXBindLayer operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRangeCategories properties
- LPENUMVARIANT CMapXRangeCategories::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXRangeCategories::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- CMapXRangeCategory CMapXRangeCategories::GetAllOthersCategory()
- {
- LPDISPATCH result;
- GetProperty(0x3, VT_DISPATCH, (void*)&result);
- return CMapXRangeCategory(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRangeCategories operations
- CMapXRangeCategory CMapXRangeCategories::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXRangeCategory(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXIndividualValueCategories properties
- LPENUMVARIANT CMapXIndividualValueCategories::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXIndividualValueCategories::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- CMapXIndividualValueCategory CMapXIndividualValueCategories::GetAllOthersCategory()
- {
- LPDISPATCH result;
- GetProperty(0x3, VT_DISPATCH, (void*)&result);
- return CMapXIndividualValueCategory(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXIndividualValueCategories operations
- CMapXIndividualValueCategory CMapXIndividualValueCategories::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXIndividualValueCategory(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXMultivarCategories properties
- LPENUMVARIANT CMapXMultivarCategories::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXMultivarCategories::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXThemeCategories operations
- CMapXMultivarCategory CMapXMultivarCategories::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXMultivarCategory(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRectangle properties
- double CMapXRectangle::GetXMin()
- {
- double result;
- GetProperty(0x1, VT_R8, (void*)&result);
- return result;
- }
- double CMapXRectangle::GetYMin()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- double CMapXRectangle::GetXMax()
- {
- double result;
- GetProperty(0x3, VT_R8, (void*)&result);
- return result;
- }
- double CMapXRectangle::GetYMax()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- double CMapXRectangle::GetHeight()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- double CMapXRectangle::GetWidth()
- {
- double result;
- GetProperty(0x6, VT_R8, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRectangle operations
- void CMapXRectangle::Set(double X1, double Y1, double X2, double Y2)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- X1, Y1, X2, Y2);
- }
- void CMapXRectangle::Offset(double deltaX, double deltaY)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- deltaX, deltaY);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayerFind properties
- CMapXLayer CMapXLayerFind::GetRefineLayer()
- {
- LPDISPATCH result;
- GetProperty(0x1, VT_DISPATCH, (void*)&result);
- return CMapXLayer(result);
- }
- void CMapXLayerFind::SetRefineLayer(LPDISPATCH propVal)
- {
- SetProperty(0x1, VT_DISPATCH, propVal);
- }
- BOOL CMapXLayerFind::GetAbbreviations()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayerFind::SetAbbreviations(BOOL propVal)
- {
- SetProperty(0x2, VT_BOOL, propVal);
- }
- BOOL CMapXLayerFind::GetClosestAddr()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayerFind::SetClosestAddr(BOOL propVal)
- {
- SetProperty(0x3, VT_BOOL, propVal);
- }
- BOOL CMapXLayerFind::GetOtherBoundary()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXLayerFind::SetOtherBoundary(BOOL propVal)
- {
- SetProperty(0x4, VT_BOOL, propVal);
- }
- CMapXField CMapXLayerFind::GetFindField()
- {
- LPDISPATCH result;
- GetProperty(0x5, VT_DISPATCH, (void*)&result);
- return CMapXField(result);
- }
- void CMapXLayerFind::SetFindField(LPDISPATCH propVal)
- {
- SetProperty(0x5, VT_DISPATCH, propVal);
- }
- CMapXField CMapXLayerFind::GetRefineField()
- {
- LPDISPATCH result;
- GetProperty(0x6, VT_DISPATCH, (void*)&result);
- return CMapXField(result);
- }
- void CMapXLayerFind::SetRefineField(LPDISPATCH propVal)
- {
- SetProperty(0x6, VT_DISPATCH, propVal);
- }
- CMapXDataset CMapXLayerFind::GetFindDataset()
- {
- LPDISPATCH result;
- GetProperty(0x7, VT_DISPATCH, (void*)&result);
- return CMapXDataset(result);
- }
- void CMapXLayerFind::SetFindDataset(LPDISPATCH propVal)
- {
- SetProperty(0x7, VT_DISPATCH, propVal);
- }
- CMapXDataset CMapXLayerFind::GetRefineDataset()
- {
- LPDISPATCH result;
- GetProperty(0x8, VT_DISPATCH, (void*)&result);
- return CMapXDataset(result);
- }
- void CMapXLayerFind::SetRefineDataset(LPDISPATCH propVal)
- {
- SetProperty(0x8, VT_DISPATCH, propVal);
- }
- long CMapXLayerFind::GetCloseMatchMax()
- {
- long result;
- GetProperty(0xa, VT_I4, (void*)&result);
- return result;
- }
- void CMapXLayerFind::SetCloseMatchMax(long propVal)
- {
- SetProperty(0xa, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayerFind operations
- CMapXFindFeature CMapXLayerFind::Search(LPCTSTR Address, const VARIANT& RefineBoundary)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Address, &RefineBoundary);
- return CMapXFindFeature(result);
- }
- CMapXFindResult CMapXLayerFind::SearchEx(LPCTSTR Address, const VARIANT& RefineBoundary)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Address, &RefineBoundary);
- return CMapXFindResult(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFindFeature properties
- long CMapXFindFeature::GetFeatureID()
- {
- long result;
- GetProperty(0x10001, VT_I4, (void*)&result);
- return result;
- }
- short CMapXFindFeature::GetType()
- {
- short result;
- GetProperty(0x10002, VT_I2, (void*)&result);
- return result;
- }
- void CMapXFindFeature::SetType(short propVal)
- {
- SetProperty(0x10002, VT_I2, propVal);
- }
- double CMapXFindFeature::GetLength()
- {
- double result;
- GetProperty(0x10003, VT_R8, (void*)&result);
- return result;
- }
- double CMapXFindFeature::GetCenterX()
- {
- double result;
- GetProperty(0x10004, VT_R8, (void*)&result);
- return result;
- }
- double CMapXFindFeature::GetCenterY()
- {
- double result;
- GetProperty(0x10005, VT_R8, (void*)&result);
- return result;
- }
- CMapXStyle CMapXFindFeature::GetStyle()
- {
- LPDISPATCH result;
- GetProperty(0x10006, VT_DISPATCH, (void*)&result);
- return CMapXStyle(result);
- }
- void CMapXFindFeature::SetStyle(LPDISPATCH propVal)
- {
- SetProperty(0x10006, VT_DISPATCH, propVal);
- }
- CMapXRectangle CMapXFindFeature::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x10007, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- CString CMapXFindFeature::GetCaption()
- {
- CString result;
- GetProperty(0x10008, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXFindFeature::SetCaption(LPCTSTR propVal)
- {
- SetProperty(0x10008, VT_BSTR, propVal);
- }
- CMapXParts CMapXFindFeature::GetParts()
- {
- LPDISPATCH result;
- GetProperty(0x10009, VT_DISPATCH, (void*)&result);
- return CMapXParts(result);
- }
- double CMapXFindFeature::GetArea()
- {
- double result;
- GetProperty(0x1000a, VT_R8, (void*)&result);
- return result;
- }
- CMapXLayer CMapXFindFeature::GetLayer()
- {
- LPDISPATCH result;
- GetProperty(0x1000b, VT_DISPATCH, (void*)&result);
- return CMapXLayer(result);
- }
- CMapXPoint CMapXFindFeature::GetPoint()
- {
- LPDISPATCH result;
- GetProperty(0x1000c, VT_DISPATCH, (void*)&result);
- return CMapXPoint(result);
- }
- void CMapXFindFeature::SetPoint(LPDISPATCH propVal)
- {
- SetProperty(0x1000c, VT_DISPATCH, propVal);
- }
- CMapXPoint CMapXFindFeature::GetLabelPoint()
- {
- LPDISPATCH result;
- GetProperty(0x1000d, VT_DISPATCH, (void*)&result);
- return CMapXPoint(result);
- }
- double CMapXFindFeature::GetPerimeter()
- {
- double result;
- GetProperty(0x1000e, VT_R8, (void*)&result);
- return result;
- }
- BOOL CMapXFindFeature::GetSmooth()
- {
- BOOL result;
- GetProperty(0x1000f, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXFindFeature::SetSmooth(BOOL propVal)
- {
- SetProperty(0x1000f, VT_BOOL, propVal);
- }
- CString CMapXFindFeature::GetName()
- {
- CString result;
- GetProperty(0x10010, VT_BSTR, (void*)&result);
- return result;
- }
- CString CMapXFindFeature::GetKeyValue()
- {
- CString result;
- GetProperty(0x10011, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXFindFeature::SetKeyValue(LPCTSTR propVal)
- {
- SetProperty(0x10011, VT_BSTR, propVal);
- }
- CString CMapXFindFeature::GetFeatureKey()
- {
- CString result;
- GetProperty(0x10017, VT_BSTR, (void*)&result);
- return result;
- }
- short CMapXFindFeature::GetFindRC()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFindFeature operations
- void CMapXFindFeature::Update(const VARIANT& UpdateFeature, const VARIANT& RowValues)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x10012, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &UpdateFeature, &RowValues);
- }
- void CMapXFindFeature::Offset(double deltaX, double deltaY)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x10013, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- deltaX, deltaY);
- }
- void CMapXFindFeature::Attach(LPDISPATCH Map)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x10014, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Map);
- }
- LPDISPATCH CMapXFindFeature::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x10015, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return result;
- }
- VARIANT CMapXFindFeature::GetNodes(const VARIANT& CSys)
- {
- VARIANT result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x10016, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
- &CSys);
- return result;
- }
- void CMapXFindFeature::SetNodes(const VARIANT& CSys, const VARIANT& newValue)
- {
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x10016, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
- &CSys, &newValue);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFindResult properties
- BOOL CMapXFindResult::GetExactMatch()
- {
- BOOL result;
- GetProperty(0x1, VT_BOOL, (void*)&result);
- return result;
- }
- BOOL CMapXFindResult::GetSubstitute()
- {
- BOOL result;
- GetProperty(0x2, VT_BOOL, (void*)&result);
- return result;
- }
- BOOL CMapXFindResult::GetAddressOutOfRange()
- {
- BOOL result;
- GetProperty(0x3, VT_BOOL, (void*)&result);
- return result;
- }
- BOOL CMapXFindResult::GetIntersectionNotFound()
- {
- BOOL result;
- GetProperty(0x4, VT_BOOL, (void*)&result);
- return result;
- }
- BOOL CMapXFindResult::GetMultipleMatches()
- {
- BOOL result;
- GetProperty(0x5, VT_BOOL, (void*)&result);
- return result;
- }
- BOOL CMapXFindResult::GetRefineRegion()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- short CMapXFindResult::GetFindRC()
- {
- short result;
- GetProperty(0x7, VT_I2, (void*)&result);
- return result;
- }
- CMapXFindMatches CMapXFindResult::GetMatches()
- {
- LPDISPATCH result;
- GetProperty(0x8, VT_DISPATCH, (void*)&result);
- return CMapXFindMatches(result);
- }
- CMapXFeature CMapXFindResult::GetMatchedFeature()
- {
- LPDISPATCH result;
- GetProperty(0x9, VT_DISPATCH, (void*)&result);
- return CMapXFeature(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFindMatches properties
- LPENUMVARIANT CMapXFindMatches::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXFindMatches::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFindMatches operations
- CMapXFindMatch CMapXFindMatches::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXFindMatch(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFindMatch properties
- long CMapXFindMatch::GetFeatureID()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- CString CMapXFindMatch::GetName()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- long CMapXFindMatch::GetScore()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
- CString CMapXFindMatch::GetFeatureKey()
- {
- CString result;
- GetProperty(0x4, VT_BSTR, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGeosets properties
- LPENUMVARIANT CMapXGeosets::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXGeosets::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGeosets operations
- CMapXGeoset CMapXGeosets::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXGeoset(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGeoset properties
- CMapXPoint CMapXGeoset::GetCentroid()
- {
- LPDISPATCH result;
- GetProperty(0x1, VT_DISPATCH, (void*)&result);
- return CMapXPoint(result);
- }
- CString CMapXGeoset::GetPathName()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- CString CMapXGeoset::GetUserName()
- {
- CString result;
- GetProperty(0x3, VT_BSTR, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXGeoset operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXParts properties
- LPENUMVARIANT CMapXParts::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXParts::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXParts operations
- CMapXPoints CMapXParts::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXPoints(result);
- }
- void CMapXParts::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- CMapXPoints CMapXParts::Add(LPDISPATCH Points)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Points);
- return CMapXPoints(result);
- }
- void CMapXParts::RemoveAll()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXPoints properties
- LPENUMVARIANT CMapXPoints::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXPoints::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXPoints operations
- CMapXPoint CMapXPoints::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXPoint(result);
- }
- void CMapXPoints::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- CMapXPoint CMapXPoints::Add(LPDISPATCH Point, const VARIANT& Position)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_DISPATCH VTS_VARIANT;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Point, &Position);
- return CMapXPoint(result);
- }
- CMapXPoint CMapXPoints::AddXY(double X, double Y, const VARIANT& Position)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_R8 VTS_R8 VTS_VARIANT;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- X, Y, &Position);
- return CMapXPoint(result);
- }
- void CMapXPoints::RemoveAll()
- {
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXPoint properties
- double CMapXPoint::GetX()
- {
- double result;
- GetProperty(0x1, VT_R8, (void*)&result);
- return result;
- }
- double CMapXPoint::GetY()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXPoint operations
- void CMapXPoint::Set(double X, double Y)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- X, Y);
- }
- void CMapXPoint::Offset(double deltaX, double deltaY)
- {
- static BYTE parms[] =
- VTS_R8 VTS_R8;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- deltaX, deltaY);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFeatures properties
- LPENUMVARIANT CMapXFeatures::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXFeatures::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- CMapXRectangle CMapXFeatures::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x8, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXFeatures operations
- CMapXFeature CMapXFeatures::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXFeature(result);
- }
- CMapXFeatures CMapXFeatures::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXFeatures(result);
- }
- void CMapXFeatures::Add(LPDISPATCH Source)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Source);
- }
- void CMapXFeatures::Common(LPDISPATCH Source)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Source);
- }
- void CMapXFeatures::Remove(const VARIANT& Source)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Source);
- }
- void CMapXFeatures::Replace(LPDISPATCH Source)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Source);
- }
- void CMapXFeatures::AddByID(const VARIANT& FeatureID)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &FeatureID);
- }
- void CMapXFeatures::RemoveByID(const VARIANT& FeatureID)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &FeatureID);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXDatum properties
- short CMapXDatum::GetEllipsoid()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- double CMapXDatum::GetShiftX()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetShiftY()
- {
- double result;
- GetProperty(0x3, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetShiftZ()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetRotateX()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetRotateY()
- {
- double result;
- GetProperty(0x6, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetRotateZ()
- {
- double result;
- GetProperty(0x7, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetScaleAdjust()
- {
- double result;
- GetProperty(0x8, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetPrimeMeridian()
- {
- double result;
- GetProperty(0x9, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetSemiMajorAxis()
- {
- double result;
- GetProperty(0xa, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetSemiMinorAxis()
- {
- double result;
- GetProperty(0xb, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetFlattening()
- {
- double result;
- GetProperty(0xc, VT_R8, (void*)&result);
- return result;
- }
- double CMapXDatum::GetEccentricity()
- {
- double result;
- GetProperty(0xd, VT_R8, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXDatum operations
- void CMapXDatum::Set(short Ellipsoid, double ShiftX, double ShiftY, double ShiftZ, double RotateX, double RotateY, double RotateZ, double ScaleAdjust, double PrimeMeridian)
- {
- static BYTE parms[] =
- VTS_I2 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Ellipsoid, ShiftX, ShiftY, ShiftZ, RotateX, RotateY, RotateZ, ScaleAdjust, PrimeMeridian);
- }
- void CMapXDatum::SetFromList(short DatumNum)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- DatumNum);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXAffineTransform properties
- short CMapXAffineTransform::GetUnits()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- double CMapXAffineTransform::GetA()
- {
- double result;
- GetProperty(0x2, VT_R8, (void*)&result);
- return result;
- }
- double CMapXAffineTransform::GetB()
- {
- double result;
- GetProperty(0x3, VT_R8, (void*)&result);
- return result;
- }
- double CMapXAffineTransform::GetC()
- {
- double result;
- GetProperty(0x4, VT_R8, (void*)&result);
- return result;
- }
- double CMapXAffineTransform::GetD()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- double CMapXAffineTransform::GetE()
- {
- double result;
- GetProperty(0x6, VT_R8, (void*)&result);
- return result;
- }
- double CMapXAffineTransform::GetF()
- {
- double result;
- GetProperty(0x7, VT_R8, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXAffineTransform operations
- void CMapXAffineTransform::Set(short Units, double A, double B, double C, double D, double E, double F)
- {
- static BYTE parms[] =
- VTS_I2 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Units, A, B, C, D, E, F);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXCoordSys properties
- short CMapXCoordSys::GetType()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- CMapXDatum CMapXCoordSys::GetDatum()
- {
- LPDISPATCH result;
- GetProperty(0x2, VT_DISPATCH, (void*)&result);
- return CMapXDatum(result);
- }
- short CMapXCoordSys::GetUnits()
- {
- short result;
- GetProperty(0x3, VT_I2, (void*)&result);
- return result;
- }
- CMapXRectangle CMapXCoordSys::GetBounds()
- {
- LPDISPATCH result;
- GetProperty(0x4, VT_DISPATCH, (void*)&result);
- return CMapXRectangle(result);
- }
- double CMapXCoordSys::GetOriginLongitude()
- {
- double result;
- GetProperty(0x5, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetOriginLatitude()
- {
- double result;
- GetProperty(0x6, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetStandardParallelOne()
- {
- double result;
- GetProperty(0x7, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetStandardParallelTwo()
- {
- double result;
- GetProperty(0x8, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetAzimuth()
- {
- double result;
- GetProperty(0x9, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetScaleFactor()
- {
- double result;
- GetProperty(0xa, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetFalseEasting()
- {
- double result;
- GetProperty(0xb, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetFalseNorthing()
- {
- double result;
- GetProperty(0xc, VT_R8, (void*)&result);
- return result;
- }
- double CMapXCoordSys::GetRange()
- {
- double result;
- GetProperty(0xd, VT_R8, (void*)&result);
- return result;
- }
- CMapXAffineTransform CMapXCoordSys::GetAffineTransform()
- {
- LPDISPATCH result;
- GetProperty(0xe, VT_DISPATCH, (void*)&result);
- return CMapXAffineTransform(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXCoordSys operations
- void CMapXCoordSys::Set(short Type, const VARIANT& Datum, const VARIANT& Units, const VARIANT& OriginLongitude, const VARIANT& OriginLatitude, const VARIANT& StandardParallelOne, const VARIANT& StandardParallelTwo, const VARIANT& Azimuth,
- const VARIANT& ScaleFactor, const VARIANT& FalseEasting, const VARIANT& FalseNorthing, const VARIANT& Range, const VARIANT& Bounds, const VARIANT& AffineTransform)
- {
- static BYTE parms[] =
- VTS_I2 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Type, &Datum, &Units, &OriginLongitude, &OriginLatitude, &StandardParallelOne, &StandardParallelTwo, &Azimuth, &ScaleFactor, &FalseEasting, &FalseNorthing, &Range, &Bounds, &AffineTransform);
- }
- BOOL CMapXCoordSys::PickCoordSys(const VARIANT& HelpFile, const VARIANT& HelpID)
- {
- BOOL result;
- static BYTE parms[] =
- VTS_VARIANT VTS_VARIANT;
- InvokeHelper(0x10, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
- &HelpFile, &HelpID);
- return result;
- }
- CMapXCoordSys CMapXCoordSys::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x11, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXCoordSys(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXNotesViewInfo properties
- CString CMapXNotesViewInfo::GetServer()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesViewInfo::SetServer(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- CString CMapXNotesViewInfo::GetDatabase()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesViewInfo::SetDatabase(LPCTSTR propVal)
- {
- SetProperty(0x2, VT_BSTR, propVal);
- }
- CString CMapXNotesViewInfo::GetView()
- {
- CString result;
- GetProperty(0x3, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesViewInfo::SetView(LPCTSTR propVal)
- {
- SetProperty(0x3, VT_BSTR, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXNotesViewInfo operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXNotesQueryInfo properties
- CString CMapXNotesQueryInfo::GetServer()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetServer(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- CString CMapXNotesQueryInfo::GetDatabase()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetDatabase(LPCTSTR propVal)
- {
- SetProperty(0x2, VT_BSTR, propVal);
- }
- CString CMapXNotesQueryInfo::GetQuery()
- {
- CString result;
- GetProperty(0x3, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetQuery(LPCTSTR propVal)
- {
- SetProperty(0x3, VT_BSTR, propVal);
- }
- CString CMapXNotesQueryInfo::GetBeginDate()
- {
- CString result;
- GetProperty(0x4, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetBeginDate(LPCTSTR propVal)
- {
- SetProperty(0x4, VT_BSTR, propVal);
- }
- CString CMapXNotesQueryInfo::GetEndDate()
- {
- CString result;
- GetProperty(0x5, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetEndDate(LPCTSTR propVal)
- {
- SetProperty(0x5, VT_BSTR, propVal);
- }
- BOOL CMapXNotesQueryInfo::GetFullTextSearch()
- {
- BOOL result;
- GetProperty(0x6, VT_BOOL, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetFullTextSearch(BOOL propVal)
- {
- SetProperty(0x6, VT_BOOL, propVal);
- }
- CString CMapXNotesQueryInfo::GetDefaultStringValue()
- {
- CString result;
- GetProperty(0x7, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetDefaultStringValue(LPCTSTR propVal)
- {
- SetProperty(0x7, VT_BSTR, propVal);
- }
- double CMapXNotesQueryInfo::GetDefaultNumericValue()
- {
- double result;
- GetProperty(0x8, VT_R8, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetDefaultNumericValue(double propVal)
- {
- SetProperty(0x8, VT_R8, propVal);
- }
- long CMapXNotesQueryInfo::GetMaxNumDocs()
- {
- long result;
- GetProperty(0x9, VT_I4, (void*)&result);
- return result;
- }
- void CMapXNotesQueryInfo::SetMaxNumDocs(long propVal)
- {
- SetProperty(0x9, VT_I4, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXNotesQueryInfo operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXODBCQueryInfo properties
- CString CMapXODBCQueryInfo::GetDataSource()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXODBCQueryInfo::SetDataSource(LPCTSTR propVal)
- {
- SetProperty(0x1, VT_BSTR, propVal);
- }
- CString CMapXODBCQueryInfo::GetSqlQuery()
- {
- CString result;
- GetProperty(0x2, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXODBCQueryInfo::SetSqlQuery(LPCTSTR propVal)
- {
- SetProperty(0x2, VT_BSTR, propVal);
- }
- CString CMapXODBCQueryInfo::GetConnectString()
- {
- CString result;
- GetProperty(0x3, VT_BSTR, (void*)&result);
- return result;
- }
- void CMapXODBCQueryInfo::SetConnectString(LPCTSTR propVal)
- {
- SetProperty(0x3, VT_BSTR, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXBitmapSymbols properties
- LPENUMVARIANT CMapXBitmapSymbols::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXBitmapSymbols::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- CMapXBitmapSymbol CMapXBitmapSymbols::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXBitmapSymbol(result);
- }
- void CMapXBitmapSymbols::Refresh()
- {
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapXBitmapSymbols::Unload()
- {
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXBitmapSymbol properties
- CString CMapXBitmapSymbol::GetName()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXResolveObject properties
- CString CMapXResolveObject::GetTableName()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- long CMapXResolveObject::GetSourceMatch()
- {
- long result;
- GetProperty(0x2, VT_I4, (void*)&result);
- return result;
- }
- long CMapXResolveObject::GetTableMatch()
- {
- long result;
- GetProperty(0x3, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXResolveObjects properties
- LPENUMVARIANT CMapXResolveObjects::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXResolveObjects::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXResolveObjects operations
- CMapXResolveObject CMapXResolveObjects::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXResolveObject(result);
- }
- /* MapX Events for Reference
- void CMapXEvents::Click()
- {
- InvokeHelper(DISPID_CLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapXEvents::DblClick()
- {
- InvokeHelper(DISPID_DBLCLICK, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapXEvents::Error(short Number, BSTR* Description, long Scode, LPCTSTR Source, LPCTSTR HelpFile, long HelpContext, BOOL* CancelDisplay)
- {
- static BYTE parms[] =
- VTS_I2 VTS_PBSTR VTS_I4 VTS_BSTR VTS_BSTR VTS_I4 VTS_PBOOL;
- InvokeHelper(DISPID_ERROREVENT, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Number, Description, Scode, Source, HelpFile, HelpContext, CancelDisplay);
- }
- void CMapXEvents::KeyDown(short* KeyCode, short Shift)
- {
- static BYTE parms[] =
- VTS_PI2 VTS_I2;
- InvokeHelper(DISPID_KEYDOWN, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- KeyCode, Shift);
- }
- void CMapXEvents::KeyPress(short* KeyAscii)
- {
- static BYTE parms[] =
- VTS_PI2;
- InvokeHelper(DISPID_KEYPRESS, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- KeyAscii);
- }
- void CMapXEvents::KeyUp(short* KeyCode, short Shift)
- {
- static BYTE parms[] =
- VTS_PI2 VTS_I2;
- InvokeHelper(DISPID_KEYUP, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- KeyCode, Shift);
- }
- void CMapXEvents::MouseMove(short* Button, short* Shift, float* X, float* Y)
- {
- static BYTE parms[] =
- VTS_PI2 VTS_PI2 VTS_PR4 VTS_PR4;
- InvokeHelper(DISPID_MOUSEMOVE, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Button, Shift, X, Y);
- }
- void CMapXEvents::MouseDown(short* Button, short* Shift, float* X, float* Y)
- {
- static BYTE parms[] =
- VTS_PI2 VTS_PI2 VTS_PR4 VTS_PR4;
- InvokeHelper(DISPID_MOUSEDOWN, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Button, Shift, X, Y);
- }
- void CMapXEvents::MouseUp(short* Button, short* Shift, float* X, float* Y)
- {
- static BYTE parms[] =
- VTS_PI2 VTS_PI2 VTS_PR4 VTS_PR4;
- InvokeHelper(DISPID_MOUSEUP, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Button, Shift, X, Y);
- }
- void CMapXEvents::SelectionChanged()
- {
- InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapXEvents::ResolveDataBind(short Flag, short NumMatches, const VARIANT& Matches, short* Choice, BOOL* Cancel)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2 VTS_VARIANT VTS_PI2 VTS_PBOOL;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Flag, NumMatches, &Matches, Choice, Cancel);
- }
- void CMapXEvents::ToolUsed(short ToolNum, double X1, double Y1, double X2, double Y2, double Distance, BOOL Shift, BOOL Ctrl, BOOL* EnableDefault)
- {
- static BYTE parms[] =
- VTS_I2 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_R8 VTS_BOOL VTS_BOOL VTS_PBOOL;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ToolNum, X1, Y1, X2, Y2, Distance, Shift, Ctrl, EnableDefault);
- }
- void CMapXEvents::RequestData(LPCTSTR DataSetName, long Row, short Field, VARIANT* Value, BOOL* Done)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I4 VTS_I2 VTS_PVARIANT VTS_PBOOL;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- DataSetName, Row, Field, Value, Done);
- }
- void CMapXEvents::DataMismatch(LPCTSTR DataSetName, long Row, BSTR* GeoFieldValue)
- {
- static BYTE parms[] =
- VTS_BSTR VTS_I4 VTS_PBSTR;
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- DataSetName, Row, GeoFieldValue);
- }
- void CMapXEvents::MapViewChanged()
- {
- InvokeHelper(0x6, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- void CMapXEvents::AnnotationAdded(LPDISPATCH Annotation)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Annotation);
- }
- void CMapXEvents::AnnotationChanged(short ChangeType, LPDISPATCH Annotation, BOOL* EnableDefault)
- {
- static BYTE parms[] =
- VTS_I2 VTS_DISPATCH VTS_PBOOL;
- InvokeHelper(0x8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ChangeType, Annotation, EnableDefault);
- }
- void CMapXEvents::ThemeModifyRequested(LPDISPATCH Theme)
- {
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Theme);
- }
- void CMapXEvents::DrawUserLayer(LPDISPATCH Layer, long hDCOutput, long hDCAttrib, LPDISPATCH RectFull, LPDISPATCH RectInvalid)
- {
- static BYTE parms[] =
- VTS_DISPATCH VTS_I4 VTS_I4 VTS_DISPATCH VTS_DISPATCH;
- InvokeHelper(0xa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Layer, hDCOutput, hDCAttrib, RectFull, RectInvalid);
- }
- void CMapXEvents::PolyToolUsed(short ToolNum, long Flags, LPDISPATCH Points, BOOL bShift, BOOL bCtrl, BOOL* EnableDefault)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I4 VTS_DISPATCH VTS_BOOL VTS_BOOL VTS_PBOOL;
- InvokeHelper(0xb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- ToolNum, Flags, Points, bShift, bCtrl, EnableDefault);
- }
- void ResolveDataBindEx(short Flag, short NumMatches, const VARIANT& Matches, short* Choice, BOOL* Cancel)
- {
- static BYTE parms[] =
- VTS_I2 VTS_I2 VTS_VARIANT VTS_PI2 VTS_PBOOL;
- InvokeHelper(0xe, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- Flag, NumMatches, &Matches, Choice, Cancel);
- }
- void MapDraw(short Flag)
- {
- static BYTE parms[] =
- VTS_I2;
- InvokeHelper(0xf, DISPATCH_METHOD, VT_EMPTY, NULL, parms, Flag);
- }
- */
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRowValues properties
- LPENUMVARIANT CMapXRowValues::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXRowValues::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- BOOL CMapXRowValues::GetReadOnly()
- {
- BOOL result;
- GetProperty(0x7, VT_BOOL, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRowValues operations
- CMapXRowValue CMapXRowValues::Item(const VARIANT& Index)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- &Index);
- return CMapXRowValue(pDispatch);
- }
- void CMapXRowValues::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- CMapXRowValue CMapXRowValues::Add(LPDISPATCH RowValue)
- {
- LPDISPATCH pDispatch;
- static BYTE parms[] =
- VTS_DISPATCH;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, parms,
- RowValue);
- return CMapXRowValue(pDispatch);
- }
- void CMapXRowValues::RemoveAll()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- CMapXRowValues CMapXRowValues::Clone()
- {
- LPDISPATCH pDispatch;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&pDispatch, NULL);
- return CMapXRowValues(pDispatch);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRowValue properties
- BOOL CMapXRowValue::GetReadOnly()
- {
- BOOL result;
- GetProperty(0x1, VT_BOOL, (void*)&result);
- return result;
- }
- LPDISPATCH CMapXRowValue::GetDataset()
- {
- LPDISPATCH result;
- GetProperty(0x2, VT_DISPATCH, (void*)&result);
- return result;
- }
- void CMapXRowValue::SetDataset(LPDISPATCH propVal)
- {
- SetProperty(0x2, VT_DISPATCH, propVal);
- }
- LPDISPATCH CMapXRowValue::GetField()
- {
- LPDISPATCH result;
- GetProperty(0x3, VT_DISPATCH, (void*)&result);
- return result;
- }
- void CMapXRowValue::SetField(LPDISPATCH propVal)
- {
- SetProperty(0x3, VT_DISPATCH, propVal);
- }
- VARIANT CMapXRowValue::GetValue()
- {
- VARIANT result;
- GetProperty(0x4, VT_VARIANT, (void*)&result);
- return result;
- }
- void CMapXRowValue::SetValue(const VARIANT& propVal)
- {
- SetProperty(0x4, VT_VARIANT, &propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXRowValue operations
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayerInfo properties
- short CMapXLayerInfo::GetType()
- {
- short result;
- GetProperty(0x1, VT_I2, (void*)&result);
- return result;
- }
- void CMapXLayerInfo::SetType(short propVal)
- {
- SetProperty(0x1, VT_I2, propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXLayerInfo operations
- void CMapXLayerInfo::AddParameter(LPCTSTR ParamName, const VARIANT& Param)
- {
- static BYTE parms[] = VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, ParamName, &Param);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXVariables properties
- LPENUMVARIANT CMapXVariables::GetEnumerator()
- {
- LPENUMVARIANT pEnumVariant = 0;
- LPUNKNOWN pUnknown = 0;
- GetProperty(0xfffffffc, VT_UNKNOWN, (void*)&pUnknown);
- if(pUnknown)
- {
- pUnknown->QueryInterface(IID_IEnumVARIANT, (void**)&pEnumVariant);
- pUnknown->Release();
- }
- return pEnumVariant;
- }
- long CMapXVariables::GetCount()
- {
- long result;
- GetProperty(0x1, VT_I4, (void*)&result);
- return result;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXVariables operations
- CMapXVariable CMapXVariables::Item(const VARIANT& Index)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- &Index);
- return CMapXVariable(result);
- }
- void CMapXVariables::Remove(const VARIANT& Index)
- {
- static BYTE parms[] =
- VTS_VARIANT;
- InvokeHelper(0x3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
- &Index);
- }
- CMapXVariable CMapXVariables::Add(LPCTSTR Name, const VARIANT& Value)
- {
- LPDISPATCH result;
- static BYTE parms[] =
- VTS_BSTR VTS_VARIANT;
- InvokeHelper(0x4, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
- Name, &Value);
- return CMapXVariable(result);
- }
- void CMapXVariables::RemoveAll()
- {
- InvokeHelper(0x5, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
- }
- CMapXVariables CMapXVariables::Clone()
- {
- LPDISPATCH result;
- InvokeHelper(0x6, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
- return CMapXVariables(result);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXVariable properties
- CString CMapXVariable::GetName()
- {
- CString result;
- GetProperty(0x1, VT_BSTR, (void*)&result);
- return result;
- }
- VARIANT CMapXVariable::GetValue()
- {
- VARIANT result;
- GetProperty(0x2, VT_VARIANT, (void*)&result);
- return result;
- }
- void CMapXVariable::SetValue(const VARIANT& propVal)
- {
- SetProperty(0x2, VT_VARIANT, &propVal);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMapXVariable operations