-
Notifications
You must be signed in to change notification settings - Fork 0
/
CdCoverCreator2Doc.h
executable file
·89 lines (68 loc) · 1.98 KB
/
CdCoverCreator2Doc.h
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// CdCoverCreator2Doc.h : interface of the CCdCoverCreator2Doc class
//
#pragma once
#include "TracksInfo.h"
#include "BackgroundInfo.h"
#include "StyleTemplate.h"
#include "FloatingGraphicsObject.h"
#include "DataCDInfo.h"
#include "WebCoversDialog.h"
#include "undo.h"
#include <list>
class CCdCoverCreator2Doc : public CDocument, public CUndo
{
protected: // create from serialization only
CCdCoverCreator2Doc();
DECLARE_DYNCREATE(CCdCoverCreator2Doc)
// Attributes
public:
CStyleTemplate* m_pStyle;
CBackgroundInfo *m_pBackground[NUM_RENDER_TYPES];
CTracksInfo* m_pTracks;
CDataCDInfo* m_pDataCDInfo;
std::list<CFloatingGraphicsObject*> m_listFloatingObjects[NUM_RENDER_TYPES];
// Operations
public:
bool SetRTFTitle (CString strRTFTitle, RenderType rt);
CString GetRTFTitle (RenderType rt);
void ApplyStyleToRTFTitles (CStyleTemplate* pStyle, RenderType rt = (RenderType) -1);
// Overrides
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
virtual void OnCloseDocument();
// Implementation
public:
virtual ~CCdCoverCreator2Doc();
CString m_strBookletRTFText;
void SetBkAlphaFilename(CString strFilename);
bool SetBkImageFilename (CString strFilename);
UINT m_nObjectSchema;
void DisplayStyle();
void UpdateStyle();
void SetStyle (CString strStyle);
void DisplayMediumType ();
void SetMediumType (MediumType type);
inline void CheckPoint (bool bSetModifiedFlag = true)
{
CheckPt ();
if (bSetModifiedFlag)
SetModifiedFlag ();
}
bool Properties (NewDocMode mode);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
bool m_bCreating;
afx_msg void OnProperties();
afx_msg void OnBkimgImage();
afx_msg void OnBkimgScan();
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnFileLightscribe();
};