00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef INCL_DOCUMENT
00013 #define INCL_DOCUMENT
00014
00015 #include "WinBmpEx.h"
00016
00017
00018 #include "plprognot.h"
00019
00020
00021
00022 class CPLViewerDoc : public CDocument, PLIProgressNotification
00023 {
00024 protected:
00025 CPLViewerDoc();
00026 DECLARE_DYNCREATE(CPLViewerDoc)
00027
00028
00029 public:
00030 CSize GetDocSize()
00031 {
00032 return m_pDib->GetSize();
00033 }
00034 HPALETTE GetDocPalette()
00035 {
00036 return m_pDib->GetLogPalette();
00037 }
00038
00039
00040 public:
00041 void ConvertTo8BPP(UINT iDitherPaletteType, UINT iDitherType);
00042 virtual void DeleteContents();
00043 PLWinBmpEx *GetDib()
00044 {
00045 return m_pDib;
00046 }
00047
00048 void OnProgress( double Part);
00049
00050
00051 protected:
00052 virtual ~CPLViewerDoc();
00053 virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
00054
00055 protected:
00056 PLWinBmpEx* m_pDib;
00057
00058 #ifdef _DEBUG
00059 virtual void AssertValid() const;
00060 virtual void Dump(CDumpContext& dc) const;
00061 #endif
00062
00063
00064
00065
00066 protected:
00067
00068 afx_msg void OnFileSave();
00069 afx_msg void OnUpdateFileSave(CCmdUI* pCmdUI);
00070
00071 DECLARE_MESSAGE_MAP()
00072 };
00073
00074 #endif // INCL_DOCUMENT
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099