-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathViewBase.h
More file actions
47 lines (42 loc) · 1.25 KB
/
Copy pathViewBase.h
File metadata and controls
47 lines (42 loc) · 1.25 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
35
36
37
38
39
40
41
42
43
44
45
46
47
// ViewBase.h: interface for the CViewBase class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_VIEWBASE_H__C9013EA3_3C16_11DA_A17D_000103DD18CD__INCLUDED_)
#define AFX_VIEWBASE_H__C9013EA3_3C16_11DA_A17D_000103DD18CD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "imainframe.h"
#include "iinputframe.h"
#include "commandparser.h"
// this class has common stuff to all view types, be it chat views or text editor views
// or whatever
class CViewBase : \
public IInputFrameEvents,
public CCommandParser
{
public:
enum ViewType
{
VIEW_CHAT_YCHT_RTF = 0,
VIEW_CHAT_YCHT_HTML,
VIEW_CHAT_YCHT_TEXT,
VIEW_CHAT_YMSG_RTF,
VIEW_CHAT_YMSG_HTML,
VIEW_CHAT_YMSG_TEXT,
VIEW_TYPE_UNKNOWN,
};
public:
CViewBase(void);
virtual ~CViewBase();
virtual ViewType GetViewType(void) const = 0;
virtual bool IsChatView(void) const = 0;
virtual bool IsActive(void) const { return m_bActive; }
virtual bool IsHandleValid(void) = 0;
virtual bool IsYchtView(void) const = 0;
virtual HWND GetHandle(void) = 0;
protected:
static IMainFrame *m_pFrame;
bool m_bActive;
};
#endif // !defined(AFX_VIEWBASE_H__C9013EA3_3C16_11DA_A17D_000103DD18CD__INCLUDED_)