📄 msword9.h
字号:
void SetCompatibility(long Type, BOOL bNewValue);
LPDISPATCH GetStoryRanges();
LPDISPATCH GetCommandBars();
BOOL GetIsSubdocument();
long GetSaveFormat();
long GetProtectionType();
LPDISPATCH GetHyperlinks();
LPDISPATCH GetShapes();
LPDISPATCH GetListTemplates();
LPDISPATCH GetLists();
BOOL GetUpdateStylesOnOpen();
void SetUpdateStylesOnOpen(BOOL bNewValue);
VARIANT GetAttachedTemplate();
void SetAttachedTemplate(VARIANT* newValue);
LPDISPATCH GetInlineShapes();
LPDISPATCH GetBackground();
void SetBackground(LPDISPATCH newValue);
BOOL GetGrammarChecked();
void SetGrammarChecked(BOOL bNewValue);
BOOL GetSpellingChecked();
void SetSpellingChecked(BOOL bNewValue);
BOOL GetShowGrammaticalErrors();
void SetShowGrammaticalErrors(BOOL bNewValue);
BOOL GetShowSpellingErrors();
void SetShowSpellingErrors(BOOL bNewValue);
LPDISPATCH GetVersions();
BOOL GetShowSummary();
void SetShowSummary(BOOL bNewValue);
long GetSummaryViewMode();
void SetSummaryViewMode(long nNewValue);
long GetSummaryLength();
void SetSummaryLength(long nNewValue);
BOOL GetPrintFractionalWidths();
void SetPrintFractionalWidths(BOOL bNewValue);
BOOL GetPrintPostScriptOverText();
void SetPrintPostScriptOverText(BOOL bNewValue);
LPDISPATCH GetContainer();
BOOL GetPrintFormsData();
void SetPrintFormsData(BOOL bNewValue);
LPDISPATCH GetListParagraphs();
void SetPassword(LPCTSTR lpszNewValue);
void SetWritePassword(LPCTSTR lpszNewValue);
BOOL GetHasPassword();
BOOL GetWriteReserved();
CString GetActiveWritingStyle(VARIANT* LanguageID);
void SetActiveWritingStyle(VARIANT* LanguageID, LPCTSTR lpszNewValue);
BOOL GetUserControl();
void SetUserControl(BOOL bNewValue);
BOOL GetHasMailer();
void SetHasMailer(BOOL bNewValue);
LPDISPATCH GetMailer();
LPDISPATCH GetReadabilityStatistics();
LPDISPATCH GetGrammaticalErrors();
LPDISPATCH GetSpellingErrors();
LPDISPATCH GetVBProject();
BOOL GetFormsDesign();
CString Get_CodeName();
void Set_CodeName(LPCTSTR lpszNewValue);
CString GetCodeName();
BOOL GetSnapToGrid();
void SetSnapToGrid(BOOL bNewValue);
BOOL GetSnapToShapes();
void SetSnapToShapes(BOOL bNewValue);
float GetGridDistanceHorizontal();
void SetGridDistanceHorizontal(float newValue);
float GetGridDistanceVertical();
void SetGridDistanceVertical(float newValue);
float GetGridOriginHorizontal();
void SetGridOriginHorizontal(float newValue);
float GetGridOriginVertical();
void SetGridOriginVertical(float newValue);
long GetGridSpaceBetweenHorizontalLines();
void SetGridSpaceBetweenHorizontalLines(long nNewValue);
long GetGridSpaceBetweenVerticalLines();
void SetGridSpaceBetweenVerticalLines(long nNewValue);
BOOL GetGridOriginFromMargin();
void SetGridOriginFromMargin(BOOL bNewValue);
BOOL GetKerningByAlgorithm();
void SetKerningByAlgorithm(BOOL bNewValue);
long GetJustificationMode();
void SetJustificationMode(long nNewValue);
long GetFarEastLineBreakLevel();
void SetFarEastLineBreakLevel(long nNewValue);
CString GetNoLineBreakBefore();
void SetNoLineBreakBefore(LPCTSTR lpszNewValue);
CString GetNoLineBreakAfter();
void SetNoLineBreakAfter(LPCTSTR lpszNewValue);
BOOL GetTrackRevisions();
void SetTrackRevisions(BOOL bNewValue);
BOOL GetPrintRevisions();
void SetPrintRevisions(BOOL bNewValue);
BOOL GetShowRevisions();
void SetShowRevisions(BOOL bNewValue);
void Close(VARIANT* SaveChanges, VARIANT* OriginalFormat, VARIANT* RouteDocument);
void SaveAs(VARIANT* FileName, VARIANT* FileFormat, VARIANT* LockComments, VARIANT* Password, VARIANT* AddToRecentFiles, VARIANT* WritePassword, VARIANT* ReadOnlyRecommended, VARIANT* EmbedTrueTypeFonts, VARIANT* SaveNativePictureFormat, VARIANT* SaveFormsData, VARIANT* SaveAsAOCELetter);
void Repaginate();
void FitToPages();
void ManualHyphenation();
void Select();
void DataForm();
void Route();
void Save();
void SendMail();
LPDISPATCH Range(VARIANT* Start, VARIANT* End);
void RunAutoMacro(long Which);
void Activate();
void PrintPreview();
LPDISPATCH GoTo(VARIANT* What, VARIANT* Which, VARIANT* Count, VARIANT* Name);
BOOL Undo(VARIANT* Times);
BOOL Redo(VARIANT* Times);
long ComputeStatistics(long Statistic, VARIANT* IncludeFootnotesAndEndnotes);
void MakeCompatibilityDefault();
void Protect(long Type, VARIANT* NoReset, VARIANT* Password);
void Unprotect(VARIANT* Password);
void EditionOptions(long Type, long Option, LPCTSTR Name, VARIANT* Format);
void RunLetterWizard(VARIANT* LetterContent, VARIANT* WizardMode);
LPDISPATCH GetLetterContent();
void SetLetterContent(VARIANT* LetterContent);
void CopyStylesFromTemplate(LPCTSTR Template);
void UpdateStyles();
void CheckGrammar();
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);
void FollowHyperlink(VARIANT* Address, VARIANT* SubAddress, VARIANT* NewWindow, VARIANT* AddHistory, VARIANT* ExtraInfo, VARIANT* Method, VARIANT* HeaderInfo);
void AddToFavorites();
void Reload();
LPDISPATCH AutoSummarize(VARIANT* Length, VARIANT* Mode, VARIANT* UpdateProperties);
void RemoveNumbers(VARIANT* NumberType);
void ConvertNumbersToText(VARIANT* NumberType);
long CountNumberedItems(VARIANT* NumberType, VARIANT* Level);
void Post();
void ToggleFormsDesign();
void Compare(LPCTSTR Name);
void UpdateSummaryProperties();
VARIANT GetCrossReferenceItems(VARIANT* ReferenceType);
void AutoFormat();
void ViewCode();
void ViewPropertyBrowser();
void ForwardMailer();
void Reply();
void ReplyAll();
void SendMailer(VARIANT* FileFormat, VARIANT* Priority);
void UndoClear();
void PresentIt();
void SendFax(LPCTSTR Address, VARIANT* Subject);
void Merge(LPCTSTR FileName);
void ClosePrintPreview();
void CheckConsistency();
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);
void AcceptAllRevisions();
void RejectAllRevisions();
void DetectLanguage();
void ApplyTheme(LPCTSTR Name);
void RemoveTheme();
void WebPagePreview();
void ReloadAs(long Encoding);
CString GetActiveTheme();
CString GetActiveThemeDisplayName();
LPDISPATCH GetEmail();
LPDISPATCH GetScripts();
BOOL GetLanguageDetected();
void SetLanguageDetected(BOOL bNewValue);
long GetFarEastLineBreakLanguage();
void SetFarEastLineBreakLanguage(long nNewValue);
LPDISPATCH GetFrameset();
VARIANT GetClickAndTypeParagraphStyle();
void SetClickAndTypeParagraphStyle(VARIANT* newValue);
LPDISPATCH GetHTMLProject();
LPDISPATCH GetWebOptions();
long GetOpenEncoding();
long GetSaveEncoding();
void SetSaveEncoding(long nNewValue);
BOOL GetOptimizeForWord97();
void SetOptimizeForWord97(BOOL bNewValue);
BOOL GetVBASigned();
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);
};
/////////////////////////////////////////////////////////////////////////////
// _Font wrapper class
class _Font : public COleDispatchDriver
{
public:
_Font() {} // Calls COleDispatchDriver default constructor
_Font(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
_Font(const _Font& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
LPDISPATCH GetApplication();
long GetCreator();
LPDISPATCH GetParent();
LPDISPATCH GetDuplicate();
long GetBold();
void SetBold(long nNewValue);
long GetItalic();
void SetItalic(long nNewValue);
long GetHidden();
void SetHidden(long nNewValue);
long GetSmallCaps();
void SetSmallCaps(long nNewValue);
long GetAllCaps();
void SetAllCaps(long nNewValue);
long GetStrikeThrough();
void SetStrikeThrough(long nNewValue);
long GetDoubleStrikeThrough();
void SetDoubleStrikeThrough(long nNewValue);
long GetColorIndex();
void SetColorIndex(long nNewValue);
long GetSubscript();
void SetSubscript(long nNewValue);
long GetSuperscript();
void SetSuperscript(long nNewValue);
long GetUnderline();
void SetUnderline(long nNewValue);
float GetSize();
void SetSize(float newValue);
CString GetName();
void SetName(LPCTSTR lpszNewValue);
long GetPosition();
void SetPosition(long nNewValue);
float GetSpacing();
void SetSpacing(float newValue);
long GetScaling();
void SetScaling(long nNewValue);
long GetShadow();
void SetShadow(long nNewValue);
long GetOutline();
void SetOutline(long nNewValue);
long GetEmboss();
void SetEmboss(long nNewValue);
float GetKerning();
void SetKerning(float newValue);
long GetEngrave();
void SetEngrave(long nNewValue);
long GetAnimation();
void SetAnimation(long nNewValue);
LPDISPATCH GetBorders();
void SetBorders(LPDISPATCH newValue);
LPDISPATCH GetShading();
long GetEmphasisMark();
void SetEmphasisMark(long nNewValue);
BOOL GetDisableCharacterSpaceGrid();
void SetDisableCharacterSpaceGrid(BOOL bNewValue);
CString GetNameFarEast();
void SetNameFarEast(LPCTSTR lpszNewValue);
CString GetNameAscii();
void SetNameAscii(LPCTSTR lpszNewValue);
CString GetNameOther();
void SetNameOther(LPCTSTR lpszNewValue);
void Grow();
void Shrink();
void Reset();
void SetAsTemplateDefault();
long GetColor();
void SetColor(long nNewValue);
long GetBoldBi();
void SetBoldBi(long nNewValue);
long GetItalicBi();
void SetItalicBi(long nNewValue);
float GetSizeBi();
void SetSizeBi(float newValue);
CString GetNameBi();
void SetNameBi(LPCTSTR lpszNewValue);
long GetColorIndexBi();
void SetColorIndexBi(long nNewValue);
long GetDiacriticColor();
void SetDiacriticColor(long nNewValue);
long GetUnderlineColor();
void SetUnderlineColor(long nNewValue);
};
/////////////////////////////////////////////////////////////////////////////
// Table wrapper class
class Table : public COleDispatchDriver
{
public:
Table() {} // Calls COleDispatchDriver default constructor
Table(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {}
Table(const Table& dispatchSrc) : COleDispatchDriver(dispatchSrc) {}
// Attributes
public:
// Operations
public:
LPDISPATCH GetRange();
LPDISPATCH GetApplication();
long GetCreator();
LPDISPATCH GetParent();
LPDISPATCH GetColumns();
LPDISPATCH GetRows();
LPDISPATCH GetBorders();
void SetBorders(LPDISPATCH newValue);
LPDISPATCH GetShading();
BOOL GetUniform();
long GetAutoFormatType();
void Select();
void Delete();
void SortAscending();
void SortDescending();
void AutoFormat(VARIANT* Format, VARIANT* ApplyBorders, VARIANT* ApplyShading, VARIANT* ApplyFont, VARIANT* ApplyColor, VARIANT* ApplyHeadingRows, VARIANT* ApplyLastRow, VARIANT* ApplyFirstColumn, VARIANT* ApplyLastColumn, VARIANT* AutoFit);
void UpdateAutoFormat();
LPDISPATCH Cell(long Row, long Column);
LPDISPATCH Split(VARIANT* BeforeRow);
LPDISPATCH ConvertToText(VARIANT* Separator, VARIANT* NestedTables);
void AutoFitBehavior(long Behavior);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -