home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 April
/
PCWorld_2002-04_cd.bin
/
Akce
/
2000
/
write.z
/
ABWRITE.BI
next >
Wrap
Text File
|
2000-01-04
|
10KB
|
655 lines
// OleDoc.odl : type library source for OleDoc.exe
// This file will be processed by the MIDL compiler to produce the
// type library (OleDoc.tlb).
[ uuid(274A8366-85E7-11D2-818E-0080AD4012CB), version(2.0) ]
library ABWrite
{
importlib("stdole32.tlb");
dispinterface ISelection;
<begin>
enum AbConstants //////
{
abForw = 1,
abBack = 0,
abUndeterm = 999999, ///Paragraph alignment///
abAlignLeft = 1, ///Paragraph alignment///
abAlignCenter = 2, ///Paragraph alignment///
abAlignRight = 3, ///Paragraph alignment///
abAlignJustify = 4,///Paragraph alignment///
abFTOle = 1, ///Field type: type for OLE2 object///
abFTDateTime = 2, ///Field type: type for current date///
abFTPageNum = 3, ///Field type: type for page number///
abFTPicture = 9, ///Field type: type for graphic images///
abFTFootNote = 10,///Field type ///
abFTCaption = 11,///Field type ///
abFTWriteFX = 13,///Field type ///
abFNArabic = 0,///Format of numbers///
abFNRoman = 1,///Format of numbers///
abFNAlfaCAPS = 2,///Format of numbers///
abFNAlfa = 3 ///Format of numbers///
};
enum WriteFXConstants //////
{
abFX_GRADIENT_VERTICAL = 0, ///Gradient type///
abFX_GRADIENT_HORIZONTAL = 1, ///Gradient type///
abFX_GRADIENT_ANGLE = 2, ///Gradient type///
abFX_GRADIENT_SOLID = 3, ///Gradient type///
abFX_GRADIENT_FROM_CENTER= 4, ///Gradient type///
abFX_GRADIENT_FROM_CENTER_HORIZONTAL = 5, ///Gradient type///
abFX_GRADIENT_FROM_CENTER_VERTICAL = 6, ///Gradient type///
abFX_GRADIENT = 1, ///Fill type///
abFX_TEXTURE = 2, ///Fill type///
abFX_BORDER_INSIDE = 0, ///Border type///
abFX_BORDER_CENTER = 1, ///Border type///
abFX_BORDER_OUTSIDE = 2 ///Border type///
};
enum AbLineStyles //////
{
abLineSolid = 0,
abLineDash = 1,
abLineDot = 2,
abLineDashDot = 3,
abLineDashDotDot = 4
};
enum AbBorderStyles //////
{
abBorder1pt = 0,
abBorder2pt = 1,
abBorder3pt = 2,
abBorder4pt = 3,
abBorder6pt = 4,
abBorder8pt = 5,
abBorderDash = 6,
abBorderDot = 7,
abBorderDashDot = 8,
abBorderNothing = 9
};
enum AbBorders //////
{
abBorderNone = 0,
abBorderLeft = 1,
abBorderRight = 2,
abBorderTop = 4,
abBorderBottom = 8,
abBorderAll = 15
};
class Document //////
{
[properties:
[id(1)]
ISelection* Selection;
[id(3)]
Paragraphs Paragraphs;
[id(4)]
IDISPATCH Text;
[id(5)]
Forms Forms;
[id(10)]
Styles Styles;
[id(11)]
IDISPATCH Frames;
[id(26)]
Fields Fields;
]
[methods:
[id(2)]
BSTR GetTitle();
[id(6)]
void Copy();
[id(7)]
void Cut();
[id(8)]
void Paste();
[id(9)]
void ShowDialog(BSTR String);
[id(12)]
void MakeUndo();
[id(13)]
void MakeRedo();
[id(14)]
void StartSaveUndo();
[id(15)]
void EndSaveUndo();
[id(16)]
void InsertPageNumber(long Pos, long Style, long StartAt);
[id(17)]
void InsertDateAndTime(long Pos, long DateFormat, long TimeFormat, BOOL DateAndTime, BOOL Time, BOOL WeekDay, BOOL AutoUpdate);
[id(18)]
void InsertMailMerge(long Pos);
[id(19)]
void InsertFootNote(long Pos, long NumberFormat, long StartAt, BOOL ContiniousNubering, BOOL RestartEachPage);
[id(20)]
void InsertCaption(long Pos, BSTR Label, long NumberFormat, long StartAt, BOOL AutoCaption);
[id(21)]
void InsertPicture(long Pos, BSTR FileName);
[id(22)]
void InsertSpreadsheet(long Pos);
[id(23)]
void InsertDrawing(long Pos);
[id(24)]
void InsertWriteFX(long Pos, BSTR Text);
[id(25)]
void InsertObject(long Pos, BSTR ProgId);
[id(27)]
void Print(short FromPage, short ToPage, short nCopies, BOOL Collate);
[id(28)]
void Send();
[id(29)]
void Activate();
[id(30)]
void Close();
]
};
class Application //////
{
[properties:
[id(1)]
Documents Documents;
[id(2)]
Document ActiveDocument;
[id(3)]
BSTR ActivePrinter;
[id(9)]
Selection Selection;
]
[methods:
[id(4)]
void Activate();
[id(5)]
int CentimetersToPoints(int cm);
[id(6)]
void ChangeFileOpenDirectory(BSTR NewDir);
[id(7)]
void Help(Variant v);
[id(8)]
BOOL CheckSpelling(BSTR str);
[id(10)]
void ShowDialog(BSTR String);
]
};
class Documents //////
{
[properties:
[id(1)]
long Count;
[id(2)]
IUNKNOWN _NewEnum;
]
[methods:
[id(0)]
Document Item(VARIANT var);
[id(3)]
Document Add(BSTR TemplateName);
[id(5)]
Document Open(BSTR FileName);
]
};
class Selection //////
{
[properties:
[id(1)]
Document Document;
[id(2)]
long End;
[id(3)]
long Start;
[id(4)]
IDISPATCH Font;
[id(9)]
Paragraphs Paragraphs;
[id(10)]
Borders Borders;
[id(13)]
BSTR Style;
[id(14)]
IDISPATCH Shading;
]
[methods:
[id(5)]
void Collapse(VARIANT Direction);
[id(6)]
void Copy();
[id(7)]
void Cut();
[id(8)]
void Delete();
[id(11)]
void InsertBefore(BSTR str);
[id(12)]
void InsertAfter(BSTR str);
]
};
class IParagraph //////
{
[properties:
[id(1)]
AbConstants Alignment;
[id(2)]
float Before;
[id(3)]
float After;
[id(4)]
float Indent;
[id(5)]
float LeftMargin;
[id(6)]
float RightMargin;
[id(7)]
float RowSpaceAdd;
[id(8)]
float RowSpaceMul;
[id(9)]
Tabs Tabs;
[id(10)]
Borders Borders;
[id(11)]
IDISPATCH Shading;
]
};
class Paragraphs //////
{
[properties:
[id(1)]
long Count;
[id(2)]
IUNKNOWN _NewEnum;
]
[methods:
[id(0)]
IParagraph Item(long Index);
]
};
class Tab //////
{
[properties:
[id(1)]
float Pos;
[id(2)]
long Type;
]
};
class Tabs //////
{
[properties:
[id(1)]
long Count;
[id(2)]
IUNKNOWN _NewEnum;
]
[methods:
[id(3)]
void Delete(long Pos);
[id(4)]
long Add(float pos, long Type);
[id(0)]
Tab Item(long Index);
]
};
class Border //////
{
[properties:
[id(0)]
BorderLine Left;
[id(1)]
BorderLine Top;
[id(2)]
BorderLine Right;
[id(3)]
BorderLine Bottom;
[id(4)]
short Style;
[id(5)]
long Color;
]
[methods:
[id(6)]
void SetStyle(short Style);
[id(7)]
void RemoveStyle(short Style);
]
};
class BorderLine //////
{
[properties:
[id(0)]
short BorderStyle;
[id(1)]
long LineStyle;
[id(2)]
long Color;
]
};
class Borders //////
{
[properties:
[id(1)]
long Count;
[id(2)]
float Offset;
[id(3)]
IUNKNOWN _NewEnum;
]
[methods:
[id(0)]
Border Item(long Pos);
]
};
class Text //////
{
[properties:
[id(1)]
long Count;
]
[methods:
[id(0)]
VARIANT Item(long Pos);
[id(2)]
void Delete(long Pos, long Len);
[id(3)]
void Insert(long Pos, BSTR str);
[id(4)]
BSTR Mid(long Pos, long Len);
]
};
class Style //////
{
[properties:
[id(1)]
BSTR Name;
[id(2)]
BOOL IsParaStyle;
[id(3)]
IDISPATCH Font;
[id(4)]
Paragraph Paragraph;
]
};
class Styles //////
{
[properties:
[id(1)]
long Count;
[id(2)]
IUNKNOWN _NewEnum;
]
[methods:
[id(0)]
Style Item(VARIANT x);
[id(3)]
void Delete(BSTR Name);
[id(4)]
long New(BSTR Name);
]
};
class Frame
{
[properties:
[id(1)]
float PosX;
[id(2)]
float PosY;
[id(3)]
long PosXRelativeTo;
[id(4)]
long PosYRelativeTo;
[id(5)]
float PosXDistFromText;
[id(6)]
float PosYDistFromText;
[id(7)]
float SizeX;
[id(8)]
float SizeY;
[id(9)]
long HeightType;
[id(10)]
long TextWrapping;
[id(11)]
long CalloutAttachment;
[id(12)]
long ArrowheadStyle;
[id(13)]
long ArrowheadLength;
[id(14)]
long ArrowheadWidth;
[id(15)]
long CalloutLineStyle;
]
[methods:
[id(16)]
void SetFocus();
[id(17)]
void UnSetFocus();
]
};
class Frames
{
[properties:
[id(1)]
long Count;
[id(2)]
IUNKNOWN _NewEnum;
]
[methods:
[id(0)]
Frame Item(long Index);
[id(3)]
void Delete(long Index);
[id(4)]
long Add();
]
}
class Shading //////
{
[properties:
[id(1)]
long Style;
[id(2)]
long Color;
[id(3)]
long BackColor;
]
}
class AFont //////
{
[properties:
[id(1)]
long Size;
[id(2)]
long Bold;
[id(3)]
long Italic;
[id(4)]
long Underline;
[id(5)]
long Strikeout;
[id(6)]
BSTR Name;
[id(7)]
short Charset;
[id(8)]
long SuperScript;
[id(9)]
long SubScript;
[id(10)]
long Color;
]
}
class AOle //////
{
[properties:
[id(1)]
float SizeX;
[id(2)]
float SizeY;
[id(3)]
long Type;
]
}
class Fields //////
{
[properties:
[id(1)]
long Count;
[id(2)]
IUNKNOWN _NewEnum;
]
[methods:
[id(0)]
IDISPATCH Item(long Index);
]
}
class PageNumber //////
{
[properties:
[id(1)]
long Format;
[id(2)]
long StartAt;
[id(3)]
long Type;
]
}
class DateTime //////
{
[properties:
[id(1)]
long UseTime;
[id(2)]
long UseDate;
[id(3)]
long TimeFormat;
[id(4)]
long DateFormat;
[id(5)]
long Type;
]
}
class ACaption //////
{
[properties:
[id(1)]
long Type;
[id(2)]
BSTR Label;
[id(3)]
long Format;
[id(4)]
long StartAt;
[id(5)]
long AutoCaption;
]
}
class FootNote //////
{
[properties:
[id(1)]
long Format;
[id(2)]
BOOL ForPage;
[id(3)]
long StartAt;
[id(4)]
long Type;
]
}
class APicture //////
{
[properties:
[id(1)]
long Type;
[id(2)]
float SizeX;
[id(3)]
float SizeY;
]
[methods:
[id(4)]
void Load(BSTR File);
]
}
class WriteFX //////
{
[properties:
[id(1)]
long Type;
[id(2)]
float SizeX;
[id(3)]
float SizeY;
[id(4)]
long BackTexture;
[id(5)]
long BodyTexture;
[id(6)]
long BodyGradient;
[id(7)]
long BackGradient;
[id(8)]
long BodyStartColor;
[id(9)]
long BodyEndColor;
[id(10)]
long BackStartColor;
[id(11)]
long BackEndColor;
[id(12)]
long BackFillType;
[id(13)]
long BodyFillType;
[id(14)]
long Shape;
[id(15)]
long ShadowBlur;
[id(16)]
long ShadowDarkness;
[id(17)]
long ShadowXOffset;
[id(18)]
long ShadowYOffset;
[id(19)]
long BorderWidth;
[id(20)]
long BorderColor;
[id(21)]
long BorderPosition;
]
}