msword9.h
上传用户:tjyzx0508
上传日期:2013-02-16
资源大小:254k
文件大小:26k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. // Machine generated IDispatch wrapper class(es) created with ClassWizard
  2. /////////////////////////////////////////////////////////////////////////////
  3. // _Application wrapper class
  4. class _Application : public COleDispatchDriver
  5. {
  6. public:
  7. _Application() {} // Calls COleDispatchDriver default constructor
  8. _Application(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  9. _Application(const _Application& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  10. // Attributes
  11. public:
  12. // Operations
  13. public:
  14. LPDISPATCH GetApplication();
  15. long GetCreator();
  16. LPDISPATCH GetParent();
  17. CString GetName();
  18. LPDISPATCH GetDocuments();
  19. LPDISPATCH GetWindows();
  20. LPDISPATCH GetActiveDocument();
  21. LPDISPATCH GetActiveWindow();
  22. LPDISPATCH GetSelection();
  23. LPDISPATCH GetWordBasic();
  24. LPDISPATCH GetRecentFiles();
  25. LPDISPATCH GetNormalTemplate();
  26. LPDISPATCH GetSystem();
  27. LPDISPATCH GetAutoCorrect();
  28. LPDISPATCH GetFontNames();
  29. LPDISPATCH GetLandscapeFontNames();
  30. LPDISPATCH GetPortraitFontNames();
  31. LPDISPATCH GetLanguages();
  32. LPDISPATCH GetAssistant();
  33. LPDISPATCH GetBrowser();
  34. LPDISPATCH GetFileConverters();
  35. LPDISPATCH GetMailingLabel();
  36. LPDISPATCH GetDialogs();
  37. LPDISPATCH GetCaptionLabels();
  38. LPDISPATCH GetAutoCaptions();
  39. LPDISPATCH GetAddIns();
  40. BOOL GetVisible();
  41. void SetVisible(BOOL bNewValue);
  42. CString GetVersion();
  43. BOOL GetScreenUpdating();
  44. void SetScreenUpdating(BOOL bNewValue);
  45. BOOL GetPrintPreview();
  46. void SetPrintPreview(BOOL bNewValue);
  47. LPDISPATCH GetTasks();
  48. BOOL GetDisplayStatusBar();
  49. void SetDisplayStatusBar(BOOL bNewValue);
  50. BOOL GetSpecialMode();
  51. long GetUsableWidth();
  52. long GetUsableHeight();
  53. BOOL GetMathCoprocessorAvailable();
  54. BOOL GetMouseAvailable();
  55. VARIANT GetInternational(long Index);
  56. CString GetBuild();
  57. BOOL GetCapsLock();
  58. BOOL GetNumLock();
  59. CString GetUserName_();
  60. void SetUserName(LPCTSTR lpszNewValue);
  61. CString GetUserInitials();
  62. void SetUserInitials(LPCTSTR lpszNewValue);
  63. CString GetUserAddress();
  64. void SetUserAddress(LPCTSTR lpszNewValue);
  65. LPDISPATCH GetMacroContainer();
  66. BOOL GetDisplayRecentFiles();
  67. void SetDisplayRecentFiles(BOOL bNewValue);
  68. LPDISPATCH GetCommandBars();
  69. LPDISPATCH GetSynonymInfo(LPCTSTR Word, VARIANT* LanguageID);
  70. LPDISPATCH GetVbe();
  71. CString GetDefaultSaveFormat();
  72. void SetDefaultSaveFormat(LPCTSTR lpszNewValue);
  73. LPDISPATCH GetListGalleries();
  74. CString GetActivePrinter();
  75. void SetActivePrinter(LPCTSTR lpszNewValue);
  76. LPDISPATCH GetTemplates();
  77. LPDISPATCH GetCustomizationContext();
  78. void SetCustomizationContext(LPDISPATCH newValue);
  79. LPDISPATCH GetKeyBindings();
  80. LPDISPATCH GetKeysBoundTo(long KeyCategory, LPCTSTR Command, VARIANT* CommandParameter);
  81. LPDISPATCH GetFindKey(long KeyCode, VARIANT* KeyCode2);
  82. CString GetCaption();
  83. void SetCaption(LPCTSTR lpszNewValue);
  84. CString GetPath();
  85. BOOL GetDisplayScrollBars();
  86. void SetDisplayScrollBars(BOOL bNewValue);
  87. CString GetStartupPath();
  88. void SetStartupPath(LPCTSTR lpszNewValue);
  89. long GetBackgroundSavingStatus();
  90. long GetBackgroundPrintingStatus();
  91. long GetLeft();
  92. void SetLeft(long nNewValue);
  93. long GetTop();
  94. void SetTop(long nNewValue);
  95. long GetWidth();
  96. void SetWidth(long nNewValue);
  97. long GetHeight();
  98. void SetHeight(long nNewValue);
  99. long GetWindowState();
  100. void SetWindowState(long nNewValue);
  101. BOOL GetDisplayAutoCompleteTips();
  102. void SetDisplayAutoCompleteTips(BOOL bNewValue);
  103. LPDISPATCH GetOptions();
  104. long GetDisplayAlerts();
  105. void SetDisplayAlerts(long nNewValue);
  106. LPDISPATCH GetCustomDictionaries();
  107. CString GetPathSeparator();
  108. void SetStatusBar(LPCTSTR lpszNewValue);
  109. BOOL GetMAPIAvailable();
  110. BOOL GetDisplayScreenTips();
  111. void SetDisplayScreenTips(BOOL bNewValue);
  112. long GetEnableCancelKey();
  113. void SetEnableCancelKey(long nNewValue);
  114. BOOL GetUserControl();
  115. LPDISPATCH GetFileSearch();
  116. long GetMailSystem();
  117. CString GetDefaultTableSeparator();
  118. void SetDefaultTableSeparator(LPCTSTR lpszNewValue);
  119. BOOL GetShowVisualBasicEditor();
  120. void SetShowVisualBasicEditor(BOOL bNewValue);
  121. CString GetBrowseExtraFileTypes();
  122. void SetBrowseExtraFileTypes(LPCTSTR lpszNewValue);
  123. BOOL GetIsObjectValid(LPDISPATCH Object);
  124. LPDISPATCH GetHangulHanjaDictionaries();
  125. LPDISPATCH GetMailMessage();
  126. BOOL GetFocusInMailHeader();
  127. void Quit(VARIANT* SaveChanges, VARIANT* OriginalFormat, VARIANT* RouteDocument);
  128. void ScreenRefresh();
  129. void LookupNameProperties(LPCTSTR Name);
  130. void SubstituteFont(LPCTSTR UnavailableFont, LPCTSTR SubstituteFont);
  131. BOOL Repeat(VARIANT* Times);
  132. void DDEExecute(long Channel, LPCTSTR Command);
  133. long DDEInitiate(LPCTSTR App, LPCTSTR Topic);
  134. void DDEPoke(long Channel, LPCTSTR Item, LPCTSTR Data);
  135. CString DDERequest(long Channel, LPCTSTR Item);
  136. void DDETerminate(long Channel);
  137. void DDETerminateAll();
  138. long BuildKeyCode(long Arg1, VARIANT* Arg2, VARIANT* Arg3, VARIANT* Arg4);
  139. CString KeyString(long KeyCode, VARIANT* KeyCode2);
  140. void OrganizerCopy(LPCTSTR Source, LPCTSTR Destination, LPCTSTR Name, long Object);
  141. void OrganizerDelete(LPCTSTR Source, LPCTSTR Name, long Object);
  142. void OrganizerRename(LPCTSTR Source, LPCTSTR Name, LPCTSTR NewName, long Object);
  143. // method 'AddAddress' not emitted because of invalid return type or parameter type
  144. CString GetAddress(VARIANT* Name, VARIANT* AddressProperties, VARIANT* UseAutoText, VARIANT* DisplaySelectDialog, VARIANT* SelectDialog, VARIANT* CheckNamesDialog, VARIANT* RecentAddressesChoice, VARIANT* UpdateRecentAddresses);
  145. BOOL CheckGrammar(LPCTSTR String);
  146. BOOL CheckSpelling(LPCTSTR Word, VARIANT* CustomDictionary, VARIANT* IgnoreUppercase, VARIANT* MainDictionary, VARIANT* CustomDictionary2, VARIANT* CustomDictionary3, VARIANT* CustomDictionary4, VARIANT* CustomDictionary5,  VARIANT* CustomDictionary6, VARIANT* CustomDictionary7, VARIANT* CustomDictionary8, VARIANT* CustomDictionary9, VARIANT* CustomDictionary10);
  147. void ResetIgnoreAll();
  148. LPDISPATCH GetSpellingSuggestions(LPCTSTR Word, VARIANT* CustomDictionary, VARIANT* IgnoreUppercase, VARIANT* MainDictionary, VARIANT* SuggestionMode, VARIANT* CustomDictionary2, VARIANT* CustomDictionary3, VARIANT* CustomDictionary4,  VARIANT* CustomDictionary5, VARIANT* CustomDictionary6, VARIANT* CustomDictionary7, VARIANT* CustomDictionary8, VARIANT* CustomDictionary9, VARIANT* CustomDictionary10);
  149. void GoBack();
  150. void Help(VARIANT* HelpType);
  151. void AutomaticChange();
  152. void ShowMe();
  153. void HelpTool();
  154. LPDISPATCH NewWindow();
  155. void ListCommands(BOOL ListAllCommands);
  156. void ShowClipboard();
  157. void OnTime(VARIANT* When, LPCTSTR Name, VARIANT* Tolerance);
  158. void NextLetter();
  159. short MountVolume(LPCTSTR Zone, LPCTSTR Server, LPCTSTR Volume, VARIANT* User, VARIANT* UserPassword, VARIANT* VolumePassword);
  160. CString CleanString(LPCTSTR String);
  161. void SendFax();
  162. void ChangeFileOpenDirectory(LPCTSTR Path);
  163. void GoForward();
  164. void Move(long Left, long Top);
  165. void Resize(long Width, long Height);
  166. float InchesToPoints(float Inches);
  167. float CentimetersToPoints(float Centimeters);
  168. float MillimetersToPoints(float Millimeters);
  169. float PicasToPoints(float Picas);
  170. float LinesToPoints(float Lines);
  171. float PointsToInches(float Points);
  172. float PointsToCentimeters(float Points);
  173. float PointsToMillimeters(float Points);
  174. float PointsToPicas(float Points);
  175. float PointsToLines(float Points);
  176. void Activate();
  177. float PointsToPixels(float Points, VARIANT* fVertical);
  178. float PixelsToPoints(float Pixels, VARIANT* fVertical);
  179. void KeyboardLatin();
  180. void KeyboardBidi();
  181. void ToggleKeyboard();
  182. long Keyboard(long LangId);
  183. CString ProductCode();
  184. LPDISPATCH DefaultWebOptions();
  185. void SetDefaultTheme(LPCTSTR Name, long DocumentType);
  186. CString GetDefaultTheme(long DocumentType);
  187. LPDISPATCH GetEmailOptions();
  188. long GetLanguage();
  189. LPDISPATCH GetCOMAddIns();
  190. BOOL GetCheckLanguage();
  191. void SetCheckLanguage(BOOL bNewValue);
  192. LPDISPATCH GetLanguageSettings();
  193. LPDISPATCH GetAnswerWizard();
  194. long GetFeatureInstall();
  195. void SetFeatureInstall(long nNewValue);
  196. void PrintOut(VARIANT* Background, VARIANT* Append, VARIANT* Range, VARIANT* OutputFileName, VARIANT* From, VARIANT* To, VARIANT* Item, VARIANT* Copies, VARIANT* Pages, VARIANT* PageType, VARIANT* PrintToFile, VARIANT* Collate,  VARIANT* FileName, VARIANT* ActivePrinterMacGX, VARIANT* ManualDuplexPrint, VARIANT* PrintZoomColumn, VARIANT* PrintZoomRow, VARIANT* PrintZoomPaperWidth, VARIANT* PrintZoomPaperHeight);
  197. VARIANT Run(LPCTSTR MacroName, VARIANT* varg1, VARIANT* varg2, VARIANT* varg3, VARIANT* varg4, VARIANT* varg5, VARIANT* varg6, VARIANT* varg7, VARIANT* varg8, VARIANT* varg9, VARIANT* varg10, VARIANT* varg11, VARIANT* varg12, VARIANT* varg13,  VARIANT* varg14, VARIANT* varg15, VARIANT* varg16, VARIANT* varg17, VARIANT* varg18, VARIANT* varg19, VARIANT* varg20, VARIANT* varg21, VARIANT* varg22, VARIANT* varg23, VARIANT* varg24, VARIANT* varg25, VARIANT* varg26, VARIANT* varg27,  VARIANT* varg28, VARIANT* varg29, VARIANT* varg30);
  198. };
  199. /////////////////////////////////////////////////////////////////////////////
  200. // _Document wrapper class
  201. class _Document : public COleDispatchDriver
  202. {
  203. public:
  204. _Document() {} // Calls COleDispatchDriver default constructor
  205. _Document(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  206. _Document(const _Document& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  207. // Attributes
  208. public:
  209. // Operations
  210. public:
  211. CString GetName();
  212. LPDISPATCH GetApplication();
  213. long GetCreator();
  214. LPDISPATCH GetParent();
  215. LPDISPATCH GetBuiltInDocumentProperties();
  216. LPDISPATCH GetCustomDocumentProperties();
  217. CString GetPath();
  218. LPDISPATCH GetBookmarks();
  219. LPDISPATCH GetTables();
  220. LPDISPATCH GetFootnotes();
  221. LPDISPATCH GetEndnotes();
  222. LPDISPATCH GetComments();
  223. long GetType();
  224. BOOL GetAutoHyphenation();
  225. void SetAutoHyphenation(BOOL bNewValue);
  226. BOOL GetHyphenateCaps();
  227. void SetHyphenateCaps(BOOL bNewValue);
  228. long GetHyphenationZone();
  229. void SetHyphenationZone(long nNewValue);
  230. long GetConsecutiveHyphensLimit();
  231. void SetConsecutiveHyphensLimit(long nNewValue);
  232. LPDISPATCH GetSections();
  233. LPDISPATCH GetParagraphs();
  234. LPDISPATCH GetWords();
  235. LPDISPATCH GetSentences();
  236. LPDISPATCH GetCharacters();
  237. LPDISPATCH GetFields();
  238. LPDISPATCH GetFormFields();
  239. LPDISPATCH GetStyles();
  240. LPDISPATCH GetFrames();
  241. LPDISPATCH GetTablesOfFigures();
  242. LPDISPATCH GetVariables();
  243. LPDISPATCH GetMailMerge();
  244. LPDISPATCH GetEnvelope();
  245. CString GetFullName();
  246. LPDISPATCH GetRevisions();
  247. LPDISPATCH GetTablesOfContents();
  248. LPDISPATCH GetTablesOfAuthorities();
  249. LPDISPATCH GetPageSetup();
  250. void SetPageSetup(LPDISPATCH newValue);
  251. LPDISPATCH GetWindows();
  252. BOOL GetHasRoutingSlip();
  253. void SetHasRoutingSlip(BOOL bNewValue);
  254. LPDISPATCH GetRoutingSlip();
  255. BOOL GetRouted();
  256. LPDISPATCH GetTablesOfAuthoritiesCategories();
  257. LPDISPATCH GetIndexes();
  258. BOOL GetSaved();
  259. void SetSaved(BOOL bNewValue);
  260. LPDISPATCH GetContent();
  261. LPDISPATCH GetActiveWindow();
  262. long GetKind();
  263. void SetKind(long nNewValue);
  264. BOOL GetReadOnly();
  265. LPDISPATCH GetSubdocuments();
  266. BOOL GetIsMasterDocument();
  267. float GetDefaultTabStop();
  268. void SetDefaultTabStop(float newValue);
  269. BOOL GetEmbedTrueTypeFonts();
  270. void SetEmbedTrueTypeFonts(BOOL bNewValue);
  271. BOOL GetSaveFormsData();
  272. void SetSaveFormsData(BOOL bNewValue);
  273. BOOL GetReadOnlyRecommended();
  274. void SetReadOnlyRecommended(BOOL bNewValue);
  275. BOOL GetSaveSubsetFonts();
  276. void SetSaveSubsetFonts(BOOL bNewValue);
  277. BOOL GetCompatibility(long Type);
  278. void SetCompatibility(long Type, BOOL bNewValue);
  279. LPDISPATCH GetStoryRanges();
  280. LPDISPATCH GetCommandBars();
  281. BOOL GetIsSubdocument();
  282. long GetSaveFormat();
  283. long GetProtectionType();
  284. LPDISPATCH GetHyperlinks();
  285. LPDISPATCH GetShapes();
  286. LPDISPATCH GetListTemplates();
  287. LPDISPATCH GetLists();
  288. BOOL GetUpdateStylesOnOpen();
  289. void SetUpdateStylesOnOpen(BOOL bNewValue);
  290. VARIANT GetAttachedTemplate();
  291. void SetAttachedTemplate(VARIANT* newValue);
  292. LPDISPATCH GetInlineShapes();
  293. LPDISPATCH GetBackground();
  294. void SetBackground(LPDISPATCH newValue);
  295. BOOL GetGrammarChecked();
  296. void SetGrammarChecked(BOOL bNewValue);
  297. BOOL GetSpellingChecked();
  298. void SetSpellingChecked(BOOL bNewValue);
  299. BOOL GetShowGrammaticalErrors();
  300. void SetShowGrammaticalErrors(BOOL bNewValue);
  301. BOOL GetShowSpellingErrors();
  302. void SetShowSpellingErrors(BOOL bNewValue);
  303. LPDISPATCH GetVersions();
  304. BOOL GetShowSummary();
  305. void SetShowSummary(BOOL bNewValue);
  306. long GetSummaryViewMode();
  307. void SetSummaryViewMode(long nNewValue);
  308. long GetSummaryLength();
  309. void SetSummaryLength(long nNewValue);
  310. BOOL GetPrintFractionalWidths();
  311. void SetPrintFractionalWidths(BOOL bNewValue);
  312. BOOL GetPrintPostScriptOverText();
  313. void SetPrintPostScriptOverText(BOOL bNewValue);
  314. LPDISPATCH GetContainer();
  315. BOOL GetPrintFormsData();
  316. void SetPrintFormsData(BOOL bNewValue);
  317. LPDISPATCH GetListParagraphs();
  318. void SetPassword(LPCTSTR lpszNewValue);
  319. void SetWritePassword(LPCTSTR lpszNewValue);
  320. BOOL GetHasPassword();
  321. BOOL GetWriteReserved();
  322. CString GetActiveWritingStyle(VARIANT* LanguageID);
  323. void SetActiveWritingStyle(VARIANT* LanguageID, LPCTSTR lpszNewValue);
  324. BOOL GetUserControl();
  325. void SetUserControl(BOOL bNewValue);
  326. BOOL GetHasMailer();
  327. void SetHasMailer(BOOL bNewValue);
  328. LPDISPATCH GetMailer();
  329. LPDISPATCH GetReadabilityStatistics();
  330. LPDISPATCH GetGrammaticalErrors();
  331. LPDISPATCH GetSpellingErrors();
  332. LPDISPATCH GetVBProject();
  333. BOOL GetFormsDesign();
  334. CString Get_CodeName();
  335. void Set_CodeName(LPCTSTR lpszNewValue);
  336. CString GetCodeName();
  337. BOOL GetSnapToGrid();
  338. void SetSnapToGrid(BOOL bNewValue);
  339. BOOL GetSnapToShapes();
  340. void SetSnapToShapes(BOOL bNewValue);
  341. float GetGridDistanceHorizontal();
  342. void SetGridDistanceHorizontal(float newValue);
  343. float GetGridDistanceVertical();
  344. void SetGridDistanceVertical(float newValue);
  345. float GetGridOriginHorizontal();
  346. void SetGridOriginHorizontal(float newValue);
  347. float GetGridOriginVertical();
  348. void SetGridOriginVertical(float newValue);
  349. long GetGridSpaceBetweenHorizontalLines();
  350. void SetGridSpaceBetweenHorizontalLines(long nNewValue);
  351. long GetGridSpaceBetweenVerticalLines();
  352. void SetGridSpaceBetweenVerticalLines(long nNewValue);
  353. BOOL GetGridOriginFromMargin();
  354. void SetGridOriginFromMargin(BOOL bNewValue);
  355. BOOL GetKerningByAlgorithm();
  356. void SetKerningByAlgorithm(BOOL bNewValue);
  357. long GetJustificationMode();
  358. void SetJustificationMode(long nNewValue);
  359. long GetFarEastLineBreakLevel();
  360. void SetFarEastLineBreakLevel(long nNewValue);
  361. CString GetNoLineBreakBefore();
  362. void SetNoLineBreakBefore(LPCTSTR lpszNewValue);
  363. CString GetNoLineBreakAfter();
  364. void SetNoLineBreakAfter(LPCTSTR lpszNewValue);
  365. BOOL GetTrackRevisions();
  366. void SetTrackRevisions(BOOL bNewValue);
  367. BOOL GetPrintRevisions();
  368. void SetPrintRevisions(BOOL bNewValue);
  369. BOOL GetShowRevisions();
  370. void SetShowRevisions(BOOL bNewValue);
  371. void Close(VARIANT* SaveChanges, VARIANT* OriginalFormat, VARIANT* RouteDocument);
  372. void SaveAs(VARIANT* FileName, VARIANT* FileFormat, VARIANT* LockComments, VARIANT* Password, VARIANT* AddToRecentFiles, VARIANT* WritePassword, VARIANT* ReadOnlyRecommended, VARIANT* EmbedTrueTypeFonts, VARIANT* SaveNativePictureFormat,  VARIANT* SaveFormsData, VARIANT* SaveAsAOCELetter);
  373. void Repaginate();
  374. void FitToPages();
  375. void ManualHyphenation();
  376. void Select();
  377. void DataForm();
  378. void Route();
  379. void Save();
  380. void SendMail();
  381. LPDISPATCH Range(VARIANT* Start, VARIANT* End);
  382. void RunAutoMacro(long Which);
  383. void Activate();
  384. void PrintPreview();
  385. LPDISPATCH GoTo(VARIANT* What, VARIANT* Which, VARIANT* Count, VARIANT* Name);
  386. BOOL Undo(VARIANT* Times);
  387. BOOL Redo(VARIANT* Times);
  388. long ComputeStatistics(long Statistic, VARIANT* IncludeFootnotesAndEndnotes);
  389. void MakeCompatibilityDefault();
  390. void Protect(long Type, VARIANT* NoReset, VARIANT* Password);
  391. void Unprotect(VARIANT* Password);
  392. void EditionOptions(long Type, long Option, LPCTSTR Name, VARIANT* Format);
  393. void RunLetterWizard(VARIANT* LetterContent, VARIANT* WizardMode);
  394. LPDISPATCH GetLetterContent();
  395. void SetLetterContent(VARIANT* LetterContent);
  396. void CopyStylesFromTemplate(LPCTSTR Template);
  397. void UpdateStyles();
  398. void CheckGrammar();
  399. void CheckSpelling(VARIANT* CustomDictionary, VARIANT* IgnoreUppercase, VARIANT* AlwaysSuggest, VARIANT* CustomDictionary2, VARIANT* CustomDictionary3, VARIANT* CustomDictionary4, VARIANT* CustomDictionary5, VARIANT* CustomDictionary6,  VARIANT* CustomDictionary7, VARIANT* CustomDictionary8, VARIANT* CustomDictionary9, VARIANT* CustomDictionary10);
  400. void FollowHyperlink(VARIANT* Address, VARIANT* SubAddress, VARIANT* NewWindow, VARIANT* AddHistory, VARIANT* ExtraInfo, VARIANT* Method, VARIANT* HeaderInfo);
  401. void AddToFavorites();
  402. void Reload();
  403. LPDISPATCH AutoSummarize(VARIANT* Length, VARIANT* Mode, VARIANT* UpdateProperties);
  404. void RemoveNumbers(VARIANT* NumberType);
  405. void ConvertNumbersToText(VARIANT* NumberType);
  406. long CountNumberedItems(VARIANT* NumberType, VARIANT* Level);
  407. void Post();
  408. void ToggleFormsDesign();
  409. void Compare(LPCTSTR Name);
  410. void UpdateSummaryProperties();
  411. VARIANT GetCrossReferenceItems(VARIANT* ReferenceType);
  412. void AutoFormat();
  413. void ViewCode();
  414. void ViewPropertyBrowser();
  415. void ForwardMailer();
  416. void Reply();
  417. void ReplyAll();
  418. void SendMailer(VARIANT* FileFormat, VARIANT* Priority);
  419. void UndoClear();
  420. void PresentIt();
  421. void SendFax(LPCTSTR Address, VARIANT* Subject);
  422. void Merge(LPCTSTR FileName);
  423. void ClosePrintPreview();
  424. void CheckConsistency();
  425. LPDISPATCH CreateLetterContent(LPCTSTR DateFormat, BOOL IncludeHeaderFooter, LPCTSTR PageDesign, long LetterStyle, BOOL Letterhead, long LetterheadLocation, float LetterheadSize, LPCTSTR RecipientName, LPCTSTR RecipientAddress,  LPCTSTR Salutation, long SalutationType, LPCTSTR RecipientReference, LPCTSTR MailingInstructions, LPCTSTR AttentionLine, LPCTSTR Subject, LPCTSTR CCList, LPCTSTR ReturnAddress, LPCTSTR SenderName, LPCTSTR Closing, LPCTSTR SenderCompany,  LPCTSTR SenderJobTitle, LPCTSTR SenderInitials, long EnclosureNumber, VARIANT* InfoBlock, VARIANT* RecipientCode, VARIANT* RecipientGender, VARIANT* ReturnAddressShortForm, VARIANT* SenderCity, VARIANT* SenderCode, VARIANT* SenderGender,  VARIANT* SenderReference);
  426. void AcceptAllRevisions();
  427. void RejectAllRevisions();
  428. void DetectLanguage();
  429. void ApplyTheme(LPCTSTR Name);
  430. void RemoveTheme();
  431. void WebPagePreview();
  432. void ReloadAs(long Encoding);
  433. CString GetActiveTheme();
  434. CString GetActiveThemeDisplayName();
  435. LPDISPATCH GetEmail();
  436. LPDISPATCH GetScripts();
  437. BOOL GetLanguageDetected();
  438. void SetLanguageDetected(BOOL bNewValue);
  439. long GetFarEastLineBreakLanguage();
  440. void SetFarEastLineBreakLanguage(long nNewValue);
  441. LPDISPATCH GetFrameset();
  442. VARIANT GetClickAndTypeParagraphStyle();
  443. void SetClickAndTypeParagraphStyle(VARIANT* newValue);
  444. LPDISPATCH GetHTMLProject();
  445. LPDISPATCH GetWebOptions();
  446. long GetOpenEncoding();
  447. long GetSaveEncoding();
  448. void SetSaveEncoding(long nNewValue);
  449. BOOL GetOptimizeForWord97();
  450. void SetOptimizeForWord97(BOOL bNewValue);
  451. BOOL GetVBASigned();
  452. void PrintOut(VARIANT* Background, VARIANT* Append, VARIANT* Range, VARIANT* OutputFileName, VARIANT* From, VARIANT* To, VARIANT* Item, VARIANT* Copies, VARIANT* Pages, VARIANT* PageType, VARIANT* PrintToFile, VARIANT* Collate,  VARIANT* ActivePrinterMacGX, VARIANT* ManualDuplexPrint, VARIANT* PrintZoomColumn, VARIANT* PrintZoomRow, VARIANT* PrintZoomPaperWidth, VARIANT* PrintZoomPaperHeight);
  453. };
  454. /////////////////////////////////////////////////////////////////////////////
  455. // Selection wrapper class
  456. class Selection : public COleDispatchDriver
  457. {
  458. public:
  459. Selection() {} // Calls COleDispatchDriver default constructor
  460. Selection(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
  461. Selection(const Selection& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
  462. // Attributes
  463. public:
  464. // Operations
  465. public:
  466. CString GetText();
  467. void SetText(LPCTSTR lpszNewValue);
  468. LPDISPATCH GetFormattedText();
  469. void SetFormattedText(LPDISPATCH newValue);
  470. long GetStart();
  471. void SetStart(long nNewValue);
  472. long GetEnd();
  473. void SetEnd(long nNewValue);
  474. LPDISPATCH GetFont();
  475. void SetFont(LPDISPATCH newValue);
  476. long GetType();
  477. long GetStoryType();
  478. VARIANT GetStyle();
  479. void SetStyle(VARIANT* newValue);
  480. LPDISPATCH GetTables();
  481. LPDISPATCH GetWords();
  482. LPDISPATCH GetSentences();
  483. LPDISPATCH GetCharacters();
  484. LPDISPATCH GetFootnotes();
  485. LPDISPATCH GetEndnotes();
  486. LPDISPATCH GetComments();
  487. LPDISPATCH GetCells();
  488. LPDISPATCH GetSections();
  489. LPDISPATCH GetParagraphs();
  490. LPDISPATCH GetBorders();
  491. void SetBorders(LPDISPATCH newValue);
  492. LPDISPATCH GetShading();
  493. LPDISPATCH GetFields();
  494. LPDISPATCH GetFormFields();
  495. LPDISPATCH GetFrames();
  496. LPDISPATCH GetParagraphFormat();
  497. void SetParagraphFormat(LPDISPATCH newValue);
  498. LPDISPATCH GetPageSetup();
  499. void SetPageSetup(LPDISPATCH newValue);
  500. LPDISPATCH GetBookmarks();
  501. long GetStoryLength();
  502. long GetLanguageID();
  503. void SetLanguageID(long nNewValue);
  504. long GetLanguageIDFarEast();
  505. void SetLanguageIDFarEast(long nNewValue);
  506. long GetLanguageIDOther();
  507. void SetLanguageIDOther(long nNewValue);
  508. LPDISPATCH GetHyperlinks();
  509. LPDISPATCH GetColumns();
  510. LPDISPATCH GetRows();
  511. LPDISPATCH GetHeaderFooter();
  512. BOOL GetIsEndOfRowMark();
  513. long GetBookmarkID();
  514. long GetPreviousBookmarkID();
  515. LPDISPATCH GetFind();
  516. LPDISPATCH GetRange();
  517. VARIANT GetInformation(long Type);
  518. long GetFlags();
  519. void SetFlags(long nNewValue);
  520. BOOL GetActive();
  521. BOOL GetStartIsActive();
  522. void SetStartIsActive(BOOL bNewValue);
  523. BOOL GetIPAtEndOfLine();
  524. BOOL GetExtendMode();
  525. void SetExtendMode(BOOL bNewValue);
  526. BOOL GetColumnSelectMode();
  527. void SetColumnSelectMode(BOOL bNewValue);
  528. long GetOrientation();
  529. void SetOrientation(long nNewValue);
  530. LPDISPATCH GetInlineShapes();
  531. LPDISPATCH GetApplication();
  532. long GetCreator();
  533. LPDISPATCH GetParent();
  534. LPDISPATCH GetDocument();
  535. LPDISPATCH GetShapeRange();
  536. void Select();
  537. void SetRange(long Start, long End);
  538. void Collapse(VARIANT* Direction);
  539. void InsertBefore(LPCTSTR Text);
  540. void InsertAfter(LPCTSTR Text);
  541. LPDISPATCH Next(VARIANT* Unit, VARIANT* Count);
  542. LPDISPATCH Previous(VARIANT* Unit, VARIANT* Count);
  543. long StartOf(VARIANT* Unit, VARIANT* Extend);
  544. long EndOf(VARIANT* Unit, VARIANT* Extend);
  545. long Move(VARIANT* Unit, VARIANT* Count);
  546. long MoveStart(VARIANT* Unit, VARIANT* Count);
  547. long MoveEnd(VARIANT* Unit, VARIANT* Count);
  548. long MoveWhile(VARIANT* Cset, VARIANT* Count);
  549. long MoveStartWhile(VARIANT* Cset, VARIANT* Count);
  550. long MoveEndWhile(VARIANT* Cset, VARIANT* Count);
  551. long MoveUntil(VARIANT* Cset, VARIANT* Count);
  552. long MoveStartUntil(VARIANT* Cset, VARIANT* Count);
  553. long MoveEndUntil(VARIANT* Cset, VARIANT* Count);
  554. void Cut();
  555. void Copy();
  556. void Paste();
  557. void InsertBreak(VARIANT* Type);
  558. void InsertFile(LPCTSTR FileName, VARIANT* Range, VARIANT* ConfirmConversions, VARIANT* Link, VARIANT* Attachment);
  559. BOOL InStory(LPDISPATCH Range);
  560. BOOL InRange(LPDISPATCH Range);
  561. long Delete(VARIANT* Unit, VARIANT* Count);
  562. long Expand(VARIANT* Unit);
  563. void InsertParagraph();
  564. void InsertParagraphAfter();
  565. void InsertSymbol(long CharacterNumber, VARIANT* Font, VARIANT* Unicode, VARIANT* Bias);
  566. void InsertCrossReference(VARIANT* ReferenceType, long ReferenceKind, VARIANT* ReferenceItem, VARIANT* InsertAsHyperlink, VARIANT* IncludePosition);
  567. void InsertCaption(VARIANT* Label, VARIANT* Title, VARIANT* TitleAutoText, VARIANT* Position);
  568. void CopyAsPicture();
  569. void SortAscending();
  570. void SortDescending();
  571. BOOL IsEqual(LPDISPATCH Range);
  572. float Calculate();
  573. LPDISPATCH GoTo(VARIANT* What, VARIANT* Which, VARIANT* Count, VARIANT* Name);
  574. LPDISPATCH GoToNext(long What);
  575. LPDISPATCH GoToPrevious(long What);
  576. void PasteSpecial(VARIANT* IconIndex, VARIANT* Link, VARIANT* Placement, VARIANT* DisplayAsIcon, VARIANT* DataType, VARIANT* IconFileName, VARIANT* IconLabel);
  577. LPDISPATCH PreviousField();
  578. LPDISPATCH NextField();
  579. void InsertParagraphBefore();
  580. void InsertCells(VARIANT* ShiftCells);
  581. void Extend(VARIANT* Character);
  582. void Shrink();
  583. long MoveLeft(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
  584. long MoveRight(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
  585. long MoveUp(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
  586. long MoveDown(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
  587. long HomeKey(VARIANT* Unit, VARIANT* Extend);
  588. long EndKey(VARIANT* Unit, VARIANT* Extend);
  589. void EscapeKey();
  590. void TypeText(LPCTSTR Text);
  591. void CopyFormat();
  592. void PasteFormat();
  593. void TypeParagraph();
  594. void TypeBackspace();
  595. void NextSubdocument();
  596. void PreviousSubdocument();
  597. void SelectColumn();
  598. void SelectCurrentFont();
  599. void SelectCurrentAlignment();
  600. void SelectCurrentSpacing();
  601. void SelectCurrentIndent();
  602. void SelectCurrentTabs();
  603. void SelectCurrentColor();
  604. void CreateTextbox();
  605. void WholeStory();
  606. void SelectRow();
  607. void SplitTable();
  608. void InsertRows(VARIANT* NumRows);
  609. void InsertColumns();
  610. void InsertFormula(VARIANT* Formula, VARIANT* NumberFormat);
  611. LPDISPATCH NextRevision(VARIANT* Wrap);
  612. LPDISPATCH PreviousRevision(VARIANT* Wrap);
  613. void PasteAsNestedTable();
  614. LPDISPATCH CreateAutoTextEntry(LPCTSTR Name, LPCTSTR StyleName);
  615. void DetectLanguage();
  616. void SelectCell();
  617. void InsertRowsBelow(VARIANT* NumRows);
  618. void InsertColumnsRight();
  619. void InsertRowsAbove(VARIANT* NumRows);
  620. void RtlRun();
  621. void LtrRun();
  622. void BoldRun();
  623. void ItalicRun();
  624. void RtlPara();
  625. void LtrPara();
  626. void InsertDateTime(VARIANT* DateTimeFormat, VARIANT* InsertAsField, VARIANT* InsertAsFullWidth, VARIANT* DateLanguage, VARIANT* CalendarType);
  627. void Sort(VARIANT* ExcludeHeader, VARIANT* FieldNumber, VARIANT* SortFieldType, VARIANT* SortOrder, VARIANT* FieldNumber2, VARIANT* SortFieldType2, VARIANT* SortOrder2, VARIANT* FieldNumber3, VARIANT* SortFieldType3, VARIANT* SortOrder3,  VARIANT* SortColumn, VARIANT* Separator, VARIANT* CaseSensitive, VARIANT* BidiSort, VARIANT* IgnoreThe, VARIANT* IgnoreKashida, VARIANT* IgnoreDiacritics, VARIANT* IgnoreHe, VARIANT* LanguageID);
  628. LPDISPATCH ConvertToTable(VARIANT* Separator, VARIANT* NumRows, VARIANT* NumColumns, VARIANT* InitialColumnWidth, VARIANT* Format, VARIANT* ApplyBorders, VARIANT* ApplyShading, VARIANT* ApplyFont, VARIANT* ApplyColor,  VARIANT* ApplyHeadingRows, VARIANT* ApplyLastRow, VARIANT* ApplyFirstColumn, VARIANT* ApplyLastColumn, VARIANT* AutoFit, VARIANT* AutoFitBehavior, VARIANT* DefaultTableBehavior);
  629. long GetNoProofing();
  630. void SetNoProofing(long nNewValue);
  631. LPDISPATCH GetTopLevelTables();
  632. BOOL GetLanguageDetected();
  633. void SetLanguageDetected(BOOL bNewValue);
  634. float GetFitTextWidth();
  635. void SetFitTextWidth(float newValue);
  636. };