tbx  0.7.6
Public Member Functions | List of all members
tbx::doc::DocCreatorBase Class Referenceabstract

Base class to help create a document and a window to show it in. More...

#include <docmanager.h>

Inheritance diagram for tbx::doc::DocCreatorBase:
tbx::doc::DocCreator< T, W >

Public Member Functions

 DocCreatorBase (int file_type)
 Construct a document and window creator for a file type. More...
 
int file_type () const
 Return the file type handled by this document creator.
 
virtual Documentcreate_document ()=0
 Override this method to create the document object. More...
 
virtual void create_window (Document *doc)=0
 Create the window used to display the given document. More...
 

Detailed Description

Base class to help create a document and a window to show it in.

Constructor & Destructor Documentation

◆ DocCreatorBase()

tbx::doc::DocCreatorBase::DocCreatorBase ( int  file_type)
inline

Construct a document and window creator for a file type.

Parameters
file_typefile type for this type of document

Member Function Documentation

◆ create_document()

virtual Document* tbx::doc::DocCreatorBase::create_document ( )
pure virtual

Override this method to create the document object.

Returns
Document derived object to handle the document data

Implemented in tbx::doc::DocCreator< T, W >.

◆ create_window()

virtual void tbx::doc::DocCreatorBase::create_window ( Document doc)
pure virtual

Create the window used to display the given document.

Parameters
docdocument to create the main window for

Implemented in tbx::doc::DocCreator< T, W >.


The documentation for this class was generated from the following file: