CFx SDK Documentation
2020SP3
SDK
CFx
inc
FxModule.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2005-2020 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
25
class
CFxDatabase
;
26
32
class
DDKERNEL_API
CFxModule
:
public
OdRxModule
33
{
34
public
:
35
ODRX_DECLARE_MEMBERS
(
CFxModule
);
36
41
enum
ModuleEvent
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
62
struct
DDKERNEL_API
CFxEventData
63
{
64
CFxEventData
(
CFxDatabase
* pDatabase = 0,
int
defunCode = -1 );
65
66
CFxDatabase
*
m_pDatabase
;
67
int
m_DefunCode
;
68
};
69
73
virtual
int
event
(
ModuleEvent
e,
CFxEventData
* pData = 0 ) = 0;
74
};
75
76
typedef
OdSmartPtr<CFxModule>
CFxModulePtr
;
77
78
#include "
FxPragmaPop.h
"
FxPragmaPop.h
RxModule.h
CFxDatabase
Definition:
FxDatabase.h:48
CFxModule::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(CFxModule)
CFxModule::CFxEventData::m_pDatabase
CFxDatabase * m_pDatabase
Definition:
FxModule.h:66
DDKERNEL.h
CFxModule::ModuleEvent
ModuleEvent
Definition:
FxModule.h:42
OdPdfPublish::Lighting::kNone
@ kNone
Light mode is inherited from the annotation.
Definition:
PdfPublishCommon.h:160
CFxModule::CFxEventData::CFxEventData
CFxEventData(CFxDatabase *pDatabase=0, int defunCode=-1)
OdSmartPtr
Definition:
SmartPtr.h:58
CFxModule::event
virtual int event(ModuleEvent e, CFxEventData *pData=0)=0
DDKERNEL_API
#define DDKERNEL_API
Definition:
DDKERNEL.h:32
CFxModule::CFxEventData::m_DefunCode
int m_DefunCode
Definition:
FxModule.h:67
CFxModule
Definition:
FxModule.h:33
CFxModule::CFxEventData
Definition:
FxModule.h:63
OdRxModule
Definition:
RxModule.h:45
FxPragmaPush.h
CFxModulePtr
OdSmartPtr< CFxModule > CFxModulePtr
Definition:
FxModule.h:76
OdPdfPublish::Geometry::kEnd
@ kEnd
Definition:
PdfPublishCommon.h:478
Generated on Mon Oct 12 2020 11:49:32