msword9.h
上传用户:tjyzx0508
上传日期:2013-02-16
资源大小:254k
文件大小:17k
- // Machine generated IDispatch wrapper class(es) created with ClassWizard
- /////////////////////////////////////////////////////////////////////////////
- // _Application wrapper class
- class _Application : public COleDispatchDriver
- {
- public:
- _Application() {} // Calls COleDispatchDriver default constructor
- _Application(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
- _Application(const _Application& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
- // Attributes
- public:
- // Operations
- public:
- LPDISPATCH GetApplication();
- long GetCreator();
- LPDISPATCH GetParent();
- CString GetName();
- LPDISPATCH GetDocuments();
- LPDISPATCH GetWindows();
- LPDISPATCH GetActiveDocument();
- LPDISPATCH GetActiveWindow();
- LPDISPATCH GetSelection();
- LPDISPATCH GetWordBasic();
- LPDISPATCH GetRecentFiles();
- LPDISPATCH GetNormalTemplate();
- LPDISPATCH GetSystem();
- LPDISPATCH GetAutoCorrect();
- LPDISPATCH GetFontNames();
- LPDISPATCH GetLandscapeFontNames();
- LPDISPATCH GetPortraitFontNames();
- LPDISPATCH GetLanguages();
- LPDISPATCH GetAssistant();
- LPDISPATCH GetBrowser();
- LPDISPATCH GetFileConverters();
- LPDISPATCH GetMailingLabel();
- LPDISPATCH GetDialogs();
- LPDISPATCH GetCaptionLabels();
- LPDISPATCH GetAutoCaptions();
- LPDISPATCH GetAddIns();
- BOOL GetVisible();
- void SetVisible(BOOL bNewValue);
- CString GetVersion();
- BOOL GetScreenUpdating();
- void SetScreenUpdating(BOOL bNewValue);
- BOOL GetPrintPreview();
- void SetPrintPreview(BOOL bNewValue);
- LPDISPATCH GetTasks();
- BOOL GetDisplayStatusBar();
- void SetDisplayStatusBar(BOOL bNewValue);
- BOOL GetSpecialMode();
- long GetUsableWidth();
- long GetUsableHeight();
- BOOL GetMathCoprocessorAvailable();
- BOOL GetMouseAvailable();
- VARIANT GetInternational(long Index);
- CString GetBuild();
- BOOL GetCapsLock();
- BOOL GetNumLock();
- CString GetUserName_();
- void SetUserName(LPCTSTR lpszNewValue);
- CString GetUserInitials();
- void SetUserInitials(LPCTSTR lpszNewValue);
- CString GetUserAddress();
- void SetUserAddress(LPCTSTR lpszNewValue);
- LPDISPATCH GetMacroContainer();
- BOOL GetDisplayRecentFiles();
- void SetDisplayRecentFiles(BOOL bNewValue);
- LPDISPATCH GetCommandBars();
- LPDISPATCH GetSynonymInfo(LPCTSTR Word, VARIANT* LanguageID);
- LPDISPATCH GetVbe();
- CString GetDefaultSaveFormat();
- void SetDefaultSaveFormat(LPCTSTR lpszNewValue);
- LPDISPATCH GetListGalleries();
- CString GetActivePrinter();
- void SetActivePrinter(LPCTSTR lpszNewValue);
- LPDISPATCH GetTemplates();
- LPDISPATCH GetCustomizationContext();
- void SetCustomizationContext(LPDISPATCH newValue);
- LPDISPATCH GetKeyBindings();
- LPDISPATCH GetKeysBoundTo(long KeyCategory, LPCTSTR Command, VARIANT* CommandParameter);
- LPDISPATCH GetFindKey(long KeyCode, VARIANT* KeyCode2);
- CString GetCaption();
- void SetCaption(LPCTSTR lpszNewValue);
- CString GetPath();
- BOOL GetDisplayScrollBars();
- void SetDisplayScrollBars(BOOL bNewValue);
- CString GetStartupPath();
- void SetStartupPath(LPCTSTR lpszNewValue);
- long GetBackgroundSavingStatus();
- long GetBackgroundPrintingStatus();
- long GetLeft();
- void SetLeft(long nNewValue);
- long GetTop();
- void SetTop(long nNewValue);
- long GetWidth();
- void SetWidth(long nNewValue);
- long GetHeight();
- void SetHeight(long nNewValue);
- long GetWindowState();
- void SetWindowState(long nNewValue);
- BOOL GetDisplayAutoCompleteTips();
- void SetDisplayAutoCompleteTips(BOOL bNewValue);
- LPDISPATCH GetOptions();
- long GetDisplayAlerts();
- void SetDisplayAlerts(long nNewValue);
- LPDISPATCH GetCustomDictionaries();
- CString GetPathSeparator();
- void SetStatusBar(LPCTSTR lpszNewValue);
- BOOL GetMAPIAvailable();
- BOOL GetDisplayScreenTips();
- void SetDisplayScreenTips(BOOL bNewValue);
- long GetEnableCancelKey();
- void SetEnableCancelKey(long nNewValue);
- BOOL GetUserControl();
- LPDISPATCH GetFileSearch();
- long GetMailSystem();
- CString GetDefaultTableSeparator();
- void SetDefaultTableSeparator(LPCTSTR lpszNewValue);
- BOOL GetShowVisualBasicEditor();
- void SetShowVisualBasicEditor(BOOL bNewValue);
- CString GetBrowseExtraFileTypes();
- void SetBrowseExtraFileTypes(LPCTSTR lpszNewValue);
- BOOL GetIsObjectValid(LPDISPATCH Object);
- LPDISPATCH GetHangulHanjaDictionaries();
- LPDISPATCH GetMailMessage();
- BOOL GetFocusInMailHeader();
- void Quit(VARIANT* SaveChanges, VARIANT* OriginalFormat, VARIANT* RouteDocument);
- void ScreenRefresh();
- void LookupNameProperties(LPCTSTR Name);
- void SubstituteFont(LPCTSTR UnavailableFont, LPCTSTR SubstituteFont);
- BOOL Repeat(VARIANT* Times);
- void DDEExecute(long Channel, LPCTSTR Command);
- long DDEInitiate(LPCTSTR App, LPCTSTR Topic);
- void DDEPoke(long Channel, LPCTSTR Item, LPCTSTR Data);
- CString DDERequest(long Channel, LPCTSTR Item);
- void DDETerminate(long Channel);
- void DDETerminateAll();
- long BuildKeyCode(long Arg1, VARIANT* Arg2, VARIANT* Arg3, VARIANT* Arg4);
- CString KeyString(long KeyCode, VARIANT* KeyCode2);
- void OrganizerCopy(LPCTSTR Source, LPCTSTR Destination, LPCTSTR Name, long Object);
- void OrganizerDelete(LPCTSTR Source, LPCTSTR Name, long Object);
- void OrganizerRename(LPCTSTR Source, LPCTSTR Name, LPCTSTR NewName, long Object);
- // method 'AddAddress' not emitted because of invalid return type or parameter type
- CString GetAddress(VARIANT* Name, VARIANT* AddressProperties, VARIANT* UseAutoText, VARIANT* DisplaySelectDialog, VARIANT* SelectDialog, VARIANT* CheckNamesDialog, VARIANT* RecentAddressesChoice, VARIANT* UpdateRecentAddresses);
- BOOL CheckGrammar(LPCTSTR String);
- 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);
- void ResetIgnoreAll();
- 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);
- void GoBack();
- void Help(VARIANT* HelpType);
- void AutomaticChange();
- void ShowMe();
- void HelpTool();
- LPDISPATCH NewWindow();
- void ListCommands(BOOL ListAllCommands);
- void ShowClipboard();
- void OnTime(VARIANT* When, LPCTSTR Name, VARIANT* Tolerance);
- void NextLetter();
- short MountVolume(LPCTSTR Zone, LPCTSTR Server, LPCTSTR Volume, VARIANT* User, VARIANT* UserPassword, VARIANT* VolumePassword);
- CString CleanString(LPCTSTR String);
- void SendFax();
- void ChangeFileOpenDirectory(LPCTSTR Path);
- void GoForward();
- void Move(long Left, long Top);
- void Resize(long Width, long Height);
- float InchesToPoints(float Inches);
- float CentimetersToPoints(float Centimeters);
- float MillimetersToPoints(float Millimeters);
- float PicasToPoints(float Picas);
- float LinesToPoints(float Lines);
- float PointsToInches(float Points);
- float PointsToCentimeters(float Points);
- float PointsToMillimeters(float Points);
- float PointsToPicas(float Points);
- float PointsToLines(float Points);
- void Activate();
- float PointsToPixels(float Points, VARIANT* fVertical);
- float PixelsToPoints(float Pixels, VARIANT* fVertical);
- void KeyboardLatin();
- void KeyboardBidi();
- void ToggleKeyboard();
- long Keyboard(long LangId);
- CString ProductCode();
- LPDISPATCH DefaultWebOptions();
- void SetDefaultTheme(LPCTSTR Name, long DocumentType);
- CString GetDefaultTheme(long DocumentType);
- LPDISPATCH GetEmailOptions();
- long GetLanguage();
- LPDISPATCH GetCOMAddIns();
- BOOL GetCheckLanguage();
- void SetCheckLanguage(BOOL bNewValue);
- LPDISPATCH GetLanguageSettings();
- LPDISPATCH GetAnswerWizard();
- long GetFeatureInstall();
- void SetFeatureInstall(long nNewValue);
- 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);
- 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);
- };
- /////////////////////////////////////////////////////////////////////////////
- // Documents wrapper class
- class Documents : public COleDispatchDriver
- {
- public:
- Documents() {} // Calls COleDispatchDriver default constructor
- Documents(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
- Documents(const Documents& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
- // Attributes
- public:
- // Operations
- public:
- LPUNKNOWN Get_NewEnum();
- long GetCount();
- LPDISPATCH GetApplication();
- long GetCreator();
- LPDISPATCH GetParent();
- LPDISPATCH Item(VARIANT* Index);
- void Close(VARIANT* SaveChanges, VARIANT* OriginalFormat, VARIANT* RouteDocument);
- void Save(VARIANT* NoPrompt, VARIANT* OriginalFormat);
- LPDISPATCH Add(VARIANT* Template, VARIANT* NewTemplate, VARIANT* DocumentType, VARIANT* Visible);
- LPDISPATCH Open(VARIANT* FileName, VARIANT* ConfirmConversions, VARIANT* ReadOnly, VARIANT* AddToRecentFiles, VARIANT* PasswordDocument, VARIANT* PasswordTemplate, VARIANT* Revert, VARIANT* WritePasswordDocument,
VARIANT* WritePasswordTemplate, VARIANT* Format, VARIANT* Encoding, VARIANT* Visible);
- };
- /////////////////////////////////////////////////////////////////////////////
- // Selection wrapper class
- class Selection : public COleDispatchDriver
- {
- public:
- Selection() {} // Calls COleDispatchDriver default constructor
- Selection(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
- Selection(const Selection& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
- // Attributes
- public:
- // Operations
- public:
- CString GetText();
- void SetText(LPCTSTR lpszNewValue);
- LPDISPATCH GetFormattedText();
- void SetFormattedText(LPDISPATCH newValue);
- long GetStart();
- void SetStart(long nNewValue);
- long GetEnd();
- void SetEnd(long nNewValue);
- LPDISPATCH GetFont();
- void SetFont(LPDISPATCH newValue);
- long GetType();
- long GetStoryType();
- VARIANT GetStyle();
- void SetStyle(VARIANT* newValue);
- LPDISPATCH GetTables();
- LPDISPATCH GetWords();
- LPDISPATCH GetSentences();
- LPDISPATCH GetCharacters();
- LPDISPATCH GetFootnotes();
- LPDISPATCH GetEndnotes();
- LPDISPATCH GetComments();
- LPDISPATCH GetCells();
- LPDISPATCH GetSections();
- LPDISPATCH GetParagraphs();
- LPDISPATCH GetBorders();
- void SetBorders(LPDISPATCH newValue);
- LPDISPATCH GetShading();
- LPDISPATCH GetFields();
- LPDISPATCH GetFormFields();
- LPDISPATCH GetFrames();
- LPDISPATCH GetParagraphFormat();
- void SetParagraphFormat(LPDISPATCH newValue);
- LPDISPATCH GetPageSetup();
- void SetPageSetup(LPDISPATCH newValue);
- LPDISPATCH GetBookmarks();
- long GetStoryLength();
- long GetLanguageID();
- void SetLanguageID(long nNewValue);
- long GetLanguageIDFarEast();
- void SetLanguageIDFarEast(long nNewValue);
- long GetLanguageIDOther();
- void SetLanguageIDOther(long nNewValue);
- LPDISPATCH GetHyperlinks();
- LPDISPATCH GetColumns();
- LPDISPATCH GetRows();
- LPDISPATCH GetHeaderFooter();
- BOOL GetIsEndOfRowMark();
- long GetBookmarkID();
- long GetPreviousBookmarkID();
- LPDISPATCH GetFind();
- LPDISPATCH GetRange();
- VARIANT GetInformation(long Type);
- long GetFlags();
- void SetFlags(long nNewValue);
- BOOL GetActive();
- BOOL GetStartIsActive();
- void SetStartIsActive(BOOL bNewValue);
- BOOL GetIPAtEndOfLine();
- BOOL GetExtendMode();
- void SetExtendMode(BOOL bNewValue);
- BOOL GetColumnSelectMode();
- void SetColumnSelectMode(BOOL bNewValue);
- long GetOrientation();
- void SetOrientation(long nNewValue);
- LPDISPATCH GetInlineShapes();
- LPDISPATCH GetApplication();
- long GetCreator();
- LPDISPATCH GetParent();
- LPDISPATCH GetDocument();
- LPDISPATCH GetShapeRange();
- void Select();
- void SetRange(long Start, long End);
- void Collapse(VARIANT* Direction);
- void InsertBefore(LPCTSTR Text);
- void InsertAfter(LPCTSTR Text);
- LPDISPATCH Next(VARIANT* Unit, VARIANT* Count);
- LPDISPATCH Previous(VARIANT* Unit, VARIANT* Count);
- long StartOf(VARIANT* Unit, VARIANT* Extend);
- long EndOf(VARIANT* Unit, VARIANT* Extend);
- long Move(VARIANT* Unit, VARIANT* Count);
- long MoveStart(VARIANT* Unit, VARIANT* Count);
- long MoveEnd(VARIANT* Unit, VARIANT* Count);
- long MoveWhile(VARIANT* Cset, VARIANT* Count);
- long MoveStartWhile(VARIANT* Cset, VARIANT* Count);
- long MoveEndWhile(VARIANT* Cset, VARIANT* Count);
- long MoveUntil(VARIANT* Cset, VARIANT* Count);
- long MoveStartUntil(VARIANT* Cset, VARIANT* Count);
- long MoveEndUntil(VARIANT* Cset, VARIANT* Count);
- void Cut();
- void Copy();
- void Paste();
- void InsertBreak(VARIANT* Type);
- void InsertFile(LPCTSTR FileName, VARIANT* Range, VARIANT* ConfirmConversions, VARIANT* Link, VARIANT* Attachment);
- BOOL InStory(LPDISPATCH Range);
- BOOL InRange(LPDISPATCH Range);
- long Delete(VARIANT* Unit, VARIANT* Count);
- long Expand(VARIANT* Unit);
- void InsertParagraph();
- void InsertParagraphAfter();
- void InsertSymbol(long CharacterNumber, VARIANT* Font, VARIANT* Unicode, VARIANT* Bias);
- void InsertCrossReference(VARIANT* ReferenceType, long ReferenceKind, VARIANT* ReferenceItem, VARIANT* InsertAsHyperlink, VARIANT* IncludePosition);
- void InsertCaption(VARIANT* Label, VARIANT* Title, VARIANT* TitleAutoText, VARIANT* Position);
- void CopyAsPicture();
- void SortAscending();
- void SortDescending();
- BOOL IsEqual(LPDISPATCH Range);
- float Calculate();
- LPDISPATCH GoTo(VARIANT* What, VARIANT* Which, VARIANT* Count, VARIANT* Name);
- LPDISPATCH GoToNext(long What);
- LPDISPATCH GoToPrevious(long What);
- void PasteSpecial(VARIANT* IconIndex, VARIANT* Link, VARIANT* Placement, VARIANT* DisplayAsIcon, VARIANT* DataType, VARIANT* IconFileName, VARIANT* IconLabel);
- LPDISPATCH PreviousField();
- LPDISPATCH NextField();
- void InsertParagraphBefore();
- void InsertCells(VARIANT* ShiftCells);
- void Extend(VARIANT* Character);
- void Shrink();
- long MoveLeft(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
- long MoveRight(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
- long MoveUp(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
- long MoveDown(VARIANT* Unit, VARIANT* Count, VARIANT* Extend);
- long HomeKey(VARIANT* Unit, VARIANT* Extend);
- long EndKey(VARIANT* Unit, VARIANT* Extend);
- void EscapeKey();
- void TypeText(LPCTSTR Text);
- void CopyFormat();
- void PasteFormat();
- void TypeParagraph();
- void TypeBackspace();
- void NextSubdocument();
- void PreviousSubdocument();
- void SelectColumn();
- void SelectCurrentFont();
- void SelectCurrentAlignment();
- void SelectCurrentSpacing();
- void SelectCurrentIndent();
- void SelectCurrentTabs();
- void SelectCurrentColor();
- void CreateTextbox();
- void WholeStory();
- void SelectRow();
- void SplitTable();
- void InsertRows(VARIANT* NumRows);
- void InsertColumns();
- void InsertFormula(VARIANT* Formula, VARIANT* NumberFormat);
- LPDISPATCH NextRevision(VARIANT* Wrap);
- LPDISPATCH PreviousRevision(VARIANT* Wrap);
- void PasteAsNestedTable();
- LPDISPATCH CreateAutoTextEntry(LPCTSTR Name, LPCTSTR StyleName);
- void DetectLanguage();
- void SelectCell();
- void InsertRowsBelow(VARIANT* NumRows);
- void InsertColumnsRight();
- void InsertRowsAbove(VARIANT* NumRows);
- void RtlRun();
- void LtrRun();
- void BoldRun();
- void ItalicRun();
- void RtlPara();
- void LtrPara();
- void InsertDateTime(VARIANT* DateTimeFormat, VARIANT* InsertAsField, VARIANT* InsertAsFullWidth, VARIANT* DateLanguage, VARIANT* CalendarType);
- 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);
- 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);
- long GetNoProofing();
- void SetNoProofing(long nNewValue);
- LPDISPATCH GetTopLevelTables();
- BOOL GetLanguageDetected();
- void SetLanguageDetected(BOOL bNewValue);
- float GetFitTextWidth();
- void SetFitTextWidth(float newValue);
- };