JunkBox_Win_Lib 1.5.3
Loading...
Searching...
No Matches
CExDocument Class Reference

#include <ExDocument.h>

Inheritance diagram for CExDocument:
Collaboration diagram for CExDocument:

Public Member Functions

CExViewGetView ()
 
virtual BOOL ReadDataFile (LPCTSTR)
 
virtual BOOL WriteDataFile (LPCTSTR)
 
virtual BOOL MakeViewData ()
 
virtual void Serialize (CArchive &ar)
 
virtual BOOL OnNewDocument ()
 
virtual BOOL OnOpenDocument (LPCTSTR lpszPathName)
 
virtual ~CExDocument ()
 
virtual void AssertValid () const
 
virtual void Dump (CDumpContext &dc) const
 

Public Attributes

CmnHead infHead
 
ExMSGraph< sWordmsGraph
 
ExCmnHead cmnHead
 
CExViewpView
 
CExFramepFrame
 
CAppCallBackpApp
 
voidanyData
 
CString Title
 
CString preTitle
 
CString pstTitle
 
int vMax
 
int vMin
 
int cMax
 
int cMin
 
int base
 
int colorMode
 
int startNo
 
int endNo
 
BOOL multiSliceData
 
BOOL hasReadData
 
BOOL hasViewData
 
BOOL ctrlCntrst
 
BOOL notFreeMSGraph
 
BOOL notFreeCmnHead
 

Protected Member Functions

 CExDocument ()
 

Detailed Description

Definition at line 43 of file ExDocument.h.

Constructor & Destructor Documentation

◆ CExDocument()

CExDocument ( )
protected

Definition at line 25 of file ExDocument.cpp.

26{
27 //DEBUG_WARN("CExDocument::CExDocument Start\n");
28
30 msGraph.init();
31 cmnHead.init();
32
33 hasReadData = FALSE; // データを正常に読み込み,保持しているか.
34 hasViewData = FALSE; // 読み込んだデータから表示用データを作成したか.
35 ctrlCntrst = FALSE; // 表示用データ作成時に(画素値が255以下でも)強制的にコントラストを調整を行う.
36 multiSliceData = FALSE; // TRUE ならマルチスライス読み込みモード
37 notFreeMSGraph = FALSE; // メモリ管理無しの場合,このオブジェクトが msGraph のメモリを開放するのは禁止.
38 notFreeCmnHead = FALSE; // メモリ管理無しの場合,このオブジェクトが cmnHead のメモリを開放するのは禁止.
39
40 pView = NULL;
41 pFrame = NULL;
42 pApp = NULL;
43 anyData = NULL;
44
45 Title = _T("");
46 preTitle = _T("");
47 pstTitle = _T("");
48
49 startNo = 0;
50 endNo = 0;
51 vMax = 0;
52 vMin = 0;
54 base = 0;
55
56 //DEBUG_WARN("CExDocument::CExDocument End\n");
57}
ExCmnHead cmnHead
Definition ExDocument.h:53
CExFrame * pFrame
Definition ExDocument.h:56
CAppCallBack * pApp
Definition ExDocument.h:57
ExMSGraph< sWord > msGraph
Definition ExDocument.h:52

◆ ~CExDocument()

~CExDocument ( )
virtual

Definition at line 61 of file ExDocument.cpp.

62{
63 DEBUG_INFO("DESTRUCTOR: CExDocument\n");
64
65 if (pApp!=NULL) pApp->DocumentDestructor(this); // 上位アプリケーションに通知
66
67 if (notFreeCmnHead) cmnHead.mfree();
68 else cmnHead.free();
69 if (notFreeMSGraph) msGraph.mfree();
70 else msGraph.free();
71
72 if (!isNull(pView)) pView->pDoc = NULL;
73 if (!isNull(pFrame)) pFrame->pDoc = NULL;
74 pView = NULL;
75 pFrame = NULL;
76}
virtual void DocumentDestructor(CExDocument *doc)
Definition ExClass.h:59
CExDocument * pDoc
Definition ExFrame.h:41
CExDocument * pDoc
Definition ExView.h:76

References CExDocument::cMin, CExDocument::cmnHead, CAppCallBack::DocumentDestructor(), CExDocument::msGraph, CExDocument::notFreeCmnHead, CExDocument::notFreeMSGraph, CExDocument::pApp, CExFrame::pDoc, CExView::pDoc, CExDocument::pFrame, and CExDocument::pView.

Here is the call graph for this function:

Member Function Documentation

◆ AssertValid()

void AssertValid ( ) const
virtual

Reimplemented in CDxGraphDoc, CRwGRDoc, and CvThumbNailDoc.

Definition at line 92 of file ExDocument.cpp.

93{
94 CDocument::AssertValid();
95}

Referenced by CDxGraphDoc::AssertValid(), and CRwGRDoc::AssertValid().

Here is the caller graph for this function:

◆ Dump()

void Dump ( CDumpContext & dc) const
virtual

Reimplemented in CDxGraphDoc, CRwGRDoc, and CvThumbNailDoc.

Definition at line 99 of file ExDocument.cpp.

100{
101 CDocument::Dump(dc);
102}

References CExDocument::cMin.

Referenced by CDxGraphDoc::Dump(), and CRwGRDoc::Dump().

Here is the caller graph for this function:

◆ GetView()

CExView * GetView ( )

Definition at line 159 of file ExDocument.cpp.

160{
161 if (pView==NULL) {
163 while (pos!=NULL) {
165 if (this==pview->GetDocument()) return pview;
166 }
167 return NULL;
168 }
169 return pView;
170}

References CExDocument::cMin, and CExDocument::pView.

Referenced by jbxwl::CreateDocFrmView().

Here is the caller graph for this function:

◆ MakeViewData()

BOOL MakeViewData ( )
virtual

Reimplemented in CDxGraphDoc, and CRwGRDoc.

Definition at line 190 of file ExDocument.cpp.

191{
192 return TRUE;
193}

References CExDocument::cMin.

Referenced by CExDocument::OnNewDocument(), and CExDocument::OnOpenDocument().

Here is the caller graph for this function:

◆ OnNewDocument()

BOOL OnNewDocument ( )
virtual

Definition at line 128 of file ExDocument.cpp.

129{
130 //DEBUG_INFO("CExDocument::OnNewDocument(): START\n");
131
132 if (!hasReadData) return FALSE;
133
135 if (!hasViewData) return FALSE;
136
137 //DEBUG_INFO("CExDocument::OnNewDocument(): END\n");
138 return TRUE;
139}
virtual BOOL MakeViewData()

References CExDocument::cMin, CExDocument::hasReadData, CExDocument::hasViewData, and CExDocument::MakeViewData().

Referenced by jbxwl::InitialDocView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnOpenDocument()

BOOL OnOpenDocument ( LPCTSTR lpszPathName)
virtual

Definition at line 143 of file ExDocument.cpp.

144{
145 //DEBUG_INFO("CExDocument::OnOpenDocument(): START\n");
146
148 if (!hasReadData) return FALSE;
149
151 if (!hasViewData) return FALSE;
152
153 //DEBUG_INFO("CExDocument::OnOpenDocument(): END\n");
154 return TRUE;
155}
virtual BOOL ReadDataFile(LPCTSTR)

References CExDocument::cMin, CExDocument::hasReadData, CExDocument::hasViewData, CExDocument::MakeViewData(), and CExDocument::ReadDataFile().

Referenced by jbxwl::InitialDocView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadDataFile()

BOOL ReadDataFile ( LPCTSTR str)
virtual

機能: 画像データを読み込む. 引数: ファイル名 戻値: TRUE: 成功,FALSE: 失敗 説明: 読み込んだグラフィックデータ(msGraphメンバ)

Reimplemented in CDxGraphDoc, and CRwGRDoc.

Definition at line 180 of file ExDocument.cpp.

181{
182 return TRUE;
183}

References CExDocument::cMin.

Referenced by CExDocument::OnOpenDocument().

Here is the caller graph for this function:

◆ Serialize()

void Serialize ( CArchive & ar)
virtual

Reimplemented in CDxGraphDoc, CRwGRDoc, and CvThumbNailDoc.

Definition at line 110 of file ExDocument.cpp.

111{
112 if (ar.IsStoring())
113 {
114 // TODO: この位置に保存用のコードを追加してください
115 }
116 else
117 {
118 // TODO: この位置に読み込み用のコードを追加してください
119 }
120}

References CExDocument::cMin.

◆ WriteDataFile()

BOOL WriteDataFile ( LPCTSTR fname)
virtual

Definition at line 200 of file ExDocument.cpp.

201{
202 return TRUE;
203}

References CExDocument::cMin.

Member Data Documentation

◆ anyData

void* anyData

Definition at line 58 of file ExDocument.h.

◆ base

int base

Definition at line 69 of file ExDocument.h.

Referenced by CContrastDLG::CContrastDLG(), and CRwGRDoc::TranslateData().

◆ cMax

◆ cMin

◆ cmnHead

◆ colorMode

◆ ctrlCntrst

◆ endNo

int endNo

Definition at line 73 of file ExDocument.h.

Referenced by CDxMGRView::MakeSetTitle(), and CRwGRDoc::ReadDataFile().

◆ hasReadData

◆ hasViewData

◆ infHead

CmnHead infHead

Definition at line 51 of file ExDocument.h.

Referenced by CDxGraphDoc::ReadDataFile(), and CRwGRDoc::ReadDataFile().

◆ msGraph

◆ multiSliceData

BOOL multiSliceData

Definition at line 75 of file ExDocument.h.

Referenced by jbxwl::ExecTemplate(), and CRwGRDoc::ReadDataFile().

◆ notFreeCmnHead

BOOL notFreeCmnHead

Definition at line 81 of file ExDocument.h.

Referenced by CExDocument::~CExDocument().

◆ notFreeMSGraph

BOOL notFreeMSGraph

Definition at line 80 of file ExDocument.h.

Referenced by CExDocument::~CExDocument().

◆ pApp

CAppCallBack* pApp

Definition at line 57 of file ExDocument.h.

Referenced by jbxwl::SetExLink(), and CExDocument::~CExDocument().

◆ pFrame

◆ preTitle

◆ pstTitle

◆ pView

◆ startNo

int startNo

Definition at line 72 of file ExDocument.h.

Referenced by CDxMGRView::MakeSetTitle(), and CRwGRDoc::ReadDataFile().

◆ Title

◆ vMax

◆ vMin


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