doccom.h File Reference

Docview framework its controlling class. More...

#include "wx/cmdproc.h"
#include "wx/paper.h"
#include "wx/print.h"
#include <wx/module.h>
#include <wx/general/genmod.h>
#include <wx/docview.h>
#include <wx/docview/docviewref.h>
#include <wx/filedlg.h>
#include <wx/docview/doccomimpl.h>

Include dependency graph for doccom.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  a2dCommandEvent
 see a2dCommandEvent More...
class  a2dDocumentCommandProcessor
 One object of this class may be created in an application, to manage all the templates and documents. More...
class  a2dDocviewGlobal
 One Global instance of this class exists, in order to get to. More...
class  a2dFileHistoryItem
 holds one file for placing in history list More...
class  a2dFileHistory
class  a2dDocviewModule
 A module to initialize the docview framework. More...

Defines

#define A2D_EVT_ADD_DOCUMENT(func)   A2D_DECLARE_EVENT_TABLE_ENTRY( wxEVT_ADD_DOCUMENT, wxID_ANY, wxID_ANY, (a2dObjectEventFunction) static_cast< a2dDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when a document has been added to the a2dDocumentCommandProcessor
#define A2D_EVT_REMOVE_DOCUMENT(func)   A2D_DECLARE_EVENT_TABLE_ENTRY( wxEVT_REMOVE_DOCUMENT, wxID_ANY, wxID_ANY, (a2dObjectEventFunction) static_cast< a2dDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when a document will be removed from the a2dDocumentCommandProcessor
#define A2D_EVT_CHANGED_DOCUMENT(func)   A2D_DECLARE_EVENT_TABLE_ENTRY( wxEVT_CHANGED_DOCUMENT, wxID_ANY, wxID_ANY, (a2dObjectEventFunction) static_cast< a2dDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when the current document has changed in the a2dDocumentCommandProcessor
#define A2D_EVT_CANNOT_OPEN_DOCUMENT(func)   A2D_DECLARE_EVENT_TABLE_ENTRY( wxEVT_CANNOT_OPEN_DOCUMENT, wxID_ANY, wxID_ANY, (a2dObjectEventFunction) static_cast< a2dDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent when a file could not be opened in the a2dDocumentCommandProcessor
#define A2D_EVT_RECORD(func)   A2D_DECLARE_EVENT_TABLE_ENTRY( wxEVT_RECORD, wxID_ANY, wxID_ANY, (a2dObjectEventFunction) static_cast< a2dDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when a document has been added to the a2dDocumentCommandProcessor
#define EVT_ADD_DOCUMENT(func)   DECLARE_EVENT_TABLE_ENTRY( wxEVT_ADD_DOCUMENT, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when a document has been added to the a2dDocumentCommandProcessor
#define EVT_REMOVE_DOCUMENT(func)   DECLARE_EVENT_TABLE_ENTRY( wxEVT_REMOVE_DOCUMENT, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when a document will be removed from the a2dDocumentCommandProcessor
#define EVT_CHANGED_DOCUMENT(func)   DECLARE_EVENT_TABLE_ENTRY( wxEVT_CHANGED_DOCUMENT, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when the current document has changed in the a2dDocumentCommandProcessor
#define EVT_CANNOT_OPEN_DOCUMENT(func)   DECLARE_EVENT_TABLE_ENTRY( wxEVT_CANNOT_OPEN_DOCUMENT, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent when a file could not be opened in the a2dDocumentCommandProcessor
#define EVT_RECORD(func)   DECLARE_EVENT_TABLE_ENTRY( wxEVT_RECORD, wxID_ANY, wxID_ANY, (wxObjectEventFunction) static_cast< wxDocCommandProcessorEventFunction > (& func), (wxObject *) NULL ),
 event sent to a2dDocumentCommandProcessor when a document has been added to the a2dDocumentCommandProcessor

Typedefs

typedef void(a2dEvtHandler::* a2dDocCommandProcessorEventFunction )(a2dCommandEvent &)
 internal event function for static event tables declaration
typedef void(wxEvtHandler::* wxDocCommandProcessorEventFunction )(a2dCommandEvent &)
 internal event function for static event tables declaration
typedef a2dSmrtPtr
< a2dFileHistoryItem
a2dFileHistoryItemPtr
typedef a2dSmrtPtrList
< a2dFileHistoryItem
a2dFileHistoryItemList
 list of a2dFileHistoryItem

Enumerations

enum  { wxID_ART2D_LOWEST = 5300 }
 extra menu ideas for docview framework of wxDocview. More...

Functions

wxWindow * wxFindSuitableParent ()
 find a parent wxWindow pointer to place a control into
 A2DDOCVIEWDLLEXP_DATA (extern a2dDocviewGlobal *) a2dDocviewGlobals
 global object to get to the only a2dDocviewGlobal

Variables

class A2DDOCVIEWDLLEXP a2dDocumentCommandProcessor
template class A2DDOCVIEWDLLEXP a2dSmrtPtr< a2dDocumentCommandProcessor >
class A2DDOCVIEWDLLEXP a2dFileHistory
class A2DDOCVIEWDLLEXP a2dFileHistoryItem
const a2dMenuIdItem CmdMenu_Exit
const a2dMenuIdItem CmdMenu_FileClose
const a2dMenuIdItem CmdMenu_FileOpen
const a2dMenuIdItem CmdMenu_FileNew
const a2dMenuIdItem CmdMenu_FileSave
const a2dMenuIdItem CmdMenu_FileSaveAs
const a2dMenuIdItem CmdMenu_FileImport
const a2dMenuIdItem CmdMenu_FileExport
const a2dMenuIdItem CmdMenu_FileRevert
const a2dMenuIdItem CmdMenu_Print
const a2dMenuIdItem CmdMenu_Preview
const a2dMenuIdItem CmdMenu_PrintView
const a2dMenuIdItem CmdMenu_PreviewView
const a2dMenuIdItem CmdMenu_PrintDocument
const a2dMenuIdItem CmdMenu_PreviewDocument
const a2dMenuIdItem CmdMenu_PrintSetup
const a2dMenuIdItem CmdMenu_EmptyDocument


Detailed Description

Docview framework its controlling class.

All classes in the document view framework are under control of the a2dDocumentCommandProcessor. It sents events to documents, templates classes for new document and views are stored here. At last the class is able to function as a central command processor for the whole framework.

Author:
Klaas Holwerda
Date:
Created 05/07/03
Copyright: (c)

Licence: wxWidgets licence

RCS-ID:

Id
doccom.h,v 1.55 2009/09/26 19:01:04 titato Exp

Definition in file doccom.h.


Enumeration Type Documentation

anonymous enum

extra menu ideas for docview framework of wxDocview.

Enumerator:
wxID_ART2D_LOWEST  reserved range within total range used by wxWindows

Definition at line 39 of file doccom.h.

doccom.h File Reference -- Tue Aug 31 18:01:29 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation