CFx SDK Documentation  2023 SP0
FxDocumentManagerReactor.h
Go to the documentation of this file.
1 //
2 // (C) Copyright 2005-2022 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 <RxObject.h>
24 
25 class CFxDocument;
26 class CFxString;
27 
34 {
35 public:
38 
40 
44  virtual void DocumentCreateStarted(CFxDocument* pDocCreating){};
45 
49  virtual void DocumentCreated(CFxDocument* pDocCreating){};
50 
54  virtual void DocumentToBeDestroyed(CFxDocument* pDocToDestroy){};
55 
59  virtual void DocumentDestroyed(CFxDocument* pDocToDestroyed, const CFxString & strFileName){};
60 
64  virtual void DatabaseAttached(CFxDocument* pDoc){};
65 
69  virtual void DatabaseDetached(CFxDocument* pDoc){};
70 
74  virtual void DocumentToBeActivated(CFxDocument* pActivatingDoc ){};
75 
79  virtual void DocumentToBeDeactivated(CFxDocument* pDeActivatedDoc ){};
80 
84  virtual void DocumentActivated(CFxDocument* pActivatedDoc){};
85 
89  virtual void DocumentCreateCanceled(CFxDocument* pDocCreateCancelled){};
90 
94  virtual void DocumentBecameCurrent(CFxDocument* pDoc){};
95 
99  virtual void DocumentActivationModified(bool bActivation){};
100 
101 public:
105  virtual void DocumentPreOpen(CFxDocument* pDoc, const CFxString& strFileName, int codePage, int openFlags){};
106 };
107 
108 #include "FxPragmaPop.h"
#define DDKERNEL_API
Definition: DDKERNEL.h:32
~CFxDocumentManagerReactor(void) override
virtual void DocumentBecameCurrent(CFxDocument *pDoc)
virtual void DocumentPreOpen(CFxDocument *pDoc, const CFxString &strFileName, int codePage, int openFlags)
virtual void DocumentCreateCanceled(CFxDocument *pDocCreateCancelled)
virtual void DocumentCreateStarted(CFxDocument *pDocCreating)
virtual void DocumentActivated(CFxDocument *pActivatedDoc)
virtual void DocumentToBeDeactivated(CFxDocument *pDeActivatedDoc)
virtual void DocumentToBeDestroyed(CFxDocument *pDocToDestroy)
virtual void DatabaseDetached(CFxDocument *pDoc)
virtual void DocumentActivationModified(bool bActivation)
virtual void DatabaseAttached(CFxDocument *pDoc)
virtual void DocumentDestroyed(CFxDocument *pDocToDestroyed, const CFxString &strFileName)
ODRX_DECLARE_MEMBERS(CFxDocumentManagerReactor)
virtual void DocumentToBeActivated(CFxDocument *pActivatingDoc)
virtual void DocumentCreated(CFxDocument *pDocCreating)