Inheritance diagram for CP_DocumentManager:
Public Member Functions | |
void | CloseEach () |
Constructor / Destructor | |
CP_DocumentManager () | |
Constructor. | |
virtual | ~CP_DocumentManager () |
Destructor. | |
Commands | |
bool | CloseAll () |
bool | CloseAllNoSave () |
Document List | |
UInt32 | Count () |
void | Append (CP_Document_Base *inDocument) |
void | Remove (CP_Document_Base *inDocument) |
CP_Document_Base * | GetNthDocument (SInt32 inIndex) |
CP_Documents_List * | GetDocumentsList () |
Static Public Member Functions | |
Instance | |
static CP_DocumentManager * | Instance () |
Protected Member Functions | |
CP_AskReviewDialog * | GetAskReviewDialog (UInt32 inNumberDocuments) |
Protected Attributes | |
CP_Documents_List * | fDocuments |
bool | fCloseAllInProgress |
Static Protected Attributes | |
static CP_DocumentManager * | fsInstance = NULL |
|
Constructor. |
|
Destructor. |
|
|
|
Ask all documents in this classes list to close themselves. Under OSX this class will not be able to immediately close the documents if they are asking the user to save information in sheets. However, after the last document is closed this will automatically be called again, this time it will be able to return true. If the user also cancels a save or causes the document to not remove its dirty status and return false when it is asked if the document can close itself, then this will not be able to close all of the documents.
|
|
|
|
Returns the number of documents managed by this class.
|
|
Adds the passed in CP_Document_Base to the list of documents managed by this class. This will only add the document if it is not currently in the list of known documents for this object. So it is safe to call with the same document more than once. You normally do not need to call this, as it is called in the documents constructor.
|
|
Remove a document from this list. This is called for you automatically when a CP_Document_Base is deleted. A std::runtime_error is thrown if the document is not in the list. You normally do not need to call this, as it is called in the documents destructor.
|
|
|
|
Returns the list of documents managed by this class.
|
|
|
|
|
|
|
|
|
|
List of all documents. |