-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathCXMultiDocTemplate.h
More file actions
executable file
·34 lines (27 loc) · 1.01 KB
/
CXMultiDocTemplate.h
File metadata and controls
executable file
·34 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*-----------------------------------------------------------------------------
Lua Studio
Copyright (c) 1996-2008 Michal Kowalski
-----------------------------------------------------------------------------*/
// zmodyfikowana klasa CMultiDocTemplate - zamieniona funkcja rozpoznaj¹ca
// otwierane dokumenty
class CXMultiDocTemplate: public CMultiDocTemplate
{
bool normal_match_;
public:
CXMultiDocTemplate(UINT id_resource, CRuntimeClass* doc_class,
CRuntimeClass* frame_class, CRuntimeClass* view_class, bool normal_match= true) :
normal_match_(normal_match),
CMultiDocTemplate(id_resource,doc_class,frame_class,view_class)
{}
virtual ~CXMultiDocTemplate()
{}
virtual Confidence MatchDocType(LPCTSTR path_name, CDocument*& rpDocMatch)
{
if (normal_match_)
return CMultiDocTemplate::MatchDocType(path_name,rpDocMatch);
else
return CDocTemplate::noAttempt;
}
virtual BOOL GetDocString(CString& string, enum DocStringIndex i) const;
static bool registration_ext_;
};