home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1996 March / buyer-0396.iso / abc.z / ABCAUTO.H < prev    next >
C/C++ Source or Header  |  1995-09-15  |  26KB  |  925 lines

  1. // Machine generated IDispatch driver class(es) created with ClassWizard.
  2.  
  3. /////////////////////////////////////////////////////////////////////////////
  4. // Application wrapper class
  5.  
  6. class Application : public COleDispatchDriver
  7. {
  8. // Attributes
  9. public:
  10.     LPDISPATCH GetActiveChart();
  11.     void SetActiveChart(LPDISPATCH);
  12.     LPDISPATCH GetApplication();
  13.     void SetApplication(LPDISPATCH);
  14.     long GetBottom();
  15.     void SetBottom(long);
  16.     CString GetCaption();
  17.     void SetCaption(const char*);
  18.     LPDISPATCH GetCharts();
  19.     void SetCharts(LPDISPATCH);
  20.     CString GetDefaultFilePath();
  21.     void SetDefaultFilePath(const char*);
  22.     BOOL GetFieldViewerVisible();
  23.     void SetFieldViewerVisible(BOOL);
  24.     long GetFieldViewerWindowHandle();
  25.     void SetFieldViewerWindowHandle(long);
  26.     CString GetFullName();
  27.     void SetFullName(const char*);
  28.     long GetHeight();
  29.     void SetHeight(long);
  30.     BOOL GetHourglass();
  31.     void SetHourglass(BOOL);
  32.     BOOL GetIndexVisible();
  33.     void SetIndexVisible(BOOL);
  34.     long GetIndexWindowHandle();
  35.     void SetIndexWindowHandle(long);
  36.     long GetLeft();
  37.     void SetLeft(long);
  38.     CString GetName();
  39.     void SetName(const char*);
  40.     BOOL GetNoteViewerVisible();
  41.     void SetNoteViewerVisible(BOOL);
  42.     long GetNoteViewerWindowHandle();
  43.     void SetNoteViewerWindowHandle(long);
  44.     CString GetOperatingSystem();
  45.     void SetOperatingSystem(const char*);
  46.     LPDISPATCH GetParent();
  47.     void SetParent(LPDISPATCH);
  48.     CString GetPath();
  49.     void SetPath(const char*);
  50.     short GetPercentGaugeValue();
  51.     void SetPercentGaugeValue(short);
  52.     LPDISPATCH GetPreferences();
  53.     void SetPreferences(LPDISPATCH);
  54.     CString GetPrinter();
  55.     void SetPrinter(const char*);
  56.     long GetRight();
  57.     void SetRight(long);
  58.     BOOL GetShapePaletteVisible();
  59.     void SetShapePaletteVisible(BOOL);
  60.     long GetShapePaletteWindowHandle();
  61.     void SetShapePaletteWindowHandle(long);
  62.     CString GetStatusBar();
  63.     void SetStatusBar(const char*);
  64.     long GetTop();
  65.     void SetTop(long);
  66.     BOOL GetUndoAvailable();
  67.     void SetUndoAvailable(BOOL);
  68.     CString GetVersion();
  69.     void SetVersion(const char*);
  70.     BOOL GetVisible();
  71.     void SetVisible(BOOL);
  72.     long GetWidth();
  73.     void SetWidth(long);
  74.     long GetWindowHandle();
  75.     void SetWindowHandle(long);
  76.     long GetWhite();
  77.     void SetWhite(long);
  78.     long GetBlack();
  79.     void SetBlack(long);
  80.     long GetRed();
  81.     void SetRed(long);
  82.     long GetGreen();
  83.     void SetGreen(long);
  84.     long GetBlue();
  85.     void SetBlue(long);
  86.     long GetYellow();
  87.     void SetYellow(long);
  88.     long GetMagenta();
  89.     void SetMagenta(long);
  90.     long GetCyan();
  91.     void SetCyan(long);
  92.     long GetGray();
  93.     void SetGray(long);
  94.     long GetDk_red();
  95.     void SetDk_red(long);
  96.     long GetDk_green();
  97.     void SetDk_green(long);
  98.     long GetDk_blue();
  99.     void SetDk_blue(long);
  100.     long GetDk_yellow();
  101.     void SetDk_yellow(long);
  102.     long GetDk_magenta();
  103.     void SetDk_magenta(long);
  104.     long GetDk_cyan();
  105.     void SetDk_cyan(long);
  106.     long GetDk_gray();
  107.     void SetDk_gray(long);
  108.     BOOL GetStatusBarVisible();
  109.     void SetStatusBarVisible(BOOL);
  110.     BOOL GetZoomWindowVisible();
  111.     void SetZoomWindowVisible(BOOL);
  112.  
  113. // Operations
  114. public:
  115.     void Activate();
  116.     void ArrangeIcons();
  117.     long BasicColor(short Color);
  118.     void CascadeCharts();
  119.     void ChartTypeShutdown(const char* ChartType, const char* ApplicationName);
  120.     void CloseAll();
  121.     BOOL CreateAddOn(short Position, const char* HintName, const char* ProgramFileName, const VARIANT& IconFileName);
  122.     LPDISPATCH AddMenu(const char* MenuName, LPDISPATCH VBXDispatch, const char* ProgramName, const VARIANT& ChartType);
  123.     void Help(const VARIANT& HelpFileName, const VARIANT& HelpContext);
  124.     void HidePercentGauge();
  125.     void Hint(const char* HintText);
  126.     long MakeRGB(short Red, short Green, short Blue);
  127.     void Maximize();
  128.     void Minimize();
  129.     long MsgBox(const char* MessageText, const VARIANT& BoxType, const VARIANT& BoxTitle);
  130.     LPDISPATCH New();
  131.     LPDISPATCH NewFromTemplate(const char* TemplateName);
  132.     LPDISPATCH Open(const char* PathName, const VARIANT& AsReadOnly);
  133.     void PercentGauge(const VARIANT& TitleBar, const VARIANT& TextLine1, const VARIANT& TextLine2);
  134.     BOOL PercentGaugeCancelled();
  135.     void Quit();
  136.     BOOL RegisterEvent(LPDISPATCH VBXDispatch, const char* ProgramName, const char* EventName, const VARIANT& ChartType);
  137.     BOOL RemoveAddOn(const VARIANT& Key);
  138.     void RemoveMenu(const char* MenuName);
  139.     void Restore();
  140.     void TileCharts();
  141.     BOOL Undo();
  142.     BOOL UnRegisterEvent(LPDISPATCH VBXDispatch, const VARIANT& EventName, const VARIANT& ChartType);
  143.     BOOL _UnRegAll(LPDISPATCH VBXDispatch);
  144. };
  145.  
  146. /////////////////////////////////////////////////////////////////////////////
  147. // Charts wrapper class
  148.  
  149. class Charts : public COleDispatchDriver
  150. {
  151. // Attributes
  152. public:
  153.     LPDISPATCH GetApplication();
  154.     void SetApplication(LPDISPATCH);
  155.     long GetCount();
  156.     void SetCount(long);
  157.     LPDISPATCH GetParent();
  158.     void SetParent(LPDISPATCH);
  159.  
  160. // Operations
  161. public:
  162.     LPDISPATCH Add();
  163.     LPDISPATCH AddFromTemplate(const char* TemplateName);
  164.     void CloseAll();
  165.     LPDISPATCH Item(const VARIANT& PathName);
  166.     LPDISPATCH Open(const char* PathName, const VARIANT& AsReadOnly);
  167. };
  168.  
  169. /////////////////////////////////////////////////////////////////////////////
  170. // Chart wrapper class
  171.  
  172. class Chart : public COleDispatchDriver
  173. {
  174. // Attributes
  175. public:
  176.     LPDISPATCH GetApplication();
  177.     void SetApplication(LPDISPATCH);
  178.     short GetCurrentLineRouting();
  179.     void SetCurrentLineRouting(short);
  180.     CString GetCurrentShape();
  181.     void SetCurrentShape(const char*);
  182.     CString GetCurrentShapePalette();
  183.     void SetCurrentShapePalette(const char*);
  184.     short GetDrawDirection();
  185.     void SetDrawDirection(short);
  186.     double GetDrawPositionX();
  187.     void SetDrawPositionX(double);
  188.     double GetDrawPositionY();
  189.     void SetDrawPositionY(double);
  190.     double GetDrawSpacingX();
  191.     void SetDrawSpacingX(double);
  192.     double GetDrawSpacingY();
  193.     void SetDrawSpacingY(double);
  194.     LPDISPATCH GetFieldFont();
  195.     void SetFieldFont(LPDISPATCH);
  196.     BOOL GetFieldNamesHidden();
  197.     void SetFieldNamesHidden(BOOL);
  198.     short GetFieldPlacement();
  199.     void SetFieldPlacement(short);
  200.     short GetFieldsDaysPerWeek();
  201.     void SetFieldsDaysPerWeek(short);
  202.     short GetFieldsHoursPerDay();
  203.     void SetFieldsHoursPerDay(short);
  204.     BOOL GetFieldsOpaque();
  205.     void SetFieldsOpaque(BOOL);
  206.     LPDISPATCH GetFieldTemplates();
  207.     void SetFieldTemplates(LPDISPATCH);
  208.     CString GetFullName();
  209.     void SetFullName(const char*);
  210.     BOOL GetGuidelinesOn();
  211.     void SetGuidelinesOn(BOOL);
  212.     BOOL GetHasDiskFile();
  213.     void SetHasDiskFile(BOOL);
  214.     CString GetLaunchIndicator();
  215.     void SetLaunchIndicator(const char*);
  216.     BOOL GetLaunchShadow();
  217.     void SetLaunchShadow(BOOL);
  218.     short GetLineCrossoverSize();
  219.     void SetLineCrossoverSize(short);
  220.     short GetLineCrossoverStyle();
  221.     void SetLineCrossoverStyle(short);
  222.     CString GetLinkIndicator();
  223.     void SetLinkIndicator(const char*);
  224.     BOOL GetLinkShadow();
  225.     void SetLinkShadow(BOOL);
  226.     LPDISPATCH GetMasterItems();
  227.     void SetMasterItems(LPDISPATCH);
  228.     CString GetName();
  229.     void SetName(const char*);
  230.     CString GetNextNumber();
  231.     void SetNextNumber(const char*);
  232.     double GetNextShapeHeight();
  233.     void SetNextShapeHeight(double);
  234.     double GetNextShapeWidth();
  235.     void SetNextShapeWidth(double);
  236.     BOOL GetNoRepaint();
  237.     void SetNoRepaint(BOOL);
  238.     CString GetNoteIndicator();
  239.     void SetNoteIndicator(const char*);
  240.     BOOL GetNoteShadow();
  241.     void SetNoteShadow(BOOL);
  242.     LPDISPATCH GetObjects();
  243.     void SetObjects(LPDISPATCH);
  244.     LPDISPATCH GetNumberFont();
  245.     void SetNumberFont(LPDISPATCH);
  246.     short GetPageCount();
  247.     void SetPageCount(short);
  248.     LPDISPATCH GetPageLayout();
  249.     void SetPageLayout(LPDISPATCH);
  250.     LPDISPATCH GetParent();
  251.     void SetParent(LPDISPATCH);
  252.     BOOL GetProtected();
  253.     void SetProtected(BOOL);
  254.     BOOL GetReadOnly();
  255.     void SetReadOnly(BOOL);
  256.     BOOL GetSaved();
  257.     void SetSaved(BOOL);
  258.     double GetScrollLeft();
  259.     void SetScrollLeft(double);
  260.     double GetScrollTop();
  261.     void SetScrollTop(double);
  262.     long GetSelectedLineCount();
  263.     void SetSelectedLineCount(long);
  264.     long GetSelectedObjectCount();
  265.     void SetSelectedObjectCount(long);
  266.     long GetSelectedOtherCount();
  267.     void SetSelectedOtherCount(long);
  268.     long GetSelectedShapeCount();
  269.     void SetSelectedShapeCount(long);
  270.     BOOL GetShowLegend();
  271.     void SetShowLegend(BOOL);
  272.     BOOL GetShowNodesOnLines();
  273.     void SetShowNodesOnLines(BOOL);
  274.     CString GetType();
  275.     void SetType(const char*);
  276.     BOOL GetTypeRequiresEXE();
  277.     void SetTypeRequiresEXE(BOOL);
  278.     BOOL GetTypeUsesEXE();
  279.     void SetTypeUsesEXE(BOOL);
  280.     short GetUnits();
  281.     void SetUnits(short);
  282.     BOOL GetValid();
  283.     void SetValid(BOOL);
  284.     short GetView();
  285.     void SetView(short);
  286.     long GetWindowHandle();
  287.     void SetWindowHandle(long);
  288.     short GetZoomPercentage();
  289.     void SetZoomPercentage(short);
  290.  
  291. // Operations
  292. public:
  293.     void Activate();
  294.     void AddHorizontalGuideline(double Position);
  295.     void AddVerticalGuideline(double Position);
  296.     void CancelFullScreen();
  297.     void ClearGuidelines();
  298.     BOOL Clear();
  299.     BOOL ClipboardFormatAvailable(short Format);
  300.     void CloseChart();
  301.     BOOL Copy();
  302.     BOOL Cut();
  303.     void DeselectAll();
  304.     LPDISPATCH DrawFreeLine(double HorizontalLocation, double VerticalLocation);
  305.     LPDISPATCH DrawLine(LPDISPATCH ShapeObject1, LPDISPATCH ShapeObject2, const VARIANT& ExitDirection, const VARIANT& EnterDirection);
  306.     LPDISPATCH DrawLineToOneObject(LPDISPATCH ShapeObject, const VARIANT& EnterDirection);
  307.     LPDISPATCH DrawShape(const VARIANT& ShapeName);
  308.     LPDISPATCH DrawTextBlock(const char* TextString);
  309.     BOOL Duplicate();
  310.     BOOL FullScreen();
  311.     LPDISPATCH GroupAndLink(const VARIANT& NewChartName, const VARIANT& FieldsLinked);
  312.     LPDISPATCH InsertObjectFromFile(const char* Filename, const VARIANT& AsIcon, const VARIANT& AsLink);
  313.     void Maximize();
  314.     void Minimize();
  315.     BOOL Paste(double HorizontalLocation, double VerticalLocation);
  316.     BOOL PasteLink(double HorizontalLocation, double VerticalLocation);
  317.     BOOL PasteSpecial(short Format, const VARIANT& AsIcon, double HorizontalLocation, double VerticalLocation);
  318.     BOOL PrintOut(const VARIANT& FromPage, const VARIANT& ToPage, const VARIANT& Copies, const VARIANT& FitToPage, const VARIANT& PrintNotes);
  319.     BOOL PrintSelected(const VARIANT& Copies, const VARIANT& FitToPage, const VARIANT& PrintNotes);
  320.     void Repaint();
  321.     void Restore();
  322.     void RevertToSaved();
  323.     BOOL Save(const VARIANT& Path, const VARIANT& FileType);
  324.     void ScrollPage(short PageNumber);
  325.     void Select(short Value);
  326.     void SelectShapeType(const char* ShapeName);
  327.     BOOL SendMail();
  328.     void SetDefaults(LPDISPATCH DefaultObject);
  329.     void SetProtection(BOOL Protect, const char* Password);
  330.     void Spelling();
  331.     void ToBack();
  332.     void ToFront();
  333.     void UpdateFields();
  334.     void PrintPreview();
  335.     long ReplaceText(const char* FindText, const char* ReplacementText, const VARIANT& MatchCase, const VARIANT& WholeWord);
  336.     BOOL Export(const char* Filename);
  337.     BOOL SpaceEvenly(short Direction);
  338.     BOOL MakeSameSize(short AccordingTo);
  339.     BOOL Align(short By);
  340.     BOOL Clear_();
  341.     LPDISPATCH ImportShape(const char* Filename);
  342.     void ScrollPosition(double LeftDistance, double TopDistance);
  343. };
  344.  
  345. /////////////////////////////////////////////////////////////////////////////
  346. // FieldTemplates wrapper class
  347.  
  348. class FieldTemplates : public COleDispatchDriver
  349. {
  350. // Attributes
  351. public:
  352.     LPDISPATCH GetApplication();
  353.     void SetApplication(LPDISPATCH);
  354.     long GetCount();
  355.     void SetCount(long);
  356.     LPDISPATCH GetParent();
  357.     void SetParent(LPDISPATCH);
  358.  
  359. // Operations
  360. public:
  361.     LPDISPATCH Add(const char* FieldName, const VARIANT& FieldType);
  362.     void DeleteField(LPDISPATCH FieldTemplateObject);
  363.     LPDISPATCH Item(const VARIANT& CountOrFieldName, const VARIANT& FieldType);
  364. };
  365.  
  366. /////////////////////////////////////////////////////////////////////////////
  367. // FieldTemplate wrapper class
  368.  
  369. class FieldTemplate : public COleDispatchDriver
  370. {
  371. // Attributes
  372. public:
  373.     double GetAccumulation();
  374.     void SetAccumulation(double);
  375.     short GetAccumulationMethod();
  376.     void SetAccumulationMethod(short);
  377.     LPDISPATCH GetApplication();
  378.     void SetApplication(LPDISPATCH);
  379.     LPDISPATCH GetParent();
  380.     void SetParent(LPDISPATCH);
  381.     short GetFormat();
  382.     void SetFormat(short);
  383.     BOOL GetHidden();
  384.     void SetHidden(BOOL);
  385.     CString GetName();
  386.     void SetName(const char*);
  387.     short GetType();
  388.     void SetType(short);
  389.  
  390. // Operations
  391. public:
  392. };
  393.  
  394. /////////////////////////////////////////////////////////////////////////////
  395. // FieldValues wrapper class
  396.  
  397. class FieldValues : public COleDispatchDriver
  398. {
  399. // Attributes
  400. public:
  401.     LPDISPATCH GetApplication();
  402.     void SetApplication(LPDISPATCH);
  403.     long GetCount();
  404.     void SetCount(long);
  405.     LPDISPATCH GetParent();
  406.     void SetParent(LPDISPATCH);
  407.  
  408. // Operations
  409. public:
  410.     LPDISPATCH Item(const VARIANT& CountOrFileName, const VARIANT& FieldType);
  411. };
  412.  
  413. /////////////////////////////////////////////////////////////////////////////
  414. // FieldValue wrapper class
  415.  
  416. class FieldValue : public COleDispatchDriver
  417. {
  418. // Attributes
  419. public:
  420.     LPDISPATCH GetApplication();
  421.     void SetApplication(LPDISPATCH);
  422.     LPDISPATCH GetParent();
  423.     void SetParent(LPDISPATCH);
  424.     short GetDay();
  425.     void SetDay(short);
  426.     LPDISPATCH GetFieldTemplate();
  427.     void SetFieldTemplate(LPDISPATCH);
  428.     CString GetFormattedValue();
  429.     void SetFormattedValue(const char*);
  430.     BOOL GetIsEmpty();
  431.     void SetIsEmpty(BOOL);
  432.     short GetMonth();
  433.     void SetMonth(short);
  434.     CString GetName();
  435.     void SetName(const char*);
  436.     short GetType();
  437.     void SetType(short);
  438.     VARIANT GetValue();
  439.     void SetValue(const VARIANT&);
  440.     short GetYear();
  441.     void SetYear(short);
  442.  
  443. // Operations
  444. public:
  445.     void Empty();
  446. };
  447.  
  448. /////////////////////////////////////////////////////////////////////////////
  449. // FontObject wrapper class
  450.  
  451. class FontObject : public COleDispatchDriver
  452. {
  453. // Attributes
  454. public:
  455.     LPDISPATCH GetApplication();
  456.     void SetApplication(LPDISPATCH);
  457.     BOOL GetBold();
  458.     void SetBold(BOOL);
  459.     long GetColor();
  460.     void SetColor(long);
  461.     BOOL GetItalic();
  462.     void SetItalic(BOOL);
  463.     CString GetName();
  464.     void SetName(const char*);
  465.     BOOL GetOpaque();
  466.     void SetOpaque(BOOL);
  467.     LPDISPATCH GetParent();
  468.     void SetParent(LPDISPATCH);
  469.     double GetSize();
  470.     void SetSize(double);
  471.     BOOL GetStrikethrough();
  472.     void SetStrikethrough(BOOL);
  473.     BOOL GetUnderline();
  474.     void SetUnderline(BOOL);
  475.  
  476. // Operations
  477. public:
  478. };
  479.  
  480. /////////////////////////////////////////////////////////////////////////////
  481. // LineObject wrapper class
  482.  
  483. class LineObject : public COleDispatchDriver
  484. {
  485. // Attributes
  486. public:
  487.     LPDISPATCH GetApplication();
  488.     void SetApplication(LPDISPATCH);
  489.     long GetColor();
  490.     void SetColor(long);
  491.     long GetDestArrowColor();
  492.     void SetDestArrowColor(long);
  493.     short GetDestArrowSize();
  494.     void SetDestArrowSize(short);
  495.     short GetDestArrowStyle();
  496.     void SetDestArrowStyle(short);
  497.     LPDISPATCH GetDestination();
  498.     void SetDestination(LPDISPATCH);
  499.     short GetDestinationDirection();
  500.     void SetDestinationDirection(short);
  501.     LPDISPATCH GetParent();
  502.     void SetParent(LPDISPATCH);
  503.     LPDISPATCH GetSource();
  504.     void SetSource(LPDISPATCH);
  505.     long GetSourceArrowColor();
  506.     void SetSourceArrowColor(long);
  507.     short GetSourceArrowStyle();
  508.     void SetSourceArrowStyle(short);
  509.     short GetSourceArrowSize();
  510.     void SetSourceArrowSize(short);
  511.     short GetSourceDirection();
  512.     void SetSourceDirection(short);
  513.     long GetStemColor();
  514.     void SetStemColor(long);
  515.     short GetStemStyle();
  516.     void SetStemStyle(short);
  517.     short GetStemWidth();
  518.     void SetStemWidth(short);
  519.     short GetType();
  520.     void SetType(short);
  521.     short GetRouting();
  522.     void SetRouting(short);
  523.     short GetCrossoverSize();
  524.     void SetCrossoverSize(short);
  525.     short GetCrossoverStyle();
  526.     void SetCrossoverStyle(short);
  527.  
  528. // Operations
  529. public:
  530.     BOOL AttachText(LPDISPATCH TextObject, const VARIANT& LineSegment);
  531.     BOOL ReconnectDest(LPDISPATCH ShapeObject, const VARIANT& EnterDirection);
  532.     BOOL ReconnectSource(LPDISPATCH ShapeObject, const VARIANT& ExitDirection);
  533. };
  534.  
  535. /////////////////////////////////////////////////////////////////////////////
  536. // MasterItems wrapper class
  537.  
  538. class MasterItems : public COleDispatchDriver
  539. {
  540. // Attributes
  541. public:
  542.     LPDISPATCH GetApplication();
  543.     void SetApplication(LPDISPATCH);
  544.     LPDISPATCH GetChartName();
  545.     void SetChartName(LPDISPATCH);
  546.     BOOL GetChartNameShown();
  547.     void SetChartNameShown(BOOL);
  548.     LPDISPATCH GetDate();
  549.     void SetDate(LPDISPATCH);
  550.     BOOL GetDateShown();
  551.     void SetDateShown(BOOL);
  552.     short GetDateStyle();
  553.     void SetDateStyle(short);
  554.     LPDISPATCH GetLogo();
  555.     void SetLogo(LPDISPATCH);
  556.     BOOL GetLogoShown();
  557.     void SetLogoShown(BOOL);
  558.     LPDISPATCH GetPageNumber();
  559.     void SetPageNumber(LPDISPATCH);
  560.     BOOL GetPageNumberShown();
  561.     void SetPageNumberShown(BOOL);
  562.     LPDISPATCH GetParent();
  563.     void SetParent(LPDISPATCH);
  564.     short GetRange();
  565.     void SetRange(short);
  566.     LPDISPATCH GetText1();
  567.     void SetText1(LPDISPATCH);
  568.     LPDISPATCH GetText2();
  569.     void SetText2(LPDISPATCH);
  570.     BOOL GetText1Shown();
  571.     void SetText1Shown(BOOL);
  572.     BOOL GetText2Shown();
  573.     void SetText2Shown(BOOL);
  574.     LPDISPATCH GetTime();
  575.     void SetTime(LPDISPATCH);
  576.     BOOL GetTimeShown();
  577.     void SetTimeShown(BOOL);
  578.     CString GetLogoPathname();
  579.     void SetLogoPathname(const char*);
  580.  
  581. // Operations
  582. public:
  583.     void HideAll();
  584.     void ShowAll();
  585.     void UpdateDateAndTime(const VARIANT& Date, const VARIANT& Time);
  586. };
  587.  
  588. /////////////////////////////////////////////////////////////////////////////
  589. // MenuObject wrapper class
  590.  
  591. class MenuObject : public COleDispatchDriver
  592. {
  593. // Attributes
  594. public:
  595.     LPDISPATCH GetApplication();
  596.     void SetApplication(LPDISPATCH);
  597.     long GetCount();
  598.     void SetCount(long);
  599.     LPDISPATCH GetParent();
  600.     void SetParent(LPDISPATCH);
  601.     CString GetText();
  602.     void SetText(const char*);
  603.     BOOL GetVisible();
  604.     void SetVisible(BOOL);
  605.  
  606. // Operations
  607. public:
  608.     LPDISPATCH AppendItem(const char* ItemName);
  609.     void DeleteAll();
  610.     void DeleteItem(LPDISPATCH MenuItem);
  611.     LPDISPATCH InsertItem(const char* ItemName, const VARIANT& PreviousItemOrPos);
  612.     LPDISPATCH GetItem(const VARIANT& ItemTextOrPostion);
  613. };
  614.  
  615. /////////////////////////////////////////////////////////////////////////////
  616. // MenuItem wrapper class
  617.  
  618. class MenuItem : public COleDispatchDriver
  619. {
  620. // Attributes
  621. public:
  622.     LPDISPATCH GetApplication();
  623.     void SetApplication(LPDISPATCH);
  624.     BOOL GetChecked();
  625.     void SetChecked(BOOL);
  626.     BOOL GetEnabled();
  627.     void SetEnabled(BOOL);
  628.     LPDISPATCH GetParent();
  629.     void SetParent(LPDISPATCH);
  630.     CString GetText();
  631.     void SetText(const char*);
  632.  
  633. // Operations
  634. public:
  635. };
  636.  
  637. /////////////////////////////////////////////////////////////////////////////
  638. // Objects wrapper class
  639.  
  640. class Objects : public COleDispatchDriver
  641. {
  642. // Attributes
  643. public:
  644.     LPDISPATCH GetApplication();
  645.     void SetApplication(LPDISPATCH);
  646.     long GetCount();
  647.     void SetCount(long);
  648.     LPDISPATCH GetParent();
  649.     void SetParent(LPDISPATCH);
  650.  
  651. // Operations
  652. public:
  653.     LPDISPATCH Item(long Count);
  654.     LPDISPATCH ItemFromAll();
  655.     LPDISPATCH ItemFromAttachments(LPDISPATCH ObjectWithAttach1, LPDISPATCH ObjectWithAttach2);
  656.     LPDISPATCH ItemFromFieldValue(LPDISPATCH FieldTemplateObject, const VARIANT& Value);
  657.     LPDISPATCH ItemFromLines();
  658.     LPDISPATCH ItemFromShapes();
  659.     LPDISPATCH ItemFromSelection();
  660.     LPDISPATCH ItemFromNumber(const VARIANT& Value);
  661.     LPDISPATCH ItemFromText(const char* Text);
  662.     LPDISPATCH ItemFromUniqueID(long UniqueID);
  663.     void ResetSearch();
  664. };
  665.  
  666. /////////////////////////////////////////////////////////////////////////////
  667. // Object wrapper class
  668.  
  669. class Object : public COleDispatchDriver
  670. {
  671. // Attributes
  672. public:
  673.     LPDISPATCH GetApplication();
  674.     void SetApplication(LPDISPATCH);
  675.     double GetBottom();
  676.     void SetBottom(double);
  677.     double GetCenterX();
  678.     void SetCenterX(double);
  679.     double GetCenterY();
  680.     void SetCenterY(double);
  681.     long GetColor();
  682.     void SetColor(long);
  683.     LPDISPATCH GetFieldValues();
  684.     void SetFieldValues(LPDISPATCH);
  685.     LPDISPATCH GetFont();
  686.     void SetFont(LPDISPATCH);
  687.     double GetHeight();
  688.     void SetHeight(double);
  689.     double GetLeft();
  690.     void SetLeft(double);
  691.     LPDISPATCH GetLine();
  692.     void SetLine(LPDISPATCH);
  693.     LPDISPATCH GetOle();
  694.     void SetOle(LPDISPATCH);
  695.     LPDISPATCH GetParent();
  696.     void SetParent(LPDISPATCH);
  697.     double GetRight();
  698.     void SetRight(double);
  699.     BOOL GetSelected();
  700.     void SetSelected(BOOL);
  701.     LPDISPATCH GetShape();
  702.     void SetShape(LPDISPATCH);
  703.     short GetStretchType();
  704.     void SetStretchType(short);
  705.     CString GetText();
  706.     void SetText(const char*);
  707.     CString GetTextLF();
  708.     void SetTextLF(const char*);
  709.     short GetTextAlignment();
  710.     void SetTextAlignment(short);
  711.     LPDISPATCH GetTextBlock();
  712.     void SetTextBlock(LPDISPATCH);
  713.     double GetTop();
  714.     void SetTop(double);
  715.     short GetType();
  716.     void SetType(short);
  717.     long GetUniqueID();
  718.     void SetUniqueID(long);
  719.     BOOL GetValid();
  720.     void SetValid(BOOL);
  721.     double GetWidth();
  722.     void SetWidth(double);
  723.     BOOL GetFlippedVertical();
  724.     void SetFlippedVertical(BOOL);
  725.     BOOL GetFlippedHorizontal();
  726.     void SetFlippedHorizontal(BOOL);
  727.     short GetRotation();
  728.     void SetRotation(short);
  729.     LPDISPATCH GetLine_();
  730.     void SetLine_(LPDISPATCH);
  731.  
  732. // Operations
  733. public:
  734.     BOOL Clear();
  735.     LPDISPATCH Duplicate();
  736.     void Repaint();
  737.     void RestorePicture();
  738.     void ToBack();
  739.     void ToFront();
  740.     void ApplyDefaults();
  741.     BOOL Clear_();
  742. };
  743.  
  744. /////////////////////////////////////////////////////////////////////////////
  745. // OLEObject wrapper class
  746.  
  747. class OLEObject : public COleDispatchDriver
  748. {
  749. // Attributes
  750. public:
  751.     LPDISPATCH GetApplication();
  752.     void SetApplication(LPDISPATCH);
  753.     CString GetObjectType();
  754.     void SetObjectType(const char*);
  755.     LPDISPATCH GetParent();
  756.     void SetParent(LPDISPATCH);
  757.  
  758. // Operations
  759. public:
  760.     void DoVerb(const VARIANT& Verb);
  761.     void RestorePicture();
  762. };
  763.  
  764. /////////////////////////////////////////////////////////////////////////////
  765. // PageLayout wrapper class
  766.  
  767. class PageLayout : public COleDispatchDriver
  768. {
  769. // Attributes
  770. public:
  771.     LPDISPATCH GetApplication();
  772.     void SetApplication(LPDISPATCH);
  773.     double GetHeight();
  774.     void SetHeight(double);
  775.     double GetMarginBottom();
  776.     void SetMarginBottom(double);
  777.     double GetMarginLeft();
  778.     void SetMarginLeft(double);
  779.     double GetMarginRight();
  780.     void SetMarginRight(double);
  781.     double GetMarginTop();
  782.     void SetMarginTop(double);
  783.     short GetOrientation();
  784.     void SetOrientation(short);
  785.     double GetPageHeight();
  786.     void SetPageHeight(double);
  787.     double GetPageWidth();
  788.     void SetPageWidth(double);
  789.     short GetPageOrder();
  790.     void SetPageOrder(short);
  791.     CString GetPaperSize();
  792.     void SetPaperSize(const char*);
  793.     LPDISPATCH GetParent();
  794.     void SetParent(LPDISPATCH);
  795.     BOOL GetPrintBlankPages();
  796.     void SetPrintBlankPages(BOOL);
  797.     double GetWidth();
  798.     void SetWidth(double);
  799.  
  800. // Operations
  801. public:
  802. };
  803.  
  804. /////////////////////////////////////////////////////////////////////////////
  805. // Preferences wrapper class
  806.  
  807. class Preferences : public COleDispatchDriver
  808. {
  809. // Attributes
  810. public:
  811.     short GetAlignToRulers();
  812.     void SetAlignToRulers(short);
  813.     LPDISPATCH GetApplication();
  814.     void SetApplication(LPDISPATCH);
  815.     BOOL GetChannelAlignment();
  816.     void SetChannelAlignment(BOOL);
  817.     double GetLineSpacingX();
  818.     void SetLineSpacingX(double);
  819.     double GetLineSpacingY();
  820.     void SetLineSpacingY(double);
  821.     LPDISPATCH GetParent();
  822.     void SetParent(LPDISPATCH);
  823.     short GetShapeSizing();
  824.     void SetShapeSizing(short);
  825.     BOOL GetShowRulers();
  826.     void SetShowRulers(BOOL);
  827.     BOOL GetSmartShapeSpacing();
  828.     void SetSmartShapeSpacing(BOOL);
  829.     double GetSSSHorizontal();
  830.     void SetSSSHorizontal(double);
  831.     double GetSSSVertical();
  832.     void SetSSSVertical(double);
  833.     BOOL GetTouchAlignment();
  834.     void SetTouchAlignment(BOOL);
  835.     short GetUnits();
  836.     void SetUnits(short);
  837.  
  838. // Operations
  839. public:
  840. };
  841.  
  842. /////////////////////////////////////////////////////////////////////////////
  843. // ShapeObject wrapper class
  844.  
  845. class ShapeObject : public COleDispatchDriver
  846. {
  847. // Attributes
  848. public:
  849.     LPDISPATCH GetApplication();
  850.     void SetApplication(LPDISPATCH);
  851.     long GetBorderColor();
  852.     void SetBorderColor(long);
  853.     short GetBorderStyle();
  854.     void SetBorderStyle(short);
  855.     short GetBorderWidth();
  856.     void SetBorderWidth(short);
  857.     long GetFillColor();
  858.     void SetFillColor(long);
  859.     short GetFillPattern();
  860.     void SetFillPattern(short);
  861.     BOOL GetIsLaunched();
  862.     void SetIsLaunched(BOOL);
  863.     BOOL GetIsLinked();
  864.     void SetIsLinked(BOOL);
  865.     CString GetLaunchCommand();
  866.     void SetLaunchCommand(const char*);
  867.     short GetLaunchFlags();
  868.     void SetLaunchFlags(short);
  869.     CString GetLaunchStartDir();
  870.     void SetLaunchStartDir(const char*);
  871.     CString GetLinkedChartName();
  872.     void SetLinkedChartName(const char*);
  873.     BOOL GetLinkFields();
  874.     void SetLinkFields(BOOL);
  875.     LPDISPATCH GetNoteFont();
  876.     void SetNoteFont(LPDISPATCH);
  877.     CString GetNoteText();
  878.     void SetNoteText(const char*);
  879.     CString GetNoteTextLF();
  880.     void SetNoteTextLF(const char*);
  881.     CString GetNumber();
  882.     void SetNumber(const char*);
  883.     BOOL GetNumberShown();
  884.     void SetNumberShown(BOOL);
  885.     LPDISPATCH GetParent();
  886.     void SetParent(LPDISPATCH);
  887.     long GetShadowColor();
  888.     void SetShadowColor(long);
  889.     short GetShadowOffset();
  890.     void SetShadowOffset(short);
  891.     short GetShadowStyle();
  892.     void SetShadowStyle(short);
  893.     CString GetShapeName();
  894.     void SetShapeName(const char*);
  895.  
  896. // Operations
  897. public:
  898.     void DeleteLines();
  899.     void FitShapeToText();
  900.     BOOL Launch();
  901.     LPDISPATCH Link();
  902.     void Renumber();
  903.     BOOL ReplaceShape(const VARIANT& ShapeName);
  904. };
  905.  
  906. /////////////////////////////////////////////////////////////////////////////
  907. // TextBlock wrapper class
  908.  
  909. class TextBlock : public COleDispatchDriver
  910. {
  911. // Attributes
  912. public:
  913.     LPDISPATCH GetApplication();
  914.     void SetApplication(LPDISPATCH);
  915.     BOOL GetAttachedToLine();
  916.     void SetAttachedToLine(BOOL);
  917.     LPDISPATCH GetParent();
  918.     void SetParent(LPDISPATCH);
  919.  
  920. // Operations
  921. public:
  922.     void UnattachFromLine();
  923. };
  924.  
  925.