CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
FxModule.h
Go to the documentation of this file.
1//
2// (C) Copyright 2005-2023 by Graebert GmbH.
3//
4// Permission to use, copy, modify, and distribute this software in
5// object code form for any purpose and without fee is hereby granted,
6// provided that the above copyright notice appears in all copies and
7// that both that copyright notice and the limited warranty and
8// restricted rights notice below appear in all supporting
9// documentation.
10//
11// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15// UNINTERRUPTED OR ERROR FREE.
16
17#pragma once
18
19#include "FxPragmaPush.h"
20
21#include "DDKERNEL.h"
22
23#include <RxModule.h>
24
25class CFxDatabase;
26
33{
34public:
36
42 {
43 kNone = 0,
44 kInitApp = 1,
45 kUnloadApp = 2,
46 kLoadDwg = 3,
47 kUnloadDwg = 4,
48 kInvkSubr = 5,
49 kCfg = 6,
50 kEnd = 7,
51 kQuit = 8,
52 kSave = 9,
53 kDependency = 10,
54 kNoDependency = 11,
55 kOleUnloadApp = 12,
56 kPreQuit = 13,
57 kInitDialog = 14,
58 kEndDialog = 15,
59 kSuspend = 16
60 };
61
63 {
64 CFxEventData( CFxDatabase* pDatabase = 0, int defunCode = -1 );
65
68 };
69
73 virtual int event( ModuleEvent e, CFxEventData* pData = 0 ) = 0;
74};
75
77
78#include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
OdSmartPtr< CFxModule > CFxModulePtr
Definition: FxModule.h:76
ODRX_DECLARE_MEMBERS(CFxModule)
virtual int event(ModuleEvent e, CFxEventData *pData=0)=0
CFxDatabase * m_pDatabase
Definition: FxModule.h:66
CFxEventData(CFxDatabase *pDatabase=0, int defunCode=-1)