现在的位置: 首页 > 综合 > 正文

Document Classes – MSDN6翻译交流

2013年05月28日 ⁄ 综合 ⁄ 共 2072字 ⁄ 字号 评论关闭

BUG和建议请提出,谢谢!

Document Classes

文档类

Document class objects, created by document-template objects, manage the application’s data. You will derive a class for your documents from one of these classes.

文档类物件,(由文档模板创建),管理着应用的数据。你需要为你的文档从这些类中的某一个继承一个类。

Document class objects interact with view objects. View objects represent the client area of a window, display a document’s data, and allow users to interact with it. Documents and views are created by a document-template object.

文档类物件(可与视图物件进行交互)。视图物件描述了窗口的客户区,显示文档的数据,并允许用户与其进行交互。文档和视图(都由文档模板创建)。

CDocument

The base class for application-specific documents. Derive your document class(es) from CDocument.

特定应用文档的基类。(请)从CDocument继承你(自己)的文档类。

COleDocument

Used for compound document implementation, as well as basic container support. Serves as a container for classes derived from CDocItem. This class can be used as the base class for container documents and is the base class for COleServerDoc.

用于复合文档的执行,(……)

COleLinkingDoc

A class derived from COleDocument that provides the infrastructure for linking. You should derive the document classes for your container applications from this class instead of from COleDocument if you want them to support links to embedded objects.

CRichEditDoc

Maintains the list of OLE client items that are in the rich edit control. Used with CRichEditView and CRichEditCntrItem.

COleServerDoc

Used as the base class for server-application document classes. COleServerDoc objects provide the bulk of server support through interactions with COleServerItem objects. Visual editing capability is provided using the class library’s document/view architecture.

Related Classes

相关的类

Document class objects can be persistent — in other words, they can write their state to a storage medium and read it back. MFC provides the CArchive class to facilitate transferring the document’s data to a storage medium.

文档类物件能够(成为)(持久稳固的),换句话说,它们可以将其状态写入到存储介质并读回。MFC提供CArchive类(来简化)文档数据到存储介质的传递。

CArchive

Cooperates with a CFile object to implement persistent storage for objects through serialization (see CObject::Serialize).

通过序列化,与CFile物件协作来执行物件的(持久存储)(参见CObject::Serialize)。

Documents can also contain OLE objects. CDocItem is the base class of the server and client items.

CDocItem

Abstract base class of COleClientItem and COleServerItem. Objects of classes derived from CDocItem represent parts of documents.

 

抱歉!评论已关闭.