(MS-CTDOC) : Word Custom Toolbar Binary File Format Structure Specification

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

[MS-CTDOC]:

Word Custom Toolbar Binary File Format Structure


Specification

Intellectual Property Rights Notice for Open Specifications Documentation

 Technical Documentation. Microsoft publishes Open Specifications documentation for


protocols, file formats, languages, standards as well as overviews of the interaction among each
of these technologies.

 Copyrights. This documentation is covered by Microsoft copyrights. Regardless of any other


terms that are contained in the terms of use for the Microsoft website that hosts this
documentation, you may make copies of it in order to develop implementations of the
technologies described in the Open Specifications and may distribute portions of it in your
implementations using these technologies or your documentation as necessary to properly
document the implementation. You may also distribute in your implementation, with or without
modification, any schema, IDL’s, or code samples that are included in the documentation. This
permission also applies to any documents that are referenced in the Open Specifications.

 No Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.

 Patents. Microsoft has patents that may cover your implementations of the technologies
described in the Open Specifications. Neither this notice nor Microsoft's delivery of the
documentation grants any licenses under those or any other Microsoft patents. However, a given
Open Specification may be covered by Microsoft's Open Specification Promise (available here:
http://www.microsoft.com/interop/osp) or the Community Promise (available here:
http://www.microsoft.com/interop/cp/default.mspx). If you would prefer a written license, or if
the technologies described in the Open Specifications are not covered by the Open Specifications
Promise or Community Promise, as applicable, patent licenses are available by contacting
[email protected].

 Trademarks. The names of companies and products contained in this documentation may be
covered by trademarks or similar intellectual property rights. This notice does not grant any
licenses under those rights.

 Fictitious Names. The example companies, organizations, products, domain names, e-mail
addresses, logos, people, places, and events depicted in this documentation are fictitious. No
association with any real company, organization, product, domain name, email address, logo,
person, place, or event is intended or should be inferred.

Reservation of Rights. All other rights are reserved, and this notice does not grant any rights
other than specifically described above, whether by implication, estoppel, or otherwise.

Tools. The Open Specifications do not require the use of Microsoft programming tools or
programming environments in order for you to develop an implementation. If you have access to
Microsoft programming tools and environments you are free to take advantage of them. Certain
Open Specifications are intended for use in conjunction with publicly available standard
specifications and network programming art, and assumes that the reader either is familiar with the
aforementioned material or has immediate access to it.

1 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


Revision Summary

Revision Revision
Date History Class Comments

06/27/2008 1.0 First release

11/14/2008 1.01 Revised and edited the technical content

01/16/2009 1.02 Updated the Intellectual Property Rights Notice

07/13/2009 1.03 Major Revised and edited the technical content

08/28/2009 1.04 Editorial Revised and edited the technical content

11/06/2009 1.05 Editorial Revised and edited the technical content

02/19/2010 2.0 Editorial Revised and edited the technical content

03/31/2010 2.01 Editorial Revised and edited the technical content

04/30/2010 2.02 Editorial Revised and edited the technical content

06/07/2010 2.03 Editorial Revised and edited the technical content

06/29/2010 2.04 Editorial Changed language and formatting in the technical


content.

07/23/2010 2.04 No change No changes to the meaning, language, or formatting of


the technical content.

09/27/2010 2.04 No change No changes to the meaning, language, or formatting of


the technical content.

11/15/2010 2.04 No change No changes to the meaning, language, or formatting of


the technical content.

12/17/2010 2.04 No change No changes to the meaning, language, or formatting of


the technical content.

2 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


Table of Contents
1 Introduction ............................................................................................................. 4
1.1 Glossary ............................................................................................................... 4
1.2 References ............................................................................................................ 4
1.2.1 Normative References ....................................................................................... 4
1.2.2 Informative References ..................................................................................... 4
1.3 Structure Overview (Synopsis) ................................................................................ 5
1.4 Relationship to Protocols and Other Structures .......................................................... 5
1.5 Applicability Statement ........................................................................................... 5
1.6 Versioning and Localization ..................................................................................... 5
1.7 Vendor-Extensible Fields ......................................................................................... 5

2 Structures ................................................................................................................ 6
2.1 Toolbar Data ......................................................................................................... 6
2.2 Toolbar Control Data .............................................................................................. 6

3 Structure Examples .................................................................................................. 7

4 Security Considerations............................................................................................ 8

5 Appendix A: Product Behavior .................................................................................. 9

6 Change Tracking..................................................................................................... 10

7 Index ..................................................................................................................... 11

3 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


1 Introduction
This document specifies the Word Custom Toolbar Binary File Format Structure data used by the
toolbar customization structures specified in [MS-DOC] and [MS-OSHARED]. Toolbar customization
structures provide a run-time solution for the creation and deployment of toolbar customizations
that are specific to the content of a file.

1.1 Glossary

The following terms are defined in [MS-OFCGLOS]:

custom toolbar
custom toolbar control
toolbar
toolbar control
toolbar control identifier (TCID)
toolbar delta

The following terms are specific to this document:

MAY, SHOULD, MUST, SHOULD NOT, MUST NOT: These terms (in all caps) are used as
described in [RFC2119]. All statements of optional behavior use either MAY, SHOULD, or
SHOULD NOT.

1.2 References

1.2.1 Normative References

We conduct frequent surveys of the normative references to assure their continued availability. If
you have any issue with finding a normative reference, please contact [email protected]. We
will assist you in finding the relevant information. Please check the archive site,
http://msdn2.microsoft.com/en-us/library/E4BD6494-06AD-4aed-9823-445E921C9624, as an
additional source.

[MSDN-TBID/Word] Microsoft Corporation, "Word Toolbar IDs Table", Excerpted from MS-CTDOC,
http://download.microsoft.com/download/2/0/D/20D8E396-3A8E-4777-9973-
12E66DD545A2/WordTBIDTable.txt

[MSDN-TCID/Word] Microsoft Corporation, "Word Toolbar Control IDs Table", Excerpted from MS-
CTDOC, http://download.microsoft.com/download/2/0/D/20D8E396-3A8E-4777-9973-
12E66DD545A2/WordTCIDTable.txt

[MS-DOC] Microsoft Corporation, "Word Binary File Format (.doc) Structure Specification", June
2008.

[MS-OSHARED] Microsoft Corporation, "Office Common Data Types and Objects Structure
Specification", June 2008.

[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC
2119, March 1997, http://www.ietf.org/rfc/rfc2119.txt

1.2.2 Informative References

[MS-OFCGLOS] Microsoft Corporation, "Microsoft Office Master Glossary", June 2008.

4 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


1.3 Structure Overview (Synopsis)

None.

1.4 Relationship to Protocols and Other Structures

The toolbar data presented in section 2.1 of this document is used by the TBCMenuSpecific
structure, as described in [MS-OSHARED] section 2.3.1 and by the Customization structure, as
described in [MS-DOC] section 2.9.

The toolbar control data presented in section 2.2 of this document is used by the TBCHeader and
TBCSFlags structures, as described in [MS-OSHARED] section 2.3.1.

1.5 Applicability Statement

The toolbar information presented in section 2.1 of this document is intended to be used in
conjunction with the toolbar customization structures, as described in [MS-DOC] and [MS-
OSHARED]. It provides the association between a built-in toolbar, a toolbar control, a custom
toolbar, and a toolbar delta.

The toolbar control information presented in section 2.2 of this document is intended to be used in
conjunction with the toolbar customization structures, as described in [MS-OSHARED] section 2.3.1.
It provides the values for the tcid field of the TBCHeader structure, as described in [MS-OSHARED]
section 2.3.1.10 and the values for several fields of the TBCSFlags structure, as described in [MS-
OSHARED] section 2.3.1.12, which are used by built-in toolbar controls with a specific toolbar
control identifier (TCID).

1.6 Versioning and Localization

None.

1.7 Vendor-Extensible Fields

None.

5 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


2 Structures

2.1 Toolbar Data

The Toolbar Data table [MSDN-TBID/Word] contains toolbar data used by the TBCMenuSpecific
structure, as specified in [MS-OSHARED] section 2.3.1 and by the Customization structure, as
specified in [MS-DOC] section 2.9.

The TBID column of the Toolbar Data table contains a list of values for the tbid field of the
TBCMenuSpecific structure, as specified in [MS-OSHARED] section 2.3.1 and for the tbidForTBD
field of the Customization structure, as specified in [MS-DOC] section 2.9. The Meaning column
contains a short description of the toolbar associated to a specific toolbar identifier.

2.2 Toolbar Control Data

The Toolbar Control Data table [MSDN-TCID/Word] contains toolbar control data used by the
TBCHeader and TBCSFlags structures, as specified in [MS-OSHARED] section 2.3.1.

The TCID column of the Toolbar Control Data table specifies the list of values that the tcid field of
the TBCHeader structure specified in [MS-OSHARED] section 2.3.1 MUST have if the toolbar control
is not a custom toolbar control. The value of the tcid field of the TBCHeader structure specified
in [MS-OSHARED] section 2.3.1 MAY<1> also equal 4177. The TCT column specifies the toolbar
control type as specified by the tct field of the TBCHeader structure, as specified in [MS-OSHARED]
section 2.3.1 for the tcid. The Meaning column contains a short description for the tcid.

6 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


3 Structure Examples
None.

7 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


4 Security Considerations
None.

8 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


5 Appendix A: Product Behavior
The information in this specification is applicable to the following Microsoft products or supplemental
software. References to product versions include released service packs:

Microsoft® Office Basic 2007

Microsoft® Office Enterprise 2007

Microsoft® Office Home and Student 2007

Microsoft® Office Professional 2007

Microsoft® Office Professional Plus 2007

Microsoft® Office Small Business 2007

Microsoft® Office Standard 2007

Microsoft® Office Ultimate 2007

Microsoft® Office Home and Business 2010

Microsoft® Office Home and Student 2010

Microsoft® Office Standard 2010

Microsoft® Office Professional 2010

Microsoft® Office Professional Plus 2010

Microsoft® Word 97

Microsoft® Word 2000

Microsoft® Word 2002

Microsoft® Office Word 2003

Microsoft® Office Word 2007

Microsoft® Word 2010

Exceptions, if any, are noted below. If a service pack or Quick Fix Engineering (QFE) number
appears with the product version, behavior changed in that service pack or QFE. The new behavior
also applies to subsequent service packs of the product unless otherwise specified. If a product
edition appears with the product version, behavior is different in that product edition.

Unless otherwise specified, any statement of optional behavior in this specification that is prescribed
using the terms SHOULD or SHOULD NOT implies product behavior in accordance with the SHOULD
or SHOULD NOT prescription. Unless otherwise specified, the term MAY implies that the product
does not follow the prescription.

<1> Section 2.2: The toolbar control identifier (TCID) value 4177 is not supported.

9 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


6 Change Tracking
No table of changes is available. The document is either new or has had no changes since its last
release.

10 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010


7 Index
A
S
Applicability 5
Security considerations
C overview 8
Structures
Change tracking 10 overview 6
Toolbar Control Data table 6
D Toolbar Data table 6

Details T
Toolbar Control Data table 6
Toolbar Data table 6 Toolbar Control Data table 6
Toolbar Data table 6
E Tracking changes 10

Example 7 V
Examples
overview 7 Vendor-extensible fields 5
Versioning 5
F

Fields
vendor-extensible 5

Glossary 4

Informative references 4
Introduction 4

Localization 5

Normative references 4

Overview 5

Product behavior
overview 9

References
informative 4
normative 4
overview 4
Relationship to protocols and other structures 5

11 / 11
[MS-CTDOC] — v20101219
Word Custom Toolbar Binary File Format Structure Specification

Copyright © 2010 Microsoft Corporation.

Release: Sunday, December 19, 2010

You might also like