/*File: Document.h Author: Matthew Small Description: Class specification for a Document class the manages Pages of text */ #ifndef DOCUMENT_H #define DOCUMENT_H #include "page.h" class Document { public: void Initialize(); void Destroy(); void Reset(); Document(); ~Document(); void NewPage(); bool SetActivePage(int num); void EditActivePage(); bool Load(); bool Save(); void PrintHeader(); void PrintFooter(); private: Page *GetPage(int page_num); int num_pages; //number of pages in Document char name[20]; //name of document, "" is Untitled Page *p_list_start; //start of linked list of pages Page *p_list_end; //end of linked list of pages Page *activePagePtr; //pointer to the "active" page }; #endif