Files
Slnkdwf/SlnkDWFCom/SLNKDWF.idl
Jos Groot Lipman 80d0142c23 SLNKDWF 2.00
svn path=/Slnkdwf/trunk/; revision=12481
2007-08-01 13:42:28 +00:00

365 lines
15 KiB
Plaintext

// SLNKDWF.idl : IDL source for SLNKDWF
//
// This file will be processed by the MIDL tool to
// produce the type library (SLNKDWF.tlb) and marshalling code.
#include "olectl.h"
import "oaidl.idl";
import "ocidl.idl";
interface IEPlotSection;
interface IEPlotSections;
interface ISLNKEvent;
interface IBoundingBox;
interface IDWGPoint;
//interface IChild;
//interface ISubChild;
[
object,
uuid(3C57EFD2-B1A1-4B70-A6B2-14D05401F458),
dual,
nonextensible,
helpstring("IDWFFile Interface"),
pointer_default(unique)
]
interface IDWFFile : IDispatch{
[id(1), helpstring("method Open")] HRESULT Open(BSTR DWFPath);
[propget, id(9), helpstring("property PropertiesXML")] HRESULT PropertiesXML([out, retval] BSTR* pVal);
[propget, id(10), helpstring("property EPlotSections")] HRESULT EPlotSections([out,retval] IEPlotSections **ppEPlotSections);
};
[
object,
uuid(B0C6AC9F-3D1E-4489-9CE9-436A220ED12F),
dual,
nonextensible,
helpstring("IWhipFile Interface"),
pointer_default(unique)
]
interface IWhipFile : IDispatch{
[id(1), helpstring("method Load")] HRESULT Load([in] BSTR WhipPath);
[id(2), helpstring("method LoadStream")] HRESULT LoadStream([in] VARIANT EPlotStream);
[id(3), helpstring("method SaveAs")] HRESULT SaveAs([in] BSTR WhipPath);
[id(4), helpstring("method SetLabel")] HRESULT SetLabel([in] BSTR IdentLabel, [in] BSTR ExtraLabel);
[id(5), helpstring("method SetColor")] HRESULT SetColor([in] BSTR IdentLabel, [in] ULONG rgb, [in, defaultvalue(0)] BYTE Alpha);
[id(8), helpstring("method SetLabelFont")] HRESULT SetLabelFont([in] BSTR FontName, [in] DOUBLE FontHeight, [in, defaultvalue(0)] DOUBLE FontHeightSymbols);
[id(9), helpstring("method SetLabelPosition")] HRESULT SetLabelPosition([in, defaultvalue(1)] BYTE LabelPos);
[propget, id(10), helpstring("method ContoursXML")] HRESULT ContoursXML([out, retval] BSTR* pVal);
[id(12), helpstring("method SetLayers")] HRESULT SetLayers([in] BSTR reContouren, [in] BSTR reLabels);
[propget, id(14), helpstring("property AddSymbol")] HRESULT AddSymbol([in] DOUBLE dwgX, [in] DOUBLE dwgY, BSTR symbolName, [out, retval] IUnknown** pVal);
[id(15), helpstring("method DefineSymbol")] HRESULT DefineSymbol([in] BSTR symbolName, [in] VARIANT EPlotStream);
[id(16), helpstring("method DefineBitmapSymbol")] HRESULT DefineBitmapSymbol([in] BSTR symbolName, [in] BSTR symbolPath, [in] DOUBLE height);
[propget, id(17), helpstring("property Contour")] HRESULT Contour([in] BSTR IdentLabel, [out, retval] IUnknown** pVal);
[id(18), helpstring("method SetFilterLayers")] HRESULT SetFilterLayers([in] BSTR reLayers);
[propget, id(19), helpstring("property hintScale")] HRESULT hintScale([out, retval] DOUBLE* pVal);
[propput, id(19), helpstring("property hintScale")] HRESULT hintScale([in] DOUBLE newVal);
[propget, id(20), helpstring("property FindInContour")] HRESULT FindInContour([in] DOUBLE dwgX, [in] DOUBLE dwgY, [out, retval] BSTR* pVal);
};
[
object,
uuid(FB9CAA9B-CA0A-4BF0-AA2C-47579BEFA214),
dual,
nonextensible,
helpstring("IWhip2PNG Interface"),
pointer_default(unique)
]
interface IWhip2PNG : IDispatch{
[id(1), helpstring("method Load")] HRESULT Load([in] BSTR WhipPath);
[id(2), helpstring("method SaveAsPng")] HRESULT SaveAsPNG([in] BSTR PNGPath);
[id(3), helpstring("method SaveAsWMF")] HRESULT SaveAsWMF([in] BSTR WMFPath);
[id(4), helpstring("method Find")] HRESULT Find([in] LONG findX, [in] LONG findY, [out, retval] BSTR* foundLabel);
[id(5), helpstring("method SetDimensions")] HRESULT SetDimensions([in] LONG sizeX,
[in] LONG sizeY, [in] LONG offsetX, [in] LONG offsetY, [in] DOUBLE dScale, [in, defaultvalue(0)] LONG lRotation);
[id(6), helpstring("method GetAsMap")] HRESULT GetAsMap( [out, retval] BSTR* AsMap);
// [id(7), helpstring("method FindCoords")] HRESULT FindCoords([in] LONG findX, [in] LONG findY, [out] VARIANT* dwgX, [out] VARIANT* dwgY);
[propget, id(8), helpstring("property AtlRegExp")] HRESULT AtlRegExp([in] BSTR RegExp, [in] BSTR TestExp, [out, retval] BSTR* pVal);
[id(9), helpstring("method TextAsPNG")] HRESULT TextAsPNG(BSTR Message, [out, retval] VARIANT *ImageData);
[id(10), helpstring("property GetAsPNG")] HRESULT GetAsPNG([out, retval] VARIANT *ImageData);
[id(11), helpstring("property GetAsTransGIF")] HRESULT GetAsTransGIF([out, retval] VARIANT *ImageData);
[id(12), helpstring("method LoadStream")] HRESULT LoadStream([in] VARIANT DWFStream);
[id(13), helpstring("method SetLayers")] HRESULT SetLayers([in] BSTR RegExp);
[propget, id(14), helpstring("property forceBW2")] HRESULT forceBW([out, retval] VARIANT_BOOL* pVal);
[propput, id(14), helpstring("property forceBW2")] HRESULT forceBW([in] VARIANT_BOOL newVal);
[propget, id(15), helpstring("property SLNKEvent")] HRESULT SLNKEvent([out, retval] ISLNKEvent** pVal);
[propget, id(16), helpstring("property paperColor")] HRESULT paperColor([out, retval] LONG* pVal);
[propput, id(16), helpstring("property paperColor")] HRESULT paperColor([in] LONG newVal);
[id(17), helpstring("method ReplaceColor")] HRESULT ReplaceColor([in] LONG paperColor, [in] LONG oldColor, [in] LONG newColor);
[propget, id(18), helpstring("property Maximize")] HRESULT Maximize([out, retval] VARIANT_BOOL* pVal);
[propput, id(18), helpstring("property Maximize")] HRESULT Maximize([in] VARIANT_BOOL newVal);
[propget, id(19), helpstring("property dwgScale")] HRESULT dwgScale([out, retval] DOUBLE* pVal);
[propput, id(19), helpstring("property dwgScale")] HRESULT dwgScale([in] DOUBLE newVal);
[propget, id(21), helpstring("property forceGray")] HRESULT forceGray([out, retval] VARIANT_BOOL* pVal);
[propput, id(21), helpstring("property forceGray")] HRESULT forceGray([in] VARIANT_BOOL newVal);
};
[
object,
uuid(68FBB9BF-FD4C-42D4-9670-459CCF7480BE),
dual,
nonextensible,
helpstring("IAbout Interface"),
pointer_default(unique)
]
interface IAbout : IDispatch{
[propget, id(1), helpstring("property All")] HRESULT All([out, retval] BSTR* pVal);
[propget, id(2), helpstring("property DLLPath")] HRESULT DLLPath([out, retval] BSTR* pVal);
[propget, id(3), helpstring("property Buildtime")] HRESULT Buildtime([out, retval] BSTR* pVal);
[propget, id(4), helpstring("property UserContext")] HRESULT UserContext([out, retval] BSTR* pVal);
[propget, id(5), helpstring("property VersionMajor")] HRESULT VersionMajor([out, retval] LONG* pVal);
[propget, id(6), helpstring("property VersionMinor")] HRESULT VersionMinor([out, retval] LONG* pVal);
[propget, id(7), helpstring("property VersionString")] HRESULT VersionString([out, retval] BSTR* pVal);
};
[
object,
uuid(99560CEF-C2CE-4CB3-AE7F-6AD6CE72CC97),
dual,
nonextensible,
helpstring("IEPlotSection Interface"),
pointer_default(unique)
]
interface IEPlotSection : IDispatch{
// [id(1), helpstring("method Init"),hidden] HRESULT Init([in] long *ptr);
// [id(2), helpstring("method GetEPlotSection"),hidden] HRESULT GetEPlotSection([out] long **ptr);
[propget, helpstring("My Parent")] HRESULT Parent([out, retval] IEPlotSections **ppParent);
[propget, id(3), helpstring("property Name")] HRESULT Name([out, retval] BSTR* pVal);
[propget, id(4), helpstring("property Title")] HRESULT Title([out, retval] BSTR* pVal);
[local]
[id(6), helpstring("method Read")] HRESULT
Read([out, size_is(cb), length_is(*pcbRead)]void *pv, [in]ULONG cb, [out]ULONG *pcbRead);
[local]
[id(7), helpstring("method Write")] HRESULT
Write([in, size_is(cb)] const void *pv, [in]ULONG cb, [out]ULONG *pcbWritten);
[propget, id(8), helpstring("property PaperColor")] HRESULT PaperColor([out, retval] ULONG* pVal);
[id(9), helpstring("method Open")] HRESULT Open([in]BOOL bForWrite);
[id(10), helpstring("method Close")] HRESULT Close(void);
[propget, id(11), helpstring("property SourceDescription")] HRESULT SourceDescription([out, retval] BSTR* pVal);
[propget, id(12), helpstring("property PropertiesXML")] HRESULT PropertiesXML([out, retval] BSTR* pVal);
[propget, id(13), helpstring("property PaperClipWidth")] HRESULT PaperClipWidth([out, retval] DOUBLE* pVal);
[propget, id(14), helpstring("property EPlotSectionImpl"), hidden] HRESULT EPlotSectionImpl([out, retval] /*CEPlotSectionImpl*/BYTE ** pVal);
[propput, id(14), helpstring("property EPlotSectionImpl"), hidden] HRESULT EPlotSectionImpl([in] /*CEPlotSectionImpl*/ BYTE * newVal);
};
[
object,
uuid(32292BE4-2ACB-4BDD-AF3C-DF91ADD4EF36),
dual,
nonextensible,
helpstring("IEPlotSections Interface"),
pointer_default(unique)
]
interface IEPlotSections : IDispatch{
[propget, helpstring("My Parent")] HRESULT Parent([out, retval] IDWFFile **ppParent);
[propget, id(1), helpstring("property Count")] HRESULT Count([out, retval] LONG* pVal);
[propget, id(2), helpstring("property Item")] HRESULT Item([in] LONG i, [out, retval] IDispatch** pVal);
};
[
object,
uuid(BA3EEF9F-BEB1-4478-870B-3E274AF8506A),
dual,
nonextensible,
helpstring("ISLNKEvent Interface"),
pointer_default(unique)
]
interface ISLNKEvent : IDispatch{
[propget, id(1), helpstring("property DwgX")] HRESULT DwgX([out, retval] DOUBLE* pVal);
[propput, id(1), helpstring("property DwgX")] HRESULT DwgX([in] DOUBLE newVal);
[propget, id(2), helpstring("property DwgY")] HRESULT DwgY([out, retval] DOUBLE* pVal);
[propput, id(2), helpstring("property DwgY")] HRESULT DwgY([in] DOUBLE newVal);
[propget, id(7), helpstring("property ContourLabel")] HRESULT ContourLabel([out, retval] BSTR* pVal);
[propput, id(7), helpstring("property ContourLabel")] HRESULT ContourLabel([in] BSTR newVal);
[propget, id(8), helpstring("property ContourLayer")] HRESULT ContourLayer([out, retval] BSTR* pVal);
[propput, id(8), helpstring("property ContourLayer")] HRESULT ContourLayer([in] BSTR newVal);
[propget, id(9), helpstring("property TextLabel")] HRESULT TextLabel([out, retval] BSTR* pVal);
[propput, id(9), helpstring("property TextLabel")] HRESULT TextLabel([in] BSTR newVal);
[propget, id(10), helpstring("property TextLayer")] HRESULT TextLayer([out, retval] BSTR* pVal);
[propput, id(10), helpstring("property TextLayer")] HRESULT TextLayer([in] BSTR newVal);
[propget, id(11), helpstring("property found")] HRESULT found([out, retval] IDWGPoint** pVal);
[propget, id(12), helpstring("property dwgExtents")] HRESULT dwgExtents([out, retval] IBoundingBox** pVal);
[propget, id(13), helpstring("property viewExtents")] HRESULT viewExtents([out, retval] IBoundingBox** pVal);
};
[
object,
uuid(102FE53F-3C9A-47C6-9BAD-1434838FF53D),
dual,
nonextensible,
helpstring("IBoundingBox Interface"),
pointer_default(unique)
]
interface IBoundingBox : IDispatch{
[propget, id(1), helpstring("property min")] HRESULT min([out, retval] IDWGPoint** pVal);
[propget, id(2), helpstring("property max")] HRESULT max([out, retval] IDWGPoint** pVal);
};
[
object,
uuid(C5678016-EF7B-4476-966E-8AFD4514DB2A),
dual,
nonextensible,
helpstring("IDWGPoint Interface"),
pointer_default(unique)
]
interface IDWGPoint : IDispatch{
[propget, id(1), helpstring("property DwgX")] HRESULT DwgX([out, retval] DOUBLE* pVal);
[propput, id(1), helpstring("property DwgX")] HRESULT DwgX([in] DOUBLE newVal);
[propget, id(2), helpstring("property DwgY")] HRESULT DwgY([out, retval] DOUBLE* pVal);
[propput, id(2), helpstring("property DwgY")] HRESULT DwgY([in] DOUBLE newVal);
};
[
object,
uuid(A505B2D9-4D41-411F-B2A7-B297AA399278),
dual,
nonextensible,
helpstring("ISLNKContour Interface"),
pointer_default(unique)
]
interface ISLNKContour : IDispatch{
[id(2), helpstring("method SetColor")] HRESULT SetColor([in] ULONG rgb, [in, defaultvalue(0)] BYTE Alpha);
[id(3), helpstring("method SetUrl")] HRESULT SetUrl([in] BSTR Url, [in] BSTR FriendlyName);
[propget, id(5), helpstring("property Area")] HRESULT Area([out, retval] DOUBLE* pVal);
[propget, id(6), helpstring("property Extents")] HRESULT Extents([out, retval] IBoundingBox ** pVal);
[propget, id(7), helpstring("property Center")] HRESULT Center([out, retval] IDWGPoint** pVal);
[propget, id(8), helpstring("property Key")] HRESULT Key([out, retval] BSTR* pVal);
[propput, id(8), helpstring("property Key")] HRESULT Key([in] BSTR newVal);
[propget, id(9), helpstring("property Label")] HRESULT Label([out, retval] BSTR* pVal);
[propput, id(9), helpstring("property Label")] HRESULT Label([in] BSTR newVal);
[propget, id(10), helpstring("property Hatch")] HRESULT Hatch([out, retval] BYTE* pVal);
[propput, id(10), helpstring("property Hatch")] HRESULT Hatch([in] BYTE newVal);
};
[
object,
uuid(FE75E3AB-5047-4CB6-A910-FF3156CB7946),
dual,
nonextensible,
helpstring("ISLNKSymbol Interface"),
pointer_default(unique)
]
interface ISLNKSymbol : IDispatch{
[propget, id(2), helpstring("property Scale")] HRESULT Scale([out, retval] DOUBLE* pVal);
[propput, id(2), helpstring("property Scale")] HRESULT Scale([in] DOUBLE newVal);
[propget, id(3), helpstring("property Rotation")] HRESULT Rotation([out, retval] LONG* pVal);
[propput, id(3), helpstring("property Rotation")] HRESULT Rotation([in] LONG newVal);
[propget, id(4), helpstring("property Contour")] HRESULT Contour([out, retval] IUnknown** pVal);
};
[
object,
uuid(FC848365-3C85-490D-8CC0-DB66D73FA34E),
dual,
nonextensible,
helpstring("IOptions Interface"),
pointer_default(unique)
]
interface IOptions : IDispatch{
[id(1), helpstring("method SetOption")] HRESULT SetOption([in] BSTR optionName, VARIANT OptionValue);
};
[
uuid(B6FCDE6E-141C-4601-B3AC-4DF4D5F25DF8),
version(1.0),
helpstring("SLNKDWF 1.0 Type Library")
]
library SLNKDWFLib
{
importlib("stdole2.tlb");
[
uuid(BE2BCD58-4971-49E6-9A70-CDDD5C01224D),
helpstring("DWFFile Class")
]
coclass myDWFFile
{
[default] interface IDWFFile;
};
[
uuid(C2632BD5-3157-45A6-8FFC-57063FF2B169),
helpstring("WhipFile Class")
]
coclass WhipFile
{
[default] interface IWhipFile;
};
[
uuid(783AC7F0-E6E1-4CE1-A38B-FA047D44DC1C),
helpstring("Whip2PNG Class")
]
coclass Whip2PNG
{
[default] interface IWhip2PNG;
};
[
uuid(2BA64B82-1A96-4F15-9815-40B291B505EB),
helpstring("About Class")
]
coclass About
{
[default] interface IAbout;
};
[
uuid(F2599AE6-8A08-4B5E-9C68-BD975229F0D1),
helpstring("EPlotSection Class"),
noncreatable
]
coclass EPlotSection
{
[default] interface IEPlotSection;
};
[
uuid(7B2E7661-9B9A-4217-A19E-745EFFF8E86D),
helpstring("EPlotSections Class"),
noncreatable
]
coclass EPlotSections
{
[default] interface IEPlotSections;
};
[
uuid(F7226C2D-B5C7-4C72-AA43-6D5013EF7C96),
helpstring("SLNKEvent Class"),
noncreatable
]
coclass SLNKEvent
{
[default] interface ISLNKEvent;
};
[
uuid(FCEF1E56-36FF-4F66-BEA5-FD08D860524F),
helpstring("BoundingBox Class"),
noncreatable
]
coclass BoundingBox
{
[default] interface IBoundingBox;
};
[
uuid(96301A8D-1DC9-4900-B89D-C745C4CAEFF4),
helpstring("DWGPoint Class"),
noncreatable
]
coclass DWGPoint
{
[default] interface IDWGPoint;
};
[
uuid(476C0F28-5860-485D-BEBD-D03F68E1C930),
helpstring("SLNKContour Class"),
noncreatable
]
coclass SLNKContour
{
[default] interface ISLNKContour;
};
[
uuid(8CEBC89F-658A-49C8-96E4-852FFFA9B10F),
helpstring("SLNKSymbol Class"),
noncreatable
]
coclass SLNKSymbol
{
[default] interface ISLNKSymbol;
};
[
uuid(168678A9-6FA7-49C3-B839-DFDF07E0A79A),
helpstring("Options Class")
]
coclass Options
{
[default] interface IOptions;
};
};