VCF::SDIPolicy Class Reference
class
SDIPolicy policy class for Single
Document Interface This is the implementation of the regular SDI architecture, with all the tipical operations on a document that we can find in an application having a single document.
More...
#include <vcf/ApplicationKit/DocManagerPolicy.h>
List of all members.
Detailed Description
class
SDIPolicy policy class for Single
Document Interface This is the implementation of the regular SDI architecture, with all the tipical operations on a document that we can find in an application having a single document.
Constructor & Destructor Documentation
| VCF::SDIPolicy::SDIPolicy |
( |
|
) |
[inline] |
|
Member Function Documentation
| void VCF::SDIPolicy::afterNewDocument |
( |
Document * |
newDocument |
) |
[inline] |
|
|
|
callback function managing the operation to be done after a new document has been created
|
| void VCF::SDIPolicy::closeDocument |
( |
|
) |
[inline] |
|
|
|
closes the window associated to the current document
|
| bool VCF::SDIPolicy::closeDocumentWindow |
( |
Window * |
window |
) |
[inline] |
|
|
|
closes the specified window
|
| void VCF::SDIPolicy::documentWindowActivated |
( |
Window * |
window |
) |
[inline] |
|
| Document* VCF::SDIPolicy::getCurrentDocument |
( |
|
) |
[inline] |
|
|
|
gets the document that currently has the focus, so to speak, in the application
|
|
|
gets the appropriate name for the current document , the name
|
| String VCF::SDIPolicy::getDocumentWindowCaption |
( |
Document * |
doc |
) |
[inline] |
|
| void VCF::SDIPolicy::mergeWindowMenus |
( |
Menu * |
appMenu, |
|
|
Menu * |
documentWindowMenu |
|
) |
[inline] |
|
|
|
merges the menu specific of the document window, with the generic application's menu Menu* appMenu, the menu general for any application Menu* documentWindowMenu, the menu specific for this application's document window
|
| bool VCF::SDIPolicy::saveBeforeNewDocument |
( |
|
) |
[inline] |
|
|
|
tells if we want the application to save the current document before activating a new document
|
| void VCF::SDIPolicy::setCurrentDocument |
( |
VCF::Document * |
doc |
) |
[inline] |
|
|
|
sets the specified document as the active one in the application
|
| bool VCF::SDIPolicy::usesMainWindow |
( |
|
) |
[inline] |
|
|
|
tells if we want the application to use the main applicaiton's window for a document this is true in a SDI application.
|
Member Data Documentation
The documentation for this class was generated from the following file: